Vous êtes sur la page 1sur 44

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

==========================
' Name of the Script : Corporate Actions Reports Reg
ional Head Summary
' Scope of the Script : This test script covers 13 te
st cases related to the CA reports --> Regional Head Summary
' Author : Shyam H D
' Description : Corporate Actions Reports Reg
ional Head Summary
' Date and / or Version : 13-11-2008,version 1.0
'===============================================================================
============================

Sub CAReportsRegionalHeadSummary()
'****Declaration of Environmental Variable
Environment.Value("Execution_Log")=True
'''''''''Test case count
Const TC_COUNT = 13
strVar = Environment("TestDir")
strIndVar = Split(strVar,"\",-1,1)
strBound = UBound(strIndVar)
strAllPath =""
For intPathCounter = 0 to strBound - 1
strAllPath = strAllPath & strIndVar(intPathCount
er) &"\"
Next
strPath = Trim(strPath)
strDataPath = strAllPath & "DataTables\"
strLibPath = strAllPath & "Function_Library\"
' Including the Library files where all the Scripts are saved
'ExecuteFile strLibPath & "CAReportsRegionalHeadSummaryTC.vbs"
'****Adding MFLogin sheet to the dataTable and Importing the Inp
ut DataTable
DataTable.AddSheet "CALogin"
DataTable.ImportSheet strDataPath & "Login.xls","CALogin","CALog
in"
DataTable.AddSheet "RegionalHeadSummary"
DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","RegionalHeadSummary","RegionalHeadSummary"
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"), "
", "", "")
'****Invoking IE and navigating to the ADR Login page
DataTable.GetSheet("CALogin").SetCurrentRow(1)
Call invoke_URL("CorporateActions","Login Page",DataTable.Value(
"URL","CALogin"))
'****Checking the username, password and login objects in the lo
gin page
Call pageCheck_WebEdit("CorporateActions","Login Page","username
;j_password","")
Call pageCheck_WebButton("CorporateActions","Login Page","Login"
,"")
'****Entering username and password and login into the masterfil
e application
Call login("CorporateActions","Login Page","User","CALogin")
Environment.Value("DATATABLE_ROW")=1
DataTable.GetSheet("RegionalHeadSummary").SetCurrentRow(Environm
ent.Value("DATATABLE_ROW"))
'***************************************** TC Driver Strat *****
**************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"
If DataTable("TestRunFlag","RegionalHeadSummary")="Y" Th
en ''If run flag is Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TES
T CASE - '" & DataTable("TestCaseID","RegionalHeadSummary") & "' ########### ","
Execution of Test Case '" & DataTable("TestCaseDesc","RegionalHeadSummary") & "'
Started"
strFuncName = "CAReportsRHSummary_TC" & intTCCou
nt & "()" ''Formation of function name
''Call Function
Execute "Call " & strFuncName
If Environment.Value("Execution_Log") = "True"
Then
Call Execution_log("",Datatable.
Value("TestCaseID", "RegionalHeadSummary"), Datatable.Value("TestCaseDesc", "Reg
ionalHeadSummary"), "PASS")
Else
Call Execution_log("",Datatable.
Value("TestCaseID", "RegionalHeadSummary"), Datatable.Value("TestCaseDesc", "Reg
ionalHeadSummary"), "FAIL")
End If
Reporter.ReportEvent micDone,"######### END OF T
EST CASE - '" & DataTable("TestCaseID","RegionalHeadSummary") & "###########","T
he Test Case Execution Completed"
End If
strPrevious=Trim(DataTable.Value("TestCaseID","RegionalH
eadSummary"))
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("RegionalHeadSummary").SetCurrentRow(
Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","RegionalHeadS
ummary"))
While strPrevious = strNext
Environment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("RegionalHeadSummary").SetCur
rentRow(Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","Regio
nalHeadSummary"))
Wend
Next
Call logoutfromApp("CorporateActions","Depositary Receipt Divisi
on's")
'***************************************** TC Driver End *******
************************************************

End Sub

'**********************************************Test Case 1 to Test Case 13******


********************************************

Public Function CAReportsRHSummary_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 chkCAHomePage("CorporateActions","Depositary Receipt Divisi
on's",DataTable.Value("HomePageLinks","HomePageVerification"),DataTable.Value("U
serName","HomePageVerification"))
If Environment.Value("TestCase_Log") = "True"Then
Reporter.ReportEvent micPass,"Step 1: Ch
eck for DR Home Page","The Required Links and the User Details are displayed Suc
cessfully"
Else
Reporter.ReportEvent micFail,"Step 1: Ch
eck for DR Home Page","The Required Links and the User Details are NOT displayed
Successfully"
Environment.Value("TestCase_Log") = "Tru
e"
End If
' Clicking on the Corporate Action Element
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
' # Step 2
' Check the Corporate Action Menus after clicking on the Corpora
te Actions link after clicking on Corporate Actions
Call chkCAPage("CorporateActions","CorporateActions",DataTable.V
alue("MenuName","HomePageVerification"))
If Environment.Value("TestCase_Log") = "True"Then
Reporter.ReportEvent micPass,"Step 2: Cl
ick on Corporate Action Element and Check for CA Home Page","The Required Menu I
tems are Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Cl
ick on Corporate Action Element and Check for CA Home Page","The Required Menu I
tems are Displayed Successfully"
Environment.Value("TestCase_Log") = "Tru
e"
End If
' # Step 3
' Selecting the UnderlyingSourceComparison Sub Menu from Reports
Menu and Waits for the Search Image to be Visible
Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","RegionalHeadSummary"))
Call pageCheck_WebEditOR("CorporateActions","Reports Regional He
ad Summary Search","FromDate;ToDate")
Call pageCheck_WebListOR("CorporateActions","Reports Regional He
ad Summary Search","Department")
If Environment.Value("TestCase_Log") = "True"Then
Reporter.ReportEvent micPass,"Step 3: Ve
rifying the required Fields in the page Reports Regional Head Summary Search","T
he Required Fields are Present in the page Reports Regional Head Summary"
Else
Reporter.ReportEvent micFail,"Step 3: Ve
rifying the required Fields in the page Reports Regional Head Summary Search","T
he Required Fields are NOT Present in the page Reports Regional Head Summary"
Environment.Value("TestCase_Log") = True
End If
strFromDateValue = get_WebEdit_Value("CorporateActions","Reports
Regional Head Summary Search","FromDate")
strToDateValue = get_WebEdit_Value("CorporateActions","Reports R
egional Head Summary Search","ToDate")
If strFromDateValue = "" AND strToDateValue = "" Then
Reporter.ReportEvent micPass,"Step 4: Verifying the Defa
ult Value of the From Date and To Date Field","The Default Value of the From Dat
e and To Date Field is NULL"
Else
Reporter.ReportEvent micFail,"Step 4: Verifying the Defa
ult Value of the From Date and To Date Field","The Default Value of the From Dat
e OR To Date Field NOT is NULL"
Environment.Value("Execution_log") = False
End If
Wait(2)
strDeptartmentVal = get_WebList_Value("CorporateActions","Report
s Regional Head Summary Search","Department")
If Trim(strDeptartmentVal) ="€" Then
Reporter.ReportEvent micPass,"Step 5: Verifying the Defa
ult Value of the Department Field","The Default Value of the Department Field is
NULL"
Else
Reporter.ReportEvent micFail,"Step 5: Verifying the Defa
ult Value of the Department Field","The Default Value of the Department Field is
NOT NULL"
Environment.Value("Execution_log") = False
End If
strDepartmentValues = Browser("CorporateActions").Page("Reports
Regional Head Summary Search").WebList("Department").GetROProperty("all items")
intPos = InStr(1,strDepartmentValues,";")
strDepartmentValue = Mid(strDepartmentValues,intPos+1)
If strDepartmentValue = DataTable.Value("DepartmentAllValues","R
egionalHeadSummary") Then
Reporter.ReportEvent micPass,"Step 6: Verifying the Item
s present in the Department Field","All the Required Values are present in the D
epartment Field and the Items present are " & strDepartmentValue
Else
Reporter.ReportEvent micPass,"Step 6: Verifying the Item
s present in the Department Field","The Required items are NOT Present in the De
partment Field"
Environment.Value("Execution_log") = False
End If

Call click_Image("CorporateActions","Reports Regional Head Summary Se


arch","FromDate")
Browser("CorporateActions").Page("Reports Regional Head Summary Searc
h").Frame("popCalFrame").WebElement("Today Date").Click
strFromDateValue = get_WebEdit_Value("CorporateActions","Reports Regi
onal Head Summary Search","FromDate")
strFromDateValue = DateValue(strFromDateValue)
If strFromDateValue = Date Then
Reporter.ReportEvent micPass,"Step 7: Verifying if the D
ate dispalyed in the From Date Field is Todays Date","The Date displayed in the
From Date Field is Today date i.e., " & strFromDateValue
Else
Reporter.ReportEvent micPass,"Step 7: Verifying if the D
ate dispalyed in the From Date Field is Todays Date","The Date displayed in the
From Date Field is NOT Todays date"
Environment.Value("Execution_log") = False
End If
Call click_Image("CorporateActions","Reports Regional Head Summary Se
arch","FromDate")
Browser("CorporateActions").Page("Reports Regional Head Summary Searc
h").Frame("popCalFrame").Image("Clear Field Value").Click
strFromDateValue = get_WebEdit_Value("CorporateActions","Reports Regi
onal Head Summary Search","FromDate")
If strFromDateValue = "" Then
Reporter.ReportEvent micPass,"Step 8: Verifying if Date
in the From Date Field is Cleared or NOT","The Date in the From Date Field is Cl
eared"
Else
Reporter.ReportEvent micFail,"Step 8: Verifying if Date
in the From Date Field is Cleared or NOT","The Date in the From Date Field is NO
T Cleared"
Environment.Value("Execution_log") = False
End If
Call click_Image("CorporateActions","Reports Regional Head Summary Se
arch","ToDate")
Browser("CorporateActions").Page("Reports Regional Head Summary Searc
h").Frame("popCalFrame").WebElement("Today Date").Click
strToDateValue = get_WebEdit_Value("CorporateActions","Reports Region
al Head Summary Search","ToDate")
strToDateValue = DateValue(strToDateValue)
If strToDateValue = Date Then
Reporter.ReportEvent micPass,"Step 9: Verifying if the D
ate dispalyed in the To Date Field is Todays Date","The Date displayed in the To
Date Field is Today date i.e., " & strToDateValue
Else
Reporter.ReportEvent micPass,"Step 9: Verifying if the D
ate dispalyed in the To Date Field is Todays Date","The Date displayed in the To
Date Field is NOT Todays date"
Environment.Value("Execution_log") = False
End If
Call click_Image("CorporateActions","Reports Regional Head Summary Se
arch","ToDate")
Browser("CorporateActions").Page("Reports Regional Head Summary Searc
h").Frame("popCalFrame").Image("Clear Field Value").Click
strToDateValue = get_WebEdit_Value("CorporateActions","Reports Region
al Head Summary Search","ToDate")
If strToDateValue = "" Then
Reporter.ReportEvent micPass,"Step 10: Verifying if Date
in the To Date Field is Cleared or NOT","The Date in the To Date Field is Clear
ed"
Else
Reporter.ReportEvent micFail,"Step 10: Verifying if Date
in the To Date Field is Cleared or NOT","The Date in the To Date Field is NOT C
leared"
Environment.Value("Execution_log") = False
End If

Call Select_Menu("CorporateActions","Reports Regional Head Summa


ry Search","Home;DR Home")

End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++

Public Function CAReportsRHSummary_TC2()


Environment.Value("TestCase_Log") = True
Call Click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
' # Step 1
Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","RegionalHeadSummary"))
blnFlag = Browser("CorporateActions").Page("Reports Regional Hea
d Summary Search").Exist(1)
If blnFlag = "False" Then
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is NOT Displayed"
Environment.Value("TestCase_Log") = True
End If
strLinkRequired = Split(DataTable.Value("ClickLink","RegionalHea
dSummary"),";",-1,1)
For intValCounter = 0 to UBound(strLinkRequired)
' Entering the Search Criteria
Call RHSummarySearchCriteria("CorporateA
ctions","Reports Regional Head Summary Search","Search")
' Verifying the Searrch Results
Call chkRHSummarySearchCriteria("Corpora
teActions","Reports Regional Head Summary Report")
' Verifying the Table Hearder if the Tab
le exists
If Browser("CorporateActions").Page("Rep
orts Regional Head Summary Report").WebTable("New Messages - For Processing").Ex
ist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","New Messages -
For Processing","RHNewMessagesForProcessing")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table New Messages - For Pr
ocessing does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("New Messages - Information").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","New Messages -
Information","RHNewMessagesInformation")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table New Messages - Inform
ation does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Exceptions - Missing Source").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Exceptions - Mi
ssing Source","RHExceptionsMissingSource")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Exceptions - Missing
Source does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Exceptions - Mismatched Event Dates").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Exceptions - Mi
smatched Event Dates","RHExceptionsMismatchedEventDates")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Exceptions - Mismatch
ed Event Dates does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Dividends Requiring RM Certifications").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Dividends Requi
ring RM Certifications","RHDividendsRequiringRMCertifications")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Dividends Requiring R
M Certifications does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Unowned Underlying Events").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Unowned Underly
ing Events","RHUnownedUnderlyingEvents")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Unowned Underlying Ev
ents does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head
Summary Report").WebTable("Approved Underlying Events").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Approved Underl
ying Events","RHApprovedUnderlyingEvents")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Approved Underlying E
ventsdoes not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
Select Case strLinkRequired(intValCounte
r)
Case "Re
ceived Date"
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Generated Results for the En
tered Search Criteria","The Reports are generated as per the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Generated Results for the En
tered Search Criteria","The Reports are NOT generated as per the Search Criteria
"
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Report").WebT
able("New Messages - For Processing").Exist(5) Then
Call SelectLinkinTable("CorporateActions","Reports Regional Head Summary","New M
essages - For Processing",strLinkRequired(intValCounter))
If Browser("CorporateActions").Page("Underlying Notification").Exist(5) Then
Reporter.ReportEvent micPass,"Step 3: Verifying the Page after clicking on the l
ink" & strLinkRequired(intValCounter),"The page Underlying Notification is dispa
lyed successfully"
Else
Reporter.ReportEvent micFail,"Step 3:Verifying the Page after clicking on the Re
ceived Date link","The page Underlying Notification is NOT dispalyed successfull
y"
Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions","Underlying Notification",DataTable.Value("M
enuPath","RegionalHeadSummary"))
Else
Reporter.ReportEvent micFail,"Verifying if the Table Exists or Not","The Table N
ew Messages - For Processing does not exist and hence not able to click on any o
f the Received Date Value"
Environment.Value("Execution_Log") = False
Call select_Menu("CorporateActions","Reports Regional Head Summary Report",DataT
able.Value("MenuPath","RegionalHeadSummary"))
End If
Case "CA Event Name"
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 4: Verifying the Generated Results for the En
tered Search Criteria","The Reports are generated as per the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 4: Verifying the Generated Results for the En
tered Search Criteria","The Reports are NOT generated as per the Search Criteria
"
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Report").WebT
able("Exceptions - Missing Source").Exist(5) Then
strCAEventName = SelectLinkinTable("CorporateActions","Reports Regional Head Sum
mary","Exceptions - Missing Source",strLinkRequired(intValCounter))
If Browser("CorporateActions").Page("Underlying Event").Exist(5) Then
strAppData = get_WebEdit_Value("CorporateActions","Underlying Event","EventName"
)
If Trim(strCAEventName) = Trim(strAppData) Then
Reporter.ReportEvent micPass,"Step 5: Verifying if the Page is Displayed and the
Event Name is displayed or NOT","The Page Underlying Event is dispalyed success
fuly and the Event Name displayed is " & strCAEventName
Else
Reporter.ReportEvent micFail,"Step 5: Verifying the Event Name is displayed in t
he Page","Tthe Event Name displayed is NOT displayed as " & strCAEventName
Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions","Underlying Event",DataTable.Value("MenuPath
","RegionalHeadSummary"))
Else
Reporter.ReportEvent micFail,"Step 5:Verifying the Page after clicking on the li
nk" & strLinkRequired(intValCounter) ,"The page Underlying Event is NOT dispalye
d successfully"
Environment.Value("Execution_Log") = False
End If
Else
Reporter.ReportEvent micFail,"Verifying if the Table Exists or Not","The Table E
xceptions - Missing Source does not exist and hence not able to click on any of
the Received Date Value"
Environment.Value("Execution_Log") = False
Call select_Menu("CorporateActions","Reports Regional Head Summary Report",DataT
able.Value("MenuPath","RegionalHeadSummary"))
End If

Call pageCheck_WebEditOR("CorporateActions","Reports Regional Head Summary Searc


h","FromDate;ToDate")
Call pageCheck_WebListOR("CorporateActions","Reports Regional Head Summary Searc
h","Department")
If Browser("CorporateActions").Page("Reports Regional Head Summary Search").Exi
st(5) AND Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 6: Verifying if the Page Reports Regional Hea
d Summary is Dispalyed or NOT","The Page Reports Regional Head Summary is displa
yed Successfully with the Required Fields"
Else
Reporter.ReportEvent micFail,"Step 6: Verifying if the Page Reports Regional Hea
d Summary is Dispalyed or NOT","The Page Reports Regional Head Summary is NOT Di
splayed"
End If

Case "Relationship Manager NY"


If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 7: Verifying the Generated Results for the En
tered Search Criteria","The Reports are generated as per the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 7: Verifying the Generated Results for the En
tered Search Criteria","The Reports are NOT generated as per the Search Criteria
"
Environment.Value("Execution_Log") = False
End If
blnNameFlag = "True"
If Browser("CorporateActions").Page("Reports Regional Head Summary Report").WebT
able("Dividends Requiring RM Certifications").Exist(5) Then
strRMNYName = SelectLinkinTable("CorporateActions","Reports Regional Head Summar
y","Dividends Requiring RM Certifications",strLinkRequired(intValCounter))
If Browser("CorporateActions").Page("Profile Relationship Manager Certification
Search Screen").Exist(5) Then
strAppData = get_WebList_Value("CorporateActions","Profile Relationship Manager
Certification Search Screen","RelationshipManagerNY")
strRMNYNames = Split(strRMNYName," ",-1,1)
For intCounters = 0 to UBound(strRMNYNames)
If Instr(1,strAppData,strRMNYNames(intCounters)) = 0 Then
blnNameFlag = "False"
Exit For
End If
Next
If blnNameFlag = "True" Then
Reporter.ReportEvent micPass,"Step 8: Verifying if the Page is Displayed and the
Relationship Manager NY name is displayed or NOT","The Page Underlying Event is
dispalyed successfuly and the Relationship Manager NY Name displayed is " & str
RMNYName
Else
Reporter.ReportEvent micFail,"Step 8: Verifying the Relationship Manager NY Name
is displayed in the Page","The Relationship Manager NY Name is NOT displayed as
" & strRMNYName
Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions","Profile Relationship Manager Certification
Search Screen",DataTable.Value("MenuPath","RegionalHeadSummary"))
Else
Reporter.ReportEvent micFail,"Step 8:Verifying the Page after clicking on the li
nk" & strLinkRequired(intValCounter) ,"The page Underlying Event is NOT dispalye
d successfully"
Environment.Value("Execution_Log") = False
End If
Else
Reporter.ReportEvent micFail,"Verifying if the Table Exists or Not","The Table E
xceptions - Missing Source does not exist and hence not able to click on any of
the Received Date Value"
Environment.Value("Execution_Log") = False
Call select_Menu("CorporateActions","Reports Regional Head Summary Report",DataT
able.Value("MenuPath","RegionalHeadSummary"))
End If
End Select
Next
Call select_Menu("CorporateActions","Reports Regional Head Summa
ry Search","Home;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++

Public Function CAReportsRHSummary_TC3()


Environment.Value("TestCase_Log") = True
Call Click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
' # Step 1
Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","RegionalHeadSummary"))
blnFlag = Browser("CorporateActions").Page("Reports Regional Hea
d Summary Search").Exist(1)
If blnFlag = "False" Then
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is NOT Displayed"
Environment.Value("TestCase_Log") = True
End If
strLinkRequired = Split(DataTable.Value("ClickLink","RegionalHea
dSummary"),";",-1,1)
For intValCounter = 0 to UBound(strLinkRequired)
' Entering the Search Criteria
Call RHSummarySearchCriteria("CorporateA
ctions","Reports Regional Head Summary Search","Search")
' Verifying the Search Results
Call chkRHSummarySearchCriteria("Corpora
teActions","Reports Regional Head Summary Report")
' Verifying the Table Hearder if the Tab
le exists
If Browser("CorporateActions").Page("Re
ports Regional Head Summary Report").WebTable("New Messages - For Processing").E
xist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","New Messages -
For Processing","RHNewMessagesForProcessing")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table New Messages - For Pr
ocessing does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Exceptions - Missing ISIN").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Exceptions - Mi
ssing ISIN","RHExceptionsMissingISIN")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Exceptions - Missing
ISIN does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Exceptions - Missing Source").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Exceptions - Mi
ssing Source","RHExceptionsMissingSource")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Exceptions - Missing
Source does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Exceptions - Mismatched Event Dates").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Exceptions - Mi
smatched Event Dates","RHExceptionsMismatchedEventDates")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Exceptions - Mismatch
ed Event Dates does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Dividends Requiring RM Certifications").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Dividends Requi
ring RM Certifications","RHDividendsRequiringRMCertifications")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Dividends Requiring R
M Certifications does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Unowned Underlying Events").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Unowned Underly
ing Events","RHUnownedUnderlyingEvents")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Unowned Underlying Ev
ents does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Approved Underlying Events").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Approved Underl
ying Events","RHApprovedUnderlyingEvents")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Approved Underlying E
ventsdoes not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
Select Case strLinkRequired(intValCounte
r)
Case "Re
ceived Date"
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Generated Results for the En
tered Search Criteria","The Reports are generated as per the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Generated Results for the En
tered Search Criteria","The Reports are NOT generated as per the Search Criteria
"
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Report").WebT
able("Exceptions - Missing ISIN").Exist(5) Then
Call SelectLinkinTable("CorporateActions","Reports Regional Head Summary","Excep
tions - Missing ISIN",strLinkRequired(intValCounter))
If Browser("CorporateActions").Page("Underlying Notification").Exist(5) Then
Reporter.ReportEvent micPass,"Step 3: Verifying the Page after clicking on the l
ink" & strLinkRequired(intValCounter),"The page Underlying Notification is dispa
lyed successfully"
Else
Reporter.ReportEvent micFail,"Step 3:Verifying the Page after clicking on the Re
ceived Date link","The page Underlying Notification is NOT dispalyed successfull
y"
Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions","Underlying Notification",DataTable.Value("M
enuPath","RegionalHeadSummary"))

Else
Reporter.ReportEvent micFail,"Verifying if the Table Exists or Not","The Table N
ew Messages - For Processing does not exist and hence not able to click on any o
f the Received Date Value"
Environment.Value("Execution_Log") = False
Call select_Menu("CorporateActions","Reports Regional Head Summary Report",DataT
able.Value("MenuPath","RegionalHeadSummary"))
End If

If Browser("CorporateActions").Page("Reports Regional Head Summary Search").Ex


ist(5) Then
Reporter.ReportEvent micPass,"Step 4: Verifying if the Page Reports Regional Hea
d Summary is Dispalyed or NOT","The Page Reports Regional Head Summary is displa
yed Successfully"
Else
Reporter.ReportEvent micFail,"Step 4: Verifying if the Page Reports Regional Hea
d Summary is Dispalyed or NOT","The Page Reports Regional Head Summary is NOT Di
splayed"
End If

Case "CA Event Name"


If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 5: Verifying the Generated Results for the En
tered Search Criteria","The Reports are generated as per the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Verifying the Generated Results for the En
tered Search Criteria","The Reports are NOT generated as per the Search Criteria
"
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Report").WebT
able("Unowned Underlying Events").Exist(5) Then
strCAEventName = SelectLinkinTable("CorporateActions","Reports Regional Head Sum
mary","Unowned Underlying Events",strLinkRequired(intValCounter))
If Browser("CorporateActions").Page("Underlying Event").Exist(5) Then
strAppData = get_WebEdit_Value("CorporateActions","Underlying Event","EventName"
)
If Trim(strCAEventName) = Trim(strAppData) Then
Reporter.ReportEvent micPass,"Step 6: Verifying if the Page is Displayed and the
Event Name is displayed or NOT","The Page Underlying Event is dispalyed success
fuly and the Event Name displayed is " & strCAEventName
Else
Reporter.ReportEvent micFail,"Step 6: Verifying the Event Name is displayed in t
he Page","Tthe Event Name displayed is NOT displayed as " & strCAEventName
Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions","Underlying Event",DataTable.Value("MenuPath
","RegionalHeadSummary"))
Else
Reporter.ReportEvent micFail,"Step 6:Verifying the Page after clicking on the li
nk" & strLinkRequired(intValCounter) ,"The page Underlying Event is NOT dispalye
d successfully"
Environment.Value("Execution_Log") = False
End If
Else
Reporter.ReportEvent micFail,"Verifying if the Table Exists or Not","The Table E
xceptions - Missing Source does not exist and hence not able to click on any of
the Received Date Value"
Environment.Value("Execution_Log") = False
Call select_Menu("CorporateActions","Reports Regional Head Summary Report",DataT
able.Value("MenuPath","RegionalHeadSummary"))
End If

If Browser("CorporateActions").Page("Reports Regional Head Summary Search").Ex


ist(5) Then
Reporter.ReportEvent micPass,"Step 7: Verifying if the Page Reports Regional Hea
d Summary is Dispalyed or NOT","The Page Reports Regional Head Summary is displa
yed Successfully"
Else
Reporter.ReportEvent micFail,"Step 7: Verifying if the Page Reports Regional Hea
d Summary is Dispalyed or NOT","The Page Reports Regional Head Summary is NOT Di
splayed"
End If

Case "CA Event Name-ApprovedEvent"

strValue = Split(strLinkRequired(intValCounter),"-",-1,1)
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 8: Verifying the Generated Results for the En
tered Search Criteria","The Reports are generated as per the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 8: Verifying the Generated Results for the En
tered Search Criteria","The Reports are NOT generated as per the Search Criteria
"
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Report").WebT
able("Approved Underlying Events").Exist(5) Then
strCAEventName = SelectLinkinTable("CorporateActions","Reports Regional Head Sum
mary","Approved Underlying Events",strValue(0))
If Browser("CorporateActions").Page("Underlying Event").Exist(5) Then
strAppData = get_WebEdit_Value("CorporateActions","Underlying Event","EventName"
)
If Trim(strCAEventName) = Trim(strAppData) Then
Reporter.ReportEvent micPass,"Step 9: Verifying if the Page is Displayed and the
Event Name is displayed or NOT","The Page Underlying Event is dispalyed success
fuly and the Event Name displayed is " & strCAEventName
Else
Reporter.ReportEvent micFail,"Step 9: Verifying the Event Name is displayed in t
he Page","The Event Name displayed is NOT displayed as " & strCAEventName
Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions","Underlying Event",DataTable.Value("MenuPath
","RegionalHeadSummary"))
Else
Reporter.ReportEvent micFail,"Step 9:Verifying the Page after clicking on the li
nk" & strValue(0) ,"The page Underlying Event is NOT dispalyed successfully"
Environment.Value("Execution_Log") = False
End If
Else
Reporter.ReportEvent micFail,"Verifying if the Table Exists or Not","The Table E
xceptions - Missing Source does not exist and hence not able to click on any of
the Received Date Value"
Environment.Value("Execution_Log") = False
Call select_Menu("CorporateActions","Reports Regional Head Summary Report",DataT
able.Value("MenuPath","RegionalHeadSummary"))
End If
End Select
Next
Call select_Menu("CorporateActions","Reports Regional Head Summa
ry Search","Home;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsRHSummary_TC4()
Environment.Value("TestCase_Log") = True
Call Click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
' # Step 1
Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","RegionalHeadSummary"))
blnFlag = Browser("CorporateActions").Page("Reports Regional Hea
d Summary Search").Exist(1)
If blnFlag = "False" Then
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is NOT Displayed"
Environment.Value("TestCase_Log") = True
End If
strLinkRequired = Split(DataTable.Value("ClickLink","RegionalHea
dSummary"),";",-1,1)
For intValCounter = 0 to UBound(strLinkRequired)
' Entering the Search Criteria
Call RHSummarySearchCriteria("CorporateA
ctions","Reports Regional Head Summary Search","Search")
' Verifying the Searrch Results
Call chkRHSummarySearchCriteria("Corpora
teActions","Reports Regional Head Summary Report")
' Verifying the Table Hearder if the Tab
le exists
If Browser("CorporateActions").Page("Rep
orts Regional Head Summary Report").WebTable("New Messages - For Processing").Ex
ist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","New Messages -
For Processing","RHNewMessagesForProcessing")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table New Messages - For Pr
ocessing does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("New Messages - Information").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","New Messages -
Information","RHNewMessagesInformation")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table New Messages - Inform
ation does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Exceptions - Missing Source").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Exceptions - Mi
ssing Source","RHExceptionsMissingSource")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Exceptions - Missing
Source does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Exceptions - Mismatched Event Dates").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Exceptions - Mi
smatched Event Dates","RHExceptionsMismatchedEventDates")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Exceptions - Mismatch
ed Event Dates does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Dividends Requiring RM Certifications").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Dividends Requi
ring RM Certifications","RHDividendsRequiringRMCertifications")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Dividends Requiring R
M Certifications does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Unowned Underlying Events").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Unowned Underly
ing Events","RHUnownedUnderlyingEvents")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Unowned Underlying Ev
ents does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Approved Underlying Events").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Approved Underl
ying Events","RHApprovedUnderlyingEvents")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Approved Underlying E
vents does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
Select Case strLinkRequired(intValCounte
r)
Case "Re
ceived Date"
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Generated Results for the En
tered Search Criteria","The Reports are generated as per the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Generated Results for the En
tered Search Criteria","The Reports are NOT generated as per the Search Criteria
"
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Report").WebT
able("New Messages - Information").Exist(5) Then
Call SelectLinkinTable("CorporateActions","Reports Regional Head Summary","New M
essages - Information",strLinkRequired(intValCounter))
If Browser("CorporateActions").Page("Underlying Notification").Exist(5) Then
Reporter.ReportEvent micPass,"Step 3: Verifying the Page after clicking on the l
ink" & strLinkRequired(intValCounter),"The page Underlying Notification is dispa
lyed successfully"
Else
Reporter.ReportEvent micFail,"Step 3:Verifying the Page after clicking on the Re
ceived Date link","The page Underlying Notification is NOT dispalyed successfull
y"
Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions","Underlying Notification",DataTable.Value("M
enuPath","RegionalHeadSummary"))

Else
Reporter.ReportEvent micFail,"Verifying if the Table Exists or Not","The Table N
ew Messages - Information does not exist and hence not able to click on any of t
he Received Date Value"
Environment.Value("Execution_Log") = False
Call select_Menu("CorporateActions","Reports Regional Head Summary Report",DataT
able.Value("MenuPath","RegionalHeadSummary"))
End If

If Browser("CorporateActions").Page("Reports Regional Head Summary Search").Exis


t(5) Then
Reporter.ReportEvent micPass,"Step 4: Verifying if the Page Reports Regional Hea
d Summary is Dispalyed or NOT","The Page Reports Regional Head Summary is displa
yed Successfully"
Else
Reporter.ReportEvent micFail,"Step 4: Verifying if the Page Reports Regional Hea
d Summary is Dispalyed or NOT","The Page Reports Regional Head Summary is NOT Di
splayed"
End If

Case "CA Event Name"


If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 5: Verifying the Generated Results for the En
tered Search Criteria","The Reports are generated as per the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Verifying the Generated Results for the En
tered Search Criteria","The Reports are NOT generated as per the Search Criteria
"
Environment.Value("Execution_Log") = False
End If
blnNameFlag = "True"
If Browser("CorporateActions").Page("Reports Regional Head Summary Report").WebT
able("Exceptions - Missing Source").Exist(5) Then
strCAEventName = SelectLinkinTable("CorporateActions","Reports Regional Head Sum
mary","Exceptions - Missing Source",strLinkRequired(intValCounter))
If Browser("CorporateActions").Page("Underlying Event").Exist(5) Then
strAppData = get_WebEdit_Value("CorporateActions","Underlying Event","EventName"
)
strCAEventNames = Split(strCAEventName," ",-1,1)
For intCounters = 0 to UBound(strCAEventNames)
If InStr(1,strAppData, strCAEventNames(intCounters)) = 0 Then
blnNameFlag = "False"
Exit For
End If
Next
If blnNameFlag = "True" Then
Reporter.ReportEvent micPass,"Step 6: Verifying if the Page is Displayed and the
Event Name is displayed or NOT","The Page Underlying Event is dispalyed success
fuly and the Event Name displayed is " & strAppData
Else
Reporter.ReportEvent micFail,"Step 6: Verifying the Event Name is displayed in t
he Page","Tthe Event Name displayed is NOT displayed as " & strAppData
Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions","Underlying Event",DataTable.Value("MenuPath
","RegionalHeadSummary"))
Else
Reporter.ReportEvent micFail,"Step 6:Verifying the Page after clicking on the li
nk" & strLinkRequired(intValCounter) ,"The page Underlying Event is NOT dispalye
d successfully"
Environment.Value("Execution_Log") = False
End If
Else
Reporter.ReportEvent micFail,"Verifying if the Table Exists or Not","The Table E
xceptions - Missing Source does not exist and hence not able to click on any of
the Received Date Value"
Environment.Value("Execution_Log") = False
Call select_Menu("CorporateActions","Reports Regional Head Summary Report",DataT
able.Value("MenuPath","RegionalHeadSummary"))
End If

If Browser("CorporateActions").Page("Reports Regional Head Summary Search").Exis


t(5) Then
Reporter.ReportEvent micPass,"Step 7: Verifying if the Page Reports Regional Hea
d Summary is Dispalyed or NOT","The Page Reports Regional Head Summary is displa
yed Successfully"
Else
Reporter.ReportEvent micFail,"Step 7: Verifying if the Page Reports Regional Hea
d Summary is Dispalyed or NOT","The Page Reports Regional Head Summary is NOT Di
splayed"
End If

Case "Relationship Manager NY"


If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 8: Verifying the Generated Results for the En
tered Search Criteria","The Reports are generated as per the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 8: Verifying the Generated Results for the En
tered Search Criteria","The Reports are NOT generated as per the Search Criteria
"
Environment.Value("Execution_Log") = False
End If
blnNameFlag = "True"
If Browser("CorporateActions").Page("Reports Regional Head Summary Report").WebT
able("Dividends Requiring RM Certifications").Exist(5) Then
strRMNYName = SelectLinkinTable("CorporateActions","Reports Regional Head Summar
y","Dividends Requiring RM Certifications",strLinkRequired(intValCounter))
If Browser("CorporateActions").Page("Profile Relationship Manager Certification
Search Screen").Exist(5) Then
strAppData = get_WebList_Value("CorporateActions","Profile Relationship Manager
Certification Search Screen","RelationshipManagerNY")
strRMNYValue = Split(strRMNYName," ",-1,1)
For intCounts = 0 to UBound(strRMNYValue)
If InStr(1,strAppData,strRMNYValue(intCounts)) = 0 Then
blnNameFlag = "False"
Exit For
End If
Next
If blnNameFlag = "True" Then
Reporter.ReportEvent micPass,"Step 9: Verifying if the Page is Displayed and the
Relationship Manager NY name is displayed or NOT","The Page Underlying Event is
dispalyed successfuly and the Relationship Manager NY Name displayed is " & str
RMNYName
Else
Reporter.ReportEvent micFail,"Step 9: Verifying the Relationship Manager NY Name
is displayed in the Page","The Relationship Manager NY Name is NOT displayed as
" & strRMNYName
Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions","Profile Relationship Manager Certification
Search Screen",DataTable.Value("MenuPath","RegionalHeadSummary"))
Else
Reporter.ReportEvent micFail,"Step 9:Verifying the Page after clicking on the li
nk" & strLinkRequired(intValCounter) ,"The page Underlying Event is NOT dispalye
d successfully"
Environment.Value("Execution_Log") = False
End If
Else
Reporter.ReportEvent micFail,"Verifying if the Table Exists or Not","The Table E
xceptions - Missing Source does not exist and hence not able to click on any of
the Received Date Value"
Environment.Value("Execution_Log") = False
Call select_Menu("CorporateActions","Reports Regional Head Summary Report",DataT
able.Value("MenuPath","RegionalHeadSummary"))
End If
End Select
Next
Call select_Menu("CorporateActions","Reports Regional Head Summa
ry Search","Home;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsRHSummary_TC5()
Environment.Value("TestCase_Log") = True
Call Click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
' # Step 1
Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","RegionalHeadSummary"))
blnFlag = Browser("CorporateActions").Page("Reports Regional Hea
d Summary Search").Exist(1)
If blnFlag = "False" Then
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is NOT Displayed"
Environment.Value("TestCase_Log") = True
End If
strLinkRequired = Split(DataTable.Value("ClickLink","RegionalHea
dSummary"),";",-1,1)
For intValCounter = 0 to UBound(strLinkRequired)
' Entering the Search Criteria
Call RHSummarySearchCriteria("CorporateA
ctions","Reports Regional Head Summary Search","Search")
' Verifying the Searrch Results
Call chkRHSummarySearchCriteria("Corpora
teActions","Reports Regional Head Summary Report")
' Verifying the Table Hearder if the Tab
le exists
If Browser("CorporateActions").Page("Rep
orts Regional Head Summary Report").WebTable("New Messages - For Processing").Ex
ist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","New Messages -
For Processing","RHNewMessagesForProcessing")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table New Messages - For Pr
ocessing does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Su
mmary Report").WebTable("Exceptions - Missing Source").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Exceptions - Mi
ssing Source","RHExceptionsMissingSource")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Exceptions - Missing
Source does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Exceptions - Mismatched Event Dates").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Exceptions - Mi
smatched Event Dates","RHExceptionsMismatchedEventDates")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Exceptions - Mismatch
ed Event Dates does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Dividends Requiring RM Certifications").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Dividends Requi
ring RM Certifications","RHDividendsRequiringRMCertifications")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Dividends Requiring R
M Certifications does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Unowned Underlying Events").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Unowned Underly
ing Events","RHUnownedUnderlyingEvents")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Unowned Underlying Ev
ents does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Approved Underlying Events").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Approved Underl
ying Events","RHApprovedUnderlyingEvents")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Approved Underlying E
ventsdoes not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
Select Case strLinkRequired(intValCounte
r)
Case "Re
ceived Date"
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Generated Results for the En
tered Search Criteria","The Reports are generated as per the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Generated Results for the En
tered Search Criteria","The Reports are NOT generated as per the Search Criteria
"
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Report").WebT
able("New Messages - For Processing").Exist(5) Then
Call SelectLinkinTable("CorporateActions","Reports Regional Head Summary","New M
essages - For Processing",strLinkRequired(intValCounter))
If Browser("CorporateActions").Page("Underlying Notification").Exist(5) Then
Reporter.ReportEvent micPass,"Step 3: Verifying the Page after clicking on the l
ink" & strLinkRequired(intValCounter),"The page Underlying Notification is dispa
lyed successfully"
Else
Reporter.ReportEvent micFail,"Step 3:Verifying the Page after clicking on the Re
ceived Date link","The page Underlying Notification is NOT dispalyed successfull
y"
Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions","Underlying Notification",DataTable.Value("M
enuPath","RegionalHeadSummary"))
Else
Reporter.ReportEvent micFail,"Verifying if the Table Exists or Not","The Table N
ew Messages - For Processing does not exist and hence not able to click on any o
f the Received Date Value"
Environment.Value("Execution_Log") = False
Call select_Menu("CorporateActions","Reports Regional Head Summary Report",DataT
able.Value("MenuPath","RegionalHeadSummary"))
End If

If Browser("CorporateActions").Page("Reports Regional Head Summary Search").Exis


t(5) Then
Reporter.ReportEvent micPass,"Step 4: Verifying if the Page Reports Regional Hea
d Summary is Dispalyed or NOT","The Page Reports Regional Head Summary is displa
yed Successfully"
Else
Reporter.ReportEvent micFail,"Step 4: Verifying if the Page Reports Regional Hea
d Summary is Dispalyed or NOT","The Page Reports Regional Head Summary is NOT Di
splayed"
End If
Case "CA Event Name"
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 5: Verifying the Generated Results for the En
tered Search Criteria","The Reports are generated as per the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Verifying the Generated Results for the En
tered Search Criteria","The Reports are NOT generated as per the Search Criteria
"
Environment.Value("Execution_Log") = False
End If
blnNameFlag = "True"
If Browser("CorporateActions").Page("Reports Regional Head Summary Report").WebT
able("Exceptions - Missing Source").Exist(5) Then
strCAEventName = SelectLinkinTable("CorporateActions","Reports Regional Head Sum
mary","Exceptions - Missing Source",strLinkRequired(intValCounter))
If Browser("CorporateActions").Page("Underlying Event").Exist(5) Then
strAppData = get_WebEdit_Value("CorporateActions","Underlying Event","EventName"
)
strCAEventVal = Split(strCAEventName," ",-1,1)
For intCounters = 0 to UBound(strCAEventVal)
If InStr(1,strAppData, strCAEventVal(intCounters)) = 0 Then
blnNameFlag = "False"
Exit For
End If
Next
If blnNameFlag = "True" Then
Reporter.ReportEvent micPass,"Step 6: Verifying if the Page is Displayed and the
Event Name is displayed or NOT","The Page Underlying Event is dispalyed success
fuly and the Event Name displayed is " & strCAEventName
Else
Reporter.ReportEvent micFail,"Step 6: Verifying the Event Name is displayed in t
he Page","Tthe Event Name displayed is NOT displayed as " & strCAEventName
Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions","Underlying Event",DataTable.Value("MenuPath
","RegionalHeadSummary"))
Else
Reporter.ReportEvent micFail,"Step 6:Verifying the Page after clicking on the li
nk" & strLinkRequired(intValCounter) ,"The page Underlying Event is NOT dispalye
d successfully"
Environment.Value("Execution_Log") = False
End If
Else
Reporter.ReportEvent micFail,"Verifying if the Table Exists or Not","The Table E
xceptions - Missing Source does not exist and hence not able to click on any of
the Received Date Value"
Environment.Value("Execution_Log") = False
Call select_Menu("CorporateActions","Reports Regional Head Summary Report",DataT
able.Value("MenuPath","RegionalHeadSummary"))
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Search").Exis
t(5) Then
Reporter.ReportEvent micPass,"Step 7: Verifying if the Page Reports Regional Hea
d Summary is Dispalyed or NOT","The Page Reports Regional Head Summary is displa
yed Successfully"
Else
Reporter.ReportEvent micFail,"Step 7: Verifying if the Page Reports Regional Hea
d Summary is Dispalyed or NOT","The Page Reports Regional Head Summary is NOT Di
splayed"
End If

Case "Relationship Manager NY"


If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 8: Verifying the Generated Results for the En
tered Search Criteria","The Reports are generated as per the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 8: Verifying the Generated Results for the En
tered Search Criteria","The Reports are NOT generated as per the Search Criteria
"
Environment.Value("Execution_Log") = False
End If
blnNameFlag = "True"
If Browser("CorporateActions").Page("Reports Regional Head Summary Report").WebT
able("Dividends Requiring RM Certifications").Exist(5) Then
strRMNYName = SelectLinkinTable("CorporateActions","Reports Regional Head Summar
y","Dividends Requiring RM Certifications",strLinkRequired(intValCounter))
If Browser("CorporateActions").Page("Profile Relationship Manager Certification
Search Screen").Exist(5) Then
strAppData = get_WebList_Value("CorporateActions","Profile Relationship Manager
Certification Search Screen","RelationshipManagerNY")
strRMNYValues = Split(strRMNYName," ",-1,1)
For intCount = 0 to UBound(strRMNYValues)
If Instr(1,strAppData,strRMNYValues(intCount)) = 0 Then
blnNameFlag = "False"
Exit For
End If
Next
If blnNameFlag = "True" Then
Reporter.ReportEvent micPass,"Step 9: Verifying if the Page is Displayed and the
Relationship Manager NY name is displayed or NOT","The Page Underlying Event is
dispalyed successfuly and the Relationship Manager NY Name displayed is " & str
RMNYName
Else
Reporter.ReportEvent micFail,"Step 9: Verifying the Relationship Manager NY Name
is displayed in the Page","The Relationship Manager NY Name is NOT displayed as
" & strRMNYName
Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions","Profile Relationship Manager Certification
Search Screen",DataTable.Value("MenuPath","RegionalHeadSummary"))
Else
Reporter.ReportEvent micFail,"Step 9:Verifying the Page after clicking on the li
nk" & strLinkRequired(intValCounter) ,"The page Underlying Event is NOT dispalye
d successfully"
Environment.Value("Execution_Log") = False
End If
Else
Reporter.ReportEvent micFail,"Verifying if the Table Exists or Not","The Table E
xceptions - Missing Source does not exist and hence not able to click on any of
the Received Date Value"
Environment.Value("Execution_Log") = False
Call select_Menu("CorporateActions","Reports Regional Head Summary Report",DataT
able.Value("MenuPath","RegionalHeadSummary"))
End If
End Select
Next
Call select_Menu("CorporateActions","Reports Regional Head Summa
ry Search","Home;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsRHSummary_TC6()
Environment.Value("TestCase_Log") = True
Call Click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
' # Step 1
Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","RegionalHeadSummary"))
blnFlag = Browser("CorporateActions").Page("Reports Regional Hea
d Summary Search").Exist(1)
If blnFlag = "False" Then
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is NOT Displayed"
Environment.Value("TestCase_Log") = True
End If
' # Step 2:
Call RHSummarySearchCriteria("CorporateActions","Reports Regiona
l Head Summary Search","Search")
strRequiredValue = DataTable.Value("RequiredMessage","RegionalHe
adSummary")
strDialogValue = Browser("CorporateActions").Dialog("Microsoft I
nternet Explorer").Static("MessageText").GetROProperty("text")
If InStr(1,strDialogValue,strRequiredValue) <> 0 Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Erro
r Message diaplyed when Searched only with Department Name","The Error Message i
s Displayed successfully with the message " & strRequiredValue
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Erro
r Message diaplyed when Searched only with Department Name","The Error Message i
s NOT Displayed successfully with the message " & strRequiredValue
Environment.Value("Execution_Log") = False
End If
Browser("CorporateActions").Dialog("Microsoft Internet Explorer"
).WinButton("OK").Click
Call select_Menu("CorporateActions","Reports Regional Head Summa
ry Search","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsRHSummary_TC7()
Environment.Value("TestCase_Log") = True
Call Click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
' # Step 1
Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","RegionalHeadSummary"))
blnFlag = Browser("CorporateActions").Page("Reports Regional Hea
d Summary Search").Exist(1)
If blnFlag = "False" Then
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is NOT Displayed"
Environment.Value("TestCase_Log") = True
End If
' # Step 2:
Call RHSummarySearchCriteria("CorporateActions","Reports Regiona
l Head Summary Search","Search")
strRequiredValue = DataTable.Value("RequiredMessage","RegionalHe
adSummary")
strDialogValue = Browser("CorporateActions").Dialog("Microsoft I
nternet Explorer").Static("MessageText").GetROProperty("text")
If Instr(1,Trim(strDialogValue), Trim(strRequiredValue)) <> 0 Th
en
Reporter.ReportEvent micPass,"Step 2: Verifying the Erro
r Message diaplyed when Searched only with Department Name","The Error Message i
s Displayed successfully with the message " & strRequiredValue
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Erro
r Message diaplyed when Searched only with Department Name","The Error Message i
s NOT Displayed successfully with the message " & strRequiredValue
Environment.Value("Execution_Log") = False
End If
Browser("CorporateActions").Dialog("Microsoft Internet Explorer"
).WinButton("OK").Click
Call select_Menu("CorporateActions","Reports Regional Head Summa
ry Search","Home;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsRHSummary_TC8()
Environment.Value("TestCase_Log") = True
Call Click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
' # Step 1
Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","RegionalHeadSummary"))
blnFlag = Browser("CorporateActions").Page("Reports Regional Hea
d Summary Search").Exist(1)
If blnFlag = "False" Then
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is NOT Displayed"
Environment.Value("TestCase_Log") = True
End If
' # Step 2:
Call RHSummarySearchCriteria("CorporateActions","Reports Regiona
l Head Summary Search","Clear")
strFromDateValue = get_WebEdit_Value("CorporateActions","Reports
Regional Head Summary Search","FromDate")
strToDateValue = get_WebEdit_Value("CorporateActions","Reports R
egional Head Summary Search","ToDate")
strDepartmentValue = get_WebList_Value("CorporateActions","Repor
ts Regional Head Summary Search","Department")
If strFromDateValue = "" AND strToDateValue = "" AND Trim(strDepartmentV
alue) ="€" Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Valu
es in the Fields present after clicking on Clear Image","The Values in the Field
are Cleared and its NULL"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Valu
es in the Fields present after clicking on Clear Image","The Values in the Field
are NOT Cleared."
Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions","Reports Regional Head Summary Searc
h","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++

Public Function CAReportsRHSummary_TC9()


Environment.Value("TestCase_Log") = True
Call Click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
' # Step 1
Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","RegionalHeadSummary"))
blnFlag = Browser("CorporateActions").Page("Reports Regional Hea
d Summary Search").Exist(1)
If blnFlag = "False" Then
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is NOT Displayed"
Environment.Value("TestCase_Log") = True
End If
' # Step 2:
Call RHSummarySearchCriteria("CorporateActions","Reports Regiona
l Head Summary Search","Search")
strRequiredValue = Split(DataTable.Value("RequiredMessage","Regi
onalHeadSummary"),";",-1,1)
strDialogValue = Browser("CorporateActions").Dialog("Microsoft I
nternet Explorer").Static("MessageText").GetROProperty("text")
If InStr(1,Trim(strDialogValue),Trim(strRequiredValue(0))) <> 0 AND InSt
r(1,Trim(strDialogValue),Trim(strRequiredValue(1))) <> 0 Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Erro
r Message diaplyed when Searched only with Department Name","The Error Message i
s Displayed successfully with the message " & strRequiredValue(0) & "." &strReq
uiredValue(1)
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Erro
r Message diaplyed when Searched only with Department Name","The Error Message i
s NOT Displayed successfully with the message " & strRequiredValue(0) & "." &st
rRequiredValue(1)
Environment.Value("Execution_Log") = False
End If
Browser("CorporateActions").Dialog("Microsoft Internet Explorer"
).WinButton("OK").Click
Call select_Menu("CorporateActions","Reports Regional Head Summa
ry Search","Home;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++

Public Function CAReportsRHSummary_TC10()


Environment.Value("TestCase_Log") = True
Call Click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
' # Step 1
Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","RegionalHeadSummary"))
blnFlag = Browser("CorporateActions").Page("Reports Regional Hea
d Summary Search").Exist(1)
If blnFlag = "False" Then
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is NOT Displayed"
Environment.Value("TestCase_Log") = True
End If
' # Step 2:
Call RHSummarySearchCriteria("CorporateActions","Reports Regiona
l Head Summary Search","Search")
strRequiredValue = Split(DataTable.Value("RequiredMessage","Regi
onalHeadSummary"),";",-1,1)
strDialogValue = Browser("CorporateActions").Dialog("Microsoft I
nternet Explorer").Static("MessageText").GetROProperty("text")
If InStr(1,Trim(strDialogValue),Trim(strRequiredValue(0))) <> 0 AND InSt
r(1,Trim(strDialogValue),Trim(strRequiredValue(1))) <> 0 Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Erro
r Message diaplyed when Searched only with Department Name","The Error Message i
s Displayed successfully with the message " & strRequiredValue(0) & "." &strReq
uiredValue(1)
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Erro
r Message diaplyed when Searched only with Department Name","The Error Message i
s NOT Displayed successfully with the message " & strRequiredValue(0) & "." &st
rRequiredValue(1)
Environment.Value("Execution_Log") = False
End If
Browser("CorporateActions").Dialog("Microsoft Internet Explorer"
).WinButton("OK").Click
Call select_Menu("CorporateActions","Reports Regional Head Summa
ry Search","Home;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++

Public Function CAReportsRHSummary_TC11()


Environment.Value("TestCase_Log") = True
Call Click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
' # Step 1
Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","RegionalHeadSummary"))
blnFlag = Browser("CorporateActions").Page("Reports Regional Hea
d Summary Search").Exist(1)
If blnFlag = "False" Then
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is NOT Displayed"
Environment.Value("TestCase_Log") = True
End If
' # Step 2
' Entering the Search Criteria
Call RHSummarySearchCriteria("CorporateActions","Reports Regional Head S
ummary Search","Search")
' Verifying the Searrch Results
Call chkRHSummarySearchCriteria("CorporateActions","Reports Regi
onal Head Summary Report")
' Verifying the Table Hearder if the Table exists
If Browser("CorporateActions").Page("Reports Regional Head Summ
ary Report").WebTable("Exceptions - Missing Source").Exist(5) Then
Call chkRHSummaryReportHeader("CorporateActions"
,"Reports Regional Head Summary Report","Exceptions - Missing Source","RHExcepti
onsMissingSource")
Else
Reporter.ReportEvent micFail,"Verifying the Repo
rt Header of the Table","The Table Exceptions - Missing Source does not Exist"
Environment.Value("TestCase_Log") = False
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Repor
t").WebTable("Exceptions - Mismatched Event Dates").Exist(5) Then
Call chkRHSummaryReportHeader("CorporateActions"
,"Reports Regional Head Summary Report","Exceptions - Mismatched Event Dates","R
HExceptionsMismatchedEventDates")
Else
Reporter.ReportEvent micFail,"Verifying the Repo
rt Header of the Table","The Table Exceptions - Mismatched Event Dates does not
Exist"
Environment.Value("TestCase_Log") = False
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Repor
t").WebTable("Dividends Requiring RM Certifications").Exist(5) Then
Call chkRHSummaryReportHeader("CorporateActions"
,"Reports Regional Head Summary Report","Dividends Requiring RM Certifications",
"RHDividendsRequiringRMCertifications")
Else
Reporter.ReportEvent micFail,"Verifying the Repo
rt Header of the Table","The Table Dividends Requiring RM Certifications does no
t Exist"
Environment.Value("TestCase_Log") = False
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summa
ry Report").WebTable("Unowned Underlying Events").Exist(5) Then
Call chkRHSummaryReportHeader("CorporateActions"
,"Reports Regional Head Summary Report","Unowned Underlying Events","RHUnownedUn
derlyingEvents")
Else
Reporter.ReportEvent micFail,"Verifying the Repo
rt Header of the Table","The Table Unowned Underlying Events does not Exist"
Environment.Value("TestCase_Log") = False
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summa
ry Report").WebTable("Approved Underlying Events").Exist(5) Then
Call chkRHSummaryReportHeader("CorporateActions"
,"Reports Regional Head Summary Report","Approved Underlying Events","RHApproved
UnderlyingEvents")
Else
Reporter.ReportEvent micFail,"Verifying the Repo
rt Header of the Table","The Table Approved Underlying Eventsdoes not Exist"
Environment.Value("TestCase_Log") = False
Environment.Value("Execution_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 2: Verifying
the Generated Results for the Entered Search Criteria","The Reports are generate
d as per the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying
the Generated Results for the Entered Search Criteria","The Reports are NOT gene
rated as per the Search Criteria"
Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions","Reports Regional Head Summa
ry Report","Home;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++

Public Function CAReportsRHSummary_TC12()


Environment.Value("TestCase_Log") = True
Call Click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
' # Step 1
Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","RegionalHeadSummary"))
blnFlag = Browser("CorporateActions").Page("Reports Regional Hea
d Summary Search").Exist(1)
If blnFlag = "False" Then
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is NOT Displayed"
Environment.Value("TestCase_Log") = True
End If
' # Step 2:
Call RHSummarySearchCriteria("CorporateActions","Reports Regiona
l Head Summary Search","Search")
strRequiredValue = Split(DataTable.Value("RequiredMessage","Regi
onalHeadSummary"),";",-1,1)
strDialogValue = Browser("CorporateActions").Dialog("Microsoft I
nternet Explorer").Static("MessageText").GetROProperty("text")
If InStr(1,Trim(strDialogValue),Trim(strRequiredValue(0))) <> 0 AND InSt
r(1,Trim(strDialogValue),Trim(strRequiredValue(1))) <> 0 Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Erro
r Message diaplyed when Searched only with Department Name","The Error Message i
s Displayed successfully with the message " & strRequiredValue(0) & "." &strReq
uiredValue(1)
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Erro
r Message diaplyed when Searched only with Department Name","The Error Message i
s NOT Displayed successfully with the message " & strRequiredValue(0) & "." &st
rRequiredValue(1)
Environment.Value("Execution_Log") = False
End If
Browser("CorporateActions").Dialog("Microsoft Internet Explorer"
).WinButton("OK").Click
Call select_Menu("CorporateActions","Reports Regional Head Summa
ry Search","Home;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++

Public Function CAReportsRHSummary_TC13()


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","RegionalHeadSummary"))
blnFlag = Browser("CorporateActions").Page("Reports Regional Hea
d Summary Search").Exist(1)
If blnFlag = "False" Then
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is NOT Displayed"
Environment.Value("TestCase_Log") = True
End If
' # Step 2: Enter the Search Criteria
Call RHSummarySearchCriteria("CorporateActions","Reports Regiona
l Head Summary Search","Search")
' Verify the Search Criteria
Call chkRHSummarySearchCriteria("CorporateActions","Reports Regi
onal Head Summary Report")
' Verifying the Table Hearder if the Table exists
If Browser("CorporateActions").Page("Reports Regional Head Summa
ry Report").WebTable("New Messages - For Processing").Exist(5) Then
Call chkRHSummaryReportHeader("Corporate
Actions","Reports Regional Head Summary Report","New Messages - For Processing",
"RHNewMessagesForProcessing")
Else
Reporter.ReportEvent micFail,"Verifying
the Report Header of the Table","The Table New Messages - For Processing does no
t Exist"
Environment.Value("TestCase_Log") = Fals
e
Environment.Value("Execution_Log") = Fal
se
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Repor
t").WebTable("New Messages - Information").Exist(5) Then
Call chkRHSummaryReportHeader("CorporateActions"
,"Reports Regional Head Summary Report","New Messages - Information","RHNewMessa
gesInformation")
Else
Reporter.ReportEvent micFail,"Verifying the Repo
rt Header of the Table","The Table New Messages - Information does not Exist"
Environment.Value("TestCase_Log") = False
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Repor
t").WebTable("Exceptions - Missing Source").Exist(5) Then
Call chkRHSummaryReportHeader("CorporateActions"
,"Reports Regional Head Summary Report","Exceptions - Missing Source","RHExcepti
onsMissingSource")
Else
Reporter.ReportEvent micFail,"Verifying the Repo
rt Header of the Table","The Table Exceptions - Missing Source does not Exist"
Environment.Value("TestCase_Log") = False
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Repor
t").WebTable("Exceptions - Mismatched Event Dates").Exist(5) Then
Call chkRHSummaryReportHeader("CorporateActions"
,"Reports Regional Head Summary Report","Exceptions - Mismatched Event Dates","R
HExceptionsMismatchedEventDates")
Else
Reporter.ReportEvent micFail,"Verifying the Repo
rt Header of the Table","The Table Exceptions - Mismatched Event Dates does not
Exist"
Environment.Value("TestCase_Log") = False
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Repor
t").WebTable("Dividends Requiring RM Certifications").Exist(5) Then
Call chkRHSummaryReportHeader("CorporateActions"
,"Reports Regional Head Summary Report","Dividends Requiring RM Certifications",
"RHDividendsRequiringRMCertifications")
Else
Reporter.ReportEvent micFail,"Verifying the Repo
rt Header of the Table","The Table Dividends Requiring RM Certifications does no
t Exist"
Environment.Value("TestCase_Log") = False
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Repor
t").WebTable("Unowned Underlying Events").Exist(5) Then
Call chkRHSummaryReportHeader("CorporateActions"
,"Reports Regional Head Summary Report","Unowned Underlying Events","RHUnownedUn
derlyingEvents")
Else
Reporter.ReportEvent micFail,"Verifying the Repo
rt Header of the Table","The Table Unowned Underlying Events does not Exist"
Environment.Value("TestCase_Log") = False
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Repor
t").WebTable("Approved Underlying Events").Exist(5) Then
Call chkRHSummaryReportHeader("CorporateActions"
,"Reports Regional Head Summary Report","Approved Underlying Events","RHApproved
UnderlyingEvents")
Else
Reporter.ReportEvent micFail,"Verifying the Repo
rt Header of the Table","The Table Approved Underlying Eventsdoes not Exist"
Environment.Value("TestCase_Log") = False
Environment.Value("Execution_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 2: Verifying
the Results generated based on the Search Criteria and the Report Headers","The
Results are Generated based on the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying
the Results generated based on the Search Criteria and the Report Headers","The
Results are NOT Generated based on the Search Criteria"
Environment.Value("TestCase_Log") = True
End If
Call click_WebElement("CorporateActions","Reports Regional Head
Summary Report","Reports Regional Head Summary Search")
blnFlag = Browser("CorporateActions").Page("Reports Regional He
ad Summary Search").Exist(1)
If blnFlag = "False" Then
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 3: Verifying
if the Reports Regional Head Summary Search is Displayed or NOT","The Page Repor
ts Regional Head Summary Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 3: Verifying
if the Reports Regional Head Summary Search is Displayed or NOT","The Page Repor
ts Regional Head Summary Search is NOT Displayed"
Environment.Value("TestCase_Log") = True
End If
Call select_Menu("CorporateActions","Reports Regional Head Summa
ry Search","Home;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++

Vous aimerez peut-être aussi