How u call functions in QTP Function to calculate the
length of characters in a wor
Answers were Sorted based on User's Feedback
Answer / alok
Please use the following steps:
str="QTP"
A=len(str)
msgbox A
o/p
3
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / dhanasekar
calculatelength("this is to test")
function calculatelength(string)
calculatelength = len(string)
End Function
Regards,
Dhanasekar S
http://testingideas.wordpress.com
Is This Answer Correct ? | 3 Yes | 1 No |
What is the exact difference bet function and action in QTP Anybody can explain it in detail..Thanks in advance..
suppose im having a string wipro123xyz i need to get the value 123 only from the string today 123 will be in the middle from tommorow it will be changing to front or back how to get the no if it changes continously?
Hi, Can any one explain what is mean by Driver Script? is it AOM?
How can you quit from Action.
Hi Can u plz suggest who is the Best Faculty for Advanced QTP Scripting in Hyderabad ,plz suggest me..... or send me a replay to satheesh.goli@gmail.com, r make me a call 9866335752
How the objecs properties are identified?Tell me in Hierarchical order?
What is wrong in my code?
what is the difference between function and subroutine ....here every one knows theoretically...here my QUESTION IS WHAT IS THE MEANING OF FUNCTION CAN RETURN A VALUE AND SUB CAN NOT RETURN A VALUE .....WHAT DOE'S IT MEAN FUNCTION CAN RETURN A VALUE HOW FUNCTION CAN AND SUB CAN'T ....GIVE A EXAMPLE FOR BOTH ....HOW IT CAN AND CAN NOT...HELP ANDY ONE....
Hi! Using Descriptive Programming How do we get Parent object for an object. Say, i want to get a parent object for a "Link" in a web page. thanks
how can you select random value for every iteration from a weblist
what is a test strategy & what is the difference between test strategy & test plan?
How to open any application during Scripting in QTP?