Sign in to follow this  
Followers 0
Athos

GUI interaction with automation script

2 posts in this topic

Hi guys, thanks in large part to your help I have successfully finished completing the automation I was working on using autoit. I'm now at the stage where I have to make some big design decisions regarding building a gui to interact with my script.

My script right now is about 1000 lines of code, although I think I can cut it down to about 600 once I completely rework the code. But my point is thats a lot of code in one single script right now. My next step is to write a gui so that I can specify the number of times to run the test, and to assign certain variables I need to in the script (like how long to set sleeps and stuff).

So I know that autoit can be used to build automation scripts, and build guis, but is it wise to combine these two things into a single script, or it a better design practice to have the gui script wrap around the automation?

Thanks guys,

PS: I wasn't sure if I should post this in the GUI forum or the general forum. I went with general because I feel this a question about design and not about technical issues.

Share this post


Link to post
Share on other sites



There is no problem coding GUI and automation in one script.

You should use Func ... EndFunc to do your code elegant

and you can use your own include files to split big projects to more pieces.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0