How u call functions in QTP

Answer Posted / charan

syntax for function
fun <fun name>(arg1,arg2)
<statements>
end
for example if u want to call mul(3,6)
call mul(3,6)
function mul(a,b)
mul=a*b
end

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When do go for loop condition in test?

654


What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

1506


I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.

1729


How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?

614


Explain the concept of object repository & how qtp recognizes objects?

572






What are the types of environment variables in qtp?

547


How can I check if a environment variable exist or not?

543


Hi Friends, How many types of Data Bases available in market... What is the diff. while using Syabase and Oracle in a Project... ? and what is the main diff. of Syabase and Oracle databases... ? Thanx in advance..

1522


How to add verification steps to tests?

9130


How u will do versioning in QTP?

1462


Did QTP prove efficient for your project? Yes or No, explain?

6119


explain abt dyanamic changing object with example?

1904


Hi. I have completed B.TECH(CS) , But I will go to "SECURITY CONSOLE OPERATING" [C.C CAMERA abservation]. IF interviwer asks " Why you choose this job ?" What we will say? urgent.........................urgent...........

1445


Where you get the run time data table?

589


how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps

1677