On Tuesday, September 15, 2015 at 10:48:39 AM UTC+8, serene Teddy Bear
wrote:
>
> 1.The application will display 'id is concurrently login' if it is logout
> due to a fail in script.
>
> 2. The structure of my script is that I will have a login function, which
> will not be able to login successfully. Can someone suggest a solution for
> the above?
>
>
> Thank You.
>
Please see attached for details, thank you.
--
--
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.
Function Login()
Kill_IE()
StrTemp = Environment("TestDir")
xlsx"
datatable.ImportSheet LoginDataFile, 1, 1
URL_AUT = datatable.Value("URL", 1)
UserID = datatable.Value("UserID", 1)
UserPassword = datatable.Value("UserPassword", 1)
systemutil.Run "iexplore.exe", URL_AUT
browser("Customs/TN BEnd - Walkin").Page("Login").WebEdit("USERID").Set UserID
browser("Customs/TN BEnd - Walkin").Page("Login").WebEdit("PASSWORD").Set
UserPassword
browser("Customs/TN BEnd - Walkin").Page("Login").WebButton("Login").Click
browser("Customs/TN BEnd - Walkin").Sync
End Function
Narration: When scripts are batched, how to control for a smooth run.
Scenario 1
batch run- 3 scripts to run.
Script1- login and perform search, somehow job fails with 'object cannot be
identified', it did not perform the 'logout' step.
Script 2- login will hit problem, with 'concurrent user login', thus will fail
too
Script 3 -login will hit problem, with 'concurrent user login', thus will fail
too
Scenario 2
batch run - 3 scripts
Script1- login and perform search, somehow script pass ok and 'logout' step is
executed.
Script 2- login will not hit problem with 'concurrent user login', script can
proceed.
In real life situation, sometimes scenario 1 will happen or scenario 2 will
happen, how to solve such that scenario 1 and 2 are catered for?