Hot answers tagged

9 votes
Accepted

Jenkins: is there a way to fail a build if it takes more than X time?

There is a build timeout plugin: This plugin allows you to automatically abort a build if it's taking too long. Once the timeout is reached, Jenkins behaves as if an invisible hand has clicked ...
Michael Durrant's user avatar
8 votes
Accepted

How to push my JMeter project to Github and run it via pipeline from Jenkins

You will need 3 things in order to run JMeter test in Jenkins: JMeter .jmx script itself Java Runtime JMeter If you have JMeter installed on the machine the minimal pipeline would look like: ...
Dmitri T's user avatar
  • 13.5k
6 votes

How best to test file download links using Selenium

Using chrome I automate downloading the file, and then open the chrome://downloads page to retrieve the downloaded files list from shadow DOM like this: const docs = document .querySelector('...
TiagoLr's user avatar
  • 161
5 votes

Jenkins: is there a way to fail a build if it takes more than X time?

A similar question was asked on SO. You can use a code timeout if your workflow steps are scripts. Otherwise, the Build Timeout plugin might do the trick.
kirbycope's user avatar
  • 4,090
5 votes

Cron format, definition of H in .yml file

H stands for Hash H ( H ) 'H' is used in the Jenkins continuous integration system to indicate that a "hashed" value is substituted. Thus instead of '20 * * * *' which means at 20 minutes after ...
Niels van Reijmersdal's user avatar
4 votes
Accepted

What should I enter in Username & Password fields for recently installed Jenkins setup?

If you see this Unlock Jenkins To ensure Jenkins is securely set up by the administrator, a password has been written to the log (not sure where to find it?) and this file on the server: /...
demouser123's user avatar
  • 3,532
4 votes

Automated tests in CI: same or different repo as SUT?

This is a great question and one that many organizations face. I recommend keeping the test code and the application code together because this will, at the highest level, help keep (or perhaps '...
Michael Durrant's user avatar
4 votes

Are DevOps tools mandatory to survive in Automation Testing field?

I think you got your base assumption wrong, DevOps is not a silo skill and profession that you either have or not, belong to or don't. Knowing how to use AWS cloud, Docker, Kubernates or Google cloud ...
Rsf's user avatar
  • 7,089
3 votes

Testcase fails in Jenkins but passes locally via testNG.xml in IDE

UI feature tests passing in Jenkins, CircleCI (or other Continuous Integration servers) that fail locally or vica-versa is not uncommon. In a nutshell they are basically due to different environments ...
Michael Durrant's user avatar
3 votes

How best to test file download links using Selenium

I agree with KirbyScope I wouldn't test this with Selenium at all. I would use an http client to make the necessary requests to authorise and then GET the PDF and then assert on the response and ...
2bittester's user avatar
3 votes
Accepted

Is it possible to integrate Bamboo and Jenkins with TestRail

TestRail has a very simple API that you can use to push test run results. In my company we are switching from Jenkins to Bamboo. Our automation tests are written with RobotFramework. All our tests ...
pgtips's user avatar
  • 318
3 votes
Accepted

Selenium Test Suite fails to execute in Jenkins but works correctly on local machine

When Selenium returns "Element is not clickable at the point" it usually means that the element is present on UI (in DOM) but it is covered with some other UI element that catches the click and ...
Alexey R.'s user avatar
  • 11.6k
3 votes

How does Continuous Integration add value to Automation Testing?

Continuous Integration Let me explain in increasing levels of detail: A place to run your tests. A remote server that you can push code to that runs the automated tests Continuous integration usually ...
Michael Durrant's user avatar
3 votes

How does Continuous Integration add value to Automation Testing?

Regression testing should be automated (not manual) and CI is very valuable tool for automated regression testing. So I assume you already have automated regression tests, and you are considering if ...
Peter M. - stands for Monica's user avatar
2 votes
Accepted

Marking build as unstable if tests are skipped

Jenkins doesn't support this because org.junit.Assume is meant to be used as a filtering mechanism. From the JUnit Assume docs: A failed assumption does not mean the code is broken, but that the ...
arcadeblast77's user avatar
2 votes
Accepted

Jenkins: which tests are running?

I found Test In Progression Plugin: While executing our tests on Jenkins most of us may have faced the need of knowing which test is getting executed or if a test has failed then whats the ...
dzieciou's user avatar
  • 10.5k
2 votes
Accepted

How to see ongoing progress of my Selenium tests run in NUnit on Jenkins?

You can see the test progress in logs, you just need to add Execution details in your SetUp and TearDown like this: private readonly Stopwatch _stopwatch = new Stopwatch(); [SetUp] public void SetUp(...
Megha's user avatar
  • 166
2 votes

Selenium IDE format for Jenkins integration

Its should be like this, https://stackoverflow.com/questions/1144744/how-do-i-launch-the-selenium-ide-from-the-command-line-with-a-specific-test-case Read the above question and create a bat file to ...
ChathuD's user avatar
  • 2,149
2 votes

How to run a TestNG project located on Github from Jenkins?

I think what you are asking is "How do I get Jenkins to trigger a test run and execute my TestNG tests when updates are merged to Git". Is this correct? If not please clarify. It this is what you are ...
Dave's user avatar
  • 166
2 votes

Legacy Code Testing with Jenkins on PHP

You will need some steps to get there: Have you repository system to notify Jenkins about the PR. That will depend on your system. GitHub and Bitbucket have system to do it. Build the PR branch. ...
João Farias's user avatar
  • 10.9k
2 votes
Accepted

Attaching screenshots to JUnit test reports

I haven't tried it but I remember seeing it in a YouTube video I watched years ago. Kohsuke Kawaguchi's talk Jenkins Selenium Meetup: Kohsuke Kawaguchi on how Jenkins + Selenium = Love at around the ...
kirbycope's user avatar
  • 4,090
2 votes
Accepted

How to couple JMeter with Jenkins?

JMeter startup script checks for Java version using Findstr program. On "normal" Windows installation the Findstr program should exist in C:\Windows\System32 directory therefore it should be on your ...
Dmitri T's user avatar
  • 13.5k
2 votes
Accepted

Jenkins: failing builds on warnings

Regarding question 1: You could give the Warnings Plugin a try. Regarding question 2: Configure your SonarQube project, to have a Leak Period since "previous build" The SonarQube Leak Period ...
slartidan's user avatar
  • 136
2 votes
Accepted

Multiple TestNG Reports to one Report

While generating reports I use org.uncommons.reportng.HTMLReporter and org.uncommons.reportng.JUnitXMLReporter from reportNG framework. I use the following Ant Task to combine reports: <target ...
Brian McCarthy's user avatar
2 votes

How does Continuous Integration add value to Automation Testing?

Continuous Integration gives you a reference environment in which to run your automated tests. It also allows you to have tests run automatically against the code base as soon as a change occurs which ...
Amias's user avatar
  • 1,202
2 votes

How does Continuous Integration add value to Automation Testing?

CI (Continuous Integration) is a process of the continuously altering the functionality to the code so that each iteration (after all this is only called "countinuous" however this process is pretty ...
Alexey R.'s user avatar
  • 11.6k
2 votes

I am new to automation. I am researching on how can I create a Jenkins pipeline to build image in docker container?

The Jenkins site has info on setting up in a docker image. Docker also has github repos to provide examples of different setups. https://github.com/jenkinsci/docker
CaptainKidd's user avatar
2 votes

How to execute multiple test suite parallel?

First of all, I am new to the testing environment. My client wants the same solution. He wants to reduce the testing time which is currently 4 hours. I am in the learning phase. Here is the detail of ...
Ankit Sharma's user avatar
2 votes

Jenkins executes scripts with small screen resolution

You could try to change the window size before running the tests, just be sure not to maximize the window as it will lock it in the max screen resolution, but browsers windows can be outside of the ...
Niels van Reijmersdal's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible