Test argument to Hide the progress Bar

Ask general questions here.
bberrabah
Posts: 26
Joined: Wed Dec 20, 2017 6:18 pm

Test argument to Hide the progress Bar

Post by bberrabah » Mon Feb 05, 2018 11:24 am

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
Last edited by bberrabah on Mon Feb 12, 2018 10:03 am, edited 1 time in total.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Test argument to Hide the pregress Bar

Post by odklizec » Mon Feb 05, 2018 12:41 pm

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?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

bberrabah
Posts: 26
Joined: Wed Dec 20, 2017 6:18 pm

Re: Test argument to Hide the pregress Bar

Post by bberrabah » Tue Feb 06, 2018 3:42 pm

Thanks for every body.

Best regards