x="xyz"
If(x="xyz") then
msgbox "pass"
else
msgbox "fail"
end if

Your script seems to be correct!

On Tue, Nov 3, 2009 at 5:49 AM, Nimmi <[email protected]> wrote:

> Hi,
>  Am trying to get run time property "outertext" of a web element.
>  Am able to get the outertext.
>  I want to compare it with expected string, say "xyz".
>
> x=
> Browser("").Page("").Frame("").WebTable("").WebElement("").GetROProperty("outertext")
> msgbox x
> If(x="xyz") then
> msgbox "pass"
> else
> msgbox "fail"
> end if
>
> Issue: Even though the expected result and actual result is matching,if
> condition is returning a fail.
>
> I tried string comparison too.
> When I do strcomp(x,"xyz",0) it returns boolean as true(as 1).
> But when i use an if condition loop gives a fail message.
> Am not sure where I am going wrong.
>
> Can you please help?
> Also can you suggest how to use 'checkproperty' for a string after applying
> GetROProperty?
>
>
>
> >
>


-- 
Regards,
Bibek Khatiwara

Hey! Catch me on:
http://khateee.blogspot.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to