/
TODO: Jira module
TODO: Jira module
PROGRESS
Session cookie for consecutive api calls
To avoid basic authentication for every call to the api you can setup a session cookie by using jira:session-call which will provide a session cookie. This cookie is stored in the variable context. Calling it inside a scenario this cookie will only be available in the scenario. Calling in suite it will be available for all calls in the suite(testrun).
Needed input paramters:
- jira:url - can be a full expressed endpoint or used as base-url in addition with jira:urlSuffix
- jira:user
- jira:password
Optional input parameters:
- jira:urlSuffix - if the jira:url is the base rest endpoint
Provided variables after a succesful call:
jira:session-name - the key of the cookie needed for the consecutive calls - default JSESSION-ID
jira:session-id - the cookie value key
Dependency
Dependendcy
<dependency> <groupId>io.testifi.cast</groupId> <artifactId>cast-jira</artifactId> </dependency>
Creating a session cookie
<jira:session-call jira:user="" jira:password=""/>
The user and password can also be provided as attributes in parent objects or system-variables. The call will lookup these variables in its contex
Example with put-up
Using session cookie
<put-up> <jira:session-call/> </put-up> <jira:call id="jira:issue-meta" method="get" jira:urlSuffix="/rest/api/2/issue/createmeta"/>
Examples
<xray:get-execution-details xray:executionId="${executionId}"/> <property name="jsonTestExecutionInstance" value="${@rt('xray:testExecutionInstance')}"/> <property name="xrayTestRunId" value="${@json(jsonTestExecutionInstance,'get','$.[1].id')}"/> | get the xrayTestRunId for the Jira call |
<jira:call id="getXRayTestRunById" method="get" jira:urlSuffix="rest/raven/1.0/api/testrun/${xrayTestRunId}" contentType="application/json"> <http:get-response-body name="lastResponse"/> <echo message="Response is : ${lastResponse}"/> </jira:call> | get test run based on test run id |
, multiple selections available,
Related content
4 - Jira Settings (IntelliJ)
4 - Jira Settings (IntelliJ)
More like this
4 - Jira Settings (Eclipse)
4 - Jira Settings (Eclipse)
More like this
XRay Module
XRay Module
More like this
Import using Swagger
Import using Swagger
More like this
Lifecycle Workflow for CAST Test Objects
Lifecycle Workflow for CAST Test Objects
Read with this
[DE]Log in and Set Credentials
[DE]Log in and Set Credentials
More like this