Write a Script to add matrx in VB Script
In general matrix
addition is defined for two matrices of the same dimensions. The sum of two m
× n (pronounced "m by n") matrices A and B, denoted by
A + B, is again an m × n matrix computed by adding
corresponding elements:

Working with Actions in QTP
Actions:
I) Actions
are very similar to functions. Except few differences rest of all are same.
II) Action
is a set of logical related statements.
III) Actions
help to divide a lengthy script into smaller script.
IV) Based on
the order in test flow execution of Actions happens sequentially.
v) For every
Action or sub action one Object Repository will create.
How to
insert an Action
Actionà Call to new Action
If two
actions are called from test then those actions are set to be independent
actions.
If two
actions are called within the Action, then those two Actions set to be nested
Actions.
Action is a
collection of VB statements in QTP. It does not return any values.
We can’t call
actions within the functions.
Generally
Actions will save with “.mts “
By default
QTP records all steps into an Action.
Actions can
contain Object Repository, Data Table, and Active Screen etc.
Actions are
two types
1)Reusable Actions
2)Non Reusable Action
1)Reusable Actions
2)Non Reusable Action
1) Reusable
Actions: We can Reusable Action Script in other test. They can be used in the
same test script multiple times.
How to
create Reusable Actions
By default
all Actions are Reusable Actions Only.
Actionà Call to new Action
2) Non Reusable
Actions: Non Reusable Actions cannot be used in other script. They can be
called the same script only once.
How to
create Non Reusable Actions:
Actionà Call to new Actionà check Non Reusable
Action
In Actions
there are two methods to import Scripts in to a code. Call to
1) Call to Copy Action
2)Call to Existing Action
2)Call to Existing Action
1) Call to
Copy Action: When we make a copy of an Action the Action is copied in its entirety,
including checkpoints, Parameterization and datatable into calling test. When
we insert a copy of an Existing Action we can able to make changes to the
copied Action. And our changes will not affected by the original script and any
other test. We can insert both Reusable Actions and Non Reusable Actions.
How to create Call to Copy Action
Click on
Edità Call
to Copy
2) Call to
Existing Action: Call to Actions is read only in the calling test. They can
only be modified in the test in which they were created. In Call to Existing Action we can insert only
Reusable Actions.
How to
create Call to Existing Action
Click on
Edità Call
to Existing
Check Points
Checkpoint: is a method used to check
the content before and after the step, i.e. it is used to compare the expected
value with the actual value displayed in the application, these checkpoints can
be customized according to the requirements.
The checkpoint can be added
while recording the application or it can be added after the recording is
completed using Active screen (For adding Checkpoint after recording the Active
screen must be enabled while recording)
Once the checkpoint is
added, the QTP adds a checkpoint to the current row in keyword view and adds a
checkpoint statement to the expert view.
The types of checkpoint are,
1)Standard Checkpoint:
The standard checkpoint
checks the object property values in an application or a webpage.
It checks objects like
Radio buttons, combo boxes, images, Tables, Web page properties, links etc.
The Table checkpoint can be
used to check all the values in the table, it can be created by inserting
standard checkpoint on the table.
The page checkpoint can
also create by inserting standard checkpoint on the object; the page check
point can be used to check the time taken to load a webpage.
2)Bitmap Checkpoint:
The Bitmap checkpoint can
be used to check an area of a webpage or an application as a bitmap. It checks
that particular area by pixel to pixel comparison between actual and expected
images.
3)Image Checkpoint:
The Image checkpoint is
used to check the properties of an image in the application or a webpage like
verifying the selected image source file is correct or not.
The difference between
Bitmap checkpoint and Image checkpoint is in Bitmap Checkpoint we can check the
images on pixels basis where in Image checkpoint it cannot be done.
4)Text Checkpoint:
The Text checkpoint is used
to check the expected text from an application or a web page. It can be a
specific region or a small portion of the text displayed.
5)Database Checkpoint:
The Database checkpoint is
used to check the database accessed by the application.
This checkpoint creates a
query during record time and the database values are stored as the expected
values. The same query is executed during run time and the actual &
expected values are compared.
6)XML Checkpoint:
The XML checkpoint checks the data content of XML documents in XML files or XML schema related to the webpage.
The XML checkpoint checks the data content of XML documents in XML files or XML schema related to the webpage.
VB Script Programs
Write a script to Swap 2 numbers without a temporary variable
Write a Program to find Greatest Number among Three Numbers
Write a Program to find Greatest Number among Three Numbers
Write a Script to find whether given year is a leap year or not?
Write a VB Script to Print odd numbers between given range of numbers
Write a Script to Print Even numbers between given range of numbers
Write a program to reverse given string
Write a program to perform specified Arithmetic Operation on two given numbers
Write a VB Script to Print odd numbers between given range of numbers
Write a Script to Print Even numbers between given range of numbers
Write a program to reverse given string
Write a program to perform specified Arithmetic Operation on two given numbers
Write a Program to find the total Sum of a given Number
Write a VB Program to find weather the given Number is a Prime or not
Write a VB Program to find weather the given Number is a Prime or not
Subscribe to:
Posts (Atom)