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 ?
paralle test scenario
Re: paralle test scenario
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.
/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.
Re: paralle test scenario
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.
If you want to run tests in parallel then you need a second run time machine and license.