My first Perfecto script

This section provides instructions on how to run an Appium/Selenium test with Java in Perfecto. It assumes that you are:

  • Familiar with Appium/Selenium
  • Do not have any existing tests to work with
  • A novice user of Perfecto

To run tests in Perfecto, you need to include:

  • What driver you want to use
  • Where your Perfecto instance is located 
  • Who you are
  • What devices you want to work on

Our sample project is available on GitHub: https://github.com/PerfectoMobileSA/PerfectoJavaSample

Prerequisites

Before you get started, make sure you have installed the following:

1 | Get started

Our sample project includes the following simple scripts: PerfectoAppium.java and PerfectoSelenium.java. The scripts accesses the Perfecto website and verify the title. They only serves the purpose of showing you how to connect to Perfecto.

For information on running the final scripts, see the README.md file included with the sample project.

To get started:

  1. Access the sample project in GitHub and copy the clone URL: https://github.com/PerfectoMobileSA/PerfectoJavaSample
  2. Open your IDE and check out the project from GitHub.

2 | Configure the script for Perfecto

In this step, you configure security information and the Perfecto cloud name. If needed, you can also modify the device details.

The project's pom.xml file is institutional because it holds all configurations and dependencies. In its initial state, when you first create a project, the file is very simple. The pom.xml file in our sample project has been updated with the required Perfecto dependencies.

Expand a step to view its content.