Wednesday, October 8, 2008

Criteria for Automation

Criteria for automating
There are two sets of questions to determine whether automation is right for your test case:

Is this test scenario automatable?
Yes, and it will cost a little
Yes, but it will cost a lot
No, it is no possible to automate

How important is this test scenario?
I must absolutely test this scenario whenever possible
I need to test this scenario regularly
I only need to test this scenario once in a while


If you answered #1 to both questions – definitely automate that test
If you answered #1 or #2 to both questions – you should automate that test
If you answered #2 to both questions – you need to consider if it is really worth the investment to automate

What happens if you can’t automate?
Let’s say that you have a test that you absolutely need to run whenever possible, but it isn’t possible to automate. Your options are
>Reevaluate – do I really need to run this test this often?
>What’s the cost of doing this test manually?
>Look for new testing tools
>Consider test hooks

WebInject

WebInject is a free tool for automated testing of web applications and web
services. It can be used to test individual system components that have HTTP
interfaces (JSP, ASP, CGI, PHP, Servlets, HTML Forms, XML/SOAP Web Services,
etc), and can be used as a test harness to create a suite of [HTTP level]
automated functional, acceptance, and regression tests. A test harness, also
referred to as a test driver or a test framework, allows you to run many
test cases and collect/report your results. WebInject offers real-time
results display and may also be used for monitoring system response times.

WebInject can be used as a complete test framework that is controlled by the
WebInject User Interface (GUI). Optionally, it can be used as a standalone
test runner (text/console application) which can be integrated and called
from other test frameworks or applications.

WWW: http://www.webinject.org/

Automation

Rational

Automation-Selenium

Good Tools To Know, and Work Easily With Selenium and Other OpenSource Tools.

Chris Pederick’s Web Developer toolbar for Firefox and Internet Explorer
• http://chrispederick.com/work/webdeveloper/

XPath Helpers
XPather
https://addons.mozilla.org/extensions/moreinfo.php?id=1192

XPath Checker
https://addons.mozilla.org/extensions/moreinfo.php?id=1095

Selenium is supporting UI-Element concept.
To know more about what is UI-Element and how can we use this etc,
first we need to understand the concepts of JSON (JavaScript Object Notation).
http://en.wikipedia.org/wiki/JSON ,
and Playback of scripts depends on JavaScript we need to have any idea about JScript
http://www.w3schools.com/js/default.asp


Many Opensource tools dont support Regular Expression to verify the content of HTML page (eg:Shai,Selenium,Watir...) , before knowing how to verifyhtmltext (placing a checkpoint on a text) with the tools, we need to know about XPATH. Lets have a look its easy and fun.
http://www.zvon.org/xxl/XPathTutorial/General/examples.html



Games