marshallprank Posted March 21, 2011 Posted March 21, 2011 Hallo, i want to implement in my Test script a Progress Bar. This should be active until my test is finished. My Code is: run("E:Pro\setup.exe") WinWaitActive("GTS","&Next >") Send("!n") WinWaitActive("GTS","&Next >") Send("!n") WinWaitActive("GTS","&Next >") Send("!n") WinWaitActive("GTS","&Next >") Send("!n") WinWaitActive("GTS","&Next >") Send("!n") WinWaitActive("GTS","&Close") Send("!Close") My Test is very simple. It makes an Install of the Tool GTS. I need now a progressBar, that shows the elapsing time of the test. Thanks and best regards.
Andreik Posted March 21, 2011 Posted March 21, 2011 You can go something like this: ProgressOn("Install","") run("E:Pro\setup.exe") ProgressSet(10,"Run Installer") WinWaitActive("GTS","&Next >") Send("!n") ProgressSet(25,"Next 1") WinWaitActive("GTS","&Next >") Send("!n") ProgressSet(40,"Next 2") WinWaitActive("GTS","&Next >") Send("!n") ProgressSet(55,"Next 3") WinWaitActive("GTS","&Next >") Send("!n") ProgressSet(75,"Next 4") WinWaitActive("GTS","&Next >") Send("!n") ProgressSet(90,"Next 5") WinWaitActive("GTS","&Close") Send("!Close") ProgressSet(100,"Close") Sleep(1000) ProgressOff()
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