Is there any selenium specific testing framework available? - java

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)

Related

spring Test / boot bdd vs cucumber serenity rest assured for API automation testing

I am exploring multiple options to create a framework for automation testing of Restful Services. This should have suitable reporting for product to view, so our company standard is to use BDD hence for now, I have kept the Karate aside. Only looking for pure Gherkin BDD in JAVA only. (sorry no python, postman tools etc too)
can you guys share me on what cases do you use spring Test or spring boot framework and on what cases do you prefer to use serenity/cucumber/ rest assured.
I understand that these are
just frameworks and both do the jobs alike. I am not looking to make the API automation work, instead looking into the weights for which they are opted for.
My Dev team uses SpringBoot, and we maintain separate repositories. No way do they help in automating our scenarios.
I know SO is not the platform to have comparisons, here I am only seeking the use cases to adopt the framework but not comparison among tools

How to generate reports in selenium webdriver (java)?

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

What are some alternatives to Selenium?

What are some web UI automation frameworks available out there?
I know about this question, but it was asked 3 years ago and things have changed a lot since then. I just wanted to find out if the answers to that question are still relevant or there have been newer and better tools developed since.
I'm asking this again because after doing some googling I've stumbled upon tools such as Geb and Capybara that were not mentioned as an answer in that question.
there have been newer and better tools developed since.
Take a look at the TestCafe testing framework. It runs functional tests in any modern browser and any device. No WebDriver required.
TestCafe is a pure node.js solution.
It can be easily installed (npm install -g testcafe is enough).
Works without plugins for browsers and additional configuration.
Write tests in ES6 and ES7 JS syntax.
Has smart waiting system, so runs async tests fast without extra waiting.
Can be easily integrated to your CI system.
Support for running tests on remote machines, devices, and cloud.
Free and open source.
You can use WATIR with Cucumber. Infact facebook uses watir for its UI automation.
I would definitely stick with Selenium, TestNG (and Selenium Grid for industrialisation).
If you want something at a slightly lower layer, you can also look at HtmlUnit.
IBM Rational Functional Tester (IE and older firefox builds) or QA Wizard.
RFT runs on Java/Eclipse.
https://stackoverflow.com/a/13024991/423955
Sahi (http://sahi.co.in/) should be the best alternative for selenium. One can use java or javascript for the sahi scripts, php and ruby driver is also available (no personal experience with Ruby or php). Very effective with cross browser as well as cross-platform.
Some of the lovable features are: No explicit wait required. For element identification _near, _under, _in etc ApI's are very useful. Logging/Report, feature is inbuilt with Sahi. No Complex configuration required to run the Sahi scripts

Logging selenium for webdriver

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

testing a web application

I am a student and I have developed a web application based on JSP. Now my professor has suggested that i should do some tests like unit test etc for my web application.
Can anybody suggest what other test can I use to demonstrate the performance of my application.
And also any good resource from where I can study how to do unit testing, as I have never done any testing before.
Thanks!
Selenium is a popular framework for client-side unit tests (i.e. automating client input on a web page). The site also has a lot of introductory material.
For testing the server-side stuff the good, old JUnit will suffice - it's integrated in all major IDEs.
You should look into Kent Beck's Test-driven Development, although Test-Driven development is more than regular unit testing, this book will enlighten you (I bet) and you will write way better unit tests, too.
Selenium http://seleniumhq.org/
You should do unit testing for individual backing beans, an behavioural testing with something like Fitnesse
What you're talking about is "integration testing."
"Unit testing" is for proving the correct operation of individual components.
You can use SOAP UI to test SOAP-based web services.
You can automate testing of HTML user interfaces using Selenium UI.
Use JUnit for unit testing Java components, NUnit for .NET, etc.

Categories

Resources