I have written my automation scripts for a registration scenario using selenium webdriver and java in Eclipse IDE creating maven project.
I have written my entire script (End to end application flow) under java main .Now business people are planning to integrate with Jenkins.Can you please help me how to generate reports to see my output results in eclipse and jenkins?
Note :I have not used any cucumber annotations,features files,step definitions,test runner classes.I right click my project in Eclipse IDE and run as java application and see the results in console.
There are several known and widely used tools for creating test reports.
I prefer using extent report report.
It can be easily integrated with major testing frameworks like JUnit, NUnit, TestNG, etc.
You can simply find a lot of perfect tutorials how to use it. Like this and many others.
Since Selenium does not have itself a reporting functionality we have to import Reporting libraries such as extent reports. It can be easily integrated with major testing frameworks like JUnit, NUnit, TestNG, have .html reports and the level of customisation it offers is commendable. You can read this article. here
Also you can use TestNG reports here
But its more advantageable if you use extent reports
Related
I have written selenium tests in eclipse java. I have manual test cases in tfs. Is there a way to update automation test status in tfs thru java code
About the TFS and java integration, take a look at below question:
Microsoft provide a full, rich TFS Plug-in for Eclipse (called
Team Explorer Everywhere). This provides full source control, work item tracking, build, sharepoint, reports access etc into TFS from
Eclipse based IDE's. It's written in 100% Java and talks directly to
the web services exposed by TFS.
Source Link:
TFS for Java - bad idea?
More details about how to get the best out of TFS if you are a Java developer, checkout: Working with Visual Studio Team Services (VSTS)/TFS and Java
If you want to link Java Test Automation with Microsoft Test Manager, TFS , Test Cases, which is not support for now, track this uservoice: Enable Java Automated Test to execute from MTM and get the java test automation linked to manual test cases
If you want to update automation test results/report in tfs, possibility duplicate of this question: Selenium Java Integration with Team Foundation Server Please go through the details in the answer, which should be helpful for you.
I used to test an application using VS & NUnit and NUnit provided this interface which had all my tests listed under each browser. I had a selenium grid setup to run different browsers.
Nunit allowed me to run single test in individual browser or all test in one browser. It was really very useful. Now I am testing an app using Java and Selenium. I am wondering if there is a plugin like Nunit for eclipse so I can run all my tests using specific browser one by one. Any advice is greatly appreciated :) . Thanks
I used to use JUnit and Selenium WebDriver to acceptance test websites
We scratched the idea though, because i (and my other co-workers) had a tendency to overcomplicate the 'point-and-click' automatic acceptance tests, to the point where they were not reliable anymore (we had some huge flow-tests that caused these issues). Now we currently only smoketest HTML pages now, using HtmlUnit (more or less)
The equivalent of NUnit is TestNG or JUnit in Java. You can install TestNG in Eclipse by following the URL:
How to install TestNG in eclipse Kepler
Does any one use loggingselenium for webdriber? I am trying to create a nice HTML formatted report which will includes stack trace of a failed tests including a screen shot. Loggingselenium is the best library for the porpose as i explained above. I am using maven and surefire for my project and I need to use logging selenium for my project which was done using webdriver. or find out other solution which will help me to do the same thing. As I am using junit for my tests, i want something like this.Any help will be appreciated.
You should try QAF formerly ISFW. It has great logging and reporting features as well as some design concepts especially for web functional test automation using selenium 1 or 2. you can read below useful blogs:
About ISFW
FAQ
Is it possible to run Selenium tests written in Java in the Play1 framework?
The Play! framework supports Selenium tests in their tests runner but the documentation states that the tests have to come as "HTML tables".
Selenium on the other side supports Java APIs which is much more convenient and offers all the capabilities of the normal programming language.
However I did not find anything in the Play! documentation about running Selenium tests written in Java.
Without having used Play myself, it does seem to have standard Java dependency integration for pulling libraries from a Maven repository. From what it says in the documentation, you could edit the dependencies.yml file, and add something like:
# Application dependencies
require:
- play 1.2
- org.seleniumhq.selenium -> selenium-java 2.24.1
which would allow you to use Selenium's standard Java API.
Is there any readymade utilities/framework available which can provide some common functionalities for automation needs like data management, reporting etc. Java is most preferable language.
TestNG provides an extensible framework for automation management. It integrates with popular IDEs such as Eclipse, and provides the ability to write data-driven tests, parallel execution (using Selenium Grid), and a host of other features.
For reporting needs, ReportNG is a plug-in for TestNG, that provides neat HTML reports.
Windmill is a Selenium type of testing framework for testing web pages. It works with all languages as you program it for web. You can record what you want to test, and it will perform it for you. Very nice!
Here is a nice video (popup)