Page 1 of 1

Best strategy for similar tests?

Posted: Mon Aug 18, 2014 1:25 pm
by BCTest
Hello,

what would be the best strategy for testing one app in different editions with similar features. Our app has some features only available in special editions. Most of the GUI is in each edition the same but some dialogs are different. Also some dialogs are only available in one particular edition. We want to test each version with one test, what will be the best solution to use the same recording for each edition and only the special recordings in the suitable edition? To avoid changes in many solutions it would be great to have only one test-solution which specializes on each edition by command line-param.

Regards,
ThN.

Re: Best strategy for similar tests?

Posted: Wed Aug 20, 2014 3:37 pm
by Support Team
Hello BCTest,

I could imagine a test structure as depicted below:
TestSuiteStructure.png
Each version of your application is tested within a separate TestCase. The ’CommonRecording’ can be re-used within each TestCase (marked red). The SpecialDialogRecording’s are pretty self-explanatory, they cover version specific dialogs and so on.

You can call each TestCase (aka. Version) via the command line using the ‘/tc’ –argument. Further information about Command Line Arguments can be found here:
http://www.ranorex.com/support/user-gui ... html#c3022

Hope this information helps you.

Regards,
Robert

Re: Best strategy for similar tests?

Posted: Fri Aug 22, 2014 2:59 pm
by BCTest
Thanks for the answer.
I'm certain your suggestion will work. I used a different solution: global params which can be set in command line or in studio. So the test can be done by command line and by studio (while developing):
GlobalParam.png
Usercode

Code: Select all

if (string.Compare(TestSuite.Current.Parameters["Variante"], "SQL", true) == 0)
{
// Do something
}
Probably not the best solution but it works.

Regards,
Thomas.