Slick TestNG Connector

TestNG connector for the SlickQA results database.

License

License

Categories

Categories

TestNG Unit Testing
GroupId

GroupId

com.slickqa
ArtifactId

ArtifactId

slickqa-testng
Last Version

Last Version

1.0.0-31
Release Date

Release Date

Type

Type

jar
Description

Description

Slick TestNG Connector
TestNG connector for the SlickQA results database.
Project URL

Project URL

http://github.com/slickqa/slickqa-testng
Source Code Management

Source Code Management

https://github.com/slickqa/slickqa-testng

Download slickqa-testng

How to add to project

<!-- https://jarcasting.com/artifacts/com.slickqa/slickqa-testng/ -->
<dependency>
    <groupId>com.slickqa</groupId>
    <artifactId>slickqa-testng</artifactId>
    <version>1.0.0-31</version>
</dependency>
// https://jarcasting.com/artifacts/com.slickqa/slickqa-testng/
implementation 'com.slickqa:slickqa-testng:1.0.0-31'
// https://jarcasting.com/artifacts/com.slickqa/slickqa-testng/
implementation ("com.slickqa:slickqa-testng:1.0.0-31")
'com.slickqa:slickqa-testng:jar:1.0.0-31'
<dependency org="com.slickqa" name="slickqa-testng" rev="1.0.0-31">
  <artifact name="slickqa-testng" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.slickqa', module='slickqa-testng', version='1.0.0-31')
)
libraryDependencies += "com.slickqa" % "slickqa-testng" % "1.0.0-31"
[com.slickqa/slickqa-testng "1.0.0-31"]

Dependencies

compile (8)

Group / Artifact Type Version
com.slickqa : slickqa-java-client jar 1.0.3-7
org.testng : testng jar 6.14.3
org.jmockit : jmockit jar 1.45
com.fasterxml.jackson.core : jackson-core jar 2.9.8
com.fasterxml.jackson.core : jackson-annotations jar 2.9.8
com.fasterxml.jackson.core : jackson-databind jar 2.9.8
org.apache.logging.log4j : log4j-api jar 2.11.2
org.apache.logging.log4j : log4j-core jar 2.11.2

Project Modules

There are no modules declared in this project.

slickqa-testng

A Slick TestNg Connector

This connector enables you to post testNG results to Slick automatically.

To utilize this in your testNG tests and successfully post your results to Slick you need to do the following:

  1. Include Slick Test Listeners. There are 2 steps required:
  1. Include the SlickMetaData annotation above each test method. For example: SlickMetaData(title = "First Test", component = "First Component", feature = "First Feature", steps = { @Step(step = "first step that isn't different", expectation = "first step worked"), @Step(step = "second step", expectation = "second step worked"), @Step(step = "weird, a third step", expectation = "that it is all over") })

  2. Pass the slick config parameters to testNG during execution. These are the slick parameters you must pass:

    • slick.baseurl = The url to your hosted slick instance
    • slick.project = The Slick project name to post results to
    • slick.testplan = The Slick test plan name to post results to
    • slick.release = The Slick release to post results to
    • slick.build = The Slick build to post results to

Example of passing these Java params: -Dslick.baseurl=http://192.168.99.100/slick/ -Dslick.project=TestNG -Dslick.testplan="Example Test Plan" -Dslick.release=1 -Dslick.build=1            

Example:

package com.slicktestng.example;

import com.slickqa.testng.SlickBaseTest;
import com.slickqa.testng.annotations.SlickMetaData;
import com.slickqa.testng.annotations.Step;
import org.testng.Assert;
import org.testng.annotations.Test;

public class ExampleTests extends BaseUITest {


    @Test
    @SlickMetaData(title = "First Test",
            component = "First Component",
            feature = "First Feature",
            steps = {
                    @Step(step = "first step that isn't different", expectation = "first step worked"),
                    @Step(step = "second step", expectation = "second step worked"),
                    @Step(step = "weird, a third step", expectation = "that it is all over")
            })
    public void firstTest() throws Exception {
        slickLog().debug("Hello.... Is it me your looking for?");
        Assert.assertTrue(iLoveThisSong, "What?? How could you not?");
        Path file = Paths.get("/tmp/lionel_richie.png");
        slickFileAttach.addFile(file);
    }
}

Development

The version should always end in -SNAPSHOT. The build system changes the -SNAPSHOT to the current build number (assigned by jenkins at build time). For build information see https://build.slickqa.com/blue/organizations/jenkins/slickqa-testng/activity

com.slickqa

Versions

Version
1.0.0-31
1.0.0-30
1.0.0-29
1.0.0-28
1.0.0-27
1.0.0-26
1.0.0-25
1.0.0-24
1.0.0-23
1.0.0-22
1.0.0-21
1.0.0-20
1.0.0-19
1.0.0-17
1.0.0-16
1.0.0-15
1.0.0-14
1.0.0-13
1.0.0-12
1.0.0-11
1.0.0-10
1.0.0-9
1.0.0-7
1.0.0-6
1.0.0-5
1.0.0-4
1.0.0-3
1.0.0-2
1.0.0-1
1.0.0-0