You are on page 1of 20

'===============================================================================

==========================
' Name of the Script : CAAdminCAType
' Scope of the Script : This test script covers
10 test cases related to CA Administration CA Type Search
' Author : Satish Dupati
' Description : CA Administration CA Typ
e Search
' Date and / or Version : 08-12-2008,version 1.0
'Note
:Change DVCA date to Meeting Date b4 Executing
'===============================================================================
============================
Sub CAAdminCAType()
'****Declaration of Environmental Variable
Environment.Value("Execution_Log")="True"
'''''''''Test case count
Const TC_COUNT =10
strVar = Environment("TestDir")
strIndVar = Split(strVar,"\",-1,1)
strBound = UBound(strIndVar)
strAllPath =""
For intCounter = 0 to strBound - 1
strAllPath = strAllPath & strIndVar(intCounter)
&"\"
Next
strPath = Trim(strPath)
strDataPath = strAllPath & "DataTables\"
strLibPath = strAllPath & "Function_Library\"
' Including the Library files where all the Scripts are saved
'ExecuteFile strLibPath & "CAReportsAgingItemsTC.vbs"
'****Adding CALogin sheet to the dataTable and Importing the In
put DataTable
DataTable.AddSheet "CALogin"
DataTable.ImportSheet strDataPath & "Login.xls","CALogin","CALog
in"
DataTable.AddSheet "CAType"
DataTable.ImportSheet strDataPath & "CorporateActionsAdmin.xls",
"CAType","CAType"
DataTable.AddSheet "HomePageVerification"
DataTable.ImportSheet strDataPath & "CorporateActionsAdmin.xls",
"HomePageVerification","HomePageVerification"
Environment.Value("strSheetName") = "CAType"
' DataTable.AddSheet "ReportHeader"
' DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Rep
ortHeader","ReportHeader"
'Logs the Scenario name Execution in a .csv file
Call Execution_log(DataTable.Value("Scenario_Name", "Master"), "
", "", "")
'****Invoking IE and navigating to the ADR Login page
DataTable.GetSheet("CALogin").SetCurrentRow(1)
Call invoke_URL("CorporateActions","Login Page",DataTable.Value
("URL","CALogin"))
'****Checking the username, password and login objects in the lo
gin page
Call pageCheck_WebEdit("CorporateActions","Login Page","username
;j_password","")
Call pageCheck_WebButton("CorporateActions","Login Page","Login"
,"")
'****Entering username and password and login into the masterfil
e application
Call login("CorporateActions","Login Page","User","CALogin")
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
' Call chkCAHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),DataTable.Value("
UserName","HomePageVerification"))
Environment.Value("DATATABLE_ROW")=1
DataTable.GetSheet("CAType").SetCurrentRow(Environment.Value("DA
TATABLE_ROW"))
'***************************************** TC Driver Strat *****
**************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"
If DataTable("TestRunFlag","CAType") = "Y" Then
''If run flag is Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TEST CASE - '" & Da
taTable("TestCaseID","CAType") & "' ########### ","Execution of Test Case '" & D
ataTable("TestCaseDesc","CAType") & "' Started"
strFuncName = "CAAdminCAType_TC" & intTCCount & "()" ''Format
ion of function name
Environment.Value("TestCase_Log")="True"
Execute "Call " & strFuncName
If Environment.Value("Execution_Log") = "True"
Then
Call Execution_log("",Datatable.
Value("TestCaseID", "CAType"), Datatable.Value("TestCaseDesc", "CAType"), "PASS"
)
Else
Call Execution_log("",Datatable.
Value("TestCaseID", "CAType"), Datatable.Value("TestCaseDesc", "CAType"), "FAIL"
)
End If
Reporter.ReportEvent micDone,"######### END OF T
EST CASE - '" & DataTable("TestCaseID","CAType") & "###########","The Test Case
Execution Completed"
End If
strPrevious=Trim(DataTable.Value("TestCaseID","CAType"))
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("CAType").SetCurrentRow(Environment.V
alue("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","CAType"))
While strPrevious = strNext
Environment.Value("DATATABLE_ROW") = Environment.Value
("DATATABLE_ROW") + 1
DataTable.GetSheet("CAType").SetCurrentRow(Environment
.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","CAType"))
Wend
Next
Call logoutfromApp("CorporateActions","Depositary Receipt Division's
")
'***************************************** TC Driver End ***************
****************************************

End Sub
'**********************************************Test Case 1 to Test Case 10 *****
*********************************************
'===============================================================================
==========
Public Function CAAdminCAType_TC1()
'Step 2
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call chkMFCAHomePage("CorporateActions","CorporateActions",DataT
able.Value("MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on C
orporate Actions ","Corporate Actions Home screen is displayed "
Else
Reporter.ReportEvent micFail,"Step 2: Click on C
orporate Actions ","Corporate Actions Home screen is displayed "
Environment.Value("TestCase_Log")="True"
End If
'Step 3
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","CAType"))
Call pageCheck_CAAdminCAType("CorporateActions","Administration
- Corporate Action Type Search")
Call select_Menu("CorporateActions","Administration - Corporate
Action Type Search","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under ADMI
NISTRATION menu select Corporate Action Type. ","Administration - Corporate Act
ion Type Search page opened with all required Fields "
Else
Reporter.ReportEvent micFail,"Step 3: Under ADMI
NISTRATION menu select Corporate Action Type. ","Administration - Corporate Act
ion Type Search page opened with all required Fields "
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAAdminCAType_TC2()
'Step 1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call chkMFCAHomePage("CorporateActions","CorporateActions",DataT
able.Value("MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","CAType"))
Call pageCheck_CAAdminCAType("CorporateActions","Administration
- Corporate Action Type Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under 'ADM
INISTRATION' menu select 'Corporate Action Type'. ","'Administration - Corporate
Action Type' Search page opens successfully."
Else
Reporter.ReportEvent micFail,"Step 1: Under 'ADM
INISTRATION' menu select 'Corporate Action Type'. ","'Administration - Corporate
Action Type' Search page opens successfully."
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CAAdminCATypeSearch("CorporateActions","Administration - Co
rporate Action Type Search")
Call CAAdminCATypeSearchResultVerification("CorporateActions","A
dministration - Corporate Action Type Search")
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("CAType").SetCurrentRow(Environment.Value("DA
TATABLE_ROW"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter Cor
p. Action Type Code and click on Search.","All items with given Corp. Action Typ
e Code listed under Corporate Action Type Search Results table."
Else
Reporter.ReportEvent micFail,"Step 2: Enter Corp
. Action Type Code and click on Search.","All items with given Corp. Action Type
Code listed under Corporate Action Type Search Results table."
Environment.Value("TestCase_Log")="True"
End If
'Step 3
Call CAAdminCATypeSearch("CorporateActions","Administration - Co
rporate Action Type Search")
Call CAAdminCATypeSearchResultVerification("CorporateActions","A
dministration - Corporate Action Type Search")
Call select_Menu("CorporateActions","Administration - Corporate
Action Type Search","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Enter par
tial string of 'Corporate Action Type Code' and click on Search. ","All items w
ith given string as part of 'Corp. Action Type Code' listed under Corporate Acti
on Type Search Results table. "
Else
Reporter.ReportEvent micFail,"Step 3: Enter part
ial string of 'Corporate Action Type Code' and click on Search. ","All items wi
th given string as part of 'Corp. Action Type Code' listed under Corporate Actio
n Type Search Results table. "
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAAdminCAType_TC3()
'Step 1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call chkMFCAHomePage("CorporateActions","CorporateActions",DataT
able.Value("MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","CAType"))
Call pageCheck_CAAdminCAType("CorporateActions","Administration
- Corporate Action Type Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under 'ADM
INISTRATION' menu select 'Corporate Action Type'. ","'Administration - Corporate
Action Type' Search page opens successfully."
Else
Reporter.ReportEvent micFail,"Step 1: Under 'ADM
INISTRATION' menu select 'Corporate Action Type'. ","'Administration - Corporate
Action Type' Search page opens successfully."
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CAAdminCATypeSearch("CorporateActions","Administration - Co
rporate Action Type Search")
Call CAAdminCATypeSearchResultVerification("CorporateActions","A
dministration - Corporate Action Type Search")
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("CAType").SetCurrentRow(Environment.Value("DA
TATABLE_ROW"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Enter 'Corp
orate Action Type' and press 'Enter' key.","All items with given Corp. Action Ty
pe listed under Corporate Action Type Search Results table."
Else
Reporter.ReportEvent micFail,"Step 2:Enter 'Corp
orate Action Type' and press 'Enter' key.","All items with given Corp. Action Ty
pe listed under Corporate Action Type Search Results table."
Environment.Value("TestCase_Log")="True"
End If
'Step 3
Call CAAdminCATypeSearch("CorporateActions","Administration - Co
rporate Action Type Search")
Call CAAdminCATypeSearchResultVerification("CorporateActions","A
dministration - Corporate Action Type Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Enter part
ial string of 'Corporate Action Type' and click on Search. ","All items with gi
ven string as part of 'Corp. Action Type' listed under Corporate Action Type Sea
rch Results table. "
Else
Reporter.ReportEvent micFail,"Step 3: Enter part
ial string of 'Corporate Action Type' and click on Search. ","All items with gi
ven string as part of 'Corp. Action Type' listed under Corporate Action Type Sea
rch Results table. "
Environment.Value("TestCase_Log")="True"
End If
'Step 4
Call click_Image("CorporateActions","Administration - Corporate
Action Type Search","Clear")
If get_webEdit_Value("CorporateActions","Administration - Corpor
ate Action Type Search","CATypeCode")="" And get_webEdit_Value("CorporateActions
","Administration - Corporate Action Type Search","CAType")="" And get_WebList_V
alue("CorporateActions","Administration - Corporate Action Type Search","Status"
)="€All" Then
Reporter.ReportEvent micPass,"Step 4:Verificatio
n of Clear Button Function","All Fields are Cleared and Status Value Consists as
All"
Else
Reporter.ReportEvent micFail,"Step 4:Verificatio
n of Clear Button Function","Clear Button is not functioning"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Administration - Corporate
Action Type Search","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAAdminCAType_TC4()
'Step 1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call chkMFCAHomePage("CorporateActions","CorporateActions",DataT
able.Value("MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","CAType"))
Call pageCheck_CAAdminCAType("CorporateActions","Administration
- Corporate Action Type Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under 'ADM
INISTRATION' menu select 'Corporate Action Type'. ","'Administration - Corporate
Action Type' Search page opens successfully."
Else
Reporter.ReportEvent micFail,"Step 1: Under 'ADM
INISTRATION' menu select 'Corporate Action Type'. ","'Administration - Corporate
Action Type' Search page opens successfully."
Environment.Value("TestCase_Log")="True"
End If
'Step 2
If Browser("CorporateActions").Page("Administration - Corporate
Action Type Search").WebList("Status").GetROProperty("value")="€All" Then
Reporter.ReportEvent micPass,"Step 2:Verification of Def
ault Value of Status List","Status Field Consists as All"
Else
Reporter.ReportEvent micFail,"Step 2:Verification of Def
ault Value of Status List","Status Field Not Consists as All"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
'Step 3
If Browser("CorporateActions").Page("Administration - Corporate
Action Type Search").WebList("Status").GetROProperty("all items")="€All;Active;Ina
ctive" Then
Reporter.ReportEvent micPass,"Step 3:Verification of all
items of Status List","Status Field Consists All;Active;Inactive"
Else
Reporter.ReportEvent micFail,"Step 3:Verification of all
items of Status List","Status Field Not All;Active;Inactive"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
'Step 4
Call CAAdminCATypeSearch("CorporateActions","Administration - Co
rporate Action Type Search")
Call CAAdminCATypeSearchResultVerification("CorporateActions","A
dministration - Corporate Action Type Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Select sta
tus based on which Corporate Actions will be searched.","All the items with give
n status displayed under Corporate Action Type Search Results table."
Else
Reporter.ReportEvent micFail,"Step 4: Select sta
tus based on which Corporate Actions will be searched.","All the items with give
n status displayed under Corporate Action Type Search Results table."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Administration - Corporate
Action Type Search","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAAdminCAType_TC5()
'Step 1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call chkMFCAHomePage("CorporateActions","CorporateActions",DataT
able.Value("MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","CAType"))
Call pageCheck_CAAdminCAType("CorporateActions","Administration
- Corporate Action Type Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under 'ADM
INISTRATION' menu select 'Corporate Action Type'. ","'Administration - Corporate
Action Type' Search page opens successfully."
Else
Reporter.ReportEvent micFail,"Step 1: Under 'ADM
INISTRATION' menu select 'Corporate Action Type'. ","'Administration - Corporate
Action Type' Search page opens successfully."
Environment.Value("TestCase_Log")="True"
End If
'Step 2
If Browser("CorporateActions").Page("Administration - Corporate
Action Type Search").WebList("AssignedToUserGroups").GetROProperty("all items")=
"Corporate Actions and Unsponsored;Dividends;Mergers and Acquisitions & HOLDRs;P
roxy;Relationship Management" Then
Reporter.ReportEvent micPass,"Step 2:Verificatio
n of all items of AssignedToUserGroups List","AssignedToUserGroups Field Consist
s Corporate Actions and Unsponsored;Dividends;Mergers and Acquisitions & HOLDRs;
Proxy;Relationship Management"
Else
Reporter.ReportEvent micFail,"Step 2:Verificatio
n of all items of AssignedToUserGroups List","AssignedToUserGroups Field Not Cor
porate Actions and Unsponsored;Dividends;Mergers and Acquisitions & HOLDRs;Proxy
;Relationship Management"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="True"
End If
'Step 3
Call CAAdminCATypeSearch("CorporateActions","Administration - Co
rporate Action Type Search")
Call CAAdminCATypeSearchResultVerification("CorporateActions","A
dministration - Corporate Action Type Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Selecting
two items under 'Assigned to User Groups' and click on search. ","'All the items
belonging to given Assigned to User Groups displayed under Corporate Action Typ
e Search Results table."
Else
Reporter.ReportEvent micFail,"Step 3: Selecting
two items under 'Assigned to User Groups' and click on search. ","'All the items
belonging to given Assigned to User Groups displayed under Corporate Action Typ
e Search Results table."
Environment.Value("TestCase_Log")="True"
End If
'Step 4
Call deselect_Combo_Value("CorporateActions","Administration - C
orporate Action Type Search","AssignedToUserGroups","Dividends")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Hold the '
CTRL' key and click on an item.","Item clicked on should get deselected."
Else
Reporter.ReportEvent micFail,"Step 4: Hold the '
CTRL' key and click on an item.","Item clicked on should get deselected."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Administration - Corporate
Action Type Search","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAAdminCAType_TC6()
'Step 1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call chkMFCAHomePage("CorporateActions","CorporateActions",DataT
able.Value("MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("CorporateActions","CorporateActions","PROFILE;
Upload Notification")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Prof
ile menu select Upload Notification. ","Profile - Upload Notification page opens
successfully.."
Else
Reporter.ReportEvent micFail,"Step 1: Under Prof
ile menu select Upload Notification. ","Profile - Upload Notification page opens
successfully.."
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call Select_Combo_Value("CorporateActions","Profile - Upload Not
ification","TargetDocument","Underlying Corporate Action Notification")
Browser("CorporateActions").Page("Profile - Upload Notification"
).WebFile("UploadFile").Set(Datatable.Value("UploadFile","CAType"))
Call set_webEdit_Value("CorporateActions","Profile - Upload Noti
fication","IssuerName","Glaxo")
Call click_Image("CorporateActions","Profile - Upload Notificati
on","UnderlyingSecurity")
strUSValue=Browser("CorporateActions").Page("Profile - Upload No
tification").Frame("lookupFrame").WebTable("FrameTable").GetCellData(2,3)
Browser("CorporateActions").Page("Profile - Upload Notification"
).Frame("lookupFrame").WebElement("html tag:=TD","innertext:="&strUSValue).click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Choose all
the required fields except corporate action type.","All the required fields exc
ept 'Corporate Action Type' are selected.."
Else
Reporter.ReportEvent micFail,"Step 2: Choose all
the required fields except corporate action type.","All the required fields exc
ept 'Corporate Action Type' are selected.."
Environment.Value("TestCase_Log")="True"
End If
'Step 3
Call click_Image("CorporateActions","Profile - Upload Notificati
on","CorporateActionType")
Browser("CorporateActions").Page("Profile - Upload Notification"
).Frame("lookupFrame").WebElement("html tag:=TD","innertext:=Cash Dividend").cli
ck
Call click_Image("CorporateActions","Profile - Upload Notificati
on","Save")
If Browser("CorporateActions").Page("Profile - Upload Notificati
on").WebTable("Validation Error").GetCellData(2,2)=Datatable.Value("EventDateUse
","CAType") Then
Reporter.ReportEvent micPass,"Step 3:Verificatio
n in Validation Error","Err Msg showing "&Datatable.Value("EventDateUse","CAType
")
Call click_Image("CorporateActions","Profile - U
pload Notification","Close")
Else
Reporter.ReportEvent micFail,"Step 3:Verificatio
n in Validation Error","Err Msg Not "&Datatable.Value("EventDateUse","CAType")&"
, showing "&Browser("CorporateActions").Page("Profile - Upload Notification").We
bTable("Validation Error").GetCellData(2,2)
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="True"
End If
'Step 4
Call select_Menu("CorporateActions","Profile - Upload Notificati
on","Home")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","CAType"))
Call pageCheck_CAAdminCAType("CorporateActions","Administration
- Corporate Action Type Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Under 'AD
MINISTRATION' menu select 'Corporate Action Type'.","'Administration - Corporate
Action Type' Search page opens successfully."
Else
Reporter.ReportEvent micFail,"Step 4 : Under 'AD
MINISTRATION' menu select 'Corporate Action Type'.","'Administration - Corporate
Action Type' Search page opens successfully."
Environment.Value("TestCase_Log")="True"
End If
'Step 5
Call CAAdminCATypeSearch("CorporateActions","Administration - Co
rporate Action Type Search")
Call CAAdminCATypeSearchResultVerification("CorporateActions","A
dministration - Corporate Action Type Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Search for
Corporate Action type as 'Cash Dividend'","Result will be populated with corpor
ate action type as 'Cash Dividend'"
Else
Reporter.ReportEvent micFail,"Step 5: Search for
Corporate Action type as 'Cash Dividend'","Result will be populated with corpor
ate action type as 'Cash Dividend'"
Environment.Value("TestCase_Log")="True"
End If
'Step 6
strCATypeCode=Browser("CorporateActions").Page("Administration -
Corporate Action Type Search").WebTable("CATypeSearchResults").GetCellData(3,2)
Browser("CorporateActions").Page("Administration - Corporate Act
ion Type Search").webElement("html tag:=TD","innertext:="&strCATypeCode).click
If Browser("CorporateActions").Page("Corporate Action Type Maint
enance").WebTable("CashDividend").Exist Then
Reporter.ReportEvent micPass,"Verification for C
ash Dividend Table in Maintainance Page","Table Present with -"&Browser("Corpora
teActions").Page("Corporate Action Type Maintenance").WebTable("CashDividend").G
etCellData(2,1)
Else
Reporter.ReportEvent micFail,"Verification for C
ash Dividend Table in Maintainance Page","Table is Not Present"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call pageCheck_webEditOR("CorporateActions","Corporate Action Ty
pe Maintenance","CATypeCode;CAType;CATypeDescription")
Call pageCheck_webListOR("CorporateActions","Corporate Action Ty
pe Maintenance","EventDateUse;Status;Certified")
Call pageCheck_webElementinTable("CorporateActions","Corporate A
ction Type Maintenance","Assigned to User Groups;Department Name;Dividends ","As
signedtoUserGroups")
Call pageCheck_ImageOR("CorporateActions","Corporate Action Type
Maintenance","SaveProfile;DeleteProfile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Click on l
ink corresponding to 'Cash Dividend'","Corporate Action Type Maintenance page op
ened with all required Elelments "
Else
Reporter.ReportEvent micFail,"Step 6: Click on l
ink corresponding to 'Cash Dividend'","Corporate Action Type Maintenance page op
ened with all required Elelments "
Environment.Value("TestCase_Log")="True"
End If
'Step 7
If get_WebList_Value("CorporateActions","Corporate Action Type M
aintenance","EventDateUse")=Datatable.Value("EventDateUse","CAType") Then
Reporter.ReportEvent micPass,"Step 7:Verificatio
n of Event Date Use in Maintainance Page","Event Date Use is present with "&Data
table.Value("EventDateUse","CAType")
Else
Reporter.ReportEvent micFail,"Step 7:Verificatio
n of Event Date Use in Maintainance Page","Event Date Use is NOT present with "&
Datatable.Value("EventDateUse","CAType")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="True"
End If
'Step 8
If Browser("CorporateActions").Page("Corporate Action Type Maint
enance").WebList("EventDateUse").GetROProperty("all items")="Effective Date;Loca
l Record Date;Meeting Date;N/A;Payment Date" Then
Reporter.ReportEvent micPass,"Step 8:Verificatio
n that the items present under the 'Event Date Use' drop down","Event Date Use i
s present with Effective Date;Local Record Date;Meeting Date;N/A;Payment Date"
Else
Reporter.ReportEvent micFail,"Step 8:Verificatio
n that the items present under the 'Event Date Use' drop down","Event Date Use i
s present with Effective Date;Local Record Date;Meeting Date;N/A;Payment Date"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="True"
End If
'Step 9
If Browser("CorporateActions").Page("Corporate Action Type Main
tenance").WebList("Status").GetROProperty("all items")="Active;Inactive" Then
Reporter.ReportEvent micPass,"Step 9:Verificatio
n that the items present under the 'Status' drop down","Status is present with A
ctive;Inactive"
Else
Reporter.ReportEvent micFail,"Step 9:Verificatio
n that the items present under the 'Status' drop down","Status is present with A
ctive;Inactive"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="True"
End If
'Step 10
If Browser("CorporateActions").Page("Corporate Action Type Main
tenance").WebList("Certified").GetROProperty("all items")="No;Yes" Then
Reporter.ReportEvent micPass,"Step 10:Verificati
on that the items present under the 'Certified' drop down","Certified is present
with No;Yes"
Else
Reporter.ReportEvent micFail,"Step 10:Verificati
on that the items present under the 'Certified' drop down","Certified is present
with No;Yes"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="True"
End If
'Step 11
Call select_Combo_Value("CorporateActions","Corporate Action Typ
e Maintenance","EventDateUse",Datatable.Value("NewEventDateUse","CAType"))
Call click_Image("CorporateActions","Corporate Action Type Maint
enance","SaveProfile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Set 'Event
Date use' to 'Payment Date' and click on 'Save' button.","Payment Date' should
be selected as 'Event Date Use'.."
Else
Reporter.ReportEvent micFail,"Step 8: Set 'Event
Date use' to 'Payment Date' and click on 'Save' button.","Payment Date' should
be selected as 'Event Date Use'.."
Environment.Value("TestCase_Log")="True"
End If
'Step 12
Call select_Menu("CorporateActions","Corporate Action Type Maint
enance","PROFILE;Upload Notification")
Call Select_Combo_Value("CorporateActions","Profile - Upload Not
ification","TargetDocument","Underlying Corporate Action Notification")
Browser("CorporateActions").Page("Profile - Upload Notification"
).WebFile("UploadFile").Set(Datatable.Value("UploadFile","CAType"))
Call set_webEdit_Value("CorporateActions","Profile - Upload Noti
fication","IssuerName","Glaxo")
Call click_Image("CorporateActions","Profile - Upload Notificati
on","UnderlyingSecurity")
strUSValue=Browser("CorporateActions").Page("Profile - Upload No
tification").Frame("lookupFrame").WebTable("FrameTable").GetCellData(2,3)
Browser("CorporateActions").Page("Profile - Upload Notification"
).Frame("lookupFrame").WebElement("html tag:=TD","innertext:="&strUSValue).click
Call click_Image("CorporateActions","Profile - Upload Notificati
on","CorporateActionType")
Browser("CorporateActions").Page("Profile - Upload Notification"
).Frame("lookupFrame").WebElement("html tag:=TD","innertext:=Cash Dividend").cli
ck
Call click_Image("CorporateActions","Profile - Upload Notificati
on","Save")
If Browser("CorporateActions").Page("Profile - Upload Notificati
on").WebTable("Validation Error").GetCellData(2,2)=Datatable.Value("NewEventDate
Use","CAType") Then
Reporter.ReportEvent micPass,"Verification in Va
lidation Error","Err Msg showing" &Datatable.Value("NewEventDateUse","CAType")
Call click_Image("CorporateActions","Profile - U
pload Notification","Close")
Else
Reporter.ReportEvent micFail,"Verification in Va
lidation Error","Err Msg Not showing "&Datatable.Value("NewEventDateUse","CAType
")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12: Checking
for the validation error field","Validation error message pop's up saying 'Payme
nt Date' field should be filled."
Else
Reporter.ReportEvent micFail,"Step 12: Checking
for the validation error field","Validation error message pop's up saying 'Payme
nt Date' field should be filled."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Profile - Upload Notificati
on","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAAdminCAType_TC7()
'Step 1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call chkMFCAHomePage("CorporateActions","CorporateActions",DataT
able.Value("MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","CAType"))
Call pageCheck_CAAdminCAType("CorporateActions","Administration
- Corporate Action Type Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under 'ADM
INISTRATION' menu select 'Corporate Action Type'. ","'Administration - Corporate
Action Type' Search page opens successfully."
Else
Reporter.ReportEvent micFail,"Step 1: Under 'ADM
INISTRATION' menu select 'Corporate Action Type'. ","'Administration - Corporate
Action Type' Search page opens successfully."
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call click_Image("CorporateActions","Administration - Corporate
Action Type Search","New")
Call pageCheck_webEditOR("CorporateActions","Corporate Action Ty
pe Maintenance","CATypeCode;CAType;CATypeDescription")
Call pageCheck_webListOR("CorporateActions","Corporate Action Ty
pe Maintenance","EventDateUse;Status;Certified")
Call pageCheck_webElementinTable("CorporateActions","Corporate A
ction Type Maintenance","Assigned to User Groups;Department Name","AssignedtoUse
rGroups")
Call pageCheck_ImageOR("CorporateActions","Corporate Action Type
Maintenance","SaveProfile;DeleteProfile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Click on '
New' button.","Corporate Action Type Maintenance page opened with all req elemen
ts"
Else
Reporter.ReportEvent micFail,"Step 2:Click on '
New' button.","Corporate Action Type Maintenance page opened with all req elemen
ts"
Environment.Value("TestCase_Log")="True"
End If
'Step 3
Call set_webEdit_Value("CorporateActions","Corporate Action Type
Maintenance","CATypeCode",Datatable.Value("NewCATypeCode","CAType"))
Call set_webEdit_Value("CorporateActions","Corporate Action Type
Maintenance","CAType",Datatable.Value("NewCAType","CAType"))
Call set_webEdit_Value("CorporateActions","Corporate Action Type
Maintenance","CATypeDescription",Datatable.Value("NewCATypeDescription","CAType
"))
Call select_Combo_Value("CorporateActions","Corporate Action Typ
e Maintenance","EventDateUse",Datatable.Value("NewEventDateUse","CAType"))
Call select_Combo_Value("CorporateActions","Corporate Action Typ
e Maintenance","Status",Datatable.Value("NewStatus","CAType"))
Call select_Combo_Value("CorporateActions","Corporate Action Typ
e Maintenance","Certified",Datatable.Value("NewCertified","CAType"))
Call click_Image("CorporateActions","Corporate Action Type Maint
enance","SaveProfile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3:Entering t
he details and clicking on 'Save' button","Corporate Action Type created."
Else
Reporter.ReportEvent micFail,"Step 3:Entering t
he details and clicking on 'Save' button","Corporate Action Type created."
Environment.Value("TestCase_Log")="True"
End If
'Step 4
Call select_Menu("CorporateActions","Corporate Action Type Maint
enance","PROFILE;Upload Notification")
Call Select_Combo_Value("CorporateActions","Profile - Upload Not
ification","TargetDocument","Underlying Corporate Action Notification")
Browser("CorporateActions").Page("Profile - Upload Notification"
).WebFile("UploadFile").Set(Datatable.Value("UploadFile","CAType"))
Call click_Image("CorporateActions","Profile - Upload Notificati
on","CorporateActionType")
If Browser("CorporateActions").Page("Profile - Upload Notificati
on").Frame("lookupFrame").WebElement("html tag:=TD","innertext:="&Datatable.Valu
e("NewCAType","CAType")).exist Then
Reporter.ReportEvent micPass,"Verification for N
ew CA Type","New CA Type "&Datatable.Value("NewCAType","CAType")&" is present in
the List"
Else
Reporter.ReportEvent micFail,"Verification for N
ew CA Type","New CA Type "&Datatable.Value("NewCAType","CAType")&" is NOT presen
t in the List"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4:Navigate to
upload notification page and click on '?' corresponding to 'Corporate Action Ty
pe'.","New CAType displayed under 'Corporate Action Type' list."
Else
Reporter.ReportEvent micFail,"Step 4:Navigate to
upload notification page and click on '?' corresponding to 'Corporate Action Ty
pe'.","New CAType displayed under 'Corporate Action Type' list."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Profile - Upload Notificati
on","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAAdminCAType_TC8()
'Step 1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call chkMFCAHomePage("CorporateActions","CorporateActions",DataT
able.Value("MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("CorporateActions","CorporateActions",Datatable.Value("
MenuPath","CAType"))
Call pageCheck_CAAdminCAType("CorporateActions","Administration
- Corporate Action Type Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under 'ADM
INISTRATION' menu select 'Corporate Action Type'. ","'Administration - Corporate
Action Type' Search page opens successfully."
Else
Reporter.ReportEvent micFail,"Step 1: Under 'ADM
INISTRATION' menu select 'Corporate Action Type'. ","'Administration - Corporate
Action Type' Search page opens successfully."
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CAAdminCATypeSearch("CorporateActions","Administration - Co
rporate Action Type Search")
Call CAAdminCATypeSearchResultVerification("CorporateActions","A
dministration - Corporate Action Type Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Search for
Corporate Action Type with 'Corporate Action Type Code' as 'WIPT' ","Result p
opulated."
Else
Reporter.ReportEvent micFail,"Step 2: Search for
Corporate Action Type with 'Corporate Action Type Code' as 'WIPT' ","Result p
opulated."
Environment.Value("TestCase_Log")="True"
End If
'Step 3
strCATypeCode=Browser("CorporateActions").Page("Administration -
Corporate Action Type Search").WebTable("CATypeSearchResults").GetCellData(3,2)
Browser("CorporateActions").Page("Administration - Corporate Act
ion Type Search").webElement("html tag:=TD","innertext:="&strCATypeCode).click
Call pageCheck_webEditOR("CorporateActions","Corporate Action Ty
pe Maintenance","CATypeCode;CAType;CATypeDescription")
Call pageCheck_webListOR("CorporateActions","Corporate Action Ty
pe Maintenance","EventDateUse;Status;Certified")
Call pageCheck_webElementinTable("CorporateActions","Corporate A
ction Type Maintenance","Assigned to User Groups;Department Name","AssignedtoUse
rGroups")
Call pageCheck_ImageOR("CorporateActions","Corporate Action Type
Maintenance","SaveProfile;DeleteProfile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on l
ink 'WIPT'","Corporate Action Type Maintenance page opens successfully'."
Else
Reporter.ReportEvent micFail,"Step 3: Click on l
ink 'WIPT'","Corporate Action Type Maintenance page opens successfully'."
Environment.Value("TestCase_Log")="True"
End If
'Step 4
Call select_Combo_Value("CorporateActions","Corporate Action Typ
e Maintenance","Status",Datatable.Value("NewStatus","CAType"))
Call click_Image("CorporateActions","Corporate Action Type Maint
enance","SaveProfile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Change Sta
tus from 'Active' to 'Inactive' and click on 'Save'","'WIPT' Corporate Action be
came InActive'.."
Else
Reporter.ReportEvent micFail,"Step 4: Change Sta
tus from 'Active' to 'Inactive' and click on 'Save'","'WIPT' Corporate Action be
came InActive'.."
Environment.Value("TestCase_Log")="True"
End If
'Step 5
Call select_Menu("CorporateActions","Corporate Action Type Maint
enance","PROFILE;Upload Notification")
Call Select_Combo_Value("CorporateActions","Profile - Upload Not
ification","TargetDocument","Underlying Corporate Action Notification")
Browser("CorporateActions").Page("Profile - Upload Notification"
).WebFile("UploadFile").Set(Datatable.Value("UploadFile","CAType"))
Call click_Image("CorporateActions","Profile - Upload Notificati
on","CorporateActionType")
If Browser("CorporateActions").Page("Profile - Upload Notificati
on").Frame("lookupFrame").WebElement("html tag:=TD","innertext:="&Datatable.Valu
e("NewCATypeCode","CAType")).exist Then
Reporter.ReportEvent micFail,"Verification for N
ew CA Type After changing to Inactive","New CA Type "&Datatable.Value("NewCAType
Code","CAType")&" is Still present in the List"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
Else
Reporter.ReportEvent micPass,"Verification for N
ew CA Type After changing to Inactive","New CA Type "&Datatable.Value("NewCAType
Code","CAType")&" is Not present in the List"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Navigate t
o upload notification page and click on '?' corresponding to 'Corporate Action T
ype'.","'WIPT' should not be displayed under 'Corporate Action Type' list."
Else
Reporter.ReportEvent micFail,"Step 5: Navigate t
o upload notification page and click on '?' corresponding to 'Corporate Action T
ype'.","'WIPT' should not be displayed under 'Corporate Action Type' list."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Profile - Upload Notificati
on","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAAdminCAType_TC9()

'Step 1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call chkMFCAHomePage("CorporateActions","CorporateActions",DataT
able.Value("MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("CorporateActions","CorporateActions",Datatable.Value("
MenuPath","CAType"))
Call pageCheck_CAAdminCAType("CorporateActions","Administration
- Corporate Action Type Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under 'ADM
INISTRATION' menu select 'Corporate Action Type'. ","'Administration - Corporate
Action Type' Search page opens successfully."
Else
Reporter.ReportEvent micFail,"Step 1: Under 'ADM
INISTRATION' menu select 'Corporate Action Type'. ","'Administration - Corporate
Action Type' Search page opens successfully."
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CAAdminCATypeSearch("CorporateActions","Administration - Co
rporate Action Type Search")
Call CAAdminCATypeSearchResultVerification("CorporateActions","A
dministration - Corporate Action Type Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Search for
Corporate Action Type with 'Corporate Action Type Code' as 'WIPT' ","Result p
opulated."
Else
Reporter.ReportEvent micFail,"Step 2: Search for
Corporate Action Type with 'Corporate Action Type Code' as 'WIPT' ","Result p
opulated."
Environment.Value("TestCase_Log")="True"
End If
'Step 3
strCATypeCode=Browser("CorporateActions").Page("Administration -
Corporate Action Type Search").WebTable("CATypeSearchResults").GetCellData(3,2)
Browser("CorporateActions").Page("Administration - Corporate Act
ion Type Search").webElement("html tag:=TD","innertext:="&strCATypeCode).click
Call pageCheck_webEditOR("CorporateActions","Corporate Action Ty
pe Maintenance","CATypeCode;CAType;CATypeDescription")
Call pageCheck_webListOR("CorporateActions","Corporate Action Ty
pe Maintenance","EventDateUse;Status;Certified")
Call pageCheck_webElementinTable("CorporateActions","Corporate A
ction Type Maintenance","Assigned to User Groups;Department Name","AssignedtoUse
rGroups")
Call pageCheck_ImageOR("CorporateActions","Corporate Action Type
Maintenance","SaveProfile;DeleteProfile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on l
ink 'WIPT'","Corporate Action Type Maintenance page opens successfully'."
Else
Reporter.ReportEvent micFail,"Step 3: Click on l
ink 'WIPT'","Corporate Action Type Maintenance page opens successfully'."
Environment.Value("TestCase_Log")="True"
End If
'Step 4
Call select_Combo_Value("CorporateActions","Corporate Action Typ
e Maintenance","Certified",Datatable.Value("NewCertified","CAType"))
Call click_Image("CorporateActions","Corporate Action Type Maint
enance","SaveProfile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Change 'Ce
rtified' from 'Yes' to 'No' and click on 'Save","Certified dropdown for 'WIPT' C
orporate Action should be changed to 'No'."
Else
Reporter.ReportEvent micFail,"Step 4: Change 'Ce
rtified' from 'Yes' to 'No' and click on 'Save","Certified dropdown for 'WIPT' C
orporate Action should be changed to 'No'."
Environment.Value("TestCase_Log")="True"
End If
'Step 5
Call select_Menu("CorporateActions","Corporate Action Type Maint
enance","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAAdminCAType_TC10()
'Step 1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call chkMFCAHomePage("CorporateActions","CorporateActions",DataT
able.Value("MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("CorporateActions","CorporateActions",Datatable.Value("
MenuPath","CAType"))
Call pageCheck_CAAdminCAType("CorporateActions","Administration
- Corporate Action Type Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under 'ADM
INISTRATION' menu select 'Corporate Action Type'. ","'Administration - Corporate
Action Type' Search page opens successfully."
Else
Reporter.ReportEvent micFail,"Step 1: Under 'ADM
INISTRATION' menu select 'Corporate Action Type'. ","'Administration - Corporate
Action Type' Search page opens successfully."
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CAAdminCATypeSearch("CorporateActions","Administration - Co
rporate Action Type Search")
Call CAAdminCATypeSearchResultVerification("CorporateActions","A
dministration - Corporate Action Type Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Search for
Corporate Action Type with 'Corporate Action Type Code' as 'WIPT' ","Result p
opulated."
Else
Reporter.ReportEvent micFail,"Step 2: Search for
Corporate Action Type with 'Corporate Action Type Code' as 'WIPT' ","Result p
opulated."
Environment.Value("TestCase_Log")="True"
End If
'Step 3
strCATypeCode=Browser("CorporateActions").Page("Administration -
Corporate Action Type Search").WebTable("CATypeSearchResults").GetCellData(3,2)
Browser("CorporateActions").Page("Administration - Corporate Act
ion Type Search").webElement("html tag:=TD","innertext:="&strCATypeCode).click
Call pageCheck_webEditOR("CorporateActions","Corporate Action Ty
pe Maintenance","CATypeCode;CAType;CATypeDescription")
Call pageCheck_webListOR("CorporateActions","Corporate Action Ty
pe Maintenance","EventDateUse;Status;Certified")
Call pageCheck_webElementinTable("CorporateActions","Corporate A
ction Type Maintenance","Assigned to User Groups;Department Name","AssignedtoUse
rGroups")
Call pageCheck_ImageOR("CorporateActions","Corporate Action Type
Maintenance","SaveProfile;DeleteProfile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on l
ink 'WIPT'","Corporate Action Type Maintenance page opens successfully'."
Else
Reporter.ReportEvent micFail,"Step 3: Click on l
ink 'WIPT'","Corporate Action Type Maintenance page opens successfully'."
Environment.Value("TestCase_Log")="True"
End If
'Step 4
Call click_Image("CorporateActions","Corporate Action Type Maint
enance","DeleteProfile")
If Browser("CorporateActions").Dialog("Microsoft Internet Explor
er").Exist Then
Browser("CorporateActions").Dialog("Microsoft In
ternet Explorer").WinButton("OK").Click
Reporter.ReportEvent micPass," Step 4:Verificati
on of Delete Profile Button","Dailod Asked for confirmation to delete,clicked on
OK"
Else
Reporter.ReportEvent micFail,"Step 4:Verificatio
n of Delete Profile Button","PopUp Not displayed for Confirmation"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 5
Call set_webEdit_Value("CorporateActions","Corporate Action Type
Delete","CATypeCode",DataTable.Value("CATypeCode","CAType"))
Call click_Image("CorporateActions","Corporate Action Type Delet
e","Search")
Wait(3)
If Browser("CorporateActions").Page("Administration - Corporate
Action Type Search").WebTable("CATypeSearchResults").RowCount = 2 Then
Reporter.ReportEvent micPass,"Step 5:Verificatio
n of the Deleted CAType in the Search Result","New deleted CA Type is not presen
t in the Search Result"
Else
Reporter.ReportEvent micFail,"Step 5:Verificatio
n of the Deleted CAType in the Search Result","New deleted CA Type is still pre
sent in the Search Result"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call select_Menu("CorporateActions","Administration - Corporate
Action Type Search","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++

You might also like