Professional Documents
Culture Documents
Sahi Automation Tool
Test Events for June 2011
3 Essentials to Setting Expectations
YOUR MONTHLY MAGAZINE
Interview with Parimala Shankaraiah ON
SOFTWARE TESTING
www.TestingCircus.com
8
From the Keyboard of Editor-in-Chief
RIP Chandrasekhar.
(http://helpchandru.com)
‐ Ajoy Kumar Singha
editor@testingcircus.com Vol 2 - Issue 5
http://twitter.com/ajoysingha
Testing Circus
Letters to the Editor 5
A Fake Testerʹs Journey A Fake Tester 6
The Great Quality Challenge for Mobile Doron Reuveni 8
Planning Your Next Testing Assignments Bernice Niel Ruhland 10
Software Testing News 12
Test Idea Generation Riyaj Shaikh 13
Promoting Software Testing in Your Organization Rob van Steenbergen 16
Crack The Code Blindu Eusebiu 19
Testers at Twitter 20
QTP Code Corner Jaijeet Pandey 22
Testers Greatest Nemesis Martin Jansson 23
Sahi Automation Tool Akanksha Talwar 26
Test Events for June 2011 Testevents.com 31
3 Essentials to Setting Expectations Varada Sharma 33
Interview with Parimala Shankaraiah 35
Testing Quote
Testers do many things and there are many titles that could apply to the many
things we testers do.
Weʹre detectives. Weʹre investigators.
Weʹre evaluators. Weʹre communicators.
Weʹre writers. Weʹre critics.
Weʹre advocates. Weʹre leaders.
Weʹre supporters. Weʹre learners.
Weʹre teachers. Weʹre forecasters.
Weʹre testers.
‐ Ben Simo
Hi Arunesh,
Thanks for appreciating our work. We will try to publish topics of you choice in our future editions.
‐Editor.
editor@testingcircus.com
—‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
Hello Testing Circus team,
Kudos to each one of you. I am a young testing Professional from Chennai, India . From a campus
recruit to a Senior Quality Assurance Analyst, I am a testing professional constantly in pursuit of
learning testing through every possible way. And it was in Feb 2011, I identified this great work
Testing Circus magazine while googling some stuff. I am a Biotech Engineer by Graduation and
IT was never my cup of tea. But when I landed into testing 2 years back, I decided this is my area
http://twitter.com/testingcircus
and I need to prove myself. Yes I fallen in love with the art of testing.
Efforts from testing Circus is truly inspiring for young QA folks like me. Thank you each one of
you for the commendable Job.
Thanks,
‐Preethi S, Chennai
Hi Preethi, http://facebook.com/testingcircus
We are happy that you liked Testing Circus Magazine. Keep spreading the word about Testing
Circus to your friends circle and QA folks.
‐Editor
Write to editor@testingcircus.com
www.TestingCircus.com May 2011 -5-
A Fake Tester’s Diary Part 5
e
t ur
F ea
a r
g ul Appraisal Season ‐2
us Re
g Circ
in By Fake Software Tester
Test
Last month, I had told you the story of “whom you know” Memory Loss
and “what you know”. Why did “whom you know” get This disease runs rampant during the appraisal season at top
promoted in a quicker pace, compared to “what you know”? level. The big bosses need to prove to the biggest bosses that
I have listed some of the reasons below. Here’s an excerpt of they are aware of ground reality. So, they look into recent
what happened around me this appraisal season… history to quote a top level performance by an individual and
use the power bestowed in them to recommend a good rating
The search for Objectives for him. The disease runs deeper when more often than not,
As soon as the appraisal season set in, everyone started to only the performance of the last few months is kept in mind
search for their objectives. Though it’s difficult to believe, it when management were discussing employee performance.
was the truth in most cases. People search for their objectives Any super work done in the initial 3‐6 months are conven‐
only after the onset of the appraisal monsoon. And this iently forgotten by everybody, proving the initial sentence,
mostly resulted in a scramble for certifications, the scramble that memory loss is indeed rampant in management.
being so bad that certification slots are unavailable. Similar‐
ly, people were trying to ensure that they had completed the How do people try to get promoted?
required training programs prescribed for them at the end of And there is this set of people who are on the look‐out for
the previous appraisal. promotions. These would include people who have been in the
system for quite some time and have seen new people with the
Bell Curves same experience join the company at a higher designation,
This is the most popular curve, on everyone’s mind during people who have been deprived off onsite opportunities, people
the appraisal season. Originally, the bell Curve was a well‐ who are under the impression that they get a low pay, etc. etc.
known statistical method used for grading. Appraisals made etc. This would be the set of people who are used to periodic
these curves more popular. The 1st generation of managers rewards and think that they deserve a promotion only because
passed it on to the next generation manager, who passed it on they have existed in the company for a long time.
to the next generation and so on. Lost in these translation
sessions was the original intent of the bell curve. Popular How people try to get more hikes?
belief was that whenever someone used this term, it meant And there are people who try to talk to their bosses to ensure
that they had done a proper stack ranking of their team that they get a better hike than the person sitting across them.
members, and were not questioned any further. The disad‐ They quote family financial crisis, lack of onsite opportuni‐
vantage of the bell curve is that community influences can ties, why they did not fight a poor appraisal last time, why
lead the bell curve to be wrongly interpreted, and the crea‐ they took the beating for the boss’s mistake, why they have
tions of a lot of fluctuations of the bell curve especially when been very faithful to the organization, etc. to try and get a
many groups are involved. Such disadvantages are ques‐ better hike than the person that they have lunch with. Some
tioned by nobody. of the back stabbers also go to the extent of telling their bosses
Pro‐activism
And this word “You should have been pro‐active” can be A fake Tester’s Diary was first published in Testing
found in the feedback of at least 60% of the people. It’s so easy Circus January issue. New Readers are encouraged
asking someone to be “pro‐active”, and that too at the end of to read our old issues at www.testingcircus.com
1 year. When managers cannot give their team members a to understand the journey of a fake software tester.
good hike, or a promotion, they use this term to put off the
Keep reading future issues of Testing Circus to
candidate in the hope that he’d shut up for the next year, or
know more!!! Do you have anything to say about
get an employment elsewhere.
fake testing practices?
The Blame Game Write to us. faketester@testingcircus.com
Employees ask for reasons as to why they don’t get a good By the way, have you seen the blog on fake software
appraisal. And their bosses try to spend most of their time testing? Here it is ‐
justifying it. Don’t be surprised if your boss quotes a spelling http://fakesoftwaretester.blogspot.com
mistake in an email from you to your client a year back and – Editor
ask you to sign‐up for “Communication sessions”. Or if your
boss quotes a telephone discussion that happened between
you and your client 6 months back and asks you to sign up
for “Telephone etiquette” sessions. Or if you find that you are
being penalized for a very low priority UI defect that hap‐
pened 8 months back. The blame game is at its best during the
appraisal season.
A platform for software testers to collaborate, test
My Thoughts (Not too many thoughts. Just a couple) various kinds of software, foster hope, gain peer recog‐
1) Unplugged Loopholes ‐ The appraisal process, like nition, and be of value to the community.
any other process, has a lot of “unplugged” loopholes. Not
http://weekendtesting.com
plugging them is very convenient for most people, since it
allows them and their cronies to prosper. Will we ever close
these gaps?
The mobile enterprise is no longer on its way – it is here. This New apps for BlackBerry, iPhone, iPad, and Android are
is creating a mobile app revolution that is driving the need for making deep in‐roads into enterprise organizations in indus‐
fast, effective application testing that mimics your user base tries as diverse and mature as healthcare, finance, education,
in terms of technical environments, locations, and demo‐ media, and retail. This means that the pressure to get high‐
graphics. And while it’s tempting to think that mobile apps quality mobile apps built, tested, and launched has never been
won’t alter your company or industry, no space is exempt greater. With so much critical data flowing to smart phones
from the mobile revolution. It is critical that companies, from and tablets, companies must ensure that their mobile apps are
startups to enterprises, are ready to address the challenges stable, private, and secure. Even the smallest flaw can ruin a
that mobile apps bring to the development and testing proc‐ mobile app, and sometimes, the company behind it.
esses.
For those who haven’t been living in the mobile space, it’s
important to note just how different mobile apps are com‐
pared to the worlds of web and desktop apps, not to mention
sets of very different rules. The mobile web and native apps
present distinct challenges for companies and require new
skill sets for design, engineering, and testing. For a mobile
app to work as intended, consider the multi‐dimensional
testing matrix. There are multiple operating systems, differ‐
ent mobile browsers, myriad smartphone device makers and
models, a host of carriers, and worldwide locations. With all
these criteria, it’s clear that the cost and complexity of man‐
aging QA in the mobile era is not something many organiza‐
tions are equipped to handle.
If an organization does not focus on the functionality, usabil‐
ity, reliability, and security of the application, they may find
According to a recent survey by Bloomberg Businessweek
themselves in the awkward position of explaining to their
Research Services, enterprise mobility is no longer just for
customers, or the CEO, why their application was rejected by
email. Employees are using mobile apps to access CRM
the apps store, or why users are sharing their dissatisfaction
systems, financial results, marketing campaigns, and to track
on Twitter, Facebook, TechCrunch, and others. This mobile
orders, to name just a few. In fact, ABI Research anticipates
quality challenge calls for a better way to test, one that meets
worldwide enterprise mobile data revenues will reach $133
the “in‐the‐wild” testing demands of mobile apps.
billion by 2014.
3. Beta Testers: It’s rare for a software company to Doron Reuveni co‐founded uTest
in February, 2007. Since its in‐
attract a large group of beta testers to test their app.
ception, uTest has provided func‐
After all, not every company can be Google, with its
tional, usability and load testing
wildly popular beta versions. But even if you can services through a community
assemble a large beta group, the method still falls that includes more than 35,000
short on its own. First, if a beta goes poorly, most professional testers from 170
companies can’t afford to have it happen in the bright countries around the globe. He is
lights of the blogosphere or Twitterati. Beta testers a published author and expert in
testing methodologies for web,
are more often like users in that they will only try to
desktop, and mobile applications. Prior to uTest, Doron was
get your app to function properly; a real tester will
the Senior Vice President of Technology at Enigma, Inc.,
systemically structure their usage to identify weak‐ delivering large‐scale software implementations through his
nesses in your app. global team of product managers, developers, QA profes‐
sionals, and project managers. He has more than 20 years of
Crowdsourced Mobile App Testing experience delivering software applications to Fortune 500
The increasingly fragmented device and platform environ‐ companies as well as young, agile startups. To learn more,
ment has escalated the demand for comprehensive, always‐on visit uTest at www.utest.com.
global testing; however, testing mobile apps has traditionally
Imagine you have been assigned the responsibility to oversee what features are more important to them. This will allow
the testing of a new module being added to the company’s you to write better test guidelines and to properly allocate the
flag‐ship application! What a wonderful opportunity to chal‐ testing time.
lenge your skills and to show management you can handle the
responsibility. Where do you start with this assignment? Do Review Documentation and Identify Contacts
you dive in and start testing? Or do you take some time to lay An important aspect of the planning process is to review
out a testing approach? available documentation to identify initial questions and to
determine if critical information is missing. At this stage,
There is value in the planning process to better understand consider the optimal skill‐sets required in your testing team
the expectations, risks, timelines, and testing approaches. and identify subject‐matter experts to contact with questions.
Often people confuse test planning with heavy documenta‐
tion. A light‐weight approach can be adopted by balancing Layout
the amount of time spent planning and the size of the test Layout the test plan in a concise manner selecting a medium
plan based upon the project’s scope and risk level. that is most closely aligned with the project’s scope and risk
level.
To make the process easier,
translate the word “PLAN” Create the Test Plan
into four actionable steps: As you gather the information, start to create the test plan
Prepare, Layout, Analyze, using any word processing, spreadsheet, or online collabora‐
and Navigate. These steps tive tool. The specific tool selected can be a personal prefer‐
can help you plan and man‐ ence as each one has its pros and cons. When assembling the
age your next testing as‐ document, consider using tables and bullet points to make it
signment. easier to read and locate information.
Prepare Another avenue is the use of low‐tech options such as: a white
Prepare by gathering infor‐ board, an easel board, or a notebook allowing you to quickly
mation to form a foundational knowledge base. make changes and track progress. Whatever option is select‐
ed, keep the test plan concise to ensure it is used as a reference
Understand Expectations and Deliverables tool throughout testing.
In defining a testing approach, understand the purpose of the
assignment, the clients’ expectations, the deliverables and Analyze
associated deadlines. It is helpful to understand how the Analyze the information to identify risks, milestones, com‐
client will use the module, importance to their business, and munication, and testing approaches.
Review the Test Plan with Stakeholders
Bernice Niel
While developing the test plan, review the test approach with
Ruhland is a
the appropriate stakeholders to determine if anything impor‐
tant is missing and to gain buy‐in. It is better to discuss Software Test‐
differences earlier in the project than to try and bridge mis‐ ing Manager
communication at the end of the project. This does not have with more than
to be a formal review as sometimes a meeting discussing the 20‐years experi‐
approach is sufficient. The frequency and the timing of com‐ ence in testing
munications with the stakeholders are dependent upon the strategies and
scope and complexity of the project. execution, de‐
veloping testing frameworks, performing data vali‐
Navigate
dation, and financial programming. She devotes
Navigate through testing by referencing the test plan and
many hours to reading testing approaches adopted
adjusting approaches based upon new knowledge.
by other testers to challenge her own testing skills
Test Plans and Approaches Evolve and approaches.
A test plan will provide strategic oversight to manage your
testing assignment. Refer to the test plan periodically to When not exploring the testing world, Bernice en‐
ensure that the objectives and deliverables are being met; joys cooking and spending time with her husband
review identified risks to assess likelihood; and review mile‐ living a health‐conscious lifestyle. The opinions of
stones against the team’s progress for any corrective action. this article are her own and not reflective of the
When reviewing the test plan, continue to identify new risks company she is employed. Bernice enjoys interacting
and determine if there is a need to change testing direction. with other testing professionals and can be reached
at: http://www.linkedin.com/in/bernicenielruhland
A test plan evolves throughout testing because test approach‐
and http://twitter.com/#!/bruhland2000.
es are refined based upon additional knowledge gained
i n gC
Test
Red Cross hires IBM for software overhaul The testing phase for new software consists of three steps:
developing the tests, running the tests and evaluating the
IBM has secured a new contract with the Australian
results. These three steps are generally performed manually.
Red Cross Blood Service to work through the serviceʹs first
Model‐Based Testing is a method that automates all steps in
national overhaul of its critical blood management software.
the software testing process. When used properly, the method
The win sees IBM working as an implementation partner completely eliminates the need for manual software testing.
with the Blood Service to continue the roll‐out of its National
Model‐Based Testing has a number of major advantages: it
Blood Management System that kicked off in March.
makes the software testing process faster, cheaper and more
The system tracks the supply chain of blood products and accurate. It is not uncommon for manual software testing to
facilitates testing, inventory and distribution management take anywhere from several months to years. Van der Bijl’s
facilities for the serviceʹs red cell, plasma and platelet stock. new system can significantly reduce the duration of the
IBMʹs role as implementation partner will see the technology testing period and thus reduce costs. “We can reduce the
giant provide databases and software testing resources, and duration of the testing phase by at least thirty percent. We
will ensure legal and regulatory compliance of the system. were even able to reduce overall software development time
for one of our customers by a factor of four.” Model‐Based
ʺUpgrading the … software is essential for maintaining the
Testing is more accurate, because in principle there is no
efficient and effective operation of blood donation and blood
limit to the number of tests you run, says Van der Bijl. “If
product supply services for Australians,ʺ said Jennifer Wil‐
you want, you can even run a million tests.”
liam, CEO of the Australian Red Cross Blood Service.
If his system takes off, this could represent an enormous cost
ʺThis is the first software application upgrade on a nation‐
and time savings for software developers. In particular, I’m
wide scale to be undertaken by the Blood Service,ʺ said Anne
impressed that the software doesn’t just run the tests — it
Cheetham, IBMʹs associate partner and lead, Victorian Pub‐
actually develops them. Mr. Van der Bijl has also started a
lic Sector.
spin‐off company, Axini, to market the process.
Both IBM and the Blood Service declined to comment on the http://blogs.forbes.com/alexknapp/2011/05/18/researcher‐develops‐automatic‐software‐testing/
length and value of the new contract, which sees IBM add yet
another card to its healthcare deck — which contains other
prominent contract wins including a $23.6 million contract
with the National E‐Health Transition Authority (NEHTA).
Get your organisation’s testing
http://www.zdnet.com.au/red‐cross‐hires‐ibm‐for‐software‐overhaul‐339314714.htm
Researcher Develops Automatic Software Testing news published here. Write to us at
Machiel van der Bijl of the University of Twente has editor@testingcircus.com
developed a software package that eliminates the need for
manual software testing.
*News in Hindi Script.
www.TestingCircus.com May 2011 - 12 -
Test Idea Generation
‐ Riyaj Shaikh
e
t ur
F ea ing applications
ar
g ul ‐ Internal components: Libraries and other components that
i rcus Re are embedded in the product
in gC ‐ Run from Network installs. Check whether your app actu‐
Test ally runs ‐ some apps wonʹt, especially if the network share
is read‐only. What happens if the network is unavailable
Hello Readers, when you try to launch your app? What happens if the
This is my second article about Testing Ideas. Generating network goes down while the application is running?
Ideas can be more fun, enjoyable if you do it in a group. You
will find that everyone adds their experiences while discuss‐ Operations Based:
ing ‐ contributing to the richness of the topic. Earlier, I used ‐ Unattended installs / command line installs
to write ideas in random, but now I use heuristics and set of ‐ Mass installs via an enterprise deployment process like
oracles to generate those. I may be losing some better ideas by Microsoft system management server.
this approach, but I can assure myself that I covered all ‐ Minimum, typical, full and custom install. Verify that each
important topics. on will install correct files. Enables the correct functionality,
In this article the testing ideas/scenarios for Installation sets correct registry and configuration settings. Also try
testing are illustrated. All are based on Heuristics Test upgrading /downgrading between these types.
Planning: Context Model by James Bach. ‐ Install locally: Depending on how the setup was created, a
4 sub‐ types are covered: Installing, uninstalling, reinstall‐ custom install may allow the individual components to be
ing and upgrade of the application. installed locally, or to be run from a shared network location,
or to be installed on demand, or not be installed at all. If you
Installing the application: install one component locally, run another from the network
Platform based: and set a third to install on first Use, does everything work
‐ Installing on different Operating systems –Windows (98, correctly?
2000, XP, XP‐SP3, Vista, Win7), Mac, Unix ‐ Install on First Use installs: Check whether components are
‐ Installing from CD‐Rom/DVD‐ROM installed when they need to be (and not before), installed in
‐ Installing from/to network share the correct location (what happens if the destination folder
‐ Installing from local hard drive has been deleted?) and they get registered correctly.
‐ Verify app is working/installing correctly under remote ‐ Verify installs to deeply nested folder structures work cor‐
terminal , virtual terminal rectly.
‐ External required software: drivers, concurrently execut‐ ‐ Verify that all checks made by the installer (e.g., for suffi‐
Uninstalls and Re‐installs:
Multi‐User installation:
‐ Be sure that not only are all application‐specific/shared files
What happens when multiple users mess by modifying the
are removed, but that the registry and other configuration
setup configuration of your application?
changes are undone as well. Verify components/files which
are shared with other applications are/not uninstalled de‐
Network Setup:
pending whether any of the sharing apps are still installed.
Can you install your app from the network rather than a
Try out‐of‐order uninstalls: install app A and then app B,
local CD?
then uninstall app A and then uninstall app B.
‐ Reinstall after uninstalling the new and previous versions
Patches:
of your application.
‐ Patch previous versions. Patching is different from an
Do you have better ideas for installation testing? Can He can be reached at
you generate more Testing ideas on different topics? http://twitter.com/riyajshaikh or in his
You want to contribute for the next issue on test email riyajs@testingcircus.com
ideas? If yes, just write to us at
riyajs@testingcircus.com
e
t ur
F ea
a r
g ul
us Re
Circ
i ng
Test
‐ Rob van Steenbergen
Test Promotional Tip 7: Stay positive about test‐ Do not go along with the negative trend in a bad or
ing in your conversation and communication. Ra‐ difficult project
diate passion for the testing profession.
Fortunately, often you are not the only critical employee
This article is part of my other articles published in in a critical project. Especially at the end of a project
earlier Testing Circus issues: ʺ29 Tips to promote when the real exciting things start to happen, certain
testing in your organizationʺ people will be more negative about the software. If you
notice this negative behaviour in other people, you can
Stay positive about testing in every conversation you do two things: Agree that it is not so well, or bring this
have and in all your communication. Radiate a constant criticism on the project in perspective.
passion for testing.
The latter is very difficult, but youʹll have to try to bring
This is something that’s very difficult. As a tester you this in perspective in your daily communication. Youʹre
mostly will see the bad characteristics of a software the “expert of the software problems” and if youʹd start
product. And this is the subject where you think about talking in the negative sense, you will get a negative
the most and you will discuss these problems a lot in mark on you as a person and on the testing trade.
workplace because you’re mainly concerned to
communicate and give information about the problems Listen first, then think and then talk
that are encountered concerning a software product (or
IT system). In order to deal with this, it might be a good idea to stop
talking and listen more in conversations with colleagues
It can be difficult to keep a positive attitude when or in meetings. And if you still want to say something,
communicating about this. Though you should try to try to keep silent and listen to the critics. Listening to
formulate problems and approach this in a positive way. complaints and stories about troubles in a project,
whether these are product related or project problems,
Well, here he/she comes: “The tester. O my, what should can help you get a deeper understanding of the root
we do? Run?”. This is one of the reactions we should causes of these complaints.
try to avoid, although this is not always avoidable. As a
tester you will almost always communicate bad news. A good thing to do is discuss this type of complaints in
a one‐on‐one interview with the project manager or
Here are some tips in this area that may help you to not another colleague who is not involved in the project.
be ʺthe complainer of the projectʺ.
Doing this you can get insights from other people’s
perspective that you can use in your communication.
www.TestingCircus.com May 2011 - 17 -
For most cases there is a solution, but it often requires Testing is a great job!
keeping just a bit of distance, listen to other people, then If someone starts to complain about the tests you do and
think about how to communicate these perspectives to shows negative behaviour about the testing processes, it
your main stakeholders of your project. is often the lack of knowledge of testing, really.
Visit http://www.youtube.com/watch?v=aQJUtSbpquY
Send your answers directly to
Blindu Eusebiu ‐
testalways@testingcircus.com
Blindu Eusebiu is
a tester for more
than 5 years. He is
currently hosting
European Weekend
Testing.
He considers
himself a context‐
driven follower and he is a fan of
exploratory testing.
He tweets as @testalways. You can find
more interactive testing puzzles on his Names of puzzle solver will be published in the
website http://www.testalways.com
next issue of Testing Circus.
Send your answers to
testalways@testingcircus.com
Derk‐Jan de Grood
Thought leader in software testing. Author of books on software
testing, IT and ʹgiving presentationsʹ.
58 Following
169Followers
10 Listed
http://twitter.com/DerkJanDeGrood
Rob Lambert
Creative Director at Software Testing Club. Editor of The Testing
Planet. Test Manager at NewVoiceMedia.
http://thesocialtester.posterous.com/
1324 Following
1225 Followers
104 Listed
http://twitter.com/Rob_Lambert
AST
The Association for Software Testing: Advancing the understand‐
ing & practice of software testing via conferences, publications,
training, web sites & services.
http://www.associationforsoftwaretesting.org
0 Following
425 Followers
29 Listed
http://twitter.com/AST_News
http://Twitter.com/TestingCircus
www.TestingCircus.com May 2011 - 20 -
i t t e r
t T w
u sa
l l o w
Fo
i rcus
e st i ng C
m/T
r. co
t te
/Twi
h tt p:/
**This article was first published in http://thetesteye.com/blog/2011/05/testers‐greatest‐nemesis/
‐ Akanksha Talwar
Automation Tool Tutorial
Watch out for our next issues for a series of articles on Sahi Web
Automation Tool. By Narayan Raman
Test Automation is a hot topic in the world of software Start With Sahi
testing. Every company is looking for automation testers to Download Sahi from http://sourceforge.net/projects/sahi/
increase the effectiveness, efficiency and coverage of testing.
Automation is a way of smart testing which helps in Installation
delegating monotonous, repetitive or time consuming tasks. Double click on install Sahi v35_xxx.jar
It helps to reduce test cycle span and increase the test Or open a command prompt, navigate to where
coverage. If done correctly, automated software testing can the file is and run command
reduce the time to run repetitive tests from days to hours. Java –java install_v35_xxx.jar
“Sahi – a web application testing tool” has been developed by To check how to download the sahi go through
Narayan Raman. This article can be useful to the people who http://www.youtube.com/watch?v=34Zktf‐zsXU
are new to automation tools or are interested in exploring
Sahi to make testing more productive and effective. It will create icon on the
Desktop like
Introduction Double click on shortcut
Sahi is automation and testing tool for web applications. It created on the desktop
gives the facility to record and playback scripts. This tool
works on various browsers (e.g. – IE 9.0) which support Or
JavaScript. It is browser and Platform independent. Sahi
injects JavaScript into web pages using a proxy and the Go to start > All program >
JavaScript helps automate web applications. It uses Rhino as start sahi
its JavaScript engine and Rhino has excellent support for
handling XML. While recording and playing, Sahi does not
create junk scripts which normally are the case with other It will open the Sahi
Automation tools. It does not use xpath like Selenium. Dashboard which will show
all the available browsers in
your system. It will
www.TestingCircus.com May 2011 - 26 -
automatically configure the proxy setting on the browser
before invoking it. Or just enter the URL where you want to record and click on
Go.
Click on the browser which you want to choose. It will open
the browser as shown below: To configure the browser settings– click on configure on the
dashboard of the Sahi.
And it will open the
configuration file for Sahi.
To Record the script
You can also learn Sahi by using the sample application which
is present in the browser opened by the Sahi.
To View the script
The recoded script can be viewed and edited by opening the
.sah file in the <sahi_root>\userdata\scripts directory. Sahi
scripts are simple text files which use JavaScript syntax.
The script can be edited even while recording, so that logical
segregation into functions etc. can be done as recording
happens. To View Scripts from the controller, click on “View
Script” link at the bottom right of the controller.
Click ‘Set’. Wait for the page to reload. And click ‘Play’ References
Steps will start executing, and the Controller will be updated 1. http://sahi.co.in/w/
accordingly. 2. http://sourceforge.net/projects/sahi/
3. http://blog.sahi.co.in/search/label/Sahi
Once finished, SUCCESS or FAILURE will be displayed at
the end of the steps. Logos and trademarks used in this article are the property of
the respective trademark owners.
To view the Log
On the Controller, go to Playback tab and click on “View
Logs” link at the bottom right. It will open a window with
the results neatly formatted in HTML.
Assertion
Assertion is used in Sahi when we expect something and want
to verify that the actual result is same as the expected result.
To Add Assertion in the script
Click the “Assert” button to generate assertions for the
element. They will appear in the “Evaluate Expression” box.
Click “Test —>” to check that the assertions are true. You
can evaluate any JavaScript using “Evaluate Expression”
and “Test —>”. Actions performed via the Controller will Akanksha Talwar is a passionate tester from
not be automatically recorded. Only actions which are Bangalore. She is into testing from last 6 years.
performed directly on the page are automatically recorded. She loves to learn new things and likes to explore
This lets you experiment on the webpage at the time of new tools whenever she can. Akanksha has been
recording without impacting the script. involved in various testing communities. She
coaches trainees who are new to testing and wants
Once satisfied, click on “Append to Script”. This will add the to make long career in software testing.
assertions to the Script.
Click “Stop” to finish recording. Akanksha can be reached at
http://twitter.com/aku24
Every Software Engineer continues his state of chatting or forwarding mails until
and unless he is assigned work by manager.
The rate of change in the software quality is directly proportional to the payment
received from client and the deadline time, and it takes place at the quick rate as
and when deadline force is applied.
Bugs can neither be created nor be removed from software by a developer. It can
only be converted from one form to another. The total number of bugs in the
software always remains constant.
‐ Varada Sharma
Yet another day of her project’s user acceptance test phase Any relationship – friends, husband‐wife, parents‐kids, busi‐
and I see Debo looking as tired and frustrated as ever. “I left ness‐clients – relies on trust factor and trust comes from
at 9.30 pm last night, was on phone with onsite till 11 pm meeting each other’s expectations. Setting expectations right
and awoke with a phone call from onsite at 7 am this morn‐ is crucial if you are going to meet the party’s expectations at
ing. I am quitting this job as soon as this testing ends. Feels all. Here are my top 3 golden rules to setting the “right”
like people here don’t trust testers for doing their job right!” expectations:
she frowns while sipping tea.
a. State clearly what you are going to do: “I’ll pick you
As we get into details of how things are going so bad with her, up”, a mother might tell her daughter. But it leaves
I end up pointing out that as a test lead (and neither the room open for many differences that can arise due to
product owner nor UAT co‐ordinator), it is not her job in the
this statement. “At what time?”, “From where?” are
first place to be available to onsite for discussing issues. I
two obvious things that can be misunderstood. Imag‐
advise her to tell politely but firmly that she should not be
contacted after office hours for discussing issues that arise. ine what happens if mom waits at the school gate, but
the girl is waiting at the bus stop.
“It is all about
setting expecta‐ This is also a common scenario in business (especially
tions right. software industry!). People walk away from the same
Quitting your meeting understanding entirely different things. The
job is a tempo‐ client is thinking he is getting the requirement built
rary solution. this month, the developer is thinking next month.
What guarantee
do you have that State clearly, repeat and ask the other person to summa‐
you won’t land rize at the end of conversation to make sure your
up in same situ‐
point has made it across correctly.
ation in your
new job?”, I b. State clearly what you are not going to do: If there are
countered.
certain things that you know, you won’t do, state
that. Explicitly.
Yes, these things are easier said than done, at times. But then,
your peace of mind is well worth these efforts, isn’t it?
Parimala Shankaraiah has seven plus years of experience in testing as well as
mentoring teams of software testers. Apart from testing that she is most
passionate about, she loves to mentor upcoming testers and students. She
writes frequently about her testing experiences at Curious Tester.
She is also a regular contributor of articles on testing and issues concerning
testing. Her hobbies include reading books, blogs, magazines etc. She is a great
foodie and a self‐confessed emotional overeater who eats to beat every emotion
in the world.
sponsors
€195
with contribution of
ion f
only ee
on Test Automation Day 2011! Participation fee for
readers of Testing Circus is only E195,-!
for r ,‐
Registration: www.testautomationday.nl Test eaders of
ing C
Discountcode: TAD2011_TECI ircus
Congresorganisatie