Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This section explains how to download the Reporting SDK client for your programming language and framework.

In this section:

Table of Contents

When the download is complete, your next step is to implement the reporting framework.

Click a section to view detailed steps.


UI Expand
titleJava
  1. Download Java (licensed under the Apache License, Version 2.0):
    1. Go to the direct download page.
    2. Click the latest version and download the reportium-java-<version>.jar file.
  2. Add the file to your classpath.
Note
iconfalse

Note: To determine the features of the SDK version, read the release notes.


Info
iconfalse

Note: If you are

using Allure annotations

using Allure annotations, download an additional artifact from here, as follows:

  1. Click the latest version and download the reportium-allure-integration-<version>.jar file.
  2. Add the file to your classpath.



UI Expand
titleMaven
  1. Download Maven.

  2. Create a Maven project in your IDE.
  3. Update your pom.xml file.
    Sample pom.xml file including reporting property and dependencies is available here.

    1. Add the version number of the Reporting SDK that you downloaded (as described above) into the <properties> section as the <reportium-sdk.version> property.

    2. Add the identification of the SDK repository, as defined below, into the <repositories> section.
    3. Add the Reporting SDK dependency into the <dependencies> section.
      If you are using Allure annotations, add the dependency for the Allure-integration as well.

Use the following skeleton if your installation uses the latest Selenium version:

Code Block
languagexml
themeMidnight
<properties>
		...
     <!-- Add the following line into the "properties" section and supply the correct version number -->
     <reportium-sdk.version>2.3.1</reportium-sdk.version>
		...
</properties>

<!-- Perfecto Repository -->
<repository>
    <id>perfectomobile</id>
    <name>Perfecto mobile</name>
    <url>https://repo1.perfectomobile.com/public/repositories/maven</url>
</repository>

<!-- Reporting SDK -->
<dependency>
    <groupId>com.perfecto.reporting-sdk</groupId>
    <artifactId>reportium-java</artifactId>
    <version>${reportium-sdk.version}</version>
</dependency>

<!-- Reporting SDK addition for Allure users -->
<dependency>
    <groupId>com.perfecto.reporting-sdk</groupId>
    <artifactId>reportium-allure-integration</artifactId>
    <version>${reportium-sdk.version}</version>
</dependency>

If your installation is using a previous Selenium version, use the following skeleton (that excludes the Selenium dependency of the Smart Reporting SDK).

Code Block
languagexml
themeMidnight
<properties>
		...
     <!-- Add the following line into the "properties" section and supply the correct version number -->
     <reportium-sdk.version>2.3.1</reportium-sdk.version>
		...
</properties>

<!-- Perfecto Repository -->
<repository>
    <id>perfectomobile</id>
    <name>Perfecto mobile</name>
    <url>https://repo1.perfectomobile.com/public/repositories/maven</url>
</repository>

<!-- Reporting SDK -->
<dependency>
    <groupId>com.perfecto.reporting-sdk</groupId>
    <artifactId>reportium-java</artifactId>
    <version>${reportium-sdk.version}</version>
    <exclusion>
       <groupId>org.seleniumhq.selenium</groupId>
       <artifactId>selenium-api</artifactId>
    </exclusion>
</dependency>

<!-- Reporting SDK addition for Allure users -->
<dependency>
    <groupId>com.perfecto.reporting-sdk</groupId>
    <artifactId>reportium-allure-integration</artifactId>
    <version>${reportium-sdk.version}</version>
</dependency>



UI Expand
titleIvy

Add Perfecto’s repository to your ivysettings.xml:

Code Block
languagexml
themeMidnight
<ivysettings>
    <settings defaultResolver="perfecto"/>
    <property name="perfecto-public"
              value="https://repo1.perfectomobile.com/public/repositories/maven"/>
    <resolvers>
        <ibiblio name="perfecto" m2compatible="true" root="${perfecto-public}"/>
    </resolvers>
</ivysettings>

Add Perfecto jars to ivy.xml:

Code Block
languagexml
themeMidnight
<!-- Reportium SDK -->
<dependency org="com.perfecto.reporting-sdk" name="reportium-java" rev="${reportium-sdk.version}"/>
<!-- Reportium SDK addition for Allure users -->
<dependency org="com.perfecto.reporting-sdk" name="reportium-allure-integration" rev="${reportium-sdk.version}"/>



UI Expand
titleGradle

Update your build.gradle file with:

  • Perfecto’s SDK download repository  URL
  • Define the SDK version in the reportium-sdk.version (supply the version number of the SDK that you have available).
  • Add the dependencies on creating the Reporting SDK jar.
Code Block
languagegroovy
themeMidnight
// Perfecto's artifact repository
repositories {
    maven {
        url 'https://repo1.perfectomobile.com/public/repositories/maven'
    }
}

// definition of the Reporting-SDK version
def reportium-sdk.version = 2.3.1		// supply correct version number

dependencies {
   // Reportium SDK
    compile "com.perfecto.reporting-sdk:reportium-java:$reportium-sdk.version"
    // Reportium SDK addition for Allure users
    compile "com.perfecto.reporting-sdk:reportium-allure-integration:$reportium-sdk.version"
}

Widget Connector
width854
urlhttps://www.youtube.com/watch?v=Jlb8DKr26hE
height458


UI Expand
titleJavaScript

For NodeJS installation use:

Code Block
languagebash
themeMidnight
npm install --save-dev perfecto-reporting



UI Expand
titleC#

Download the Reporting C# client, available as a NuGet package from here.

Run the following command in the Package Manager Console:

Code Block
languagebash
themeMidnight
Install-Package Perfecto-Reporting



UI Expand
titleRuby

For Gem installation use:

Code Block
languagebash
themeMidnight
gem install perfecto-reporting



UI Expand
titlePython

For pip installation use:

Code Block
languagebash
themeMidnight
pip install perfecto