How u call functions in QTP Function to calculate the

length of characters in a wor

Answers were Sorted based on User's Feedback



How u call functions in QTP Function to calculate the length of characters in a wor..

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

How u call functions in QTP Function to calculate the length of characters in a wor..

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

Post New Answer

More QTP Interview Questions

In QTP how can we recognize objects Without using Object Repository?

3 Answers   IBM, Wipro,


what are inputs for automation?

3 Answers  


What is log file? what is the use of Log fine. How to create? what are the contents and the main advantages of log files. plz do help me in this concepts as i have an interivew on qtp in a couple of days. plz do help me.. thanks in Advance.

1 Answers  


Hi let me ask one questin 1.How to use outputof the one function input to the another function pls give the script for above 2.what is the purpose of action parameter , how to create it

2 Answers  


Object Repositories types, which & when to use?

3 Answers   Crea,






Once we get the Test Result from QTP.,I Have to convert into Excel file format..Is it possible..Can any gudie me regarding this... For Example : Total Test Case is : XXXXX Test Case passed : XXX Test Case Failed : XXX -------- Total XXXXXX ---------

6 Answers  


How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?

0 Answers   CTS, Nabard,


we have 10 automation scripts. how to call them from one main script.

2 Answers  


how do pass parameters from one action to another action

2 Answers  


what is reusable action and how the same can be implemented (process)?

2 Answers  


If there are 10 notepads opened on desktop. how can we close a particular 2nd notepad using script

3 Answers  


what is the frame work your using in automation ?

4 Answers  


Categories