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
What are parameterizing tests?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
when will you do debug your script? and explain that process?
How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.
How can I import environment from a file on disk?
Explain data driven framework?
What are the different types of recovery operation?
Could anyone help me for the below scenario: i am using the descriptive programming for my account, in which we have to generate the contract in the MS-word. when i generate this doc, we need to click on enable macros to continue further. but i am unable to make qtp to click on this. if anybody faced the problem like this??? pls help to get it resolved? Thanks in advance
How do you test DLL files using automation Tool QTP?
what could go wrong with test automation?
Why is Client side image is preferred over server side image?
What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?