An open API service indexing awesome lists of open source software.

https://github.com/znsio/getting-started-with-rp_ap

Sample tests to show how to use ReportPortalIntegration and ApplitoolsIntegration utilities
https://github.com/znsio/getting-started-with-rp_ap

Last synced: about 1 year ago
JSON representation

Sample tests to show how to use ReportPortalIntegration and ApplitoolsIntegration utilities

Awesome Lists containing this project

README

          

# getting-started-with-rp_ap

Sample Web and App tests to show how to use [ReportPortalIntegration](https://github.com/znsio/ReportPortalIntegration)
and [ApplitoolsIntegration](https://github.com/znsio/ApplitoolsIntegration) utilities in a Java-TestNG automation
framework

## Tech stack used

* [JAVA JDK-11](https://cucumber.io)
* [TestNG 7.8.x](https://testng.org/doc/)
* [Appium 2.x](https://appium.io)
* https://javadoc.io/doc/io.appium/java-client/8.0.0-beta/deprecated-list.html
* [Selenium WebDriver 4.x](https://selenium.dev)
* https://www.selenium.dev/selenium/docs/api/java/deprecated-list.html
* [Reportportal](https://reportportal.io)
* [Applitools](https://applitools.com)
* Build tool: [Maven](https://maven.apache.org/)

## Configuring ReportPortal and Applitools

* [ReportPortalPortal](https://github.com/znsio/ReportPortalIntegration/blob/main/README.md#how-to-configure-reportportal-in-your-automation-framework)
* [ApplitoolsIntegration](https://github.com/znsio/ApplitoolsIntegration/blob/main/README.md#how-to-configure-applitools-visual-testing-in-your-automation-framework)

## 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

```xml

httpmyproxy
true
http
someHost
8080
UserName
Password
*.google.com|*jitpack.io

```

## 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