0.0.7 • Published 5 years ago

qtest-js-api v0.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

This library will support to update Automation Test report to qTest, the following functions: the class belong to the relevant object data of qTest, the following is the code sample:

sample.js /**** **** **** **** **** **** / const base = require('../base'); const testruns = require('../testruns'); const testcycles = require('../testcycles'); const releases = require('../releases'); const builds = require('../builds');

async function main() { const baseAPI = new base('https://ABC.qtestnet.com'); await baseAPI.login('user@abc.net', '12345678');

const testId = 36027448; const testName = 'Hello test'; const cycleId = '3295940';

// const testcyclesAPI = new testcycles('https://ABC.qtestnet.com', '28899'); // const searchCycle = await testcyclesAPI.get(cycleId);

const testrunsAPI = new testruns('https://ABC.qtestnet.com', '28899'); // const foundTestRun = await testrunsAPI.findAndCreateIfNotFound(testId, testName, cycleId, 'test-cycle'); // console.log(foundTestRun, foundTestRun.id, 'END');

const testrunId = 125406190; // const testLog = await testrunsAPI.createAutoTestLog(testrunId, testName + 'For logging'); // console.log(testLog, testLog.id, 'END');

const testLogId = 165766499; // 165328262 , 165766499

const updateLog = await testrunsAPI.updateAutoTestLog(testrunId, testLogId, 'Update the name by trial stepsß', 'PASS', 'Any Note from trying to update'); console.log(updateLog, updateLog.status);

}

main(); /**** **** **** **** **** **** /

0.0.7

5 years ago