QTP

0 views
Skip to first unread message

Sundar

unread,
Oct 16, 2008, 1:01:34 AM10/16/08
to QTP - HP Quick Test Professional - Automated Software Testing
is there any possible to check the check point in If statement.

For example, if checkpoint is true it should execute some set of
statements
else execute another set of statements

Sundar

unread,
Oct 16, 2008, 1:03:08 AM10/16/08
to QTP - HP Quick Test Professional - Automated Software Testing
How to pass the value from one action to another action and how to get
the value from one action

Hokrani

unread,
Oct 16, 2008, 1:15:18 AM10/16/08
to Mercu...@googlegroups.com
Suppose u want Pass 'Val1'  to Script1 and get value for 'Val2' from
Script1. Use the following steps.

Open Script1 script,
Go To Action Properties,
In Action Properties pop up window, click on Parameters tab
Click on '+' mark against Input parameters
Enter 'Val1' in Name text field
Same thing u defined in Val2 in Output Parameters section.

Now Use following code to pass and get value from Script1
Dim Val1,Val2
Val1=123
RunAction "Scrip1", oneIteration,Val1, Val2
Msgbox Val2.

To read value for Val1, then use the following code in Script1
Msgbox Parameter("Val1")

To assign value for output parameter, use the following code in Script1
Parameter("Val2")=2334

-Hokrani

suresh chowdary

unread,
Oct 16, 2008, 1:24:11 AM10/16/08
to Mercu...@googlegroups.com
' This is the Script
 
Val =  Dialog("Login").WinButton("OK").Check(CheckPoint("OK"))
 
if Val = True Then
   ' Set Of Statements
    Msgbox "This is Suresh Chowdary"
else
    Msgbox "Check Point Not Passed"
End if
 

 

urs_Suresh

Sundar

unread,
Oct 16, 2008, 5:02:46 AM10/16/08
to QTP - HP Quick Test Professional - Automated Software Testing
is there any possible to get the value from data table at run time.

Sundar

unread,
Oct 16, 2008, 5:08:37 AM10/16/08
to QTP - HP Quick Test Professional - Automated Software Testing
What are the steps we have to follow to add new object(Example:
button, text box...) in script and in repository by using script?

lakshmi jyoshna

unread,
Oct 16, 2008, 5:27:31 AM10/16/08
to Mercu...@googlegroups.com
By using parameterization we can get it right?

lakshmi jyoshna

unread,
Oct 16, 2008, 6:32:33 AM10/16/08
to Mercu...@googlegroups.com
in qtp 9.2 go to Resources->OR*(or press Ctrl+R)
 
In OR dialog box go to Object->Add Object
Then click on the object what you want to add
thats all

On Thu, Oct 16, 2008 at 2:38 PM, Sundar <sunda...@gmail.com> wrote:

What are the steps we have to follow to add new object(Example:
button, text box...) in script and in repository by using script?





--
Jyoshna
Reply all
Reply to author
Forward
0 new messages