1.1.5 • Published 5 years ago
uploadresultstoqtest v1.1.5
Node - uploadresultstoqtest
USAGE:
npm install uploadresultstoqtest
node ./node_modules/uploadresultstoqtest/index.js -f jest_report.json -c creds.json -m jest-json -a applicants
The current format of reports supported are:
Jest : jest-json-reporter
Mocha: mochawesome
Junit: jacoco
NAME
uploadresultstoqtest
SYNOPSIS
uploadresultstoqtest [options]
DESCRIPTION
Upload Testcases and Results to QTest
USAGE
-f file Test result file / Folder if xml files
-m format Format of test result file, options supported are: jest-json (For Jest Testcases), mochawesome-json (For Mocha Testcases), jacoco (For JUnit Testcases)
-c credentials The file that has the appropriate qTest Credentials for this script.
It should be json content like:
{
email: "",
password: "password",
qtesturl: "https://qas.qtestnet.com",
project: "API Automation Integration Demo Project"
loginType: "sso",
ssoToken: "Value from qtest login"
}
-a application The name of the application The value is used to create the testfolder by converting the application to lowercase
EXAMPLE
For the .json results file within this folder, create a creds.json file that looks like:
{
email: "",
password: "*****",
qtesturl: "https://xxx.xxxxxx.com",
project: "Test Results JSON to Qtest migration project"
loginType: "sso",
ssoToken: "Value from qtest login"
}
Upload the testcase results file with new and existing testcases together
node index.js -f jest_report.json -c creds.json -m jest-json -a applicants
OUTPUT
> node index.js -f jest_report.json -c creds.json -m mochawesome-json -a applicants
*****************
Test Cycle Created successfully CL-10
Successfully uploaded test cases for application applicants
*****************