Hot answers tagged

6

There are several ways you can work with this situation. No-work - let the tests for the new feature fail until the feature is migrated to the staging environments. This can be an option if the tests don't block builds or aren't reporting directly to management. "smart" detection - as Dale suggested, use some coding to detect whether the feature is ...


5

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 the "abort build" button.


4

Use JUnit to handle the running of the tests from the Jenkins server. Use JDBC to query the DB for new rows. Change up the Tomcat servers so they send logging events back to the Jenkins serverJUnit test. You'll need to write a little socket listener for the JUnit test to gather the Tomcat events (Writing an LoggingEvent listener isn't hard. I'm not ...


4

As always, it depends. If there are regulatory requirements, results need to be kept for as long as the regulations state. Otherwise, it's a business decision. 1. How long does your team keep test results? In my experience this depends on a number of factors. I've been in places where test results for new development would be kept indefinitely, but test ...


4

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: /Users/Shared/Jenkins/Home/secrets/initialAdminPassword Please copy the password from either location and paste it below. or something like this, then you ...


3

I accomplished a similar thing by running the SoapUI tests within the Maven Build http://www.soapui.org/test-automation/maven/maven-2-x.html one of the outputs is "junitReport : Turns on creation of JUnit-reports, (true/false)" which will then let you use any of of the million JUnit graphing tools. Hope that helps in finding your solution


3

Selenium Builder is the evolution of the Selenium IDE. Its tooling page has a video (11 minutes) about using it with Travis-CI. Although I haven't watched it I expect it will answer most of your questions. To simplify test building (for non developers) I would suggest using something like Cucumber or another BDD framework, you can then make a lot of ...


3

Resolved this by using JMeter's Duration Assertion as a child to the HTTP Request I wanted to time setting the Duration to Assert in milliseconds to the longest time allowable and Appy to as Main sample only. When this time is exceded the assert fails and the test gets marked as failed. PAGEUNDERTESTTIMEOUTMS would be set in User Defined Variables or one ...


3

Figured it out. The host IP in the VM configuration window in Jenkins has to be the IPv4 address of the host-only adapter (in this case, 192.168.120.1). I also changed the host port in the port forwarding rule from 3022 to 22. For historical reference, the username and password fields (which appear when the "Advanced" button under the "Host" field in the ...


3

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 content return to ensure it was a valid PDF. You could do this either programmatically or with a tool like JMeter (and have your JMeter script run via command line)...


3

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('downloads-manager') .shadowRoot.querySelector('#downloads-list') .getElementsByTagName('downloads-item'); This solution is restrained to chrome, the data also ...


3

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 behaving differently. The environments may vary in regards to things such as: OS - your local might be a Mac, Jenkins might be Ubuntu memory type and size ...


3

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 use RobotFramework Tags to map the TestRailID to the test. After an execution, we have a script that pushes the results of the test run from RF to TestRail ...


3

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 handles it. This could be a layout issue that might be caused by different screen sizes of the browsers when they run on your run and on Jenkin's run. So smaller ...


3

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 refers to two parts of the development process. First when users work in branches it runs the tests for their branches. Secondly is is part of a devops ...


3

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 you need CI to run them: Automation with CI vs automation without CI Without CI, you need to remember to run your test. And when you forgot to run them, and ...


3

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: pipeline { agent any stages { stage('Checkout') { steps { git branch: 'your_branch', credentialsId: 'your_credentials', ...


2

Perhaps you can either automatically detect whether the feature is installed, or manually create some kind of test configuration file appropriate to each environment. Then use that information to deselect tests that are not appropriate to the configuration.


2

It doesn't look like the Android/Android Emulator plugin for Jenkins has that feature or something similar, You could try using the Jenkins VirtualBox Plugin or VBoxTool get the instance running and set up your tests to execute from there More info on how to configure the VirtualBox Plugin can be found in another question What is the correct way to ...


2

The Selenium IRC channel provided a hint. The browser was starting to launch, but Selenium never got a reply. After some fiddling, I was able to remote desktop into the account selenium + tomcat ran as and manually launched a grid job. Chrome was trying to setup a second desktop shortcut and do some initial first launch housecleaning. I also had to relax ...


2

Despite the fact the question is about Jenkins results - I'll add my own 5 cents, but regarding results of manual testing - some of the following points may be as well useful: As stated in other answers, results of intermediate builds are valuable within several months OR current project stage, therefore our usual practice is to keep these within current ...


2

I would suggest you use some kind of XSD to transform the current XML into one that aggregates the same errors and maybe puts a count in there so it will say something like error X occurred 700 times. That is all I can suggest for the information given.


2

You might be able to do something by swapping out the login shell from /bin/sh to /usr/local/someLoginCheck script so that when users use the ssh remote it checks the job name or some other environment variable set in the job. For example, at the top of the users script: #!/usr/local/someLoginCheck a650ef01ddcf4e1bfb68ee0af5566170 Another option would be ...


2

We are using Xvfb in our Continuous Integration environment and it is working great. It's no problem to take screenshots from Selenium for later analysis when errors are found. We have found no problems with this solution, rather a great advantage to be able to use virtual servers to spawn massively parallel tests against installations of the software.


2

You do not need Eclipse, Jenkins, or TestNG to scrape a website. Ask a software developer to help you package Selenium, your Java code, and any other necessary resources into an executable Jar file. If you can't find any developers, try Googling for "executable Jar file". Your executable Jar file will require a main class. If you are accustomed to ...


2

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 exception. As of now many of us completely depends on the execution console for the same. This plugin solves the said issue and present the user with a user ...


2

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 execute your selenium IDE via command promt. Then use that bat file onside your jenkins project to invoke selenium test.


2

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.


2

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 looking for, what you would need to do is set up a Jenkins job that monitors your Git repository. This will show you how to set up polling for a Git repo http:/...


2

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. Report the job status. You can mitigate conflicts using a branching model like Gitflow, so developers can merge more frequently and only send PR without conflicts....


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