Good idea to use cucumber for Web Automation? - selenium-webdriver

I'm currently running Selenium automation on Junit.
After seeing the power of Cucumber , I thought of using it. Is really Cucumber can help much in Web Automation?
Suggestion will be greatful

Cucumber is not a Silver bullet, but it has helped me to automate web application testing with ease.
I used it as an automation framework with Watir-webdriver. It was one of my successful projects.
Remember to have your steps as atomic instead of depending on other steps.

Related

What alternatives to Selenium WebDriver can I use for automated UI testing of a web application?

I'm working on a project that currently uses Selenium WebDriver to run automated UI tests for a web-based application. However, Selenium is no longer being approved for use on this project. My team is currently investigating alternative solutions. We need something that can be used with a CI/CD pipeline and that supports testing for multiple browser types. It would also be great if it can be integrated with Cucumber, which we also use currently, but this is not strictly necessary. I would love to hear your suggestions for anything that we can use. Thank you in advance!

Implementation of automated workflow testing

I have doubts on how to implement test automation in the company where I am currently. I was wondering what workflow do you suggest?
The project I will be working on uses, on its back-end, the Java language. At first, I want to propose the use of Selenium Webdriver with Java, but some gaps remain:
How would I integrate with problem tracking tools? (Mantis or Jira)
A team member suggested using Python with Selenium Webdriver, is it interesting? (I am afraid)
When developers are committed to the QA environment, how would I do automated testing automatically?
Thank you in advance for your help!
With the evolution of AUT (Application under Test) the project is sure to scale up vertically and horizontally. Hence to maintain a healthy Test Coverage you have to set up an Automation Test Suite to validate the Regression Tests.
Mantis and Jira both can be integrated using either of the Selenium clients Java and Python on demand.
While for Java clients testng is a popular framework, for Python clients you can use the unittest framework.

Performing Automation Testing for both Web and Desktop Applications at the same time

I am performing an automation testing, and I have two applications. one is web application and the other is desktop application (WPF). They work together and one needs the other. To perform task on the desktop application the task should be finished first by the web application. I can do automation testing for the web application using Selenium or Protractor. At the same time I I can do automation testing for the Desktop application using Winium. But what I want is to perform automation for both sequentially. Is there any solution some one can provide me?
For your information my web application is developed using Angular JS.
Thank you in advance
Below is how I have configured my tests. I choose C# as the programming language. Selenium has .Net bindings so for UI interaction I use Selenium (C#). For Desktop App I am using FlaUI / (TestStack.White). My tests are written in SpecFlow (BDD's implementation in .Net). So that way I am able to test all of my apps under one umbrella and still use all of the open source technology for testing.
You can use following Tools : By using following tools you can interact with both Desktop and Web Component in a Single Test
Tosca :
It also supports Desktop and Web Automation. It's Community edition is FREE.
Refer Tosca
Ranorex
It supports Desktop, Web And Mobile as well. It is paid tool.
Refer Ranorex
TestComplete
It is an automated testing tool that lets you create, manage and run tests for any Windows, Web or Rich Client software. It makes it easy for anyone to create automated tests. And automated tests run faster, increase test coverage and lower costs. It is paid tool.
Refer Test Complete

Continuous integration for automation tools

I am trying to find out as to which CI (Continuous Integration) tools are available for automation tools such as QTP, Selenium webdriver, Waitr and GEB.
Leaving aside QTP...there are multiple CI tools (Open source and paid) which are compatible with Selenium Webdriver & GEB & Watir..will focus on what we have used...
Jenkins (Open source)
I have personally used it and found very flexible with numerous plugins available as per flavor of repository and post build actions.
Best part is this is compatible with Selenium Webdriver & Watir.
Gradle (Open source)
Since we are talking about Geb (groovy language), i would recommend to use Gradle tool. Since it has awesome compatibility and easy to configure.
Not that Jenkins can't be used for Geb, i would prefer to stick with Gradle when it comes to groovy.
There are other open source tools(hudson etc) and as well as paid tools(bamboo,teamcity..etc). It all depends on what all parameters to be addressed as per project or company in your build integration...to select a tool.
I would suggest come up with ur own requirements and then start evaluating any tool.
If you looking for which automation tool is better for CI?
If That is your question, I would suggest Thucydides framework with selenium webdriver. This framework has a great support for CI with abilities to define stories, steps and others.
http://www.thucydides.info/
QTP is a costly tool but automation is faster and efficient with it. We don't have support like the Thucydides framework for CI in QTP but it can be used nonetheless. QTP also supports windows application testing as against selenium which only supports Web browser testing (Testing of web applications run in a browser)
Hope this helps you.

How can automation testing on Silverlight using Selenium be done?

I am looking for a way by which I can automate my application build on Silverlight.
I need to use Selenium as required, can anyone tell a process or any good tutorial by which I can achieve what I require.
Thanks in advance.
Take a look at:
http://code.google.com/p/silverlight-selenium/
and
Silverlight testing: Watin vs Selenium comparison
Also bear in mind that Silverlight's future looks uncertain:
http://www.hightechnewstoday.com/apr-2011-high-tech-news-archives/74-apr-13-2011-high-tech-news.shtml and http://www.electronista.com/articles/11/11/09/microosft.may.axe.silverlight.after.major.release/
etc. etc.
So you may prefer to consider HTML5 for future projects after completing your current Silverlight project, as HTML5 has a brighter future because of its cross browser support and efficiency compared with proprietary technologies like Flash and Silverlight.
I suggest Sikulix which a desktop automation tool using which you can automate almost everything. which uses text interpretation of image so that us can locate your component.
If you are using python selenium i suggest to use pyautogui which is nice python package to automate silverlight web pages.

Resources