znsio / getting-started-with-rp_ap

Sample tests to show how to use ReportPortalIntegration and ApplitoolsIntegration utilities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getting-started-with-rp_ap

Sample Web and App tests to show how to use ReportPortalIntegration and ApplitoolsIntegration utilities in a Java-TestNG automation framework

Tech stack used

Configuring ReportPortal and Applitools

Pre-requisites for executing App Tests

  1. Install node-js and npm - https://docs.npmjs.com/downloading-and-installing-node-js-and-npm

  2. To install Appium and other dependency - Execute npm install

Build

mvn clean install -DskipTests

If facing issues with dependencies not being resolved from https://jitpack.io, then check the settings.xml file you're using for building your maven projects. If you've proxies configured in the same, then make sure jitpack.io is part of nonProxyHosts configuration. For instance

<proxy>
    <id>httpmyproxy</id>
    <active>true</active>
    <protocol>http</protocol>
    <host>someHost</host>
    <port>8080</port>
    <username>UserName</username>
    <password>Password</password>
    <nonProxyHosts>*.google.com|*jitpack.io</nonProxyHosts>
</proxy>

Execute Tests

WebTests

mvn clean test -DsuiteXmlFile=TestNG/webTestng.xml -DCONFIG=src/test/resources/config/webConfig.properties

AppTests

Android

mvn clean test -DsuiteXmlFile=TestNG/androidTestng.xml -DCONFIG=src/test/resources/config/androidConfig.properties

How the Dashboards look

ReportPortal

Launch Page/Dashboard

RP_LaunchPage

Test Name Page

RP_TestNamePage

Test Execution/Logs Page

RP_TestExecutionPage

Applitools (Visual Testing)

Test Execution/Dashboard

AP_TestExecutionPage

Batch Details

AP_BatchPage

About

Sample tests to show how to use ReportPortalIntegration and ApplitoolsIntegration utilities

License:MIT License


Languages

Language:Java 100.0%