Geeks With Blogs

News Please visit me at my new blog!!

profile for Aligned at Stack Overflow, Q&A for professional and enthusiast programmers
"free in Christ Jesus from the law of sin and death." Romans 8:2 (ESV) Check out the Falling Plates video on YouTube.
more about the Gospel
And then listen to Francis Chan speaking at LifeLight in SD.



Programming and Learning from SD

I recently joined a team that was using Agile Methodologies to create a new product. They have a working beta product after 10 or so 2 week sprints and already had UI’s that had changed several times as they went through iterations of their UI. As a result, the QA team was falling behind with automated tests and I was tasked to help them catch up and expand their tests.

The project is a website. I heard many complaints about how hard it is to work with CodedUI (writing our own code, not relying on the recorder as we wanted re-usable and more maintainable code) then it took me 4+ hours to fix one issue. It was hard to traverse the key and debugging the objects with breakpoints… I said out loud “there has to be a better way or a framework the uses jQuery to run through the tests.” Plus it seemed really slow (wait… finding the object … wait… start putting in text…). Plus some tests would randomly fail on the test agents (using the test settings and an automated build, they are run on VMs using Microsoft test agents).

Enough complaining. Selenium to the rescue (mostly).

The lead QA guy decided to try it out and we haven’t turned back. We are now running tests in Chrome and Firefox and they run a lot faster. We had IE running to, but some of the tests were running fine locally, but hanging on the test agents. Also sometimes it would try to click a button multiple times and not work. I’m still not sure why, so we are just running on FF and Chrome.

I’ll add some hints and lessons learned in a later post. 

I’ve added a uservoice suggestion, if you agree, please vote on it.

For IE Web Driver, someone on my team found that this should help (sorry no reference): ConfigurationManager.AppSettings["WebWaitForReadyLevel"] = "3";

(written in December, 2012)

Posted on Thursday, October 31, 2013 1:56 PM UI Automated Testing , Selenium | Back to top


Comments on this post: Skip CodedUI Tests, use Selenium for Web Automation

# re: Skip CodedUI Tests, use Selenium for Web Automation
Requesting Gravatar...
Thanks for sharing the valuable information,This is useful information for online learners

Selenium Online Training
Left by artstiv on Nov 26, 2013 3:02 AM

# re: Skip CodedUI Tests, use Selenium for Web Automation
Requesting Gravatar...
Totally disagree with you i worked with selenium and coded UI UFT QTP Me also had same ideas about coded UI initially when i started but as day passed and i became used too and almost under stood every aspect of coded Ui i really enjoyed using it my conclusion is this :
Advantages :

1 test case if take 2 hours to be developed in selenium it would take only 30 min in coded UI

Disadvantage :

Coded Ui works best in IE

Conclusion :

Coded UI is better if you are automating a large scale ERP because ERPs normally support specific browser

However if automating small web app and want a script to test on various browsers then go for selenium
Left by Fahad on Jan 22, 2015 5:54 AM

# re: Skip CodedUI Tests, use Selenium for Web Automation
Requesting Gravatar...
Thanks Fahad for the comment. I suppose it depends on the situation (as you point out) and I should have stated it that way. However, our team now have 220+ tests that run often with the builds. We still get times when the click doesn't work with Selenium, but overall I'd still make the choice.

If you see this... what makes writing the tests faster in Coded UI for you? We do spend time making objects that do the mapping to the elements, but after that it's pretty easy to add to and maintain.
Left by Kevin on Jan 22, 2015 3:31 PM

# re: Skip CodedUI Tests, use Selenium for Web Automation
Requesting Gravatar...
Thank you for sharing Selenium for Web Automation
Left by ksupraja on Mar 08, 2015 8:43 AM

# SAP APO Online Training
Requesting Gravatar...
Hi, I believe your website could be having browser compatibility issues. When I take a look at your website in Safari, it looks fine however when opening in Internet Explorer, it’s got some overlapping issues. I just wanted to provide you with a quick heads up! Apart from that, wonderful blog!
SAP APO Online Training
Left by raju on Dec 10, 2015 5:44 AM

# re: Skip CodedUI Tests, use Selenium for Web Automation
Requesting Gravatar...
Hi Guys - I have small web application but have lots of test cases to be run on all type of browsers.

I tried both ways somehow I find Selenium is more easy way but I don't want to choose based on that alone.

My requirement is to run all tests as check-in & daily automatically and generate reports and communicate through email..

Could you suggest which would be best suited for me?

Thanks in Advance.
Mohit
Left by Mohit on Dec 10, 2015 6:16 AM

# re: Skip CodedUI Tests, use Selenium for Web Automation
Requesting Gravatar...
This page is more informative about the Skip CodedUI Tests. People willing to get the indepth knowledge in getting framework such as TestNG,jenkins,Maven and POM should get properly get online selenium training in chennai
Left by vijay on Feb 06, 2017 11:26 AM

# re: Skip CodedUI Tests, use Selenium for Web Automation
Requesting Gravatar...
Nice one, Thanks for your information.
Software Testing Training in velachery
Left by venkatesh raghunath on Jul 04, 2017 11:40 PM

# re: Skip CodedUI Tests, use Selenium for Web Automation
Requesting Gravatar...
I agree with above statement that selenium is the best tool for web applications

but in case if the application is having multiple technologies like Windows, Html, Web, Silverlight, ActiveX Controls.. then in this case Coded UI can support all these and have good TFS Integration as well.

so it depends on project to project and case by case.

Left by Shiva on Nov 17, 2017 9:44 AM

Your comment:
 (will show your gravatar)


Copyright © Aligned | Powered by: GeeksWithBlogs.net