how do you find the number of occurences of string QTP from the expression , " QTP+QTP=2QTP"

Answer Posted / lavanya

Str = "QTP+QTP=2QTP"
for i=1 to len(str)
amid=mid(Str,i,3)
Msgbox amid
if amid = "QTP" then
cnt=cnt+1
end if
Next
MsgBox cnt

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

For which type of project the iterative model is suitable?

1372


If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?

1735


Describe the differences between functions and actions in UFT?

602


Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this

2053


What are the types of object repository in qtp?

559






RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?

2170


What are the ordinal identifiers in web page?

628


What is parameter in qtp?

674


Explain the views in the QTP GUI?

615


Where we can use the analog mode and where we can use the low – level mode?

564


What are the common defects found in your project? (in qtp interview)

1608


I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You

1518


How you debug your script?

558


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

564


Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?

1677