I am new to Automation and I have started to work on SeeTest Automation. I want to know how to make proper classes and methods for automating an Android Application.

My main concern is to know how to arrange test cases in classes and how to arrange code.

2 Answers 2


For starters, I would suggest you to start reading about Page Object Model - which is a great way to introduction abstraction in your Selenium tests and provides a programmatic way to drive and interact with UI.

Each page of your AUT (Application Under Test) is mapped to a class file in your code and each method within the class file can be treated as a service offered by the PageObject.

A simple example is provided here.

If you like to read about pro's and con's , there is a great thread in SO that talks in length about POM. Also you can go through this link in SQA which talks about the same topic.

Note : If you want to involve Python, a very good starting tutorial is here. This example takes a mobile apk, so it is be relatable with what you are asking for.


In any automation plan regardless of language used, you will need to think about the following concerns

  • Reusability
  • Maintability
  • Test Result Reporting and logging
  • Cross Browser/Device Testing

I have put a link to my simple test automation example in Java that addresses this here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.