medtoure18 / codeceptjs-xray-helper Goto Github PK
View Code? Open in Web Editor NEWA Codeceptjs helper which can publish tests results on Xray api
A Codeceptjs helper which can publish tests results on Xray api
Hi ,
The jira software we have in company is very very slow to load. Is it possible to add some wait in xray plugin?
<form id="jira_request_timing_info" class="dont-default-focus" >
<fieldset class="parameters hidden">
<input type="hidden" title="jira.request.start.millis" value="1597283846850" />
<input type="hidden" title="jira.request.server.time" value="592" />
<input type="hidden" title="jira.request.id" value="717x388194x4" />
<input type="hidden" title="jira.session.expiry.time" value="-" />
<input type="hidden" title="jira.session.expiry.in.mins" value="-" />
<input id="jiraConcurrentRequests" type="hidden" name="jira.request.concurrent.requests" value="4" />
<input type="hidden" title="db.reads.time.in.ms" value="44" />
<input type="hidden" title="db.writes.time.in.ms" value="5" />
<input type="hidden" title="db.conns.time.in.ms" value="103" />
</fieldset>
</form>
<!--
REQUEST ID : 717x388194x4
REQUEST TIMESTAMP : [13/Aug/2020:11:57:26 +1000]
REQUEST TIME : 0.5920
ASESSIONID : 146t0e5
CONCURRENT REQUESTS : 4
NODE ID : jira-dc2-app1
db.reads : OpSnapshot{name='db.reads', invocationCount=46, elapsedTotal=44899282, elapsedMin=634738, elapsedMax=3829716, resultSe
tSize=0, cpuTotal=0, cpuMin=0, cpuMax=0}
db.writes : OpSnapshot{name='db.writes', invocationCount=5, elapsedTotal=5010337, elapsedMin=914354, elapsedMax=1157696, resultSet
Size=0, cpuTotal=0, cpuMin=0, cpuMax=0}
db.conns : OpSnapshot{name='db.conns', invocationCount=86, elapsedTotal=103432963, elapsedMin=636932, elapsedMax=8597593, resultS
etSize=0, cpuTotal=0, cpuMin=0, cpuMax=0}
-->
</body>
</html>
undefined:2 ```
Helper data upload to JIRA cloud fails with the following error:
Basic authentication with passwords is deprecated. For more information, see: https://confluence.atlassian.com/cloud/deprecation-of-basic-authentication-with-passwords-for-jira-and-confluence-apis-972355348.html\
The creation of the data package for transmission to the JIRA server fails when testsExportedFromTestExecution:is set to true.
Helper extract from codecept.comf.js
xrayReport: {
require: "codeceptjs-xray-helper",
enabled: true,
debug:true,
jira_url: 'https://invitationhomes.atlassian.net',
jira_user: '[email protected]',
jira_password: '********',
test_revison: '001',
testEnvironments: '["browser:chrome", "Linux"]',
testsExportedFromTestExecution:true
}
Feature file contents:
@QA-346
Feature: FEEN BDD Evaluation Test Execution
@TEST_FEEN-688
Scenario: BDD Smoke Test Login
Given I navigate to FEENIX login page
And I enter FEENIX username "[email protected]"
And I enter FEENIX password "********"
And I click FEENIX login button
Then I see "HOME AVAILABILITY" page
Stack Trace:
Error processing global.after event:
TypeError: Cannot read property 'split' of undefined
at /Users/james.francisco/repos/feenixbdd/node_modules/codeceptjs-xray-helper/index.js:106:72
at Array.forEach ()
at EventEmitter. (/Users/james.francisco/repos/feenixbdd/node_modules/codeceptjs-xray-helper/index.js:102:26)
at EventEmitter.emit (events.js:219:5)
at EventEmitter.emit (domain.js:482:12)
at Object.emit (/Users/james.francisco/repos/feenixbdd/node_modules/codeceptjs/lib/event.js:117:28)
at done (/Users/james.francisco/repos/feenixbdd/node_modules/codeceptjs/lib/codecept.js:168:13)
at module.exports (/Users/james.francisco/repos/feenixbdd/node_modules/codeceptjs/lib/hooks.js:28:13)
at Codecept.teardown (/Users/james.francisco/repos/feenixbdd/node_modules/codeceptjs/lib/codecept.js:122:5)
at /Users/james.francisco/repos/feenixbdd/node_modules/codeceptjs/lib/codecept.js:173:28
In a JIRA environment where we have multiple projects, how can we direct the helper to sent the test output to a specific project or even a specific test execution record?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.