ADRCA_ReportsAgingItems
Transcript of ADRCA_ReportsAgingItems
-
8/7/2019 ADRCA_ReportsAgingItems
1/73
'=========================================================================================================' Name of the Script : Corporate Actions Reports Aging Items' Scope of the Script : This test script covers 39 te
st cases related to the CA reports --> Aging Items' Author : Shyam H D' Description : Corporate Actions Reports Aging Items' Date and / or Version : 05-03-2009,version 1.0'===========================================================================================================
Sub CAReportsAgingItems()
'****Declaration of Environmental Variable
Environment.Value("strSheetName") = "AgingItems"
'''''''''Test case countConst TC_COUNT = 56
strVar = Environment("TestDir")strIndVar = Split(strVar,"\",-1,1)strBound = UBound(strIndVar)strAllPath =""
For intCounter = 0 to strBound - 1strAllPath = 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 MFLogin sheet to the dataTable and Importing the Input DataTable
DataTable.AddSheet "CALogin"
DataTable.ImportSheet strDataPath & "Login.xls","CALogin","CALogin"DataTable.AddSheet "AgingItems"DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","AgingItems","AgingItems"DataTable.AddSheet "ReportHeader"DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","ReportHeader","ReportHeader"DataTable.AddSheet "HomePageVerification"DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","HomePageVerification","HomePageVerification"
' Logs the Scenario name Execution in a .csv file
Call Execution_log(DataTable.Value("Scenario_Name", "Master"), "", "", "")
-
8/7/2019 ADRCA_ReportsAgingItems
2/73
'****Invoking IE and navigating to the ADR Login pageCall 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
Call login("CorporateActions","Login Page","User","CALogin")
Environment.Value("DATATABLE_ROW")=1DataTable.GetSheet("AgingItems").SetCurrentRow(Environment.Value
("DATATABLE_ROW"))
'***************************************** TC Driver Strat *******************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"Environment.Value("TestCase_Log")= "True"If DataTable("TestRunFlag","AgingItems")="Y" Then
''If run flag is Y in test data tableReporter.ReportEvent micDone,"######## BEGIN TES
T CASE - '" & DataTable("TestCaseID","AgingItems") & "' ########### ","Executionof Test Case '" & DataTable("TestCaseDesc","AgingItems") & "' Started"
strFuncName = "CAReportsAgingItems_TC" & intTCCo
unt & "()" ''Formation of function name''Call FunctionExecute "Call " & strFuncName
If Environment.Value("Execution_Log") = "True"Then
Call Execution_log("",Datatable.Value("TestCaseID", "AgingItems"), Datatable.Value("TestCaseDesc", "AgingItems"), "PASS")
ElseCall Execution_log("",Datatable.
Value("TestCaseID", "AgingItems"), Datatable.Value("TestCaseDesc", "AgingItems"), "FAIL")
End IfReporter.ReportEvent micDone,"######### END OF T
EST CASE - '" & DataTable("TestCaseID","AgingItems") & "###########","The Test Case Execution Completed"
End If
strPrevious=Trim(DataTable.Value("TestCaseID","AgingItems"))
''Increment the test data table rowEnvironment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("AgingItems").SetCurrentRow(Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","AgingItems"))
-
8/7/2019 ADRCA_ReportsAgingItems
3/73
While strPrevious = strNextEnvironment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1DataTable.GetSheet("AgingItems").SetCurrentRow(E
nvironment.Value("DATATABLE_ROW"))strNext=Trim(DataTable.Value("TestCaseID","Aging
Items"))
Wend
Next
Call logoutfromApp("CorporateActions","Depositary Receipt Division's")
'***************************************** TC Driver End *******************************************************
End Sub
'**********************************************Test Case 1 to Test Case 56**************************************************
Public Function CAReportsAgingItems_TC1()
Environment.Value("TestCase_Log") = "True"
' Step 1 : Check the Corporate Action Home Page for the 4 links,User Name and the last Login Details
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log") = "True"ThenReporter.ReportEvent micPass,"Step 1: Check for DR Home
Page","The Required Links and the User Details are displayed Successfully"Else
Reporter.ReportEvent micFail,"Step 1: Check for DR HomePage","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
' Clicking on the Corporate Action ElementCall 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"ThenReporter.ReportEvent micPass,"Step 2: Click on Corporate
Action Element and Check for CA Home Page","The Required Menu Items are Displayed Successfully"
ElseReporter.ReportEvent micFail,"Step 2: Click on Corporate
Action Element and Check for CA Home Page","The Required Menu Items are Displayed Successfully"
Environment.Value("TestCase_Log") = "True"
-
8/7/2019 ADRCA_ReportsAgingItems
4/73
Environment.Value("Execution_Log") = "False"End If
' # Step 3 : Selecting the UnderlyingSourceComparison SubMenu from Reports Menu and Waits for the Search Image to be Visible
Call Select_Menu("CorporateActions","CorporateActions",DataTable.Value("MenuPath","AgingItems"))
If Browser("CorporateActions").Page("Reports Aging Items").ExistThen
Reporter.ReportEvent micPass,"Verifying the Reports Aging Items Search page","The Page Reports Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Verifying the Reports Agin
g Items Search page","The Page Reports Aging Items Search is NOT Displayed"Call captureScreenShot()Environment.Value("Execution_Log") = "False"
End If
Call PageCheck_WebListOR("CorporateActions","Reports Aging Items
","SearchCriteria")Call pageCheck_Image("CorporateActions","Reports Aging Items","Clear","")
If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 3: Select Rep
orts Aging Items Menu","The Reports Aging Items Search Page Opens Sucessfully displaying the required Fields"
ElseReporter.ReportEvent micFail,"Step 3: Select Rep
orts Aging Items Menu","The Reports Aging Items Search Page Opens Sucessfully displaying the required Fields."
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
' # Step 4 : Cheking for the Default Value in the Search Criteria Sombobox
strComboValue = Browser("CorporateActions").Page("Reports AgingItems").WebList("SearchCriteria").GetROProperty("default value")
If strComboValue = "" ThenReporter.ReportEvent micPass,"Step 4:Verifiyng the Defau
lt Value in the Search Criteria field","The Default Value is 'Null' in the Search Criteria Field"
ElseReporter.ReportEvent micFail,"Step 4: Verifiyng the Defa
ult Value in the Search Criteria field","The Default Value is NOT 'Null' in theSearch Criteria Field and the value dispalyed is "& strComboValue
Call captureScreenShot()Environment.Value("Execution_Log") = "False"
End If
strAllComboValue = Browser("CorporateActions").Page("Reports Aging Items").WebList("SearchCriteria").GetROProperty("all items")
strAllComboValue = Trim(Mid(strAllComboValue,3))If strAllComboValue = "Exceptions;Relationship Manager Certifica
tion" ThenReporter.ReportEvent micPass,"Step 5 : Verifying All the
Items Present in the Department Field","The Values displayed in the Department
Field are " &strDepartmentValuesElse
Reporter.ReportEvent micFail,"Step 5: Verifying All the
-
8/7/2019 ADRCA_ReportsAgingItems
5/73
Items Present in the Department Field","The Values are Not displayed in the Department Field"
Call captureScreenShot()Environment.Value("Execution_Log") = "False"
End If
Call Select_Menu("CorporateActions","Reports Aging Items","Home;
DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC2()
Environment.Value("TestCase_Log") = "True"
' Clicking onCall Click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
Call Select_Menu("CorporateActions","CorporateActions",DataTable.Value("MenuPath","AgingItems"))
blnFlag = Browser("CorporateActions").Page("Reports Aging Items").Exist(1)
If blnFlag = "False" ThenEnvironment.Value("TestCase_Log") = "False"
End If
If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call Select_Combo_Value("CorporateActions","Reports Aging Items","SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
Call pageCheck_WebEditOR("CorporateActions","Reports Aging Items","Exceptions_FromAgeRange;Exceptions_ToAgeRange;Exceptions_UnderlyingISIN;Exceptions_UnderlyingSEDOL;Exceptions_CustodianName;Exceptions_CustodianBIC")
Call pageCheck_WebListOR("CorporateActions","Reports Aging Items","Exceptions_CorporateActionType;Exceptions_AssignedtoUserGroup;Exceptions_RMNY;Exceptions_RMLocal;Exceptions_CountryofUnderlyingISIN;Exceptions_OrgRegion;Exceptions_Exception;Exceptions_Format")
If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 2: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 2: Verifyingthe Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
-
8/7/2019 ADRCA_ReportsAgingItems
6/73
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call AgingItemsSearchandchkCriteria()intRowCount = Browser("CorporateActions").Page("Reports Aging It
ems").WebTable("Item").RowCount
If intRowCount > 1 ThenCall chkReportValues("CorporateActions","Reports Aging I
tems","Item","Corporate Action Type",DataTable.Value("CorporateActionType","AgingItems"))
ElseReporter.ReportEvent micFail,"Verifying the Number of Re
cords","No Records are displayed for the Search Criteria"Call captureScreenShot()Environment.Value("Execution_Log") = "False"Exit Function
End IfIf Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Verifying the Search Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 3: Verifying the Sear
ch Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call SelectRequiredLink("CorporateActions","Reports Aging Items","Item",DataTable.Value("ClickLink","AgingItems"))
If Environment.Value("TestCase_Log")= "True" ThenblnFlag = Browser("CorporateActions").Page("Und
erlying Security Profile").Exist(1)If blnFlag = "True" AND Environment.Value("TestC
ase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 4: Ve
rifying the page after clicking on one of the ISIN link","The Page Underlying Security Profile is Dispalyed"
ElseReporter.ReportEvent micFail,"Step 4: Ve
rifying the page after clicking on one of the ISIN link","The Page Underlying Security Profile is NOT Dispalyed"
Environment.Value("TestCase_Log") = "True"
Call captureScreenShot()Environment.Value("Execution_Log") = "Fa
lse"End IfCall select_Menu("CorporateActions","Underlying
Security Profile","Home;DR Home")Else
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End If
End Function
-
8/7/2019 ADRCA_ReportsAgingItems
7/73
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC3()
Environment.Value("TestCase_Log") = "True"
Call Click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
Call Select_Menu("CorporateActions","CorporateActions",DataTable.Value("MenuPath","AgingItems"))
blnFlag = Browser("CorporateActions").Page("Reports Aging Items").Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifyingthe Reports Aging Items Search page","The Page Reports - Aging Items Search is D
isplayed" ElseReporter.ReportEvent micFail,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call Select_Combo_Value("CorporateActions","Reports Aging Items","SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Crite
ria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()
If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micPass,"Step 2: Verifying
the Search Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"End If
strSelectLink = Split(DataTable.Value("ClickLink","AgingItems"),";",-1,1)
Call SelectRequiredLink("CorporateActions","Reports Aging Items","Item",strSelectLink(0))
If Environment.Value("TestCase_Log")= "True" ThenblnFlag = Browser("CorporateActions").Page("Un
derlying Notification").Exist(1)If blnFlag = "True" AND Environment.Value("TestC
ase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Verifying the page after clicking on one of the link" & strSelectLink(0),"The PageUnderlying Notification is Dispalyed"
-
8/7/2019 ADRCA_ReportsAgingItems
8/73
-
8/7/2019 ADRCA_ReportsAgingItems
9/73
If blnFlag = "True" AND Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Verifying the page after clicking on one of the link" & strSelectLink(1),"The PageCustodian Profile is Dispalyed"
Call select_Menu("CorporateActions","Custodian Profile","Home;DR Home")
ElseReporter.ReportEvent micFail,"Step 6: V
erifying the page after clicking on one of the link" & strSelectLink(1),"The Page Custodian Profile is NOT Dispalyed"
Call captureScreenShot()Environment.Value("TestCase_Log") = "Tru
e"Environment.Value("Execution_Log") = "Fa
lse"Call select_Menu("CorporateActions","Rep
orts Aging Items",DataTable.Value("MenuPath","Agingitems"))End If
Else Call select_Menu("CorporateActions","Reports Aging Items",DataTable.Value("MenuPath","Agingitems"))
End IfEnd Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC4()
Environment.Value("TestCase_Log") = "True"
Call Click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
Call Select_Menu("CorporateActions","CorporateActions",DataTable.Value("MenuPath","AgingItems"))
blnFlag = Browser("CorporateActions").Page("Reports Aging Items").Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifyingthe Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call Select_Combo_Value("CorporateActions","Reports Aging Items","SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Header
-
8/7/2019 ADRCA_ReportsAgingItems
10/73
sCall AgingItemsSearchandchkCriteria()
intRowCount = Browser("CorporateActions").Page("Reports AgingItems").WebTable("Item").RowCount
If intRowCount > 1 ThenCall chkReportValues("CorporateActions","Reports Aging I
tems","Item","RM NY",DataTable.Value("RMNY","AgingItems"))
ElseReporter.ReportEvent micFail,"Verifying the Number of Re
cords","No Records are displayed for the Search Criteria"Call captureScreenShot()Environment.Value("Execution_Log") = "False"Environment.Value("TestCase_Log") = "False"'Exit Function
End If
If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are Generated and Displayed acco
rding to the Search Criteria"ElseReporter.ReportEvent micFail,"Step 2: Verifying
the Search Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC5()
Environment.Value("TestCase_Log") = "True"
Call Click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
Call Select_Menu("CorporateActions","CorporateActions",DataTable.Value("MenuPath","AgingItems"))
blnFlag = Browser("CorporateActions").Page("Reports Aging Items").Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifyingthe Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
-
8/7/2019 ADRCA_ReportsAgingItems
11/73
Call Select_Combo_Value("CorporateActions","Reports Aging Items","SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()intRowCount = Browser("CorporateActions").Page("Reports Aging
Items").WebTable("Item").RowCountIf intRowCount > 1 Then
Call chkReportValues("CorporateActions","Reports Aging Items","Item","RM Local",DataTable.Value("RMLocal","AgingItems"))
ElseReporter.ReportEvent micFail,"Verifying the Number of Re
cords","No Records are displayed for the Search Criteria"Call captureScreenShot()Environment.Value("Execution_Log") = "False"Environment.Value("TestCase_Log") = "False"
'Exit FunctionEnd IfIf Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Search Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 2: Verifying
the Search Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC6()
Environment.Value("TestCase_Log") = "True"
Call Click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
Call Select_Menu("CorporateActions","CorporateActions",DataTable.Value("MenuPath","AgingItems"))
blnFlag = Browser("CorporateActions").Page("Reports Aging Items").Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifying the Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed
"Else
Reporter.ReportEvent micFail,"Step 1: Verifying the Repo
-
8/7/2019 ADRCA_ReportsAgingItems
12/73
rts Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()
If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Search Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsAgingItems_TC7()
Environment.Value("TestCase_Log") = "True"
Call Click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
Call Select_Menu("CorporateActions","CorporateActions",DataTable.Value("MenuPath","AgingItems"))
blnFlag = Browser("CorporateActions").Page("Reports Aging Items").Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifying the Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying the Repo
rts Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call Select_Combo_Value("CorporateActions","Reports Aging Items","SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
-
8/7/2019 ADRCA_ReportsAgingItems
13/73
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()intRowCount = Browser("CorporateActions").Page("Reports Aging
Items").WebTable("Item").RowCount
If intRowCount > 1 ThenCall chkReportValues("CorporateActions","Reports Aging I
tems","Item","Country of Und. ISIN",DataTable.Value("CountryofUnderlyingISIN","AgingItems"))
ElseReporter.ReportEvent micFail,"Verifying the Number of Re
cords","No Records are displayed for the Search Criteria"Call captureScreenShot()Environment.Value("Execution_Log") = "False"Environment.Value("TestCase_Log") = "False"'Exit Function
End If
If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC8()
Environment.Value("TestCase_Log") = "True"
Call Click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
'# Step 1Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","AgingItems"))blnFlag = Browser("CorporateActions").Page("Reports Aging Items"
).Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifyingthe Reports Aging Items Search page","The Page Reports - Aging Items Search is D
isplayed"Else
Reporter.ReportEvent micFail,"Step 1: Verifying
-
8/7/2019 ADRCA_ReportsAgingItems
14/73
the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"End If
Call Select_Combo_Value("CorporateActions","Reports Aging Items","SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
'# Step 2Call Select_Combo_Value("CorporateActions","Reports Aging Items"
,"Exceptions_OrgRegion",DataTable.Value("OgrRegionDeselect","AgingItems"))If Environment.Value("TestCase_Log") = "True" AND blnFlag = "Tru
e" ThenReporter.ReportEvent micPass,"Step 2: Verifying the Sele
cted Value in the Field","The Value Selected is "& DataTable.Value("OgrRegionDeselect","AgingItems")
ElseReporter.ReportEvent micFail,"Step 2: Verifying the Sele
cted Value in the Field","The Value "& DataTable.Value("OgrRegionDeselect","AgingItems") & "is NOT Selected"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"End If
'# Step 3Call deselect_Combo_Value("CorporateActions","Reports Aging Item
s","Exceptions_OrgRegion",DataTable.Value("OgrRegionDeselect","AgingItems"))If Environment.Value("TestCase_Log") = "True" AND blnFlag = "Tr
ue" ThenReporter.ReportEvent micPass,"Step 3: Verifying
if the Value is Deselected or NOT","The Value "& DataTable.Value("OgrRegionDeselect","AgingItems") & "is DeSelected"
Else
Reporter.ReportEvent micFail,"Step 3: Verifyingif the Value is Deselected or NOT","The Value "& DataTable.Value("OgrRegionDeselect","AgingItems") & "is NOT DeSelected"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()
intRowCount = Browser("CorporateActions").Page("Reports AgingItems").WebTable("Item").RowCount
If intRowCount > 1 ThenCall chkReportValues("CorporateActions","Reports Aging I
tems","Item","Org. Region",DataTable.Value("OrgRegion","AgingItems"))Else
Reporter.ReportEvent micFail,"Verifying the Number of Records","No Records are displayed for the Search Criteria"
Call captureScreenShot()Environment.Value("Execution_Log") = "False"Environment.Value("TestCase_Log") = "False"Exit Function
End If
If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 4: Verifying the Sear
ch Criteria and the Report Header","The Results are Generated and Displayed acco
-
8/7/2019 ADRCA_ReportsAgingItems
15/73
rding to the Search Criteria"Else
Reporter.ReportEvent micFail,"Step 4: Verifying the Search Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC9()
Environment.Value("TestCase_Log") = "True"
Call Click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
Call Select_Menu("CorporateActions","CorporateActions",DataTable.Value("MenuPath","AgingItems"))
blnFlag = Browser("CorporateActions").Page("Reports Aging Items").Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifying the Repo
rts Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying the Repo
rts Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call Select_Combo_Value("CorporateActions","Reports Aging Items","SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
strExceptionComboValues = Browser("CorporateActions").Page("Reports Aging Items").WebList("Exceptions_Exception").GetROProperty("all items")
strExceptionComboValues = Trim(strExceptionComboValues)If strExceptionComboValues = DataTable.Value("FieldValue","Aging
Items") ThenReporter.ReportEvent micPass,"Step 2: Verifying if the R
equired Items are Present in the Exception Field","The Required Items are Present in the Field"
ElseReporter.ReportEvent micFail,"Step 2: Verifying if the R
equired Items are Present in the Exception Field","The Required Items are NOT Present in the Field"
Call captureScreenShot()Environment.Value("Execution_Log") = "False"
End If
-
8/7/2019 ADRCA_ReportsAgingItems
16/73
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Verifying the Search Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 3: Verifying the Sear
ch Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;
DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC10()
Environment.Value("TestCase_Log") = "True"' Clicking on the Corporate Action Link and Selecting the Aging
Item MenuCall Click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","AgingItems"))blnFlag = Browser("CorporateActions").Page("Reports Aging Items"
).Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifying the Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying the Repo
rts Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
' Select a Value in the Search Criteria Combo boxCall Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Repor
t HeadersCall AgingItemsSearchandchkCriteria()
intRowCount = Browser("CorporateActions").Page("Reports Aging I
-
8/7/2019 ADRCA_ReportsAgingItems
17/73
tems").WebTable("Item").RowCountIf intRowCount > 1 Then
Call chkReportValues("CorporateActions","Reports Aging Items","Item","ISIN",DataTable.Value("UnderlyingISIN","AgingItems"))
ElseReporter.ReportEvent micFail,"Verifying the Number of Re
cords","No Records are displayed for the Search Criteria"
Call captureScreenShot()Environment.Value("Execution_Log") = "False"Environment.Value("TestCase_Log") = "False"'Exit Function
End If
If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsAgingItems_TC11()
Environment.Value("TestCase_Log") = "True"
' Clicking on the Corporate Action Link and Selecting the AgingItem Menu
Call Click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
Call Select_Menu("CorporateActions","CorporateActions",DataTable.Value("MenuPath","AgingItems"))
blnFlag = Browser("CorporateActions").Page("Reports Aging Items").Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifyingthe Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Call captureScreenShot()
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
-
8/7/2019 ADRCA_ReportsAgingItems
18/73
' Select a Value in the Search Criteria Combo boxCall Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Criteria,Checking for the Links, checking for the Time stamp and check for the Report Hea
dersCall AgingItemsSearchandchkCriteria()
intRowCount = Browser("CorporateActions").Page("Reports Aging Items").WebTable("Item").RowCount
If intRowCount > 1 ThenCall chkReportValues("CorporateActions","Reports Aging I
tems","Item","SEDOL",DataTable.Value("UnderlyingSEDOL","AgingItems"))Else
Reporter.ReportEvent micFail,"Verifying the Number of Records","No Records are displayed for the Search Criteria"
Call captureScreenShot()Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "False"'Exit FunctionEnd IfIf Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Search Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC12()
Environment.Value("TestCase_Log") = "True"
' Clicking on the Corporate Action Link and Selecting the AgingItem Menu
Call Click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
Call Select_Menu("CorporateActions","CorporateActions",DataTable.Value("MenuPath","AgingItems"))
blnFlag = Browser("CorporateActions").Page("Reports Aging Items").Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifying the Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
-
8/7/2019 ADRCA_ReportsAgingItems
19/73
ElseReporter.ReportEvent micFail,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
' Select a Value in the Search Criteria Combo boxCall Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()intRowCount = Browser("CorporateActions").Page("Reports Aging
Items").WebTable("Item").RowCountIf intRowCount < 2 Then
Reporter.ReportEvent micFail,"Verifying the Number of Records","No Records are displayed for the Search Criteria"Call captureScreenShot()Environment.Value("Execution_Log") = "False"Environment.Value("TestCase_Log") = "False"'Exit Function
End IfIf Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Search Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 2: Verifying
the Search Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC13()
Environment.Value("TestCase_Log") = "True"
' Clicking on the Corporate Action Link and Selecting the AgingItem Menu
Call Click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
Call Select_Menu("CorporateActions","CorporateActions",DataTable.Value("MenuPath","AgingItems"))
blnFlag = Browser("CorporateActions").Page("Reports Aging Items").Exist(1)
-
8/7/2019 ADRCA_ReportsAgingItems
20/73
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifyingthe Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
' Select a Value in the Search Criteria Combo boxCall Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Repor
t HeadersCall AgingItemsSearchandchkCriteria()intRowCount = Browser("CorporateActions").Page("Reports Aging
Items").WebTable("Item").RowCountIf intRowCount < 2 Then
Reporter.ReportEvent micFail,"Verifying the Number of Records","No Records are displayed for the Search Criteria"
Call captureScreenShot()Environment.Value("Execution_Log") = "False"Environment.Value("TestCase_Log") = "False"'Exit Function
End IfIf Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Search Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 2: Verifying
the Search Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC14()
Environment.Value("TestCase_Log") = "True"' Clicking on the Corporate Action Link and Selecting the Aging
Item Menu
Call Click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
Call Select_Menu("CorporateActions","CorporateActions",DataTable
-
8/7/2019 ADRCA_ReportsAgingItems
21/73
.Value("MenuPath","AgingItems"))blnFlag = Browser("CorporateActions").Page("Reports Aging Items"
).Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
' Select a Value in the Search Criteria Combo boxCall Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))strFormatComboValues = Browser("CorporateActions").Page("Reports
Aging Items").WebList("Exceptions_Format").GetROProperty("all items")strFormatComboValues = Trim(strFormatComboValues)
If strFormatComboValues = DataTable.Value("FieldValue","AgingItems") Then
Reporter.ReportEvent micPass,"Step 2: Verifying if the Required Items are Present in the Format Field","The Required Items are Present in the Field"
ElseReporter.ReportEvent micFail,"Step 2: Verifying if the R
equired Items are Present in the Format Field","The Required Items are NOT Prese
nt in the Field"Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()intRowCount = Browser("CorporateActions").Page("Reports Aging It
ems").WebTable("Item").RowCountIf intRowCount > 1 Then
Call chkReportValues("CorporateActions","Reports Aging Items","Item","Format",DataTable.Value("Format","AgingItems"))
ElseReporter.ReportEvent micFail,"Verifying the Number of Re
cords","No Records are displayed for the Search Criteria"Call captureScreenShot()Environment.Value("Execution_Log") = "False"Environment.Value("TestCase_Log") = "False"'Exit Function
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Search Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
-
8/7/2019 ADRCA_ReportsAgingItems
22/73
ElseReporter.ReportEvent micFail,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC15()
Environment.Value("TestCase_Log") = "True"' Clicking on the Corporate Action Link and Selecting the AgingItem Menu
Call Click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
Call Select_Menu("CorporateActions","CorporateActions",DataTable.Value("MenuPath","AgingItems"))
blnFlag = Browser("CorporateActions").Page("Reports Aging Items").Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
' Select a Value in the Search Criteria Combo boxCall Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()intRowCount = Browser("CorporateActions").Page("Reports Aging It
ems").WebTable("Item").RowCountIf intRowCount < 2 Then
Reporter.ReportEvent micFail,"Verifying the Number of Records","No Records are displayed for the Search Criteria"
Call captureScreenShot()Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "False"'Exit Function
End If
-
8/7/2019 ADRCA_ReportsAgingItems
23/73
If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 2: Verifying
the Search Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
' Select a Link from the TableCall SelectRequiredLink("CorporateActions","Reports Aging Items"
,"Item",DataTable.Value("ClickLink","AgingItems"))
If Environment.Value("TestCase_Log")= "True" ThenblnFlag = Browser("CorporateActions").Page("Cus
todian Profile").Exist(1) If blnFlag = "True" AND Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Verifying the page after clicking on one of the link" & DataTable.Value("ClickLink","AgingItems"),"The Page Underlying Security Profile is Dispalyed"
ElseReporter.ReportEvent micFail,"Step 4: Ve
rifying the page after clicking on one of the link" & DataTable.Value("ClickLink","AgingItems"),"The Page Underlying Security Profile is NOT Dispalyed"
Call captureScreenShot()Environment.Value("TestCase_Log") = "Tru
e"
Environment.Value("Execution_Log") = "False"
End IfCall select_Menu("CorporateActions","Custodian P
rofile","Home;DR Home")Else
Call select_Menu("CorporateActions","Reports Aging Items",DataTable.Value("MenuPath","Agingitems"))
End IfEnd Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC16()
Environment.Value("TestCase_Log") = "True"' Clicking on the Corporate Action Link and Selecting the Aging
Item MenuCall Click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","AgingItems"))
blnFlag = Browser("CorporateActions").Page("Reports Aging Items").Exist(1)
-
8/7/2019 ADRCA_ReportsAgingItems
24/73
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifyingthe Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"End If
' Select a Value in the Search Criteria Combo boxCall Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()intRowCount = Browser("CorporateActions").Page("Reports Aging Items").WebTable("Item").RowCount
If intRowCount < 2 ThenReporter.ReportEvent micFail,"Verifying the Number of Re
cords","No Records are displayed for the Search Criteria"Call captureScreenShot()Environment.Value("Execution_Log") = "False"Environment.Value("TestCase_Log") = "False"'Exit Function
End IfIf Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC17()
Environment.Value("TestCase_Log") = "True"' Clicking on the Corporate Action Link and Selecting the Aging
Item MenuCall Click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","AgingItems"))
-
8/7/2019 ADRCA_ReportsAgingItems
25/73
blnFlag = Browser("CorporateActions").Page("Reports Aging Items").Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifying the Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed
"Else
Reporter.ReportEvent micFail,"Step 1: Verifying the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
' Select a Value in the Search Criteria Combo boxCall Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()intRowCount = Browser("CorporateActions").Page("Reports Aging It
ems").WebTable("Item").RowCountIf intRowCount < 2 Then
Reporter.ReportEvent micFail,"Verifying the Number of Records","No Records are displayed for the Search Criteria"
Call captureScreenShot()Environment.Value("Execution_Log") = "False"Environment.Value("TestCase_Log") = "False"
'Exit FunctionEnd If
If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC18()
Environment.Value("TestCase_Log") = "True"' Clicking on the Corporate Action Link and Selecting the Aging
Item Menu
-
8/7/2019 ADRCA_ReportsAgingItems
26/73
Call Click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
Call Select_Menu("CorporateActions","CorporateActions",DataTable.Value("MenuPath","AgingItems"))
blnFlag = Browser("CorporateActions").Page("Reports Aging Items").Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifying the Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying the Repo
rts Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
' Select a Value in the Search Criteria Combo boxCall Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()intRowCount = Browser("CorporateActions").Page("Reports Aging It
ems").WebTable("Item").RowCountIf intRowCount < 2 Then
Reporter.ReportEvent micFail,"Verifying the Number of Re
cords","No Records are displayed for the Search Criteria"Call captureScreenShot()Environment.Value("Execution_Log") = "False"Environment.Value("TestCase_Log") = "False"'Exit Function
End IfIf Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Search Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC19()
-
8/7/2019 ADRCA_ReportsAgingItems
27/73
Environment.Value("TestCase_Log") = "True"' Clicking on the Corporate Action Link and Selecting the Aging
Item MenuCall Click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","AgingItems"))
blnFlag = Browser("CorporateActions").Page("Reports Aging Items").Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifying the Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying the Repo
rts Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"End If
' Select a Value in the Search Criteria Combo boxCall Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()intRowCount = Browser("CorporateActions").Page("Reports Aging It
ems").WebTable("Item").RowCountIf intRowCount < 2 Then
Reporter.ReportEvent micFail,"Verifying the Number of Records","No Records are displayed for the Search Criteria"
Call captureScreenShot()Environment.Value("Execution_Log") = "False"Environment.Value("TestCase_Log") = "False"'Exit Function
End IfIf Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Search Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
8/7/2019 ADRCA_ReportsAgingItems
28/73
Public Function CAReportsAgingItems_TC20()
Environment.Value("TestCase_Log") = "True"' Clicking on the Corporate Action Link and Selecting the Aging
Item MenuCall Click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","AgingItems"))blnFlag = Browser("CorporateActions").Page("Reports Aging Items"
).Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifying the Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
' Select a Value in the Search Criteria Combo boxCall Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Criteria,Checking for the Links, checking for the Time stamp and check for the Report Hea
dersCall AgingItemsSearchandchkCriteria()
intRowCount = Browser("CorporateActions").Page("Reports Aging Items").WebTable("Item").RowCount
If intRowCount < 2 ThenReporter.ReportEvent micFail,"Verifying the Number of Re
cords","No Records are displayed for the Search Criteria"Call captureScreenShot()Environment.Value("Execution_Log") = "False"Environment.Value("TestCase_Log") = "False"'Exit Function
End If
If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
-
8/7/2019 ADRCA_ReportsAgingItems
29/73
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC21()
' Rejected Event as the Search CriteriaEnvironment.Value("TestCase_Log") = "True"' Clicking on the Corporate Action Link and Selecting the Aging
Item MenuCall Click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","AgingItems"))blnFlag = Browser("CorporateActions").Page("Reports Aging Items"
).Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" ThenReporter.ReportEvent micPass,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"End If
' Select a Value in the Search Criteria Combo box
Call Select_Combo_Value("CorporateActions","Reports Aging Items","SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Checking for the Fields present in the Report Aging Item Search after Selecting "Rejected Events" as the Search Criteria
Call pageCheck_WebEditOR("CorporateActions","Reports Aging Items","RejectedEvents_FromAgeRange;RejectedEvents_ToAgeRange;RejectedEvents_EventName;RejectedEvents_UnderlyingISIN;RejectedEvents_UnderlyingSEDOL")
Call pageCheck_WebListOR("CorporateActions","Reports Aging Items","RejectedEvents_CorporateActionType;RejectedEvents_Owner;RejectedEvents_RMNY;RejectedEvents_RMLocal;RejectedEvents_CountryofUnderlyingISIN;RejectedEvents_OrgRegion;RejectedEvents_Exception")
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 2: Verifyingthe Fields after Selecting the Search Criteria as Rejected Events","The RequiredFields are present in the Report Aging Items Search Page"
ElseReporter.ReportEvent micFail,"Step 2: Verifying
the Fields after Selecting the Search Criteria as Rejected Events","The RequiredFields are NOT Present in the Report Aging Items Search Page"
Environment.Value("TestCase_Log") = "True"End If
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
-
8/7/2019 ADRCA_ReportsAgingItems
30/73
Call AgingItemsSearchandchkCriteria()
If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 3: Verifying the Sear
ch Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 3: Verifyingthe Search Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"End If
' Selecting any of the Link from the Result Report TableCall SelectRequiredLink("CorporateActions","Reports Aging Items"
,"Item",DataTable.Value("ClickLink","AgingItems"))
If Environment.Value("TestCase_Log")= "True" ThenblnFlag = Browser("CorporateActions").Page("Unde
rlying Security Profile").Exist(1)If blnFlag = "True" AND Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Verifying the page after clicking on one of the Link " & DataTable.Value("ClickLink","AgingItems"),"The Page Underlying Security Profile is Dispalyed"
ElseReporter.ReportEvent micFail,"Step 4: Ve
rifying the page after clicking on one of the Link " & DataTable.Value("ClickLink","AgingItems"),"The Page Underlying Security Profile is NOT Dispalyed"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "Fa
lse"End IfCall select_Menu("CorporateActions","Underlying
Security Profile","Home;DR Home")Else
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End If
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC22()
Environment.Value("TestCase_Log") = "True"' Clicking on the Corporate Action Link and Selecting the Aging
Item MenuCall Click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","AgingItems"))blnFlag = Browser("CorporateActions").Page("Reports Aging Items"
).Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "Tru
-
8/7/2019 ADRCA_ReportsAgingItems
31/73
e" ThenReporter.ReportEvent micPass,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is N
OT Displayed"Environment.Value("TestCase_Log") = "True"
End If
' Select a Value in the Search Criteria Combo boxCall Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()
If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 2: Verifying
the Search Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
' Selecting any of the Link from the Result Report TableCall SelectRequiredLink("CorporateActions","Reports Aging Items"
,"Item",DataTable.Value("ClickLink","AgingItems"))
If Environment.Value("TestCase_Log")= "True" ThenblnFlag = Browser("CorporateActions").Page("Unde
rlying Event").Exist(1)If blnFlag = "True" AND Environment.Value("TestC
ase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 3: Ve
rifying the page after clicking on one of the Link " & DataTable.Value("ClickLink","AgingItems"),"The Page Underlying Security Profile is Dispalyed"
ElseReporter.ReportEvent micFail,"Step 3: Ve
rifying the page after clicking on one of the Link " & DataTable.Value("ClickLink","AgingItems"),"The Page Underlying Security Profile is NOT Dispalyed"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End IfCall select_Menu("CorporateActions","Underlying
Event","Home;DR Home")Else
Call select_Menu("CorporateActions","Reports Agi
ng Items","Home;DR Home")End If
-
8/7/2019 ADRCA_ReportsAgingItems
32/73
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC23()
Environment.Value("TestCase_Log") = "True"' Clicking on the Corporate Action Link and Selecting the Aging
Item MenuCall Click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","AgingItems"))blnFlag = Browser("CorporateActions").Page("Reports Aging Items"
).Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifyingthe Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"End If
' Select a Value in the Search Criteria Combo boxCall Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
'' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()
If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 2: Verifying
the Search Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC24()
-
8/7/2019 ADRCA_ReportsAgingItems
33/73
Environment.Value("TestCase_Log") = "True"' Clicking on the Corporate Action Link and Selecting the Aging
Item MenuCall Click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","AgingItems"))
blnFlag = Browser("CorporateActions").Page("Reports Aging Items").Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifyingthe Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"End If
' Select a Value in the Search Criteria Combo boxCall Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Search Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 2: Verifying
the Search Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC25()
Environment.Value("TestCase_Log") = "True"' Clicking on the Corporate Action Link and Selecting the Aging
Item Menu
Call Click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
Call Select_Menu("CorporateActions","CorporateActions",DataTable
-
8/7/2019 ADRCA_ReportsAgingItems
34/73
.Value("MenuPath","AgingItems"))blnFlag = Browser("CorporateActions").Page("Reports Aging Items"
).Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"End If
' Select a Value in the Search Criteria Combo boxCall Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()
If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 2: Verifying the Sear
ch Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 2: Verifying
the Search Criteria and the Report Header","The Results are NOT Displayed accord
ing to the Search Criteria"Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC26()
Environment.Value("TestCase_Log") = "True"' Clicking on the Corporate Action Link and Selecting the Aging
Item MenuCall Click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","AgingItems"))blnFlag = Browser("CorporateActions").Page("Reports Aging Items"
).Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "Tru
e" Then
-
8/7/2019 ADRCA_ReportsAgingItems
35/73
Reporter.ReportEvent micPass,"Step 1: Verifyingthe Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"End If
' Select a Value in the Search Criteria Combo boxCall Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()
If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 2: Verifying the Search Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 2: Verifying
the Search Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home"
)
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC27()
Environment.Value("TestCase_Log") = "True"
Call Click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
'# Step 1Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","AgingItems"))blnFlag = Browser("CorporateActions").Page("Reports Aging Items"
).Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifyingthe Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is N
-
8/7/2019 ADRCA_ReportsAgingItems
36/73
OT Displayed"Environment.Value("TestCase_Log") = "True"
End If
Call Select_Combo_Value("CorporateActions","Reports Aging Items","SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
'# Step 2
Call Select_Combo_Value("CorporateActions","Reports Aging Items","Exceptions_OrgRegion",DataTable.Value("OgrRegionDeselect","AgingItems"))
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 2: Verifyingthe Selected Value in the Field","The Value Selected is "& DataTable.Value("OgrRegionDeselect","AgingItems")
ElseReporter.ReportEvent micFail,"Step 2: Verifying
the Selected Value in the Field","The Value "& DataTable.Value("OgrRegionDeselect","AgingItems") & "is NOT Selected"
Environment.Value("TestCase_Log") = "True"
End If
'# Step 3Call deselect_Combo_Value("CorporateActions","Reports Aging Item
s","Exceptions_OrgRegion",DataTable.Value("OgrRegionDeselect","AgingItems"))If Environment.Value("TestCase_Log") = "True" AND blnFlag = "Tr
ue" ThenReporter.ReportEvent micPass,"Step 3: Verifying
if the Value is Deselected or NOT","The Value "& DataTable.Value("OgrRegionDeselect","AgingItems") & "is DeSelected"
ElseReporter.ReportEvent micFail,"Step 3: Verifying
if the Value is Deselected or NOT","The Value "& DataTable.Value("OgrRegionDesel
ect","AgingItems") & "is NOT DeSelected"Environment.Value("TestCase_Log") = "True"
End If
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()
If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 4: Verifying the Sear
ch Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFail,"Step 4: Verifying
the Search Criteria and the Report Header","The Results are NOT Displayed according to the Search Criteria"
Environment.Value("TestCase_Log") = "True"End If
Call select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
8/7/2019 ADRCA_ReportsAgingItems
37/73
Public Function CAReportsAgingItems_TC28()
Environment.Value("TestCase_Log") = "True"' Clicking on the Corporate Action Link and Selecting the Aging
Item MenuCall Click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","AgingItems"))blnFlag = Browser("CorporateActions").Page("Reports Aging Items"
).Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifyingthe Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifyingthe Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"End If
' Select a Value in the Search Criteria Combo boxCall Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Check for the Values Displayed in the Exception FieldstrValues = Browser("CorporateActions").Page("Reports Aging Item
s").WebList("RejectedEvents_Exception").GetROProperty("all items")
If strValues = DataTable.Value("FieldValue","AgingItems") ThenReporter.ReportEvent micPass,"Step 2: Verifying the Item
s Displayed in the Field","The Required Items are Displayed in Field"Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Items Displayed in the Field","The Required Items are NOT Displayed in Field"
Environment.Value("TestCase_Log") = "False"Environment.Value("Execution_Log") = "False"
End If
strRequiredValue = DataTable.Value("FieldValue","AgingItems")strRequiredValue = Split(strRequiredValue,";",-1,1)For intCounter = 0 to UBound(strRequiredValue)
' Select a Value in the Search Criteria Combo box
Call Select_Combo_Value("CorporateActions","Reports Aging Items","SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Select a Value in Exception Field and fetch the entered Data
Call Select_Combo_Value("CorporateActions","Reports Aging Items","RejectedEvents_Exception",strRequiredValue(intCounter))
strExceptionValue = get_WebList_Value("Corporate
Actions","Reports Aging Items","RejectedEvents_Exception")If strExceptionValue "All" Then
strValue = "Exception-"&strExceptionValu
-
8/7/2019 ADRCA_ReportsAgingItems
38/73
eElse
strValue = ""End If
' Click on the Search ImageCall click_Image("CorporateActions","Reports Aging Items","Searc
h")
' Wait till the Table is LoadedCall ReportLoadWait("CorporateActions","Reports
Aging Items","Item","Item")
intRowCount = Browser("CorporateActions").Page("Reports Aging Items").WebTable("index:=5").RowCount
strFinalValue = ""For intCounters = 2 to intRowCount
strFieldText=Trim(Browser("CorporateActions").Page("Reports Aging Items").WebTable("index:=5").GetCellDa
ta(intCounters,1)) strValText=Trim(Browser("CorporateActions").Page("Reports Aging Items").WebTable("index:=5").GetCellData(intCounters,2))
intLen = Len(strValText)intPosValue = InStr(intLen,strValText,";")
If intPosValue 0 ThenstrValText = Mid
(strValText,1,intLen-1)End IfstrFinal=strFieldText &
"-" & strValTextstrFinalValue = strFinal
Value & strFinalNext
If Ucase(strFinalValue)= Ucase(strValue) ThenReporter.ReportEvent micPass,"Ve
rify the search criteria fields and values are displayed correctly or not","Search criteria fields and values are displayed correctly"
Else'Reporter.ReportEvent micFail,"V
erify the search criteria fields and values are displayed correctly or not","Search criteria fields and values are not displayed correctly"
Reporter.ReportEvent micFail,"Expected Result - " & strVal, "Displayed Result - " & strFinalFVVal
Call captureScreenShot()Environment.Value("Execution_Log
") = "False"End If
' Check for the Four Report links namely Search, Filter, Sort and Save as Excel
Call chkReportLinks("CorporateActions","ReportsAging Items","AgingItems","AgingItemsReportLinks")
' Check for the Header Names in the Result Report TableCall chkReportHeader("CorporateActions","Reports
Aging Items",DataTable.Value("ReportHeader","AgingItems"))
' Checks if the Date and Time is Diasplayed
-
8/7/2019 ADRCA_ReportsAgingItems
39/73
blnTimeFlag = Browser("CorporateActions").Page("Reports Aging Items").WebElement("html tag:=SPAN","innertext:=As Of.*").Exist(2)
If blnTimeFlag ThenstrDisplayedDate = Browser("CorporateAct
ions").Page("Reports Aging Items").WebElement("html tag:=SPAN","innertext:=As Of.*").GetROProperty("innertext")
Reporter.ReportEvent micPass,"Verifying
the Time Stamp present in the Application","The time stamp dispalyed in the Application is " & strDisplayedDate
ElseReporter.ReportEvent micFail,"Verifying
the Time Stamp present in the Application","The time stamp is NOT Dispalyed in the Application"
Call captureScreenShot()Environment.Value("Execution_Log") = "Fa
lse"End If
If Environment.Value("TestCase_Log") = "True" T
hen Reporter.ReportEvent micPass,"Step "& intCounter+1 & ": Verifying the Report Links and the ReportHeader","The Report Link and Report Header are Displayed"
ElseReporter.ReportEvent micFail,"Step "& in
tCounter+1 & ": Verifying the Report Links and the ReportHeader","The Report Link and Report Header are NOT Displayed"
Environment.Value("TestCase_Log") = "True"
End If
Call Select_Menu("CorporateActions","Reports Agi
ng Items",DataTable.Value("MenuPath","AgingItems"))
Next
Call Select_Menu("CorporateActions","Reports Aging Items","Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsAgingItems_TC29()
Environment.Value("TestCase_Log") = "True"' Clicking on the Corporate Action Link and Selecting the Aging
Item MenuCall Click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","AgingItems"))blnFlag = Browser("CorporateActions").Page("Reports Aging Items"
).Exist(1)
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifying
-
8/7/2019 ADRCA_ReportsAgingItems
40/73
the Reports Aging Items Search page","The Page Reports - Aging Items Search is Displayed"
ElseReporter.ReportEvent micFail,"Step 1: Verifying
the Reports Aging Items Search page","The Page Reports - Aging Items Search is NOT Displayed"
Environment.Value("TestCase_Log") = "True"
End If
' Select a Value in the Search Criteria Combo boxCall Select_Combo_Value("CorporateActions","Reports Aging Items"
,"SearchCriteria",DataTable.Value("SearchCriteria","AgingItems"))
' Entering the Search Criteria, reverifying for the Search Criteria, Checking for the Links, checking for the Time stamp and check for the Report Headers
Call AgingItemsSearchandchkCriteria()
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Search Criteria and the Report Header","The Results are Generated and Displayed according to the Search Criteria"
ElseReporter.ReportEvent micFai