PESTO (Page Object Transformation Tool) is a tool to transform a DOM-based web test suite, created using Selenium WebDriver, into a visual web test suite based on the Sikuli image recognition capabilities. The web test suite must adopt the Page Object and Page Factory design patterns.
You can import the project within the Eclipse IDE, or build it from command line by typing
mvn compile
- parameters setting, through the
Settings
class in the packagepesto
. This serves to specify where the reference test suites are. It is suggested to put the Selenium page objects and tests under thesrc/main/resources/
directory. No further edit should be required in this file for the correct execution of the toy example. - DOM-based test suite execution, located in
src/main/resources/testSuite
. Right-click onDemoSeleniumTestSuite
-> Run As -> JUnit Test. ATestSuiteRunner
class is also available in the packagepesto
. TheclassRunner
should be edited to point to a JUnit Test Suite class. More info here. The project shall create anoutput
folder with the visual locators for each test, under thescreenshots
folder. See an example here. - page object trasformation, through the
PageObjectTransformer
class in the packagepesto
. The class will tranform the Selenium page objects insrc/main/resources/poSelenium
to Sikuli. The output will be saved in thesrc/main/resources/poSikuli
package. See an example here. - test case trasformation, through the
TestTransformer
class in the packagepesto
. The class will tranform the tests insrc/main/resources/testSuite
to Sikuli. The output will be still saved in thesrc/main/resources/testSuite
package. (The three phases can be run at once using thePestoMain
class in the packagepesto
)
The tool and its empirical evaluation have been part in the following res.
-
Maurizio Leotta, Andrea Stocco, Filippo Ricca, Paolo Tonella. Automated Generation of Visual Web Tests from DOM-based Web Tests. Proceedings of 30th ACM/SIGAPP Symposium on Applied Computing (SAC 2015), 13-17 April, 2015, Salamanca, Spain, pp.775-782, ACM, 2015. DOI
-
Andrea Stocco, Maurizio Leotta, Filippo Ricca, Paolo Tonella. PESTO: A Tool for Migrating DOM-based to Visual Web Tests. Proceedings of 14th IEEE International Working Conference on Source Code Analysis and Manipulation (SCAM 2014), 28-29 September 2014, Victoria, British Columbia, Canada, pp.65-70, IEEE, 2014. DOI