Test Automation with Xray: CI Using Jenkins and JUnit Tests

00:00 Introduction
01:00 Java and JDK Installation
04:00 Eclipse Installation
05:43 Making a Maven Project
07:04 pom.xml file
08:28 Creating a Java class
09:54 Creating a JUnit Tests
11:14 Installing Jenkins on Windows
15:14 Jenkins Maven and Xray Plugins
16:42 Configuring Maven and Xray on Jenkins
19:01 Building a Jenkins Project
19:22 Making a Github repository + adding code
23:07 Configuring Jenkins Project
27:53 Test Execution Result on Xray
28:31 Conclusion
Links:
Java installation: java.com/en/download/
JDK installation: www.oracle.com/java/technolog...
Eclipse installation: www.eclipse.org/downloads/
Jenkins installation: www.jenkins.io/download/
Github Repository: github.com/ayesha-siddiqa20/A...
Command to run jenkins on command prompt (cd): java -jar [your-jenkins-war-path]
Command to run clone github repository on cd: git clone [https github repo path]

Пікірлер: 32

  • @user-ip5zb8pu4q
    @user-ip5zb8pu4q2 ай бұрын

    Great explantation :)

  • @amaoagou1060
    @amaoagou1060 Жыл бұрын

    So much clear in such short time. Cannot believe that I build Jenkins up without any background. Thank you very much.

  • @NiteshGoyal1302
    @NiteshGoyal13027 ай бұрын

    Your simplicity and teaching style really stand out. More power to you!

  • @alexfigirova
    @alexfigirova Жыл бұрын

    You are amazing! We are literally doing this at work now and have learning this process. You just wrapped it all up under 30 minutes which has been a lot shorter than what we have spent on this. Great job! Keep it up!

  • @NeerajKumar-th4ee
    @NeerajKumar-th4ee2 жыл бұрын

    Very informative video. Thanks!!!

  • @yhe-ul8nf
    @yhe-ul8nf Жыл бұрын

    Amazing video! I will try it later on. Many thanks!

  • @user-nd1ps2dp9f
    @user-nd1ps2dp9f Жыл бұрын

    Great work Ayesha it helped a lot.

  • @costafabio7072
    @costafabio7072 Жыл бұрын

    thanks for share the content.

  • @bol1976
    @bol1976Ай бұрын

    Well explained. Can you make a video with X-Ray integration inside a jenkinsfile ?

  • @Ferjita
    @Ferjita Жыл бұрын

    Uff, really thanks!

  • @user-yt4gd7yv6u
    @user-yt4gd7yv6u10 ай бұрын

    This has been really helpful - Would this work on testing SQL in GCP?

  • @theoutlet9300
    @theoutlet9300 Жыл бұрын

    This was awesome. I have a few questions. Is there a way to automatically link it to a story/epic? How do you capture logs for passed/failed tests?

  • @baba16183
    @baba161835 ай бұрын

    Hello , and thank you so much for this excelent video, very prescise and on the point :) . I have one question i looking for a way to report the result for existing Test-Execution with assigned test in Xray (Created manually in Xray). May do you have also such helpfull videos- or may a recomondation. Thank you and Regards from Germany

  • @shrutipanicker629
    @shrutipanicker6293 ай бұрын

    hi Can you please show an example of importing test automation results using Xray JSON.

  • @guruprasadbhat8175
    @guruprasadbhat8175 Жыл бұрын

    Great video. Can we execute selnium scripts instead of JUnit tests. Would you be able to help with the video. Will shower the love

  • @nagarajupinnu3621
    @nagarajupinnu36217 ай бұрын

    how to automate SQL test case execution any idea or resources please help

  • @savitapatil8593
    @savitapatil859311 ай бұрын

    Hi Ayesha, can you please tell where can I find the Test Execution key and Test Plan key

  • @maroofahmedmalik7705

    @maroofahmedmalik7705

    6 ай бұрын

    Hi. Is there a way we can get connected? Im actually looking for a way to automate a test but im not able to do it

  • @balaramanb6500
    @balaramanb6500 Жыл бұрын

    Thanks for this video. I tried the steps and able to update test status to aes jira successfully. But test report is not attached in test execution.

  • @maroofahmedmalik7705

    @maroofahmedmalik7705

    6 ай бұрын

    Hi. Is there a way we can get connected? Im actually looking for a way to automate a test but im not able to do it

  • @meghana1229
    @meghana1229 Жыл бұрын

    Can you another video on TESTNG XML with github actions. Thanks

  • @stefanmitrovic45
    @stefanmitrovic45 Жыл бұрын

    Great video really helped me a lot, i just have one problem, this is error, if you can help me please cant find solution [ERROR] Unknown lifecycle phase "Goal". You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:

  • @user-hx2pd7fg6y
    @user-hx2pd7fg6y Жыл бұрын

    Hi, I am facing issue in getting failed test results in XRAY using TestNg XML, Could you please help me ?

  • @librosdigitales3819
    @librosdigitales3819 Жыл бұрын

    Hi Ayesha !! can you please give me a hand ? im trying to do the same but with Json and im getting 400 error because the xray format :(

  • @chandandungarwal4875
    @chandandungarwal4875 Жыл бұрын

    I need you help.. I want to link my manual test cases to Automation tags. While writing manual test cases automation won't be ready and once I automate the scenarios I want to link tags to manual test cases which are in JIRA. Is it possible to run jenkin job and update the tags?

  • @theoutlet9300

    @theoutlet9300

    Жыл бұрын

    Did you find an answer to your problem?

  • @codeklaudia9696
    @codeklaudia9696 Жыл бұрын

    Thank you very much for your video. In my case a have a Jenkins project of type 'Pipeline', and I can not add Post-build actions. So, the Xray integration is being "manually" performed : stage ('Import Results') { steps { step([$class: 'XrayImportBuilder', endpointName: '/xunit', fixVersion: '1.0', importFilePath: '/MyFirstUnitTests/TestResults.xml', projectKey: 'TSTLKS', importToSameExecution: 'false', //testExecKey: 'TSTLKS-753', serverInstance: '3156a388-d399-4i55-ae28-8c65474d6f9b', credentialId:'55287539-194d-4o91-9964-9a740d8d2c31' ]) } Unfortunately I got the following error : ERROR: Unable to confirm Result of the upload..... Upload Failed! Status:400 Response:{"error":"Project does not exist."} Finished: FAILURE Information : - I confirm that the user does have access to our jira project - Out Xray runs in a Data Server Instance - We tried out to import the xunit xml without specifying the testExecKey field and with importToSameExecution: 'false Did someone ever had the same error? Thank you a lot for your help!

  • @theentertainmentetc64
    @theentertainmentetc642 жыл бұрын

    I need support for the task as below Need to generate and push TestNG XML results to Xray using Jenkins pipeline job , freestyle job is simple but i am facing issue in pipeline while pushing the results to Xray ... Your help will be appreciated , you can give any communication like mail id or anything so i can get the solution Faster Thanks in advance

  • @AyeshaAhmed0

    @AyeshaAhmed0

    2 жыл бұрын

    Hey, can you please specify what error you're facing? Also, is Jira for you cloud-based or server based, and what version of the Xray API are you using?

  • @tmk2103
    @tmk21039 ай бұрын

    I have a error Jenkins / testng File found: /Users/tmk/.jenkins/workspace/seleniumJavaTestNg/target/surefire-reports/testng-results.xml Starting to import results from testng-results.xml ERROR: Step ‘Xray: Results Import Task’ failed: Unable to confirm Result of the upload..... Upload Failed! Status:400 Response:{"error":"Can't create Test Execution for project TA because Test Execution issue type is not configured!"} Finished: FAILURE I see only bug, story, epic , task and subtask. don't see test execution type . pls help

  • @Mlops-ey7wu

    @Mlops-ey7wu

    7 ай бұрын

    @tmk2103 same here did you find out something about it

  • @shilpab1397

    @shilpab1397

    7 ай бұрын

    Any solution for this?