vikas kumar choubey


{ City } bangalore
< Country > india
* Profession * software test engineer
User No # 93606
Total Questions Posted # 2
Total Answers Posted # 10

Total Answers Posted for My Questions # 2
Total Views for My Questions # 5956

Users Marked my Answers as Correct # 24
Users Marked my Answers as Wrong # 9
Questions / { vikas kumar choubey }
Questions Answers Category Views Company eMail

Join the multiple array with out using JOIN function

1 VB Script 2062

Find Out Length of an array without using Ubound?

1 VB Script 3894




Answers / { vikas kumar choubey }

Question { Accenture, 74804 }

what is descriptive programming in QTP? How can be done?


Answer

It doesn’t require recording the page and so no need
worry about object repository.
You can optimize your code.
Before starting descriptive programming you need to know
about object properties and their values, using object spy
you can see each object’s properties.

DP can be written in two ways..

1. Static (by provide the set of properties and values directly)
2. Dynamic (by creating description object)

Is This Answer Correct ?    0 Yes 0 No

Question { Ordain Solutions, 40463 }

What is keyword view and Expert view in QTP?


Answer

Expert View:In expert view QTP will display the test statement.
In Keyword View QTP script will display in Tubular Format.

Is This Answer Correct ?    1 Yes 0 No


Question { 26225 }

How many ways we can parameterize data in QTP ?


Answer

Parameterization can be possible in the following ways
1:local data sheet
2:Environment Variables
3:DataTable
4Random Variables
5.Dynamic Array
6.Dictionary Objects

Is This Answer Correct ?    5 Yes 1 No

Question { Accenture, 66126 }

How to use Regular Expressions in QTP? give an example.


Answer

Some Times QTP does not recognize the application object
during second run Or it run first time successfully then
QTP gives an error cannot identified the application Window
object properties does not match with the test object. There
might be a case of window name /object name is getting
changed each time. Here we required the use of regular
expression

During Recording of Flight application QTP record the
flight application it identified the Fax order window name
property like this

It Text Property is Fax order 11

If you run this script Again it will give an error because
Fax order Window name will be

Fax order 12
Cannot identify the object “Fax Order No. 11″ (of class
Dialog). Verify that this object’s properties match an
object currently displayed in your application.

Line (1): “Window(“Flight Reservation”).Dialog(“Fax Order
No. 11″).Activate”.
Check regular expression check box A message will appear
click NO. Now change Text box value according to Regular
expreesion.

Fax Order No. 11 to Fax Order No.*

Here each time only last part getting changed here we use .*
as regular expression means it will check only Fax order No
text not whole string

Same case we can apply for different object properties if
they are getting changed

A regular expression is a string that describes or matches a
set of strings. It is often called a pattern as it describes
set of strings

Is This Answer Correct ?    3 Yes 0 No

Question { 25715 }

Synchronozation types in QTP


Answer

Different methods in QTP for Synchronization:

1. Wait statements.
2. Exist Statments.
3. Sync Method (Only for WEB).
4. Inserting Synchronization points.
5. Increasing Tool default synchronization time.

Is This Answer Correct ?    0 Yes 0 No

Question { Wipro, 25501 }

What is object identification?


Answer

Object Identification: -
QTP’s object identification concept is based on 4 types of
properties and an ordinal identifier.
Types of properties:
• Mandatory properties
• Assistive properties
• Base Filter properties
• Optional Filter properties
A test engineer can specify list of mandatory properties,
assistive properties, base filter properties, optional
filter properties and ordinal identifier.
Ordinal Identifiers: - There are 3 types of ordinal identifiers.
1. Location
2. Index
3. Creation Time


1. Location: If at all the Location is selected as an
ordinal identifier then the QTP will generate the sequence
of numbers from 0,1,2,… based on the sequence of the objects
located in the application.
2. Index: If at all the index is selected as an ordinal
identifier then the QTP will generate the sequence of
numbers from 0,1,2,… based on the sequence of the programs
of the corresponding objects.
3. Creation time: If at all the creation time is selected as
an ordinal identifier then the QTP will generate the
sequence of numbers from 0,1,2,... based on the loading time
of a web page

Is This Answer Correct ?    2 Yes 3 No

Question { 25782 }

what are the areas that cannot be tested using an automated
tool? list a few


Answer

o Dynamically changing functionality
o Test cases that require more Human interaction
o CUI (command user interface) based test cases
Does QTP support the technology used to build your
application? Now this is the first thing that needs to be
checked. There are certain programming languages such as C++
that are not supported by QTP. Hence if yours is a C++
application then QTP is not for you.
Do your Test Cases require Manual Intervention? Consider
an end to end order creation test case where once the order
request is placed, manual intervention is needed to help
flow the order from one system to another. Its always better
not to automate such cases.
Does your Test Case needs to be checked in multiple
Browsers? There are many browsers such as Chrome, Netscape,
Safari etc that are not supported by QTP. Hence if you want
to check your test cases in any of these browsers, QTP
wouldn’t be of any help to you.
Some things just can’t be fully automated. Consider a
scenario where you need to place an order and verify that an
sms is sent to the concerned person. Such test cases can’t
be automated completely. Though it can definitely be argued
that the scenario can be partially automated.

Is This Answer Correct ?    7 Yes 1 No

Question { LG Soft, 31008 }

How many types of Parameters are available in QTP? and Pls
Explain with example.


Answer

Parameterization

A parameter is a variable that is assigned a value from an
external data source or generator.

You can parameterize values in steps and checkpoints in your
test or component. You can also parameterize the values of
action parameters.

You can use the parameter feature in QuickTest to enhance
your test or component by parameterizing the values that it
uses.

If you wish to parameterize the same value in several steps
in your test or component, you may want to consider using
the Data Driver rather than adding parameters manually.

There are four types of parameters:

Test, action or component parameters enable you to
use values passed from your test or component, or values
from other actions in your test.

In order to use a value within a specific action, you
must pass the value down through the action hierarchy of
your test to the required action. You can then use that
parameter value to parameterize a step in your test or
component.

For example, suppose that you want to parameterize a
step in Action3 using a value that is passed into your test
from the external application that runs (calls) your test.
You can pass the value from the test level to Action1 (a
top-level action) to Action3 (a child action of Action1),
and then parameterize the required step using this Action
input parameter value (that was passed through from the
external application).

Data Table parameters enable you to create a
data-driven test (or action) that runs several times using
the data you supply. In each repetition, or iteration,
QuickTest uses a different value from the Data Table.

For example, suppose your application or Web site
includes a feature that enables users to search for contact
information from a membership database. When the user enters
a member’s name, the member’s contact information is
displayed, together with a button labelled View ’s
Picture, where is the name of the member. You can
parameterize the name property of the button so that during
each iteration of the run session, QuickTest can identify
the different picture buttons.

Environment variable parameters enable you to use
variable values from other sources during the run session.
These may be values you supply, or values that QuickTest
generates for you based on conditions and options you choose.

For example, you can have QuickTest read all the values
for filling in a Web form from an external file, or you can
use one of QuickTest’s built-in environment variables to
insert current information about the machine running the
test or component.

Random number parameters enable you to insert random
numbers as values in your test or component. For example, to
check how your application handles small and large ticket
orders, you can have QuickTest generate a random number and
insert it in a number of tickets edit field.

Is This Answer Correct ?    3 Yes 2 No

Question { 22253 }

What is the difference between Image Checkpoint and Bitmap
Checkpoint?


Answer

For Bit map Chkpoint we need not have any image, It goes by
the screen area.

But for image chk point we need to have an image.

Is This Answer Correct ?    0 Yes 1 No

Question { HP, 3719 }

I have a webtable and many objects are embedded in side.(like
buttons,checkboxes etc). How to know how many such objects are
there? what is the class of that objects?


Answer

through childobjects

str=Browser().page().childobjects
msgbox str.count

Is This Answer Correct ?    3 Yes 1 No