Reputation: 1
I am building a test framework that should support test execution on Android, iOS and Web. Since the app is complex with many test cases (1000+) one of the requirements is to be able to execute in parallel (here should be included tests that require only single device), also having tests with parent-child behavior (chat application - the SMS send from device 'A' to device "B"). I am planning to use POM with PageFactory.
So here my initial thoughts on how to do this:
Pros: easy to manage driver instance creation before each test, manageable sequential (parent-child) test execution (in testng.xml I can specify parent and child methods) easy manageable parallel execution.
Cons: create an instance of the driver before each tests method will be time consuming, if one test perform sign in, and the next test needs to send SMS, due to driver initialization in beforeMethod I need to perform sign in (code duplication) again.
Could you suggest or point to a framework that can support all mentioned requirements. Should I use the selenium grid?
Any help is highly appreciated :)
Upvotes: 0
Views: 628
Reputation: 3658
Based on your description, you can check AppiumTestDistribution framework and extend it for your needs.
I suggest checking official docs and this project is a good point to start
One note from myself: start driver only once in BeforeSuite
: installing the app and appium helpers apps is time consuming; you can simply reset app state in BeforeTest
, e.g. by starting activity
Upvotes: 0