@davidkent/qtest-js-api
qTest API for Automation report
Last updated 8 months ago by davidkent .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @davidkent/qtest-js-api 
SYNC missed versions from official npm registry.

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(); /******** ******** ******** ******** ******** ******** /

Current Tags

  • 0.0.6                                ...           latest (8 months ago)

6 Versions

  • 0.0.6                                ...           8 months ago
  • 0.0.5                                ...           8 months ago
  • 0.0.4                                ...           8 months ago
  • 0.0.3                                ...           8 months ago
  • 0.0.2                                ...           8 months ago
  • 0.0.1                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 6
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |