QTP - Wait for web page to load completely

 There are instances when there isn't any unique property or object to check on the landing page during a browser navigation, in such cases we can use either of the below options to code:

set objReadyState = Browser("").Page("").Object
While objReadyState.readyState = "Completed"
Set Object=nothing

Set Object=Browser("").object
While Object.Busy=True
Set Object=nothing

Happy Testing!


Code to get tagnames and values from an xml

In continuation from the previous post where we try and get the attribute values from an xml, here is the code where we get the tag names and its values :

Const xmlFile1= "C:\Test.xml"
Set xmlDoc1 = CreateObject("Msxml2.DOMDocument")
set nodes1 = xmlDoc1.selectNodes("//*")
for i = 0 to nodes1.length -1
        tagname1 = nodes1(i).nodeName
        val1 = nodes1(i).text
        If  tagname1= "test" Then
                msgbox tagname1
                msgbox val1
                Exit for
        End If

Hope this helps , happy testing!


Golden Rules for Career Success - Richard Moran

Loved this article and thought its apt for the skillset label on my blog , so here it is for the benefit of others:

WORKING as a business consultant all over the world, I have discovered some basic career-related rules that everyone should know but many don’t.

  • Business is made up of ambiguous victories and nebulous defeats. Claim them all as victories.
  • Keep track of what you do; someone is sure to ask.
  • Be comfortable around senior managers, or learn to fake it.
  • Never bring your boss a problem without some solution.
  • You are getting paid to think, not to whine.
  • Long hours don’t mean anything; results count, not effort.
  • Write down ideas; they get lost, like good pens.
  • Always arrive at work 30 minutes before your boss.
  • Help other people network for jobs. You never know when your turn will come.
  • Don’t take days off sick unless you are.
  • Assume no one can / will keep a secret.
  • Know when you do your best morning, night, under pressure, relaxed; schedule and prioritize your work accordingly.
  • Treat everyone who works in the organization with respect and dignity, whether it be the cleaner or the managing director. Don’t ever be patronizing.
  • Never appear stressed in front of a client, a customer or your boss. Take a deep breath and ask yourself: In the course of human events, how important is this?
  • If you get the entrepreneurial urge, visit someone who has his own business. It may cure you.
  • Acknowledging someone else’s contribution will repay you doubly.
  • Career planning is an oxymoron. The most exciting opportunities tend to be unplanned.
  • Always choose to do what you’ll remember ten years from now.
  • The size of your office is not as important as the size of your pay cheque.
  • Understand what finished work looks like and deliver your work only when it is finished.
  • The person who spends all of his or her time is not hard-working; he or she is boring.
  • Know how to write business letters including thank-you notes as well as proposals.
  • Never confuse a memo with reality. Most memos from the top are political fantasy.
  • Eliminate guilt. Don’t fiddle expenses, taxes or benefits, and don’t cheat colleagues.
  • Reorganizations mean that someone will lose his or her job. Get on the committee that will make the recommendations.
  • Job security does not exist.
  • Always have an answer to the question, What would I do if I lost my job tomorrow
  • Go to the company Christmas party. Don’t get drunk at the company Christmas party.
  • Avoid working at weekends. Work longer during the week if you have to.
  • The most successful people in business are interesting.
  • Sometimes you’ll be on a winning streak and everything will click; take maximum advantage. When the opposite is true, hold steady and wait it out.
  • Never in your life say, Its not my job
  • Be loyal to your career, your interests and yourself.
  • Understand the skills and abilities that set you apart. Use them whenever you have an opportunity.
  • People remember the end of the project. As they say in boxing, always finish stronger than you start.
Hope you enjoyed reading it!


Skillset - Test Automation Developer

In continuation of my previous posts that are tagged "Skillset" , Here is what a company is looking for when they want a "Test Automation Developer"


The Test Automation Developer will build and execute test automation scripts using QTP, Selenium, Macro or Mobile automation test tools for functional system integration and business acceptance testing under multiple platforms and cross-browsers.


• Write automation test plans & strategies, convert & or write test scripts, perform test execution, provide result documentation & metrics reporting.
• Build automation framework in QTP
• Collaborate with Quality Assurance Analyst – subject matter expert to gather requirements for automation development and provide guidance to execution of scripts
• Provide technical knowledge on multiple projects simultaneously.
• Solid written and verbal communication skills
• Proven automation development experience
• Proficient in testing functionality of a Web and Mobile based applications.
• Must be resourceful, proactive, self-starter, able to work alone & as a team player in a dynamic environment.


• Software QA experience: 3 – 6 years
• Quick Test Pro (QTP) experience: 3 – 6 years
• Quality Center experience: 3 – 4 years
• Working knowledge of quality assurance methodologies and Software Development Life Cycle
• Experience building the automation frameworks in QTP
• Solid SQL skills
• Database and Back-End as well as end-to-end testing experience.
• HP QTP 10 with Web Add-on
• HP QualityCenter 10
• Selenium IDE
• VBScripting
• Descriptive Programming (Scripts from Scratch)
• SQL Server or Oracle database
• SQL Query
• VBS Macro
• MS Office.