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.
Related
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,
I've plenty of test cases, say 100. when i want to run my regression/smoke tests i can do that by dividing those in groups and running the testng.xml file.. but my wish is to create a UI which have the test case names,browsers.when i want to run 2-3 test cases, i'll just run select the test cases and browsers and then click on 'Run'(A button in my UI). so it'll interact with testng.xml and then send values to it. so indirectly i want to edit the testng.xml file and then run the testsuite. Anyone can help me out in this COntext or give me links of some online tutorial or anything from which i can get help ?
I use Eclipse, Cucumber and tags to do this.
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'm wondering something about debugging and what it means.
Currently developping a program that watches a directory and when something changes in the directory, it runs all the tests that it can find in the same directory.
So, I test what happens if you change the tests? I find that when I have 20 tests that should fail, and I change one of them to succeed, the program finds and runs all the tests and reports 20 failed tests. It doesn't use the new test, which is slightly odd.
Now, when I go through the program with a debugger, it does detect the new test!
How come the results change when using a debugger? It is the default debugger of Eclipse.
The program watches the directory using a WatchService and runs and collects the tests using JUnit.
I shall answer your question as I understand it.
The debugger in eclipse is designed for making complex applications, like GUI's or apps like your own.
The debugger allows you to change the code of a program in real time. It is designed for you to be able to edit an application, and see what your doing with it, IE changing a window size, ETC.
Each debugger run is a clean build. Try cleaning the builds of your eclipse project, this may be creating the problem, as the compiler is logging the data and expecting you to input a certain answer.
I'm working on a GUI program written in Java (using Swing) in Eclipse. I usually develop on Windows, and I am able to run\debug the program in Eclipse and it displays just fine. (I'm using a JUnit test to run the different windows of the GUI program).
However, I recently put Ubuntu on my machine on a second partition on my hard drive, installed Eclipse, and tried to run the JUnit test, but the GUI window appears for a second then disappears. The rest of the JUnit test runs just fine, (0 errors, 0 failures) but I can't see the GUI. Anyone know why this would happen? Thanks.
Ok, I figured it out. GUIs aren't meant to be run in JUnit tests, because as soon as the tests are completed, the program will exit, and the GUI will immediately close. For some reason, the program was staying open when I ran the JUnit test in Windows, but that's not really supposed to happen.
Because, in the current project that I'm working on, it makes more sense for me to open the GUI in a JUnit test, I implemented the following workaround: I had the method that ran the GUI simply wait until the GUI is closed before it continued to execute. To do this, I used the mechanism described here.