Module that helps update test case execution results in QTest.
npm install qtest_integrationModule that helps update test case execution results in QTest.
npm install qtest_integration
`How to use
$3
`
import qTestHelper from 'qtest_integration'; before(() => {
qTestHelper.setConfig({
projectUrl , // Project url
projectId, // Project Id,
auth // Bearer Token
});
})
`
!Alt text$3
`
const payload =
{
description, // Test case name
testCasePid, // Test case id, example 'TC-57'
status, // Valid value : PASSED | FAILED
startTime, // Start time
error, // Provide the error message if the status is FAILED [OPTIONAL]
testSuiteId, // Id of a test suite
screenshot // Provide the base64 encoded string of screenshot [OPTIONAL]
}; await qTestHelper.executeTestRun(payload);
`$3
`
const payload =
{
testName, // Test case name
status, // Valid value : PASSED | FAILED
startTime, // Start time
error, // Provide the error message if the status is FAILED [OPTIONAL]
testSuiteId, // Id of a test suite
screenshot // Provide the base64 encoded string of screenshot [OPTIONAL]
errorOnDuplicate // Default: false.If true, the application will throw an exception if multiple testcases with the same name are present
tempModuleName: // Name of the module inside which test will be created. Default: "Module created by Automation"
}; await qTestHelper.executeTestRunByName(payload);
``