how to do spell check in QTP?
reply please

Answer Posted / kalyan

Using strcomp function we can check the spelings of a string.


-----------CODE---------------------
Set browobj=createobject("internetexplorer.application")
browobj.visible=true
browobj.navigate"www.yahoomail.com"
wait(5)
Dim a,b
b="Signing up is easy."
a=Browser("name:=Yahoo! Mail: The best web-based
email!").Page("title:=Yahoo! Mail: The best web-based
email!").WebElement("innertext:=Signing up is
easy.").GetROProperty("innertext")
msgbox a
c=StrComp(a,b)
MsgBox c
If c<>0 Then
reporter.ReportEvent 1,"Stringcomparision","strings are not
equal"
else
reporter.ReportEvent 0,"Stringcomparision","strings are
equal"
End If




Any doubts....mail to-------mskalyan.smile@gmail.com

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Cross browser testing? Does UFT support it?

621


how to test Web application using QTP software

1332


Generic function to search for the unique link in webtable and click on it

2487


how to acess a test in RSA?

1671


How many types of object repository in qtp?

608






How to test fly out menu in qtp?

523


What is the descriptive programming?

1516


write a script to verify the image path(src property) of the images which are in web pages.

1809


I want to grow as a Automation Engineer,Kindly help me in clearing my interview that what interviewer looks for as a Automation Engineer. I am having three years of experience in testing.

1626


What are the types of object repositories? Which one is you using?

619


What is standalone database?

1747


how can we preform retesting(DATA driven test) using function please gine the code for loginpage

2276


How you calling actions in qtp?

630


How to export quicktest professional (qtp) results to an .xls file?

600


Analyzing the checpoint results?

597