Hi  Akhalesh,
Try this following steps

Step1: Try to type any value(char/non char)
{objDialog.TextBox("txtName").type sValue}
Step2: Get value from Text box
Step3: Compare both value
(Whatever you have pass [sValue] in funciont and
Whatever value fetched from a Text box )
Step4: if both are equal then return True
Step4: if not equal then return False


from this logic you can check both condition

Please tell me actual scenario(if possible) so that I can explain better
then this
-- 
Thanks  & Regards
Sujit :)


On Wed, Sep 12, 2012 at 4:51 PM, Akhalesh Yadav <[email protected]
> wrote:

> dear i have fwded you some mails regarding opening in QTP.
>
>
>
> On Tue, Sep 11, 2012 at 11:21 PM, pankaj kumar <
> [email protected]> wrote:
>
>> any openings for experienced professional in qtp(2-4 years)
>>
>> On 9/12/12, Akhalesh Yadav <[email protected]> wrote:
>> > Guys
>> >         Right now m working with an application with highly validates so
>> > plz tell me how to write script and test with valid and invalid test
>> data
>> > untill validation will be failed.
>> >     today i have write many validation function and call in my main
>> script
>> > but through this way only valid string will be passed through functions
>> at
>> > run time so how can i ensure that developers validations.
>> >
>> > suppose a user name feild accept only chars as per developers. when i am
>> > going to test this feilds then i have write a function for chars and
>> pass
>> > the input string through this function, if string is non chars then our
>> qtp
>> > script doesn't allow string for application, so how could i ensure that
>> > developers validation is working properly or not.
>> >
>> > --
>> > Akhalesh yadav
>> > +919555717928
>> >
>> > --
>> > 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
>> "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
>>
>
>
>
> --
> Akhalesh yadav
> +919555717928
> +919310680659
>
> --
> 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
"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