Hi All,

I found the 2nd issue, the reason due to I commented out getting the value
of agent name and password in the script for some other testing and forgot
to take the comment.

Now only the first issue -- starting problem...

Regards,
Geetha


On Thu, May 9, 2013 at 1:53 PM, Shine Ever <[email protected]> wrote:

> Hi All,
>
>        Thank you for all of your reply. Currently I couldn't continue the
> test due to some issues. I would definitely try suggested steps and let you
> know.
>
> Perhaps i  just tried out the sample app the below scenario:
> Login validation with incorect user name and password and the code is below
>
> I have got 2 issues:
> 1. Every time I have to click on start then qtp recognizes the Fight ans
> then proceeds normally, otherwise it shows the below error msg.
> Cannot find the "SysListView32" object's parent "Start menu" (class
> Window). Verify that parent properties match an object currently displayed
> in your application.
>
> 2. I am trying out the below inputs:
>
> AgentName   Password       ErrorMessage
> geetha          mer                 Please enter agent name
> geetha         field empty        Please enter agent name
>                   mercury             Please enter agent name
>
> I am not sure why the error message is always enter agent name in the
> output value.. Is there any wrong in my code below?
>
>
>
> Window("Start menu").WinListView("SysListView32").Select "Flight"
> Dialog("Login").WinButton("OK").Click
> Dialog("Login").Dialog("Flight Reservations").Static("Please enter agent
> name").Output CheckPoint("ErrorMessage")
> Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click
> Dialog("Login").WinButton("Cancel").Click
> Reporter.ReportEvent micPass,"Login Failed"," Incorrect Username or
> Password"
>
> Hope my query is clear to you all.
>
> Thanks and Regards
> Geetha
>
>
>
>
>
> On Wed, May 8, 2013 at 11:50 AM, automation.lifegoeasy.com <
> [email protected]> wrote:
>
>> Kindly specify what are you trying to do?
>>
>>
>> On Tuesday, 7 May 2013 15:18:08 UTC+5:30, Automation tester wrote:
>>>
>>>
>>>   Hi All,
>>> I tried the below code.
>>> Simple log in validation
>>> It always executes the if condition and doesn't go to else part. Hence
>>> results in error.
>>>
>>>   Window("Windows Internet Explorer").Activate
>>> Browser("Login - CACISISS").Page("Login - CACISISS").WebList("issuerId")
>>> **.Select DataTable("IssuerId", dtGlobalSheet)
>>> Browser("Login - CACISISS").Page("Login - CACISISS").WebEdit("userId").*
>>> *Set DataTable("UserId", dtGlobalSheet)
>>> Browser("Login - CACISISS").Page("Login - CACISISS").WebEdit("password")
>>> **.Set DataTable("Password", dtGlobalSheet)
>>> Browser("Login - CACISISS").Page("Login - CACISISS").WebButton("Login").
>>> **Click
>>> If Browser("Login - CACISISS").Page("Login - CACISISS_2").Exist Then
>>> Browser("Login - CACISISS").Page("Login - CACISISS_2").WebElement("User
>>> Id is required.Password is required.").Output CheckPoint("User Id is
>>> required.Password is required.")
>>> Browser("Login - CACISISS").Page("Login - CACISISS_2").Sync
>>> Reporter.ReportEvent micFail, "Login Failed", "Incorrect Username or
>>> Password"
>>> Browser("Login - CACISISS").Close
>>> Else
>>>
>>> Browser("Welcome to the CACIS Issuing").Page("Welcome to the CACIS
>>> Issuing").Frame("topFrame").**Link("Logout").Check
>>> CheckPoint("Logout_2")
>>> Browser("Welcome to the CACIS Issuing").Page("Welcome to the CACIS
>>> Issuing").Frame("topFrame").**Link("Logout").Click
>>> Browser("Login - CACISISS").Page("Login - CACISISS").Sync
>>> Browser("Login - CACISISS").Close
>>> End If
>>>
>>>
>>> Can you please check and tell me why its not exot executing else part
>>>
>>>
>>> Regards,
>>> Geetha
>>>
>>>
>>>
>>>
>>>   --
>> --
>> 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/groups/opt_out.
>>
>>
>>
>
>

-- 
-- 
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/groups/opt_out.


Reply via email to