Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
[JENKINS-37753] Fix test and add test for the log entry
Browse files Browse the repository at this point in the history
  • Loading branch information
scherler committed Sep 22, 2016
1 parent 6d1d543 commit 41d3a4b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/main/js/page_objects/blueocean/bluePipelineRunDetail.js
Expand Up @@ -135,9 +135,9 @@ module.exports.commands = [{
self.waitForElementVisible('@logHeader');
self.getText('@logHeader', function (response) {
sanityCheck(self, response);
console.log(response)
const urlProject = (response.value);
self.assert.equal(urlProject.indexOf(expected) > -1, true);
//console.log(response, expected)
const title = (response.value);
self.assert.equal(title.indexOf(expected) > -1, true);
});
return self;
},
Expand Down
3 changes: 2 additions & 1 deletion src/test/js/log-karaoke/parallelStages.js
Expand Up @@ -65,7 +65,8 @@ module.exports = {
blueRunDetailPage.forNode(10);
blueRunDetailPage.validateNotRunningResults();
// sample taken at random for logs to see whether they are truncated
blueRunDetailPage.validateNotRunningResults();
blueRunDetailPage.clickFirstResultItem('Running shell script');
blueRunDetailPage.clickFirstResultItem('secondBranch www.stern.de');
// navigate to the second stage in the parallel step in the pipeline
blueRunDetailPage.forNode(11);
blueRunDetailPage.validateNotRunningResults();
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/test_scripts/parallel-stages.groovy
Expand Up @@ -6,11 +6,11 @@ node {

parallel firstBranch: {
sh 'echo `date` Stage 2 - firstBranch www.spiegel.de'
sh 'ping -c 3 -i 1 www.spiegel.de'
sh 'ping -c 3 -i 3 www.spiegel.de'

}, secondBranch: {
sh 'echo `date` Stage 2 - secondBranch www.stern.de'
sh 'ping -c 5 -i 1 www.stern.de'
sh 'ping -c 5 -i 2 www.stern.de'
}

stage "ho"
Expand Down

0 comments on commit 41d3a4b

Please sign in to comment.