jenkins cucumber jvm reports plugin java screenshots - jenkins-plugins

I'm using this plugin for cucumber, and I saw that if one or more steps are failed you have the screenshot on the report of that step.
Is there a way to have the screenshots for each step also if they are not failed?

Generally it is not considered a good practice due to performance overhead however you can do it using "afterstep"
hooks.

Related

how to run existing restassured tests with gatling?

I'm trying to implement gatling performance tests as a part of my project. I have existing test-cases written in RestAssured with Java and maven as a build tool. Can I re-use those and hook with Gatling. I checked the reference https://abstracta.us/blog/performance-testing/tutorial-use-gatling-maven/ - but mostly it tells me to write new tests for Gatling.
Thanks!
No, it's not possible atm.
And the blog post you mentioned is definitely not the reference. The reference is the official documentation and the Gatling Academy.

Joomla Site very slow

i'm struggling onto a problem that i can't find a way ti fix. I'm currently running joomla 3.4.5 and a gantry based theme. I tried minifying CSS, JS and HTML and also optimize the images with the google insight tool.
i've done a debug system and it shows that
Application: beforeRenderModule mod_rocknavmenu
implies 21.7 seconds ..... I think that is the issue .... how can i solve that?
The site is this
Thank you for your supoprt
I would guess the site is slow due to your hosting.
Also news01.png and news02.png are taking several seconds each to come through.
Update all of your extensions, out of date extensions can impact performance.
Check your slow query log, CPU, and memory usage on your server. Those will tell you more about potential issues.
Found realy easy solution - just disable System - Model plugin

How can i use Selenium for long scenarios?

I have been asked to record a long running scenario which involves pages of functionality for the life-cycle of a patient from registration to billing. I tried Selenium IDE but it is flaky, giving replay errors of what it just recorded. When i try Selenium 2, I get into DOM and XPATH problems. Selenium 2 is meant for unit testing i believe. What are the open source alternatives which scale to 5 minute scenario record and replay ? I know this is a subjective question, which might have been asked before, but the options might have improved.
We use Selenium 2 on a daily basis (driven by groovy scripts but that's not the point) to run long running scenarii involving multi-websites connections [and even mail confirmations verification]. It's very stable when a proper error handling is done. The key to success with long scenarios is "expect to fail". Like in a real world, when you sometime have to click twice on a button
You have to use the WEbdriver and not the recording in IDE.
You have to use Paje Object Model to make the project stable.
see this article:
https://weblogs.java.net/blog/johnsmart/archive/2010/08/09/selenium-2web-driver-land-where-page-objects-are-king
Selenium Web driver will actually work. Xpath problems might be due to page loading time issues.
Include Implicit or Explicit waits in your selenium code.
Even Thread.sleep(milliseconds) will fix the issues to some extent.
I would actually suggest maybe switching over to Watir-webdriver with PageObject if you are going to be using long-running scenarios. We have extremely long scenarios in an AJAX application and could not solve the problem with Selenium. Switching over to watir-webdriver and the page-object gem allowed us to reuse pages with proper waits, and no failures.

Scripting responses for use in the Maven Release Plugin

We are a SVN/Maven/Hudson shop. We are experimenting with using the Maven Release Plugin to help automate our very laborious tagging and releasing process. We are happy with what we are seeing and have researched thus far in regards to this plugin.
Our question is - if we need to have different tags for some of the modules / applications being built, is there a way to script the responses?
We have waded through the interactive dry runs successfully, however we are looking to script these out to further our automation.
Has anyone tried this or know if it is possible?
Does the "Batch Mode" allow this functionality?
Thanks
Joe R
You can -B but it will use default version names (removing -SNAPSHOT at the end).
regarding tags per module you can have a look at the parameter : autoVersionSubmodules 1
/Olivier

Spring Roo with GAE error on most basic tests

I have been playing around with spring roo for some time now, read most of the documentation, tried most of the tutorials I could find (pizze, wedding...) - all worked well. My next step was to create a basic application, that can be deployed on Google App Engine. I just can't get it to work.
I found a simple tutorial that consists of 2 Entities and seems to run fine on GAE. It has been created using Roo-1.1.0.M2. I did the exact same steps but could not get it to run. I tried Roo-1.1.0.RELEASE as well as the current Roo-1.1.1 development branch. I always ran into the same problem as Ron.
I was able to strip down the test.roo file to
project --topLevelPackage com.springsource.failureexample
persistence setup --provider DATANUCLEUS --database GOOGLE_APP_ENGINE --applicationId failureexample
entity --class ~.domain.Person --testAutomatically
perform tests
Using this example, I get something like ERROR DataNucleus.Transaction - Operation rollback failed on resource: org.datanucleus.store.appengine.DatastoreXAResource and the build fails with a test in testCountPeople(com.springsource.failureexample.domain.PersonIntegrationTest).
The problem is also described at Roo's issue tracker (where I provided my minimal test script), but since it obviously worked at other setup, I might have misunderstood or overlooked something important in the setup process.
Could you provide some ideas of what my error might be?
How about creating at least one field in your entity ?

Resources