BrowserStack executes only the first step of the cucumber scenario - java

My project builds on java, maven, JUnit, and cucumber approaches, I have integrated it with Browser Stack when I'm running tests only the Background scenario is executing and the test stops, but without Browser Stack on my local everything works fine. Anyone can help me to figure out the reason?

Related

Having difficulty using SoapUITestCaseRunner in Selenium

Let's get straight to the point:
I'm from QTP/UFT background. My company is transitioning from UFT to Selenium.
We've got Ready API couple of months ago and now I have couple of test cases in ready api. When we run the entire regression suite, we'll have to run the soapui testcases as well as part of the regression suite and then continue the rest of the suite. So, technically this is the flow: run some test against web - then soapui tests - then continue with web and complete the regression test suite in Selenium.
I was trying to put pieces together here. I was trying to execute one of the testcases from soapui using SoapUITestCaseRunner class in selenium.
When I use Launch testRunner in soapui it works perfectly but when I try it in selenium I'm getting an error. See the screenshots.
I've provided two screenshots. One of them will show you the Failure Trace.
Another one will show the console.
I want to know couple of things:
1. Could you help figure out what's happening?
2. Is there a way to automate cmd through selenium so I can execute cmd codes?
3. can I somehow run the .bat file through selenium?
I had to download soapui-1.7.1.jar to get the SoapUITestCaseRunner. For some reason it wasn't available when I'd added all soapui jar files as external.
thanks,

Is it possible to run selenium test without starting the Java App on localhost

I am writing some system test cases with selenium, an was wondering if there is a work around for running these tests without running the java app.
My process to run them is:
I build my maven project
I write a test
Run the java application to start the localhost at 8080 port
Run my test cases
I was wondering if there is a way not to do 3 as I am planing on deploying those test cases, and run them in jenkins.
P.S. If this question has been asked before, please point out where in comment.
Thank you

Is there any automation code that always works perfectly without exceptions

I am new to test automation (Selenium WebDriver) and I have created a good automation code, that sometimes runs perfectly, but most of times it just fails, without any good reason, with no code changes.
Is this normal or the problem is my code?
I just want to know if anybody faced that problem before or it's just me.
Tests that rely on external systems are often a better fit as integration tests, and Selenium tests definitely belong in that category. If you are using Maven, you can run the Selenium tests using the Failsafe plugin instead of Surefire. This allows them to "fail" without breaking the build, but you can still have ordinary unit tests that must succeed.
With reference to https://sqa.stackexchange.com/questions/9007/how-to-handle-time-out-receiving-message-from-the-renderer-in-chrome-driver , following are recommendations :
Solution 1: There are some plugins like flash player which may hangs the browser inconsistently waiting for some resource during test run, try disabling such plugins while starting the test using the chrome switches. http://peter.sh/experiments/chromium-command-line-switches/
Solution 2: The browser might hang waiting for some third party ads. Try disabling ads using some ad blocker extension or block the url pattern using the custom proxy configuration.
For inconsistent browser hangs, Try to find which process hangs the browser. 1.Unlike firefox chrome creates separate process for browser, tab, extension and plugins. 2.When the browser hangs check is there any new process(shift+Esc) like Web Worker:blob appended with an third party url, then follow #2 3.or else if there are more separate process opened for plugins try #1
Please refer to below link :
https://sqa.stackexchange.com/questions/9007/how-to-handle-time-out-receiving-message-from-the-renderer-in-chrome-driver

How to run Selenium tests with single click or single command?

I'm writing Selenium tests using Java + Maven + Selenium WebDriver. Our customer wants these tests in such a way that they can run tests easily without much technical stuff needed.
I've all my tests under src\test\java folder. Is there any way where I can give jar file or so to the customer and they can run tests by simply clicking on it or by hitting some command on the command line.
Please point me to documentation or video using which I can achieve this.
I've been using Visual Studio to write my Selenium tests in C#. I am able to build my project to a console application in Visual Studio that contains the required files like the Chrome webdriver. It can be run from this single application file with one click. The console then prints out if the test is a success or if their are any exceptions. You should also be able to integrate a headless browser like selenium has on their site. This would allow the test to be run with one click and no browser will pop up while the tests are running.This is all the experience I have and it has worked well for me. Hope that this information can help a little.

Eclipse : Creating and simultaneously running multiple test cases

I have written an application in Java using Eclipse Luna IDE. On paper I know the test cases required to test all branches/aspects of my application.
Does "eclipse alone" allow us to write test cases and execute it ?
I am specifically interested in being able to run all these tests cases in one click.
Something like this will help test the complete application with just onclick.

Categories