Page 1 of 1
Test argument to Hide the progress Bar
Posted: Mon Feb 05, 2018 11:24 am
by bberrabah
Hello;
I want to hide the progress bar during test case execution.
Do you know how is it possible by intriducing an argument to Test program (.exe) ?
Best ragards
Re: Test argument to Hide the pregress Bar
Posted: Mon Feb 05, 2018 12:41 pm
by odklizec
Hi,
As far as I know, there is no built-in command line parameter to do so. But you can easily implement one. You can disable/enable the progress form using this code:
Code: Select all
// disable progress form
Ranorex.Controls.ProgressForm.Hide();
// enable progress form
Ranorex.Controls.ProgressForm.Show();
Simply create a new code module in "Setup" section of your test suite. Then in this module, create a new module variable (e.g. hideProgressForm) and in the test suite, create a new global parameter (e.g. hideProgressForm). Now bind module variable in global parameter. Then use the newly created module variable in condition, like this:
Code: Select all
if (hideProgressForm="True")
{
Ranorex.Controls.ProgressForm.Hide();
}
else
{
Ranorex.Controls.ProgressForm.Show();
}
Now you can fill the global parameter (hideProgressForm) from command line like this:
test.exe /pa:hideProgressForm=True
If everything is set correctly, then in case
hideProgressForm="True", the progress form should get disable at start of your test. Hope this helps?
Re: Test argument to Hide the pregress Bar
Posted: Tue Feb 06, 2018 3:42 pm
by bberrabah
Thanks for every body.
Best regards