of 47
8/7/2019 ADRCA_ReportsIDCCorporateActions
1/47
'=========================================================================================================' Name of the Script : Corporate Actions Reports IDCCorporate Actions
' Scope of the Script : This test script covers 26 test cases related to the CA reports --> IDC Corporate Actions Reports' Author : Mohan Gummadi' Description : Corporate Actions Reports IDCCorporate Actions' Date and / or Version : 20-11-2008,version 1.0'===========================================================================================================
Sub CAReportsIDCCorporateActions()
'****Declaration of Environmental VariableEnvironment.Value("Execution_Log")= "True"
'''''''''Test case countConst TC_COUNT = 26
strVar = Environment("TestDir")strIndVar = Split(strVar,"\",-1,1)strBound = UBound(strIndVar)strAllPath =""
For i= 0 to strBound - 1strAllPath = strAllPath & strIndVar(i) &"\"
Next
strPath = Trim(strPath)strDataPath = strAllPath & "DataTables\"strLibPath = strAllPath & "Function_Library\"
'****Adding MFLogin sheet to the dataTable and Importing the Input DataTable
DataTable.AddSheet "CALogin"DataTable.ImportSheet strDataPath & "Login.xls","CALogin","CALog
in"DataTable.AddSheet "IDCCorporateActions"
DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls","IDCCorporateActions","IDCCorporateActions"DataTable.AddSheet "ReportHeader"DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","ReportHeader","ReportHeader"DataTable.AddSheet "HomePageVerification"DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","HomePageVerification","HomePageVerification"Environment.Value("strSheetName")="IDCCorporateActions"
' Logs the Scenario name Execution in a .csv fileCall Execution_log(DataTable.Value("Scenario_Name", "Master"), "
", "", "")
Call Execution_log(DataTable.Value(3, "Master"), "", "", "")
8/7/2019 ADRCA_ReportsIDCCorporateActions
2/47
'****Invoking IE and navigating to the ADR Login pageDataTable.GetSheet("CALogin").SetCurrentRow(1)Call invoke_URL("CorporateActions","Login Page",DataTable.Value(
"URL","CALogin"))
'****Checking the username, password and login objects in the login 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 masterfile application
DataTable.GetSheet("CALogin").SetCurrentRow(1)Call login("CorporateActions","Login Page","User","CALogin")Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser"))
Environment.Value("DATATABLE_ROW")=1DataTable.GetSheet("IDCCorporateActions").SetCurrentRow(Environm
ent.Value("DATATABLE_ROW"))
'***************************************** TC Driver Strat *******************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"If DataTable("TestRunFlag","IDCCorporateActions"
)="Y" Then ''If run flag is Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TEST CASE - '"& DataTable("TestCaseID","IDCCorporateActions") & "' ########### ","Execution ofTest Case '" & DataTable("TestCaseDesc","IDCCorporateActions") & "' Started"
strFuncName = "CAReportsIDCCorporateActions_TC" & intTCCount & "()" ''Formation of function name
''Call FunctionExecute "Call " & strFuncNameIf Environment.Value("Execution
_Log") = "True"ThenCall Execution_l
og("",Datatable.Value("TestCaseID", "IDCCorporateActions"), Datatable.Value("TestCaseDesc", "IDCCorporateActions"), "PASS")
ElseCall Execution_l
og("",Datatable.Value("TestCaseID", "IDCCorporateActions"), Datatable.Value("TestCaseDesc", "IDCCorporateActions"), "FAIL")
End IfReporter.ReportE
vent micDone,"######### END OF TEST CASE - '" & DataTable("TestCaseID","IDCCorporateActions") & "###########","The Test Case Execution Completed"
End IfstrPrevious=Trim(DataTable.Value("TestCaseID","I
DCCorporateActions"))''Increment the test data table rowEnvironment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1DataTable.GetSheet("IDCCorporateActions").SetCur
rentRow(Environment.Value("DATATABLE_ROW"))
8/7/2019 ADRCA_ReportsIDCCorporateActions
3/47
strNext=Trim(DataTable.Value("TestCaseID","IDCCorporateActions"))
While strPrevious = strNextEnvironment.Value("DATATABLE_ROW
") = Environment.Value("DATATABLE_ROW") + 1DataTable.GetSheet("IDCCorporate
Actions").SetCurrentRow(Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","IDCCorporateActions"))
Wend
NextCall logoutfromApp("CorporateActions","Depositary Receipt Divisi
on's")
'***************************************** TC Driver End *******************************************************
End Sub
'***************************************************** TestCase #1 to TestCase #26******************************
Public Function CAReportsIDCCorporateActions_TC1()
Environment.Value("TestCase_Log")="True"
'Step #1'Call chkCAHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Navigate to DR Home page after successful login.","Successfully verified the links - " & DataTable.Value("HomePageLinks","HomePageVerification")
ElseReporter.ReportEvent micFail,"Step 1: Navigate t
o DR Home page after successful login.","The links - '" & DataTable.Value("HomePageLinks","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call 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 Corporate Actions in DR Home page.","Successfully verified the home page menus -" & DataTable.Value("MenuName","HomePageVerification")
ElseReporter.ReportEvent micFail,"Step 2: Click on C
orporate Actions in DR Home page.","The menus - '" & DataTable.Value("MenuName","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")="True"End If
'Step #3Call select_Menu("CorporateActions","CorporateActions",DataTable
8/7/2019 ADRCA_ReportsIDCCorporateActions
4/47
.Value("MenuPath","IDCCorporateActions"))Call pageCheck_WebEditOR("CorporateActions","Reports - IDC Corpo
rate Actions Search","FromDate;ToDate")Call pageCheck_WebListOR("CorporateActions","Reports - IDC Corpo
rate Actions Search","SecurityType;AssignedUserGroup")Call pageCheck_Image("CorporateActions","Reports - IDC Corporate
Actions Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select IDC Corporate Actions Search.","Expected fields are displayed insearch criteria"
ElseReporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select IDC Corporate Actions Search","Expected fields are not displayedin search criteria"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Search","HOME;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC2()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchopened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchpage not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2strFromDefault=Trim(Browser("CorporateActions").Page("Reports -
IDC Corporate Actions Search").WebEdit("FromDate").GetROProperty("value"))If DateValue(strFromDefault)=Date Then
Reporter.ReportEvent micPass,"Verify the defaultvalue in the from date field","By default current date is displayed"
ElseReporter.ReportEvent micFail,"Verify the default
value in the from date field","By default current date is not displayed"Call captureScreenshot()Environment.Value("TestCase_Log")="False"Environment.Value("Execution_Log")="False"
End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Verify the
8/7/2019 ADRCA_ReportsIDCCorporateActions
5/47
default value of the 'From Date' field","The default value should be the Current Date"
ElseReporter.ReportEvent micFail,"Step 2: Verify the
default value of the 'From Date' field","The default value should not be the Current Date"
Environment.Value("TestCase_Log")="True"
End If
'Step #3strToDefault=Trim(Browser("CorporateActions").Page("Reports - ID
C Corporate Actions Search").WebEdit("ToDate").GetROProperty("value"))If DateValue(strToDefault)=Date Then
Reporter.ReportEvent micPass,"Verify the defaultvalue in the to date field","By default current date is displayed"
ElseReporter.ReportEvent micFail,"Verify the default
value in the to date field","By default current date is not displayed"Call captureScreenshot()
Environment.Value("TestCase_Log")="False"Environment.Value("Execution_Log")="False"End If
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: Verify the
default value of the 'To Date' field","The default value should be the CurrentDate"
ElseReporter.ReportEvent micFail,"Step 3: Verify the
default value of the 'To Date' field","The default value should not be the Current Date"
Environment.Value("TestCase_Log")="True"End If
'Step #4strSecurityDefault=Trim(Browser("CorporateActions").Page("Report
s - IDC Corporate Actions Search").WebList("SecurityType").GetROProperty("selection"))
If strSecurityDefault="Underlying Security" ThenReporter.ReportEvent micPass,"Verify the default
value of the underlying security field","By default underlying security shouldbe selected"
ElseReporter.ReportEvent micFail,"Verify the default
value of the underlying security field","By default underlying security shouldbe not selected"
Call captureScreenshot()Environment.Value("TestCase_Log")="False"Environment.Value("Execution_Log")="False"
End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Verify thedefault value of the 'Security Type' field","By default, 'Underlying Security'is selected"
ElseReporter.ReportEvent micFail,"Step 4: Verify the
default value of the 'Security Type' field","By default, 'Underlying Security'is not selected"
Environment.Value("TestCase_Log")="True"End If
8/7/2019 ADRCA_ReportsIDCCorporateActions
6/47
'Step #5strAssignedDefault=Trim(Browser("CorporateActions").Page("Repor
ts - IDC Corporate Actions Search").WebList("AssignedUserGroup").GetROProperty("selection"))
If strAssignedDefault="" ThenReporter.ReportEvent micPass,"Verify the default
value of the Assigned to UserGroup field","By default no value is selected"
ElseReporter.ReportEvent micFail,"Verify the default
value of the Assigned to UserGroup field","By default some value is selected"Call captureScreenshot()Environment.Value("TestCase_Log")="False"Environment.Value("Execution_Log")="False"
End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Verify thedefault value of the 'Assigned to User Group' field","By default,no value is selected"
Else
Reporter.ReportEvent micFail,"Step 5: Verify thedefault value of the 'Assigned to User Group' field"," By default,some value isselected"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Search","HOME;DR Home")End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC3()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchopened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchpage not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call ReadallValuesWebList("CorporateActions","Reports - IDC Corp
orate Actions Search","SecurityType","SecurityTypeOptions","IDCCorporateActions")
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Verify the
items present in the 'Security Type' drop-down field","The following items are
available under Security Type dropdown:CUSIP and Underlying Security"Else
Reporter.ReportEvent micPass,"Step 2: Verify the
8/7/2019 ADRCA_ReportsIDCCorporateActions
7/47
8/7/2019 ADRCA_ReportsIDCCorporateActions
8/47
Reporter.ReportEvent micFail,"Step 4: Select 'CUSIP' from the 'Security Type' drop-down field","On selecting CUSIP, the 'Assigned to User Group' field must disappear and 'HOLDR Constituents Only' is not displayed along with a check box"
Environment.Value("TestCase_Log")="True"End If
Call select_Menu("CorporateActions","Reports - IDC Corpo
rate Actions Search","HOME;DR Home")End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC4()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("MenuPath","IDCCorporateActions"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchopened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchpage not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfCall chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporateActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC Corporate
8/7/2019 ADRCA_ReportsIDCCorporateActions
9/47
Actions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateActions"),"LessThan")
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Select Fro
m Date and To Date, click on search ","IDCCorporate Actions Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Select From Date and To Date, click on search ","IDCCorporate Actions Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC5()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchopened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Reports menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchpage not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2If DataTable.Value("FromDate","IDCCorporateActions") "" Then
strDataTableValue = DataTable.Value("FromDate","IDCCorporateActions")
strValue = Split(strDataTableValue,";",-1,1)strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)Call click_Image("CorporateActions","Reports - I
DC Corporate Actions Search","ShowCalendar")Call ClickIcon_SetDate("CorporateActions","Repor
ts - IDC Corporate Actions Search",strMonthValue,strYearValue,strDateValue)End IfstrFromDate=Browser("CorporateActions").Page("Reports - IDC Corp
orate Actions Search").WebEdit("FromDate").GetROProperty("value")If strFromDate"" Then
Reporter.ReportEvent micPass, "Verify whether from date field is selected or not","From Date field is selected"
Else
Reporter.ReportEvent micFail, "Verify whether from date field is selected or not","From Date field is not selected"
Call captureScreenshot()
8/7/2019 ADRCA_ReportsIDCCorporateActions
10/47
Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on the 'From Date' calendar button and select a date","The value is selected"
Else
Reporter.ReportEvent micPass,"Step 2: Click on the 'From Date' calendar button and select a date","The value is not selected"
Environment.Value("TestCase_Log")="True"End If
'Step #3Call click_Image("CorporateActions","Reports - IDC Corporate Act
ions Search","ShowCalendar_2")blnCalendarExistance=Browser("CorporateActions").Page("Reports -
IDC Corporate Actions Search").Frame("popCalFrame").Exist(5)If blnCalendarExistance="True" Then
Reporter.ReportEvent micPass,"verify the To date
calendar popup is opened or not","To date Calendar popup is opened"ElseReporter.ReportEvent micFail,"verify the To date
calendar popup is opened or not","To date Calendar popup is not opened"Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on the 'To Date' calendar button","The calendar window is opened"
ElseReporter.ReportEvent micPass,"Step 3: Click on t
he 'To Date' calendar button","The calendar window is not opened"Environment.Value("TestCase_Log")="True"
End If
'Step #4Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Search").Frame("popCalFrame").Image("ClearFieldValue").ClickblnTo=Trim(Browser("CorporateActions").Page("Reports - IDC Corpo
rate Actions Search").WebEdit("ToDate").GetROProperty("value"))If blnTo="" Then
Reporter.ReportEvent micPass,"Verify the To datefiled is cleared or not","To Date field is cleared"
ElseReporter.ReportEvent micFail,"Verify the To date
filed is cleared or not","To Date field is not cleared"Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Inside thecalendar window, click on the clear button","The 'To Date' field is cleared"
ElseReporter.ReportEvent micPass,"Step 4: Inside the
calendar window, click on the clear button","The 'To Date' field is not cleared
"Environment.Value("TestCase_Log")="True"
End If
8/7/2019 ADRCA_ReportsIDCCorporateActions
11/47
'Step #5Call click_Image("CorporateActions","Reports - IDC Corporate Act
ions Search","Search")If Dialog("text:=Microsoft Internet Explorer").WinButton("text:=
OK").Exist(5) ThenstrWarningText=Trim(Dialog("text:=Microsoft Inte
rnet Explorer").Static("text:=Please select To Date").GetROProperty("text"))
If strWarningText="Please select To Date" ThenReporter.ReportEvent micPass,"Ve
rify the popup is displayed or not","Popup with text 'Please select To Date' isdisplayed"
Dialog("text:=Microsoft InternetExplorer").WinButton("text:=OK").Click
ElseReporter.ReportEvent micFail,"Ve
rify the popup is displayed or not","Popup with text 'Please select To Date' isnot displayed"
Call captureScreenshot()Environment.Value("Execution_Log
")= "False" Environment.Value("TestCase_Log")= "False"
End IfEnd IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Click on Search","A pop up message is displayed saying 'Please Select To Date'"
ElseReporter.ReportEvent micPass,"Step 5:Click on Se
arch","A pop up message is not displayed saying 'Please Select To Date'"Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Actions Search","HOME;DR Home")End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC6()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchopened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchpage not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
8/7/2019 ADRCA_ReportsIDCCorporateActions
12/47
C Corporate Actions Search")If Dialog("text:=Microsoft Internet Explorer").WinButton("text:=OK").Exi
st(5) ThenstrWarningText=Trim(Dialog("text:=Microsoft Inte
rnet Explorer").Static("text:=From Date cannot be greater than To Date").GetROProperty("text"))
If strWarningText="From Date cannot be greater
than To Date" ThenReporter.ReportEvent micPass,"Ve
rify the popup is displayed or not","Popup with text 'From Date cannot be greater than To Date' is displayed"
Dialog("text:=Microsoft InternetExplorer").WinButton("text:=OK").Click
ElseReporter.ReportEvent micFail,"Ve
rify the popup is displayed or not","Popup with text 'From Date cannot be greater than To Date' is not displayed"
Call captureScreenshot()Environment.Value("Execution_Log
")= "False" Environment.Value("TestCase_Log")= "False"
End IfEnd IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Provide 'From Date' greater than 'To Date' and click on Search","Error message pops up saying 'From Date cannot be greater than To date' is displayed"
ElseReporter.ReportEvent micFail,"Step 2: Provide 'F
rom Date' greater than 'To Date' and click on Search","Error message pops up saying 'From Date cannot be greater than To date' is not displayed"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Search","HOME;DR Home")End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC7()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchopened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchpage not opened successfully"
Environment.Value("TestCase_Log")="True"End If
8/7/2019 ADRCA_ReportsIDCCorporateActions
13/47
'Step #2Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corporate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"End IfCall chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporateActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC CorporateActions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateActions"),"LessThan")
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Select val
ues for the 'From date' and 'To Date' fields where the 'To Date' is greater thanCurrent Date ","IDCCorporate Actions Report generated related to the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 2: Select val
ues for the 'From date' and 'To Date' fields where the 'To Date' is greater thanCurrent Date","IDCCorporate Actions Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC8()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
8/7/2019 ADRCA_ReportsIDCCorporateActions
14/47
opened successfully"Else
Reporter.ReportEvent micFail,"Step 1: Under Reports menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchpage not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call click_Image("CorporateActions","Reports - IDC Corporate Act
ions Search","ShowCalendar")blnCalendarExistance=Browser("CorporateActions").Page("Reports -
IDC Corporate Actions Search").Frame("popCalFrame").Exist(5)If blnCalendarExistance="True" Then
Reporter.ReportEvent micPass,"verify the From date calendar popup is opened or not","From date Calendar popup is opened"
ElseReporter.ReportEvent micFail,"verify the From da
te calendar popup is opened or not","From date Calendar popup is not opened"
Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on the 'From Date' calendar button","The calendar window is opened"
ElseReporter.ReportEvent micPass,"Step 2: Click on t
he 'From Date' calendar button","The calendar window is not opened"Environment.Value("TestCase_Log")="True"
End If
'Step #3Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Search").Frame("popCalFrame").Image("ClearFieldValue").ClickblnTo=Trim(Browser("CorporateActions").Page("Reports - IDC Corpo
rate Actions Search").WebEdit("FromDate").GetROProperty("value"))If blnTo="" Then
Reporter.ReportEvent micPass,"Verify the From date filed is cleared or not","From Date field is cleared"
ElseReporter.ReportEvent micFail,"Verify the From da
te filed is cleared or not","From Date field is not cleared"Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Inside thecalendar window, click on the clear button","The 'From Date' field is cleared"
ElseReporter.ReportEvent micPass,"Step 3: Inside the
calendar window, click on the clear button","The 'From Date' field is not cleared"
Environment.Value("TestCase_Log")="True"End If
'Step #4If DataTable.Value("ToDate","IDCCorporateActions") "" Then
strDataTableValue = DataTable.Value("ToDate","ID
8/7/2019 ADRCA_ReportsIDCCorporateActions
15/47
CCorporateActions")strValue = Split(strDataTableValue,";",-1,1)strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)Call click_Image("CorporateActions","Reports - I
DC Corporate Actions Search","ShowCalendar_2")
Call ClickIcon_SetDate("CorporateActions","Reports - IDC Corporate Actions Search",strMonthValue,strYearValue,strDateValue)
End IfstrToDate=Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Search").WebEdit("ToDate").GetROProperty("value")If strToDate"" Then
Reporter.ReportEvent micPass, "Verify whether todate field is selected or not","To Date field is selected"
ElseReporter.ReportEvent micFail, "Verify whether to
date field is selected or not","To Date field is not selected"Call captureScreenshot()
Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on the 'To Date' calendar button and select a date","The value is selected"
ElseReporter.ReportEvent micPass,"Step 4: Click on t
he 'To Date' calendar button and select a date","The value is not selected"Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call click_Image("CorporateActions","Reports - IDC Corporate Actions Search","Search")
If Dialog("text:=Microsoft Internet Explorer").WinButton("text:=OK").Exist(5) Then
strWarningText=Trim(Dialog("text:=Microsoft Internet Explorer").Static("text:=Please select From Date").GetROProperty("text"))
If strWarningText="Please select From Date" Then
Reporter.ReportEvent micPass,"Verify the popup is displayed or not","Popup with text 'Please select From Date' is displayed"
Dialog("text:=Microsoft InternetExplorer").WinButton("text:=OK").Click
ElseReporter.ReportEvent micFail,"Ve
rify the popup is displayed or not","Popup with text 'Please select From Date' is not displayed"
Call captureScreenshot()Environment.Value("Execution_Log
")= "False"Environment.Value("TestCase_Log"
)= "False"End If
End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Click on Search","A pop up message is displayed saying 'Please Select From Date'"
Else
8/7/2019 ADRCA_ReportsIDCCorporateActions
16/47
Reporter.ReportEvent micPass,"Step 5:Click on Search","A pop up message is not displayed saying 'Please Select From Date'"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Search","HOME;DR Home")End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC9()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchopened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchpage not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - IDC Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Corporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate ActionsResults","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corporate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfCall chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActionsHOLDR")Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporat
eActions"),"GreaterThan")Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateA
8/7/2019 ADRCA_ReportsIDCCorporateActions
17/47
ctions"),"LessThan")If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select values for the 'From date' and 'To Date' fields and select 'CUSIP' from the 'Security Type' field and click on search ","IDCCorporate Actions Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Select values for the 'From date' and 'To Date' fields and select 'CUSIP' from the 'Security Type' field and click on search","IDCCorporate Actions Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC10()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"Else
Reporter.ReportEvent micFail,"Step 1: Under Reports menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchpage not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call select_Combo_Value ("CorporateActions","Reports - IDC Corpo
rate Actions Search","SecurityType",DataTable.Value("SecurityType","IDCCorporateActions"))
blnField=Browser("CorporateActions").Page("Reports - IDC Corporate Actions Search").WebList("AssignedUserGroup").Exist(5)
If blnField="False" ThenReporter.ReportEvent micPass,"Verify the Assigne
d to the Group Users filed is disappeared or not","Assigned to the User Group field is disappeared"
ElseReporter.ReportEvent micFail,"Verify the Assigne
d to the Group Users filed is disappeared or not","Assigned to the User Group field is notdisappeared"
Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfblnCheck=Browser("CorporateActions").Page("Reports - IDC Corpora
te Actions Search").WebCheckBox("HOLDRConstituent").Exist(5)
8/7/2019 ADRCA_ReportsIDCCorporateActions
18/47
If blnCheck="True" ThenReporter.ReportEvent micPass,"Verify 'HOLDR Cons
tituents Only' field is displayed or not","'HOLDR Constituents Only' field is displayed"
ElseReporter.ReportEvent micFail,"Verify 'HOLDR Cons
tituents Only' field is displayed or not","'HOLDR Constituents Only' field is no
t displayed"Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select 'CUSIP' from the 'Security Type' drop-down field","On selecting CUSIP, the 'Assigned to User Group' field must disappear and 'HOLDR Constituents Only' is displayedalong with a check box"
ElseReporter.ReportEvent micFail,"Step 2: Select 'CU
SIP' from the 'Security Type' drop-down field","On selecting CUSIP, the 'Assigned to User Group' field must disappear and 'HOLDR Constituents Only' is not displayed along with a check box"
Environment.Value("TestCase_Log")="True"End If
'Step #3Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corporate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfCall chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActionsHOLDR")If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Select values for the 'From date' and 'To Date' fields and select 'CUSIP' from the 'Security Type' field and click on search ","IDCCorporate Actions Report generated related to the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 3: Select val
ues for the 'From date' and 'To Date' fields and select 'CUSIP' from the 'Securi
ty Type' field and click on search","IDCCorporate Actions Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
8/7/2019 ADRCA_ReportsIDCCorporateActions
19/47
End IfCall select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC11()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchpage not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call ReadallValuesWebList("CorporateActions","Reports - IDC Corp
orate Actions Search","AssignedUserGroup","AssignedUserGroupOptions","IDCCorporateActions")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Verify theitems listed under the 'Assigned to User Group' field.","The following items are available under the 'Assigned to User Group' field:Corporate Actions and Unsponsored, Dividends, Mergers and Acquisitions & HOLDRs, Proxy and Relationship Management"
ElseReporter.ReportEvent micFail,"Step 2: Verify the
items listed under the 'Assigned to User Group' field.","The following items are not available under the 'Assigned to User Group' field:Corporate Actions and Unsponsored, Dividends, Mergers and Acquisitions & HOLDRs, Proxy and RelationshipManagement"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Search","HOME;DR Home")End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC12()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
8/7/2019 ADRCA_ReportsIDCCorporateActions
20/47
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchopened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"Environment.Value("TestCase_Log")="True"
End If
'Step #2Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corporate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfCall chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select values for the 'From date' and 'To Date' fields and select 'Corpoprate Actions andUnsponsored' from the 'AssignedUserGroup' field and click on search ","IDCCorporate Actions Report generated related to the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'Corpoprate Actions andUnsponsored' from the 'AssignedUserGroup' field and click on search","IDCCorporate Actions Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"End If
'Step #3Call chkReportValues("CorporateActions","Reports - IDC Corporate
Actions Results","item","Assigned to User Group",DataTable.Value("AssignedUserGroup","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' column","In the 'Assigned to User Group' column all the values are displayed as'Corporate Actions Unsponsored' ."
ElseReporter.ReportEvent micFail,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' c
8/7/2019 ADRCA_ReportsIDCCorporateActions
21/47
olumn","In the 'Assigned to User Group' column all the values are not displayedas 'Corporate Actions Unsponsored' ."
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC13()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Under Reports menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchopened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchpage not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfCall chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporateActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC CorporateActions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateActions"),"LessThan")
8/7/2019 ADRCA_ReportsIDCCorporateActions
22/47
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'Corpoprate Actions andUnsponsored' from the 'AssignedUserGroup' field and click on search ","IDCCorporate Actions Report generated related to the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'Corpoprate Actions andUnsponsored' from the 'AssignedUserGroup' field and click on search","IDCCorporate Actions Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"End If
'Step #3Call chkReportValues("CorporateActions","Reports - IDC Corporate
Actions Results","item","Assigned to User Group",DataTable.Value("AssignedUserGroup","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' column","In the 'Assigned to User Group' column all the values are displayed as'Dividends' ."
ElseReporter.ReportEvent micFail,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' column","In the 'Assigned to User Group' column all the values are not displayedas 'Dividends' ."
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC14()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchopened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchpage not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - IDC Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
8/7/2019 ADRCA_ReportsIDCCorporateActions
23/47
rporate Actions Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))If DateTimetext"" Then
Reporter.ReportEvent micPass,"Verify the Date and Timestamp of the report",DateTimetext&" is displayed successfully"
ElseReporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfCall chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")Call DateComparision("CorporateActions","Reports - IDC CorporateActions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporateActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC CorporateActions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateActions"),"LessThan")
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'Corpoprate Actions andUnsponsored' from the 'AssignedUserGroup' field and click on search ","IDCCorporate Actions Report is generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Select values for the 'From date' and 'To Date' fields and select 'Corpoprate Actions andUnsponsored' from the 'AssignedUserGroup' field and click on search","IDCCorporate Actions Report is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"End If
'Step #3Call chkReportValues("CorporateActions","Reports - IDC Corporate
Actions Results","item","Assigned to User Group",DataTable.Value("AssignedUserGroup","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' column","In the 'Assigned to User Group' column all the values are displayed as'Mergers and Acquisitions & HOLDRs' ."
ElseReporter.ReportEvent micFail,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' column","In the 'Assigned to User Group' column all the values are not displayedas 'Mergers and Acquisitions & HOLDRs' ."
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
End Function
8/7/2019 ADRCA_ReportsIDCCorporateActions
24/47
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC15()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchopened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchpage not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfCall chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporateActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC CorporateActions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateActions"),"LessThan")
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'Corpoprate Actions andUnsponsored' from the 'AssignedUserGroup' field and click on search ","IDCCorporate Actions Report generated related to the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'Corpoprate Actions and
8/7/2019 ADRCA_ReportsIDCCorporateActions
25/47
Unsponsored' from the 'AssignedUserGroup' field and click on search","IDCCorporate Actions Report is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"End If
'Step #3Call chkReportValues("CorporateActions","Reports - IDC Corporate
Actions Results","item","Assigned to User Group",DataTable.Value("AssignedUserGroup","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' column","In the 'Assigned to User Group' column all the values are displayed as'Proxy' ."
ElseReporter.ReportEvent micFail,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' column","In the 'Assigned to User Group' column all the values are not displayedas 'Proxy' ."
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC16()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchopened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchpage not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corporate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
8/7/2019 ADRCA_ReportsIDCCorporateActions
26/47
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfCall chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")Call DateComparision("CorporateActions","Reports
- IDC Corporate Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporateActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC CorporateActions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateActions"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select values for the 'From date' and 'To Date' fields and select 'Corpoprate Actions andUnsponsored' from the 'AssignedUserGroup' field and click on search ","IDCCorporate Actions Report generated related to the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'Corpoprate Actions andUnsponsored' from the 'AssignedUserGroup' field and click on search","IDCCorporate Actions Report is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"End If
'Step #3
Call chkReportValues("CorporateActions","Reports - IDC CorporateActions Results","item","Assigned to User Group",DataTable.Value("AssignedUserGroup","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' column","In the 'Assigned to User Group' column all the values are displayed as'Relationship Management' ."
ElseReporter.ReportEvent micFail,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' column","In the 'Assigned to User Group' column all the values are not displayedas 'Relationship Management' ."
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC17()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
8/7/2019 ADRCA_ReportsIDCCorporateActions
27/47
Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchopened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Reports menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchpage not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call click_Image("CorporateActions","Reports - IDC Corporate Act
ions Search","ShowCalendar")Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Search").Frame("popCalFrame").WebElement("Today").ClickstrDateText=Trim(Browser("CorporateActions").Page("Reports - IDC
Corporate Actions Search").WebEdit("FromDate").GetROProperty("value"))If DateValue(strDateText)=Date ThenReporter.ReportEvent micPass,"verify today date
is populated or not in the from date field","Todays's date is populated in the from date field"
ElseReporter.ReportEvent micFail,"verify today date
is populated or not in the from date field","Todays's date is not populated in the from date field"
Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Click on t
he calendar icon for the 'From Date' field and in the calendar pop up click on the link Today","The current date is populated in the 'From Date' field."
ElseReporter.ReportEvent micFail,"Step 2: Click on t
he calendar icon for the 'From Date' field and in the calendar pop up click on the link Today","The current date is not populated in the 'From Date' field."
Environment.Value("TestCase_Log")="True"End If
'Step #3Call click_Image("CorporateActions","Reports - IDC Corporate Act
ions Search","ShowCalendar")Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Search").Frame("popCalFrame").Image("ClearFieldValue").ClickstrDateText=Trim(Browser("CorporateActions").Page("Reports - IDC
Corporate Actions Search").WebEdit("FromDate").GetROProperty("value"))If strDateText="" Then
Reporter.ReportEvent micPass,"verify today dateis cleared or not in the from date field","Todays's date is cleared in the fromdate field"
ElseReporter.ReportEvent micFail,"verify today date
is cleared or not in the from date field","Todays's date is not cleared in the f
rom date field"Call captureScreenshot()Environment.Value("Execution_Log")= "False"
8/7/2019 ADRCA_ReportsIDCCorporateActions
28/47
Environment.Value("TestCase_Log")= "False"End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on the calendar icon for the 'From Date' field and in the calendar pop up click on the 'Clear Field Value' icon.","The current date is cleared in the 'From Date' field."
ElseReporter.ReportEvent micFail,"Step 3: Click on t
he calendar icon for the 'From Date' field and in the calendar pop up click on the 'Clear Field Value' icon.","The current date is not cleared in the 'From Date' field."
Environment.Value("TestCase_Log")="True"End If
'Step #4Call click_Image("CorporateActions","Reports - IDC Corporate Act
ions Search","ShowCalendar_2")Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Search").Frame("popCalFrame").WebElement("Today").ClickstrDateText=Trim(Browser("CorporateActions").Page("Reports - IDCCorporate Actions Search").WebEdit("ToDate").GetROProperty("value"))
If DateValue(strDateText)=Date ThenReporter.ReportEvent micPass,"verify today date
is populated or not in the to date field","Todays's date is populated in the todate field"
ElseReporter.ReportEvent micFail,"verify today date
is populated or not in the to date field","Todays's date is not populated in theto date field"
Call captureScreenshot()Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on the calendar icon for the 'To Date' field and in the calendar pop up click on thelink Today","The current date is populated in the 'To Date' field."
ElseReporter.ReportEvent micFail,"Step 4: Click on t
he calendar icon for the 'To Date' field and in the calendar pop up click on thelink Today","The current date is not populated in the 'To Date' field."
Environment.Value("TestCase_Log")="True"End If
'Step #5Call click_Image("CorporateActions","Reports - IDC Corporate Act
ions Search","ShowCalendar_2")Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Search").Frame("popCalFrame").Image("ClearFieldValue").ClickstrDateText=Trim(Browser("CorporateActions").Page("Reports - IDC
Corporate Actions Search").WebEdit("ToDate").GetROProperty("value"))If strDateText="" Then
Reporter.ReportEvent micPass,"verify today dateis cleared or not in the to date field","Todays's date is cleared in the to datefield"
Else
Reporter.ReportEvent micFail,"verify today dateis cleared or not in the to date field","Todays's date is not cleared in the todate field"
8/7/2019 ADRCA_ReportsIDCCorporateActions
29/47
Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Click on the calendar icon for the 'To Date' field and in the calendar pop up click on the
'Clear Field Value' icon.","The current date is cleared in the 'To Date' field."
ElseReporter.ReportEvent micFail,"Step 5: Click on t
he calendar icon for the 'To Date' field and in the calendar pop up click on the'Clear Field Value' icon.","The current date is not cleared in the 'To Date' field."
Environment.Value("TestCase_Log")="True"End If
'Step #6If DataTable.Value("SelectFromDate","IDCCorporateActions") "
" Then strDataTableValue = DataTable.Value("FromDate","IDCCorporateActions")
strValue = Split(strDataTableValue,";",-1,1)strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)Call click_Image("CorporateActions","Reports - I
DC Corporate Actions Search","ShowCalendar")Call ClickIcon_SetDate("CorporateActions","Reports - IDC Corpora
te Actions Search",strMonthValue,strYearValue,strDateValue)End IfstrFrom=Trim(Browser("CorporateActions").Page("Reports - IDC Cor
porate Actions Search").WebEdit("FromDate").GetROProperty("value"))
If DataTable.Value("SelectToDate","IDCCorporateActions") ""Then
strDataTableValue = DataTable.Value("ToDate","IDCCorporateActions")
strValue = Split(strDataTableValue,";",-1,1)strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)Call click_Image("CorporateActions","Reports - I
DC Corporate Actions Search","ShowCalendar_2")Call ClickIcon_SetDate("CorporateActions","Reports - IDC Corpora
te Actions Search",strMonthValue,strYearValue,strDateValue)End IfstrTo=Trim(Browser("CorporateActions").Page("Reports - IDC Corpo
rate Actions Search").WebEdit("ToDate").GetROProperty("value"))If strFrom "" And strTo "" Then
Reporter.ReportEvent micPass,"verify the From and To date are populated","From and To date are populated"
ElseReporter.ReportEvent micFail,"verify the From an
d To date are populated","From and To date are not populated"Call captureScreenshot()Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"End IfIf Environment.Value("TestCase_Log")="True" Then
8/7/2019 ADRCA_ReportsIDCCorporateActions
30/47
Reporter.ReportEvent micPass,"Step 6: Select values for the 'From date' and 'To Date' fields","The dates are selected and displayed"
ElseReporter.ReportEvent micFail,"Step 6: Select val
ues for the 'From date' and 'To Date' fields","The dates are not selected and displayed"
Environment.Value("TestCase_Log")="True"End If
'Step #7Call Select_Combo_Value("CorporateActions","Reports - IDC Corpor
ate Actions Search","AssignedUserGroup",DataTable.Value("SelectAssignedUser","IDCCorporateActions"))
strSelection=Trim(Browser("CorporateActions").Page("Reports - IDC Corporate Actions Search").WebList("AssignedUserGroup").GetROProperty("selection"))
If strSelection=DataTable.Value("SelectAssignedUser","IDCCorporateActions") Then
Reporter.ReportEvent micPass,"verify the velue is selected or not in the assigned to user group field","Value is selected successfully"
ElseReporter.ReportEvent micFail,"verify the velue i
s selected or not in the assigned to user group field","Value is not selected successfully"
Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Select any
item from the 'Assigned to User Group' field.","The item is selected and displayed"
ElseReporter.ReportEvent micFail,"Step 7: Select any
item from the 'Assigned to User Group' field.","The item is not selected and displayed"
Environment.Value("TestCase_Log")="True"End If
'Step #8Call deselect_Combo_Value ("CorporateActions","Reports - IDC Cor
porate Actions Search","AssignedUserGroup",DataTable.Value("SelectAssignedUser","IDCCorporateActions"))
strSelection=Trim(Browser("CorporateActions").Page("Reports - IDC Corporate Actions Search").WebList("AssignedUserGroup").GetROProperty("selection"))
If strSelection="" ThenReporter.ReportEvent micPass,"verify the velue i
s deselected or not in the assigned to user group field","Value is deselected successfully"
ElseReporter.ReportEvent micGFail,"verify the velue
is deselected or not in the assigned to user group field","Value is not deselected successfully"
Call captureScreenshot()Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"End IfIf Environment.Value("TestCase_Log")="True" Then
8/7/2019 ADRCA_ReportsIDCCorporateActions
31/47
Reporter.ReportEvent micPass,"Step 8: Hold the control key and click on 'Dividends' again.","The value is de-selected"
ElseReporter.ReportEvent micFail,"Step 8: Hold the c
ontrol key and click on 'Dividends' again.","The value is not de-selected"Environment.Value("TestCase_Log")="True"
End If
'Step #9Browser("CorporateActions").Page("Reports - IDC Corporate Actions Search
").Image("Search").ClickCall fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfCall chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
Call DateComparision("CorporateActions","Reports- IDC Corporate Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporateActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC CorporateActions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateActions"),"LessThan")
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 9:Select 2 it
ems from the 'Assigned to User Group'field and click on search","IDCCorporate Actions Report generated related to the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 9:Select 2 it
ems from the 'Assigned to User Group'field and click on search","IDCCorporate Actions Report not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"End If
'Step #10Call chkReportValues("CorporateActions","Reports - IDC Corporate
Actions Results","item","Assigned to User Group",DataTable.Value("AssignedUserGroup","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 10: In the re
sults displayed, check for the values displayed in the 'Assigned to User Group'column.","In the 'Assigned to User Group' column all the values are either 'Corp
orate Actions and Unsponsored' or 'Dividends'"Else
Reporter.ReportEvent micFail,"Step 10: In the re
8/7/2019 ADRCA_ReportsIDCCorporateActions
32/47
sults displayed, check for the values displayed in the 'Assigned to User Group'column.","In the 'Assigned to User Group' column all the values are not either 'Corporate Actions and Unsponsored' or 'Dividends"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC18()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchopened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchpage not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - IDC Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Corporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate ActionsResults","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corporate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfCall chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporat
eActions"),"GreaterThan")Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateA
8/7/2019 ADRCA_ReportsIDCCorporateActions
33/47
ctions"),"LessThan")If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Select FromDate and To date and one item items from the 'Assigned to User Group' field andclick on search","IDCCorporate Actions Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2:Select FromDate and To date and one item items from the 'Assigned to User Group' field andclick on search","IDCCorporate Actions Report not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"End If
'Step #3Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Results").WebElement("CUSIPName").ClickCall chkSortOrder("CorporateActions","Reports - IDC Corporate Ac
tions Results", "Item","CUSIP Name","Ascending")
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: Click on any column header","The column is sorted in ascending order"
ElseReporter.ReportEvent micFail,"Step 3: Click on a
ny column header","The column is not sorted in ascending order"Environment.Value("TestCase_Log")="True"
End If
'Step #4Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Results").WebElement("CUSIPName").ClickCall chkSortOrder("CorporateActions","Reports - IDC Corporate Ac
tions Results", "Item","CUSIP Name","Descending")If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click again on the same column header as in Step 3","The column is sorted in descending order"
ElseReporter.ReportEvent micFail,"Step 4: Click agai
n on the same column header as in Step 3","The column is not sorted in descending order"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC19()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
8/7/2019 ADRCA_ReportsIDCCorporateActions
34/47
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchopened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchpage not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))If DateTimetext"" Then
Reporter.ReportEvent micPass,"Verify the Date and Timestamp of the report",DateTimetext&" is displayed successfully"
ElseReporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfCall chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporateActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC CorporateActions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateActions"),"LessThan")
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2:Select From
Date and To date click on search","IDCCorporate Actions Report generated related to the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 2:Select From
Date and To date click on search","IDCCorporate Actions Report not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"End If
'Step #3 To Step #4Call SortCriteria("CorporateActions","Reports - IDC Corporate Ac
tions Results","Sort",DataTable.Value("SortColumn","IDCCorporateActions"),DataTable.Value("SortOrder","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3 & 4:Select
the value 'CUSIP Name' for the 'column' field and select the value 'Descending'
for the 'Order' field and click on Ok.","The results displayed are sorted in descending order based on 'CUSIP Name'"
Else
8/7/2019 ADRCA_ReportsIDCCorporateActions
35/47
Reporter.ReportEvent micFail,"Step 3 & 4:Selectthe value 'CUSIP Name' for the 'column' field and select the value 'Descending'for the 'Order' field and click on Ok.","The results displayed are not sorted indescending order based on 'CUSIP Name'"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC20()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("MenuPath","IDCCorporateActions"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchopened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Searchpage not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"
End IfCall chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporateActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC Corporate
8/7/2019 ADRCA_ReportsIDCCorporateActions