Jump to content

Recommended Posts

Posted

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.

Posted

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()

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...