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,
Related
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?
We have a requirement to run selenium script recorded in fire fox plugin via tool which can run these scripts and give logs on a web console. Does anyone know of such a tool?
Requirement is that QA guy records a bunch of test cases and then some non tech person can simply come in and run these and see verbose output.
Have a look at the following plugin for Selenium-IDE to save log to a file.
https://addons.mozilla.org/nl/firefox/addon/file-logging-selenium-ide/
if you are looking for record playback too, this would be a better option.
https://addons.mozilla.org/en-US/firefox/addon/imacros-for-firefox/
They have plugin for chrome as well, so hopefully you can use run the same recorded scripts in chrome browser as well.
I am running test cases on selenium Webdriver in Java. The first test case opens the browser window and performs the test.
After the first test case is complete I want to utilize the same browser window to run the next set of multiple test cases.
How can this be achieved? Can someone point me in right direction?
Don't quit your browser in the "TearDown" part.
Navigate to a common URL in the "TearDown" part from where multiple test cases can start.
Thus you will be able to utilize the same browser window to run the next set of multiple test cases.
You can reuse a browser in multiple tests using Spring to inject it. This can be faster for running a suite. But, and it's a big but, if one tests "dirties" the browser (e.g. with cookies), then you could easily find yourself spending more time debugging flaky tests that you save on run time.
There's an example here: http://www.alexecollins.com/tutorial-integration-testing-selenium-part-1/
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.
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.