ayu_2403 Posted June 20, 2023 Posted June 20, 2023 I want to run some testcases written in autoit from CommandPrompt. I have written a script that contains different function representing a testcase and they are called inside a main function. I want to run this script from command line. Currently i can run the script using "C:\Program Files (x86)\AutoIt3\autoit3_x64.exe" "c:\Users\opc\Desktop\AutoIt\Tests.au3" but on running in the command prompt the scripts gets executed but there is no indication of the script being run. I want that command prompt shows starting and ending of execution of each function and pauses until the complete script executes. The example of the main is given below. Main() Func Main() Test1() Test2() Test3() EndFunc
Developers Jos Posted June 20, 2023 Developers Posted June 20, 2023 Moved to the appropriate AutoIt General Help and Support forum, as the AutoIt Example Scripts forum very clearly states: Quote Share your cool AutoIt scripts, UDFs and applications with others. Do not post general support questions here, instead use the AutoIt Help and Support forums. Moderation Team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
ayu_2403 Posted June 20, 2023 Author Posted June 20, 2023 1 hour ago, Jos said: Moved to the appropriate AutoIt General Help and Support forum, as the AutoIt Example Scripts forum very clearly states: Moderation Team Is the question still answerable?..I am new to the forum..Please pardon if some mistakes are there.
Developers Jos Posted June 20, 2023 Developers Posted June 20, 2023 Sure.. it is just moved to the correct place in the forum. Somebody likely will stop by to spend some time in understanding &answering your question. 😉 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
kcvinu Posted July 2, 2023 Posted July 2, 2023 @ayu_2403, I had the same issue few weeks ago. And I found the solution by myself. See this answer You will need to use a python script. Read my answer in that link and feel free to ask any questions. Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now