How to set the function parameters as optional.
Pls anybody can give the answer.. Thanks in advance...
Answers were Sorted based on User's Feedback
Answer / uday kumar_anem
As far as i am aware, there is no keyword for optional
parameters in VBScripts.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / saroj
In function parameter you can't use optional option. But
you can mark the statements inside the function as optional
by putting keyword "OptionalStep" before the statement.
ex:
Function login(name,passwd)
OptionalStep.Brw("login").Webedit("name").set name
Brw("login").Webedit("passwd").set passwd
Brw("login").Webbutton("ok").click
End Function
This may help you.
Is This Answer Correct ? | 0 Yes | 0 No |
How many regression test suits in your appliction?
Hello Everyone, In QTP we have one option Data Driver wizard that comes in Tools -> Data Driver. so, please tell me abtout the use of Add Value and Parameterize options available in Data Driver wizard. And also the concept of value, constants, Parameterized displayed in the wizard. Please explain by giving the example. Thanks in advance, Gaytri
why can't you use excel directly in qtp. why we want to import excel data into Datatable.
what is the diffrence bw qtp architectute and qtp framework?
how to reverse a string with out using string or predefined function,ex:string is " i love india". the output should be like this "i evol aidni"
How to identify the child window. In my case while recording, When i open new window and give checkpoint for some control and when i run that script QTP give error like" can not identify the object" Is there any method or solution to handle child window issue Note: In my apllication i have to check child window of child window also ( multiple windows open )
can any one say that where we can download the QTP trail version ??????????
What is the limitations of BVA?
How to handle dynamic objects in QTP?
What is the recovery scenario in qtp?
what is Entry Criteria and Exit Criteria?
I Scheduled a QTP Script on remote desktop. Script is going to failure,when remote desktop connection fails.I have to open my remote desktop untile the scripts exection completes. If I disconnect my remote desktop connection, script is going to fail.?