I want to develop a web application which takes github url(containing TestNG test cases written in Java and selenium) and TestNg.xml name as input. if we click on Run button, it should take the code from Github and then run the test cases present in it in the backend and display the result on the UI. Please suggest me ,How should I proceed developing such application ?
Related
I run my test using Java, Selenium and TestNG.
When I execute my test suite I have it set up where the testng.xml has all the configurations to run my tests. I am wondering, if I can set up my own custom UI component that does the same thing as the xml?
I am asking because I have nontechnical people in my staff and I don't want them to have to download an IDE, check out the project, etc. I want to create some UI where they can just go there and hit a button and the tests runs just like how I can right click on the testng.xml and hit run.
You could use a build tool like Jenkins: https://jenkins.io/. This would allow other users to visit a webpage to run the tests instead of using an IDE - as long as they don't need to modify testng.xml.
For the project in my school I am creating a automation tool for the web with JAVA.
This tool should detect the user activity on web page, save it, and then run the result as Tests.
I found solution for the running part: I will use Selenium to run all the tests that I am automatically generating.
But I did not found how to detect user activity on the web, Selenium can do it?
The Idea is to check what element the user was clicked, hover, send keys...
There is a way do detect what element was clicked in the browser with pure JAVA? if not, there is some tool to check it?
Look at the Selenium IDE plugin for Firefox. It will help record your usage of a website. You can then reuse the scenario to perform your test.
Since the tests are actually made on the front-end, the tests are not tied to Java. Your back-end could be written in C# or PHP: the front-end user has no idea what's behind.
I am working in with Java in intelliJ and have a testSuite that I would eventually like to be able to automatically run, export test results to file, and email those results to my boss. The test runs and the e-mail sends with the attachment. I just can't seem to figure out if there is a certain method that I can implement to do such a thing.
You can achieve this by installing a continuous integration server, which will monitor your version control system, run the tests every time you commit code, and send the notifications according to your configuration (for example, by sending an email to your boss if that's what you need).
Popular continuous integration servers include Jenkins and TeamCity.
I have few test cases written in testNG and Junit using selenium for testing a webpage. But for executing them i need to go to command line or run them using eclipse each time i want to run. I want a centralised web page from where i can select what test i want to run and just click on some button to say run. And can see the output results on the same page. How could i achieve that?
Thanks-
Girish.
We use Jenkins in our project to do this kind of simplification when we want our business users to trigger tests. However, it may initially take some setup for each set of tests you want to run.
I can run a single selenium test in play's browser UI, however, is it possible to execute a play selenium test on the command line?
Obviously if I run play auto-test it will execute all my selenium tests (as well as my junit tests). Is there a way that I could tell Play to execute just a single selenium test on the command line to check whether it works using the headless browser?
I don't think it's possible to do so with the current play framework,
but see how auto-test works on
https://github.com/playframework/play/blob/master/modules/testrunner/src/play/modules/testrunner/FirePhoque.java .
It get the play test lists on /#tests.list , maybe you could try to override it providing what you want to test.
Anyway, I don't see the usecase of testing only one test in a headless browser.