Jump to content
Sign in to follow this  
marshallprank

ProgressBar

Recommended Posts

marshallprank

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.

Share this post


Link to post
Share on other sites
Andreik

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

When the words fail... music speaks

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.