dialog("Login").WinEdit("Agent Name:").CaptureBitmap"C:\sample.bmp",true
Custom Search
Sunday, September 19, 2010
How can i Save the snapshots in a specified folders
The string is like KAMESWARARAO , write a script for this how to find out the number of "A" in the string ?
str="KAMESWARARAO"
counter=0
For i=1 to len(str)
strChar=mid(str,i,1)
If strChar="A" Then
counter=counter+1
End If
Next
msgbox counter
===========Second Method========
msgbox Len(str)-Len(Replace(str,"A",""))
counter=0
For i=1 to len(str)
strChar=mid(str,i,1)
If strChar="A" Then
counter=counter+1
End If
Next
msgbox counter
===========Second Method========
msgbox Len(str)-Len(Replace(str,"A",""))
What is the difference between Systemutil.run , invokeapplication and Navigate.
Navigate: Opens a specified URL in the browser.
The InvokeApplication method can open only executable files
Run any application from a specified location using a SystemUtil.Run statement
The InvokeApplication method can open only executable files
Run any application from a specified location using a SystemUtil.Run statement
what is Option Explicit in QTP
Option Explicit statement to force explicit declaration of variables.
Defference between pass byVal and ByRef
ByVal : Indicates that the argument is passed by value.
ByRef : Indicates that the argument is passed by reference.
While passing the value using by reference then, if anything (value) is changed, it’s effected to original value.
While passing the value using by valuee then, if anything (value) is changed, it’s not effected to original value it’s only changed in that particular place.
ByRef : Indicates that the argument is passed by reference.
While passing the value using by reference then, if anything (value) is changed, it’s effected to original value.
While passing the value using by valuee then, if anything (value) is changed, it’s not effected to original value it’s only changed in that particular place.
I have given u a application to automate it what are the things will u consider
1. Consider functional requirements.
2. As per requirement identify how much automation testing required.
3. which part of the application need to automation testing.
4. Automation tool
5. Framework
6. Most important test plan which contains every details about every activity of testing.
7.Cost and licence of tool
8.availablity of technical experts and assistance of tool support
9.timelines
2. As per requirement identify how much automation testing required.
3. which part of the application need to automation testing.
4. Automation tool
5. Framework
6. Most important test plan which contains every details about every activity of testing.
7.Cost and licence of tool
8.availablity of technical experts and assistance of tool support
9.timelines
There are some links on the web page,write a script to count and click those links and check the text on the page displayed on clicking the links.
Set obj=Description.Create()
obj("micclass").value="Link"
Set links=Browser("Gmail: Email from Google").Page("Gmail: Email from Google").ChildObjects(obj)
countLinks=links.Count
msgbox "Num of links"& links.Count
For i=0 to countLinks-1
text= links(i).GetROProperty("Text")
If text="Link Name" Then
links(i).click
End If
next
obj("micclass").value="Link"
Set links=Browser("Gmail: Email from Google").Page("Gmail: Email from Google").ChildObjects(obj)
countLinks=links.Count
msgbox "Num of links"& links.Count
For i=0 to countLinks-1
text= links(i).GetROProperty("Text")
If text="Link Name" Then
links(i).click
End If
next
Subscribe to:
Posts (Atom)