Need help in managing mutiple test cases

Im working on mobile android application that has multiple modules , but as I’m working for the first time in automation im not able to mange the project structure also how can i write my script to mange the multiple test cases.

  1. You can use standard build tool maven for maintaining project structure
    create simple archtype project using eclipse

  2. Use a frame work like Page Object with Page Factory which will help in managing test case

Base Page -
Login Page Class 1 - Test Class 1 - contains Login Page multiple test cases
Registration Page Class 2 - Test Class 2 - contains Registration Page multiple test cases
Home Page Class 3 - Test Class 3 - contains Home Page multiple test cases

1 Like

You are using Java-

  1. Create a Maven project
  2. In the Project Structure under the src create a folder names as “Pages” to maintain the POM of the pages by creating a class per page. eg: LoginPage.Java
  3. Under the Test folder create test class for each of the page class defined. eg: LoginPageTest class.
    Test class could be Junit or TestNg Testing framework where you would be importing the LoginPage class
  4. The test class would contain the multiple tests of the particular Page . This could be used for Unit Test
  5. For covering the system test cases, need to create folder under test based on the module and import all the Pages to be covered in the test cases of that particular module
  6. Need to user annotation of Junit or TestNg based on the testing framework being used to execute the tests
  7. Maven would download all the dependencies required for the project

Hope this would help you…

1 Like

Thank you so much for the hep … will try this …