devXero's blog

a blog about agile, development, and automation

Posts Tagged ‘QTP’

Ways to improve the reliability and efficiency of SWAT/UI tests (Part 2 – Reliably checking select boxes)

Posted by Mike Longin on October 6, 2009

This post is written more for a SWAT user since it has to do specifically with how SWAT users check the values of SELECT boxes.  However the ideas here could be applied to other UI testing tools as well.

For this post we will be using the example Select Box below:

<SELECT id="mySelectBox">
  <OPTION value="A">Alpha></OPTION>
  <OPTION value="b">Beta</OPTION>
</SELECT>

Read the rest of this entry »

Posted in Uncategorized | Tagged: , , , , , | Leave a Comment »

Ways to improve the reliability and efficiency of SWAT/UI tests (Part 1 – Sleeps are evil)

Posted by Mike Longin on October 4, 2009

This is the start of a series of posts I am going to be writing on how to improve both the reliability and efficiency of SWAT tests.  Any ideas I present here can be applied to any UI testing tool (SWAT, Selenium, WatiN, QTP, etc…).  The most important concept to take away from these posts will be that tests can be made both reliable and efficient with just a few simple techniques.

For the first post we will be looking at the Sleep command (http://ulti-swat.wikispaces.com/SwatCommandsSleep).  Almost all UI testing frameworks contain some version of this command.  This command is also sometimes known as a “Wait” Command.

Lets start out with why this command is bad:

  • The command will slow down a test suite
  • No matter what, the time you set for the sleep is always too slow or to long.  Either it will be too long, and your test will just sit there waiting for nothing, or it will be too short and the test will move on before it should.

Assuming you are still reading this, and agree that sleeps are bad, you are probably asking what you can do to avoid sleep commands and make your test both stronger and more reliable.

Read the rest of this entry »

Posted in Uncategorized | Tagged: , , , , , , , , | Leave a Comment »

QTP vs open source tools (and what may be the greatest comment ever)

Posted by Mike Longin on September 17, 2009

Came across this article thanks to Jason Huggins (http://twitter.com/jhuggins)
and got a great kick out of it. http://www.qtp10.com/2009/08/qtp-vs-selenium.html
UPDATE: The original post this came from is here:http://functionaltestautomation.blogspot.com/2008/10/sno-features-qtp-selenium-explanation_22.html
My favorite line is now and will forever be:

Tests developed using selenium can be easily part
of the development project. Using tools like cruise control
Continuous Integration is easier with Selenium. But don’t get too
caught up with this feature, it’s really not that important to be
integrated with the development process but it’s nice to
have.

Whats the point of doing automation if its
not part of the development process? What are we gaining from
all the work we put in if is just an after the fact
artifact?

Posted in Uncategorized | Tagged: , , , , | 1 Comment »