Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We reflect to use SeeTest for mobile app test automation. I am familiar with Selenium 2 / WebDriver and love to use PageObjects.

Is it possible to create PageObjects or something similar with SeeTest? The SeeTest test automation can develope with Java or other programming languages, so it should be posible. But I have no experience with this tool and I want to play safe.

Thanks for your support!

PageObject: A class for a page or component of a page who provides all elements and actions. This enable to have easy to understand test cases.

share|improve this question
up vote 1 down vote accepted

In SeeTest there is out-of-box concept called Zone.

Zones are similar to containers and allow to group elements as you wish. It's obvious to group elements by functional areas / pages / screens. So Zones are similar to Page Objects in some sense.

Here are few Zone-related official help pages:


To develop your own implementation of PageObject, or extend Zones with some behaviour

  • you can also export test code into regular programming language.
    Find info here: Help > Plug-in & Add-on to 3rd party framework
share|improve this answer
    
Thank your for your answer. Sounds good. But is it right, that zones only provide elements? Element actions like click, type and something similar can not implemented by myself? For exmaple zone.clickNextButton(); or zone.searchFor(String); In this example searchFor(String); select a search field, type the String and select the submit button. So the method interact with multiple elements. Is something like that possible? – Twaldigas Jun 20 '14 at 9:07
    
I think yes. I've updated an answer. – Dmitry Cheremushkin Jun 20 '14 at 10:03

It will be difficult to maintain SeeTest automation using POM because if we declare all the paths like

public static By launchpad_button = By.xpath("//*[@id='text']");

but the commands in SeeTest are like below

driver.client.elementSendText("NATIVE", "xpath=//*[@id='text']", 0 ,"Testing");

So you need to add xpath again while using SeeTest commands

Its useful in the Selenium + Webdriver but i thinks it will wast in Selenium Webdriver + SeeTest

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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