05-03-2012, 01:03 PM
Hi All,
I have been working with QTP for sometime. Recently we have been asked to move all our script to QC BPT. As i am very new to BPT i am not sure how to do the below task.
Till now we have been writing scripts using function. We use to return True/False value to function and in the script we chek for the return value. If the return value is False the script will exit the iteration. I am finding it difficult to achieve in BPT. i created a component with a output parameter which returns True/False. I want to make use of this parameter as a conditional statement to call other component. how is that possible?
Let me give one example..
Component1 --- "BPT LOgin" - this has an output parameter as return.
once the execution is done, i need to check the output parameter value.. something like
Please help me achieve this.
Thanks,
Ankesh
I have been working with QTP for sometime. Recently we have been asked to move all our script to QC BPT. As i am very new to BPT i am not sure how to do the below task.
Till now we have been writing scripts using function. We use to return True/False value to function and in the script we chek for the return value. If the return value is False the script will exit the iteration. I am finding it difficult to achieve in BPT. i created a component with a output parameter which returns True/False. I want to make use of this parameter as a conditional statement to call other component. how is that possible?
Let me give one example..
Component1 --- "BPT LOgin" - this has an output parameter as return.
once the execution is done, i need to check the output parameter value.. something like
Code:
if Parameter("Return")=False then
'Call to logoff Component and exit
Else
'Perform some operation
End IF
Please help me achieve this.
Thanks,
Ankesh