Automation Scenario

Test Template for Automation
----------------------------------------------------------------------------

a) Test Scenario:

Ex: GMail Login Operation

b) Navigation / Steps:

Ex:
i)    Launch Browser Window
ii)    Navigate to GMail homepage
iii)    Enter Username
iv)    Enter Password
v)    Click on Sign in Button

c) Input Data:

Ex:
i) Registered Email Address: gcrindia@gmail.com
ii) Password: gcreddy123

d) Verification Point/s

Ex:
Check the existence of “GMail User Email Page”

e) Error Handling:

Close Error / Help popup (If it shows during Login Operation)

f) Expected: “GMail User Email Page” should be launched.

g) Actual:

h) Test Result:
    i) Steps Result:
    ii) Iteration Result:

i) Comments (Optional)
---------------------------------------------------------------------------
Note: Step Result means Verification Point Result, Iteration Result means Total Test Result.

Test Script:

Object Repository based Test Script:

1)    SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe","www.gmail.com"

2)    Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "gcreddy6"
3)    Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Passwd").SetSecure "4ff92ec99558d04dd1cf3ac1010048ce782a01922600f18f1ce069f18cbf7e914a1a07427d48bb86"
4)    Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebButton("Sign in").Click
5)    Page_Name = Browser("Gmail: Email from Google").Page("Gmail - Inbox").GetROProperty("title")


6)    If Page_Name= "Gmail - Inbox"  Then
7)    Reporter.ReportEvent micPass,"Result","User Email Page Opened- Passed"
8)    Else
9)    Reporter.ReportEvent micFail,"Result","User Email Page Not Opened- Failed"
10)    End If

11)    Browser("Gmail: Email from Google").Page("Gmail - Inbox").Link("Sign out").Click
12)    Browser("Gmail: Email from Google").CloseAllTabs


Descriptive Programming:


1)    SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe","www.gmail.com"

2)    Browser("CreationTime:=0").Page("title:=Gmail: Email from Google").WebEdit("name:=Email").Set "gcreddy6"
3)    Browser("CreationTime:=0").Page("title:=Gmail: Email from Google").WebEdit("name:=Passwd").SetSecure "4ff92ec99558d04dd1cf3ac1010048ce782a01922600f18f1ce069f18cbf7e914a1a07427d48bb86"
4)    Browser("CreationTime:=0").Page("title:=Gmail: Email from Google").WebButton("name:=Sign in").Click
5)    Page_Name = Browser("CreationTime:=0").Page("title:=Gmail - Inbox").GetROProperty("title")


6)    If Page_Name= "Gmail - Inbox"  Then
7)    Reporter.ReportEvent micPass,"Result","User Email Page Opened- Passed"
8)    Else
9)    Reporter.ReportEvent micFail,"Result","User Email Page Not Opened- Failed"
10)    End If

11)    Browser("CreationTime:=0").Page("title:=Gmail - Inbox").Link("text:=Sign out").Click
12)    Browser("CreationTime:=0").CloseAllTabs


------------------------------------------------------------------
Note: Remove Line Numbers

1 comments:

Post a Comment