Test Automation with Xray: CI Using Jenkins and JUnit Tests

  Рет қаралды 13,890

Ayesha Ahmed

2 жыл бұрын

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/technologies/downloads/#java11
Eclipse installation: www.eclipse.org/downloads/
Jenkins installation: www.jenkins.io/download/
Github Repository: github.com/ayesha-siddiqa20/AutomatedTestingJUnit
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
@jyotitiwari8344
@jyotitiwari8344 27 күн бұрын
Very helpful to understand xray integration with cucumber. I was new on xray but now I have some understanding 😊
@amaoagou1060
@amaoagou1060 2 жыл бұрын
So much clear in such short time. Cannot believe that I build Jenkins up without any background. Thank you very much.
@alexfigirova
@alexfigirova 2 жыл бұрын
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!
@NiteshGoyal1302
@NiteshGoyal1302 11 ай бұрын
Your simplicity and teaching style really stand out. More power to you!
@yhe-ul8nf
@yhe-ul8nf 2 жыл бұрын
Amazing video! I will try it later on. Many thanks!
@NeerajKumar-th4ee
@NeerajKumar-th4ee 2 жыл бұрын
Very informative video. Thanks!!!
@CarlosAntunes-p1h
@CarlosAntunes-p1h Жыл бұрын
Great work Ayesha it helped a lot.
@bol1976
@bol1976 6 ай бұрын
Well explained. Can you make a video with X-Ray integration inside a jenkinsfile ?
@costafabio7072
@costafabio7072 Жыл бұрын
thanks for share the content.
@JacobOoi-c3m
@JacobOoi-c3m Жыл бұрын
This has been really helpful - Would this work on testing SQL in GCP?
@ZakaryaAOUZAL
@ZakaryaAOUZAL 6 ай бұрын
Great explantation :)
@Ferjita
@Ferjita Жыл бұрын
Uff, really thanks!
@baba16183
@baba16183 9 ай бұрын
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
@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?
@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 11 ай бұрын
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
@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
@savitapatil8593
@savitapatil8593 Жыл бұрын
Hi Ayesha, can you please tell where can I find the Test Execution key and Test Plan key
@maroofahmedmalik7705
@maroofahmedmalik7705 11 ай бұрын
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
@shrutipanicker629
@shrutipanicker629 8 ай бұрын
hi Can you please show an example of importing test automation results using Xray JSON.
@meghana1229
@meghana1229 Жыл бұрын
Can you another video on TESTNG XML with github actions. Thanks
@SanghaviMithun
@SanghaviMithun Жыл бұрын
Hi, I am facing issue in getting failed test results in XRAY using TestNg XML, Could you please help me ?
@nagarajupinnu3621
@nagarajupinnu3621 Жыл бұрын
how to automate SQL test case execution any idea or resources please help
@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?
@tmk2103
@tmk2103 Жыл бұрын
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 Жыл бұрын
@tmk2103 same here did you find out something about it
@shilpab1397
@shilpab1397 Жыл бұрын
Any solution for this?
@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
@theentertainmentetc64 2 жыл бұрын
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?
Kluster Duo #настольныеигры #boardgames #игры #games #настолки #настольные_игры
00:47
Incredible: Teacher builds airplane to teach kids behavior! #shorts
00:32
Fabiosa Stories
Рет қаралды 12 МЛН
How To Get Married:   #short
00:22
Jin and Hattie
Рет қаралды 28 МЛН
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 81 МЛН
Kluster Duo #настольныеигры #boardgames #игры #games #настолки #настольные_игры
00:47