Jira Integration with Selenium || Raise a bug for failure test cases || No Manual Bug in JIRA


Filing issues in JIRA is boring, wanna do with Simply Cool Automation on Selenium... 


I have tried by importing in Product and ran automation from the script, issues are getting filed in JIRA for the failed test cases.

Here we go with Selenium script to raise a bug for Failure Test Cases to direct punch on JIRA.


Step 1 : 

Maven Dependencies to add in our POM.xml

<!-- https://mvnrepository.com/artifact/net.rcarz/jira-client -->
<dependency>
<groupId>net.rcarz</groupId>
<artifactId>jira-client</artifactId>
<version>0.5</version>
</dependency>

Step 2 :

Add two packages in your project, say... com.listeners and com.jira

*Under package com.listeners
     =TestJiraListener.java
*Under package com.jira
     =JiraPolicy.java
     =JiraServiceProvider.java

Add these two files in the respective Packages, refer attachment.

Step 3 : 

Under listener package in TestJiraListener.java file, we need to provide JIRA Authentication API token with our Email ID.

Here is the piece of code change in the TestJiraListner.java file

Automation: Selenium Script to record Automation Test and Execution Video


Here we go, Selenium Screen Recorder: How To Record Selenium Test Execution Video

Techsouljours.blogspot.com - a blog for QA
Video Recording using selenium script


By using  Monte Screen Recorder API we record of our test cases as video format.

Monte Screen Recorder API available as Maven Dependencies where we can add in our POM.xml file as dependency tag.

How to Implement in our project :

We have one Java File of Recording screen functionality written and have attached as java file name as 'MyScreenRecorder.java' file

This 'MyScreenRecorder.java' file is the base function and we can use the method as 'MyScreenRecorder.startRecording("yourtestcase_recording")' in our own test case file.

For Example : Your Java file has the navigation function and if you want to record some scenarios, then we can use the method as 'MyscreenRecorder.startRecording' to start record and 'MyScreenRecorder.stopRecording' to stop the record.

@Test
public void navigation() throws Exception{

MyScreenRecorder.startRecording("Navigation_recording");

/*
                       your code goes here
                */
               MyScreenRecorder.stopRecording();

}

That's simple, your test case got recorded and saved in separate folder.