Hi, friend. Use this:

Select Case innertext
    Case "s"
        status=browser("...").page("...").webelement("html tag:=TD",
"class:=suitresponse-sucess").getroproperty(innertext)
    Case "p"
        status=browser("...").page("...").webelement("html tag:=TD",
"class:=suitresponse-sucess").getroproperty(innertext)
    Else
        browser("...").page("...").webelement("html tag:=TD",
"class:=suitresponse-sucess").getroproperty(innertext)
End Select



El lunes, 5 de enero de 2015, 1:37:10 (UTC-3), Sri Srikanth escribió:
>
> while automating web application i have a class which changes according to 
> response as s,p,f i want to collect thise responses.
>
> if innertext=s then
> status=browser("...").page("...").webelement("html 
> tag:=TD","class:=suitresponse-sucess").getroproperty(innertext)
> else
> browser("...").page("...").webelement("html 
> tag:=TD","class:=suitresponse-sucess").getroproperty(innertext)
> end if
> for this only fail and pass conditions are geting response but for sucess 
> it is not geting any response.
> can any one help in this.
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to