We have another Ranorex project that uses the RxBrowser to do mobile web testing. The website layout is completely different when loading on an iPhone vs an iPad. Unlike the iOS app, we have separate recordings for the iPhone vs iPad. Both type of recordings are in the same Ranorex project, but organize in such a way where they are group into an iPhone or iPad folder.
We want to have a full end to end test case. Here's an example of a test flow:
- 1. Load the RxBrowser and load our site
2. Login on website
3. Purchase something
4. Load iOS App
5. Login on app
6. Validate the purchase content is available
I can think of two approaches on how to handle this:
- 1. Have a user code module that simply checks for the device type and calls the required recording. The problem is how do you bind the data via code?
2. Have a test case named 'A-Parent' that have two nested test cases named 'A-Child1' and 'A-Child2"? Data binding is done on the Parent level and passed down to the two Child test cases. Have a user code module in the setup phase of 'A-Parent' to determine the device type and then jump to the appropriate nested test case: 'A-Child1' or 'A-Child2'. In each of the nested test case, you have a user code module that breaks out to the parent level so it can continue with the test flow. How would this jumping work?