How to pass parameters into an action.Please explain me
with examples

Answer Posted / rayudu

Thanks for your reply Deepak! But my question is not that.
By using Action Parameters.EX: I would like to enter the
values in Parameter tab of the Action properties.



Name type Defaultvalue description
A Number 25 First value
B Number 30 Second value

My question is How should validate these values in a script
c=int(a)+int(b)
I am calling this action in another action like
RunAction Action1,Oneiteration
But it did not resulted 55.
I know how to pass parameters through datatable.
Please answer it if u know

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

The hybrid framework can be implemented for any application. Is it true?

590


Problem with XML checkpoint in QTP ?

3505


Do you know SQL? I know SQL but i don't have any experience...that's it..No more questions ...simply he said " you can leave for the day" ...guys prepare SQL Quires before attending interview in bank of america...

1317


Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?

1526


Explain the use of action split in qtp?

567






What is quicktest professional window?

565


1.How to record ,capture and also script to capture the close buttons. 2.How to record ,capture and also script to capture the options ---File ->save and File ->close in a browser and PDF files. 3.How to compare the Excel sheet values in a report using QTP scripting. 4.How to compare 2 PDf reports using QTP scripts as well reording. 5.How to compare 2 Excel reports using QTP scripts as well reording. 6.How to save a PDF report to a folder and then translate the report to an Excel type of report and compare that Excel Report with an other excel report. Please clarify me

1600


what are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?

1449


An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?

573


What is the short cut keys for the following?

649


Generic function to search for the unique link in webtable and click on it

2488


Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.

3014


Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter

2202


How to connect to a database?

579


Where you are storing your script?

633