Java Test Utils

Java Test Utils library

License

License

GroupId

GroupId

com.sdeting.utils
ArtifactId

ArtifactId

test-utils
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

Java Test Utils
Java Test Utils library
Project URL

Project URL

https://github.com/eajazali87/test-utils
Source Code Management

Source Code Management

https://github.com/eajazali87/test-utils

Download test-utils

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.testng : testng jar 6.14.3

Project Modules

There are no modules declared in this project.

Useful Test-Utils

This repo has some useful utilities that will help engineers especially SDETs to fulfil few operations.

Utilities:

removeConfigNodesFromTestNgResultsXML:

There are n number of config nodes like @BeforeMethod, @AfterMethod etc in a testng-results.xml file. A real time usefulness of this utility is, ALM treats every config node as a test case, so it is better to remove these config nodes before you upload the testng-results.xml to ALM. This will give accurate result of how many test cases failed and passed.

Usage:

TestUtils.removeConfigNodesFromTestNgResultsXML("path_to_your_input_testng-results.xml_file");

downloadZip:

This method will help to download a zip file from a remote location.

Usage:

TestUtils.downloadZip("remoteZipLocation","location_to_download/file.zip",1024);

unZipFolder:

This method will help to unzip a folder and extract all its contents

Usage:

TestUtils.unZipFolder("path to the zip folder");

My site:

https://sdeting.com/

Versions

Version
1.0.2
1.0.1