paralle test scenario

Ask general questions here.
User avatar
sandamal
Posts: 28
Joined: Wed Jul 08, 2015 7:50 am

paralle test scenario

Post by sandamal » Wed Jan 11, 2017 11:59 am

I have a feature to test (in an android app ) which is to trigger an Alarm when user kept device idle for a certain time period (configurable in server).
is it possible to test this parallel to other tests ?
like I log in to a device and kept it idle and then continue on other tests in another device (and finish those tests),
after the configured duration I have to check weather that alarm has got triggered.

Ex :
1-log in to device ( Idele alarm trigger time is configured to 30 minutes)
2-execute other test flows in another device ( everything will complete in 20 minutes)
3-ranorex will wait another 10 minutes and verify the idle alarm

please give me a suggestions/options to overcome this scenario ?

tvu
Posts: 195
Joined: Tue Apr 07, 2015 10:47 pm

Re: paralle test scenario

Post by tvu » Wed Jan 11, 2017 10:48 pm

Yes. You need to add a variable in your base repo item that represents your mobile device. Something like this:

/mobileapp[@devicename=$mobileDevice and @title='com.yourcompany.appid"]

Then in Ex 1, you assigned $mobileDevice to your first device name.
Then in Ex 2, you assigned $mobileDevice to your second device name.
Then in Ex 3, you wait and it's not dependent on any device

To check the alarm after the wait, then you have a test case after Ex 3 that has $mobileDevice assigned to your first device name.

Hope that helps.

tvu
Posts: 195
Joined: Tue Apr 07, 2015 10:47 pm

Re: paralle test scenario

Post by tvu » Wed Jan 11, 2017 10:49 pm

Please note, that you are NOT running these test cases in parallel. You are running them sequentially, but switching between devices.

If you want to run tests in parallel then you need a second run time machine and license.