Monday, January 14, 2013

How to choose Testing Tool or Feasibility Study on Automation

Hi

Sometimes, we need to choose testing tool for our applicaiton or require to do feasibility study on testing tool for automation. Here, I have mention some points on it , if you people find something more write in comments so i can also learn from it.
  • feature of tool
  • scope and limitation of tool
  • type of testing to be conducted
  • client budget
  • trained/skilled resource
  • application to be tested compitable with tool
  • cost of tool
  • project / test environment
Thanks
Trupti

Difference between Array and Dictionary Object in QTP

Difference between Array and Dictionary Object
  1. Dictionary cannot be multidimension, while an array can be multidimension
  2. Dictionary has extra methods to add new item and check for existing item (Add, Item)
  3. when you delete particular item from dictionary, all subsequent item automatically shift up.

About Dictionary Object

Folks,

Here is some informaiton about Dictionary Object.
  • Dictionary object stores name/value pairs in an array.
  • It has property like count, item, compare mode,key etc
  • It has method like add, exist, keys,items , remove, removealletc.
  • It has event like initialize
example,
dim beers
set beers = createobject("scripting,dictionary")
beers.Add "a","val1"
beers.Add "b","val2"
msgbox ("value of b" &beers.item("b"))

Advantages
> can be use as global variable declaration, so that any test can access the values from it in the run time
> you can store and retrieve any number of run time values into dictionary
> it is one of the parameterization technique in QTP

Disadvantages
We can not specify the values in design time like datatable environment variable action parameter
So it is useful only run time not design time

Thanks,
Trupti

Tuesday, October 16, 2012

Step Generator

Step Generator

Step Generator is a feature of QTP, library of functions, used for generating the recordable and non recordable steps.

Insert Menu > Step Generator
Shortcut - F7

User needs to select Category ( test object, utility object, functions) and required object or the function library. We can then select appropriate operation (Method, property or function) and define argument and return values, parameterizing them if required.

Step generator can be open from Keyword View, Expert View and Active screen.