How to make jenkins job as unstable after TestNG Failures
up vote
-1
down vote
favorite
I have configured my test scripts to run from Jenkins using TestNG XML. This xml triggers a suite of testcases from my available test suite. This xml is triggered using a batch file and configured as a build step in Jenkins.
Issue:
Though some of my test case is failing, jenkins job is reporting as Pass since the batch script was completed successfully.
Is there a way to pass the Failure report back to batch file and then to Jenkins to report fail if any test case in the suite failed.
batch-file jenkins testng jenkins-plugins
add a comment |
up vote
-1
down vote
favorite
I have configured my test scripts to run from Jenkins using TestNG XML. This xml triggers a suite of testcases from my available test suite. This xml is triggered using a batch file and configured as a build step in Jenkins.
Issue:
Though some of my test case is failing, jenkins job is reporting as Pass since the batch script was completed successfully.
Is there a way to pass the Failure report back to batch file and then to Jenkins to report fail if any test case in the suite failed.
batch-file jenkins testng jenkins-plugins
Isn't there a Jenkins plugin for TestNG? Are you using it?
– JeffC
Nov 6 at 2:12
Yes i guess i have installed the TestNG plugin, but i dont see any support for execution of testNG XML. I have an option to publish testNG results though.
– Anto
Nov 6 at 16:29
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I have configured my test scripts to run from Jenkins using TestNG XML. This xml triggers a suite of testcases from my available test suite. This xml is triggered using a batch file and configured as a build step in Jenkins.
Issue:
Though some of my test case is failing, jenkins job is reporting as Pass since the batch script was completed successfully.
Is there a way to pass the Failure report back to batch file and then to Jenkins to report fail if any test case in the suite failed.
batch-file jenkins testng jenkins-plugins
I have configured my test scripts to run from Jenkins using TestNG XML. This xml triggers a suite of testcases from my available test suite. This xml is triggered using a batch file and configured as a build step in Jenkins.
Issue:
Though some of my test case is failing, jenkins job is reporting as Pass since the batch script was completed successfully.
Is there a way to pass the Failure report back to batch file and then to Jenkins to report fail if any test case in the suite failed.
batch-file jenkins testng jenkins-plugins
batch-file jenkins testng jenkins-plugins
edited Nov 8 at 15:19
Navarasu
1,5181719
1,5181719
asked Nov 5 at 22:21
Anto
61
61
Isn't there a Jenkins plugin for TestNG? Are you using it?
– JeffC
Nov 6 at 2:12
Yes i guess i have installed the TestNG plugin, but i dont see any support for execution of testNG XML. I have an option to publish testNG results though.
– Anto
Nov 6 at 16:29
add a comment |
Isn't there a Jenkins plugin for TestNG? Are you using it?
– JeffC
Nov 6 at 2:12
Yes i guess i have installed the TestNG plugin, but i dont see any support for execution of testNG XML. I have an option to publish testNG results though.
– Anto
Nov 6 at 16:29
Isn't there a Jenkins plugin for TestNG? Are you using it?
– JeffC
Nov 6 at 2:12
Isn't there a Jenkins plugin for TestNG? Are you using it?
– JeffC
Nov 6 at 2:12
Yes i guess i have installed the TestNG plugin, but i dont see any support for execution of testNG XML. I have an option to publish testNG results though.
– Anto
Nov 6 at 16:29
Yes i guess i have installed the TestNG plugin, but i dont see any support for execution of testNG XML. I have an option to publish testNG results though.
– Anto
Nov 6 at 16:29
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Use TestNG Results Plugin, https://plugins.jenkins.io/testng-plugin.
Then publish the testng result by providing appropriate path to the testng-result.xml. The job will turn yellow on failures.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Use TestNG Results Plugin, https://plugins.jenkins.io/testng-plugin.
Then publish the testng result by providing appropriate path to the testng-result.xml. The job will turn yellow on failures.
add a comment |
up vote
0
down vote
Use TestNG Results Plugin, https://plugins.jenkins.io/testng-plugin.
Then publish the testng result by providing appropriate path to the testng-result.xml. The job will turn yellow on failures.
add a comment |
up vote
0
down vote
up vote
0
down vote
Use TestNG Results Plugin, https://plugins.jenkins.io/testng-plugin.
Then publish the testng result by providing appropriate path to the testng-result.xml. The job will turn yellow on failures.
Use TestNG Results Plugin, https://plugins.jenkins.io/testng-plugin.
Then publish the testng result by providing appropriate path to the testng-result.xml. The job will turn yellow on failures.
answered Nov 8 at 14:09
Navarasu
1,5181719
1,5181719
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53163100%2fhow-to-make-jenkins-job-as-unstable-after-testng-failures%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Isn't there a Jenkins plugin for TestNG? Are you using it?
– JeffC
Nov 6 at 2:12
Yes i guess i have installed the TestNG plugin, but i dont see any support for execution of testNG XML. I have an option to publish testNG results though.
– Anto
Nov 6 at 16:29