Page tree

Versions Compared

Key

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

...

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, download an additional artifact from here, as follows:

  • Click the latest version and download the reportium-allure-integration-<version>.jar file.
  • Add the

    use Allure annotations, you need to download and set the latest Reportium-allure integration SDK instead of the latest Reportium SDK version and then add that 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>


    ...