Você está na página 1de 71

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

==========================
' Name of the Script : Corporate Actions Reports Eve
nt Creation
' Scope of the Script : This test script covers 40 te
st cases related to the CA reports --> Event Creation
' Author : Mohan Gummadi
' Description : Corporate Actions Reports Eve
nt Creation
' Date and / or Version : 03-11-2008,version 1.0
'===============================================================================
============================

Sub CAReportsApprovedEvents()
'****Declaration of Environmental Variable
Environment.Value("Execution_Log")=True
'''''''''Test case count
Const TC_COUNT = 32
strVar = Environment("TestDir")
strIndVar = Split(strVar,"\",-1,1)
strBound = UBound(strIndVar)
strAllPath =""
For i= 0 to strBound - 1
strAllPath = strAllPath & strIndVar(i) &"\"
Next
strPath = Trim(strPath)
strDataPath = strAllPath & "DataTables\"
strLibPath = strAllPath & "Function_Library\"
'****Adding MFLogin sheet to the dataTable and Importing the Input DataT
able
DataTable.AddSheet "CALogin"
DataTable.ImportSheet strDataPath & "Login.xls","CALogin","CALog
in"
DataTable.AddSheet "ApprovedEvents"
DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","ApprovedEvents","ApprovedEvents"
Environment.Value("strSheetName")="ApprovedEvents"
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"), "
", "", "")
Call Execution_log(DataTable.Value(3, "Master"), "", "", "")

'****Invoking IE and navigating to the ADR Login page


DataTable.GetSheet("CALogin").SetCurrentRow(1)
Call invoke_URL("CorporateActions","Login Page",DataTable.Value(
"URL","CALogin"))
'****Checking the username, password and login objects in the lo
gin page
Call pageCheck_WebEdit("CorporateActions","Login Page","username
;j_password","")
Call pageCheck_WebButton("CorporateActions","Login Page","Login"
,"")
'****Entering username and password and login into the masterfil
e application
Call login("CorporateActions","Login Page","User","CALogin")
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
Environment.Value("DATATABLE_ROW")=1
DataTable.GetSheet("ApprovedEvents").SetCurrentRow(Environment.V
alue("DATATABLE_ROW"))
'***************************************** TC Driver Strat *****
**************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"
Environment.Value("TestCase_Log")="True"
If DataTable("TestRunFlag","ApprovedEvents")="Y" Then
''If run flag is Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TES
T CASE - '" & DataTable("TestCaseID","ApprovedEvents") & "' ########### ","Execu
tion of Test Case '" & DataTable("TestCaseDesc","ApprovedEvents") & "' Started"
strFuncName = "CAReportsApprovedEvents_TC" & intTCCount & "()"
''Formation of function name
''Call Function
Execute "Call " & strFuncName
If Environment.Value("Execution_Log") = "True"
Then
Call Execution_log("",Datatable.
Value("TestCaseID", "ApprovedEvents"), Datatable.Value("TestCaseDesc", "Approved
Events"), "PASS")
Else
Call Execution_log("",Datatable.
Value("TestCaseID", "ApprovedEvents"), Datatable.Value("TestCaseDesc", "Approved
Events"), "FAIL")
End If
Reporter.ReportEvent micDone,"######### END OF T
EST CASE - '" & DataTable("TestCaseID","ApprovedEvents") & "###########","The Te
st Case Execution Completed"
End If

strPrevious=Trim(DataTable.Value("TestCaseID","ApprovedE
vents"))
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("ApprovedEvents").SetCurrentRow(Envir
onment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","ApprovedEvent
s"))
While strPrevious = strNext
Environment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("ApprovedEvents").SetCurrentR
ow(Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","Appro
vedEvents"))
Wend
Next
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
End Sub
'************************************************Driver Script End**************
************************************************

'**********************************************Test Case 1 to Test Case 32******


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

Public Function CAReportsApprovedEvents_TC1()


Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Na
vigate to DR Home page after successful login.","Successfully verified the links
- " & DataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 1: Navigate t
o DR Home page after successful login.","The links - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Val
ue("MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on C
orporate Actions in DR Home page.","Successfully verified the home page menus -
" & DataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Click on C
orporate Actions in DR Home page.","The menus - '" & DataTable.Value("MenuName",
"HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","ApprovedEvents"))
Call pageCheck_WebEditOR("CorporateActions","Reports - Approved
Underlying Events Search","EventName;UnderlyingISIN;UnderlyingSEDOL;FromDate;ToD
ate;UnderlyingSecurityName")
Call pageCheck_WebListOR("CorporateActions","Reports - Approved
Underlying Events Search","DateRange;Exception;CountryofUnderlyingISIN;OrgRegion
;CorporateActionType;Owner;RMNY;RMLocal")
Call pageCheck_Image("CorporateActions","Reports - Approved Unde
rlying Events Search","Search;Clear","")
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Approved Underying Events","Expected fields are displayed in sea
rch criteria"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Approved Underying Events","Expected fields are not displayed in
search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","Event Name",DataTable.Value("EventName","Approved
Events"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Enter a v
alue for the 'Event Name' field and click on search ","Approved Underlying Event
s Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4:Enter a va
lue for the 'Event Name' field and click on search ","Approved Underlying Events
Report not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call clickRecordinTableDOM("CorporateActions","Reports - Approve
d Underlying Events Results","Item",DataTable.Value("SelectEventName","ApprovedE
vents"))
strUnderlyingEvent=Trim(Browser("CorporateActions").Page("Underl
ying Event").WebElement("UnderlyingEvent").GetROProperty("innertext"))
If strUnderlyingEvent="Underlying Event" Then
Reporter.ReportEvent micPass,"Verify Underlying
Event Page is displayed or not","Underlying Event page is displayed"
Else
Reporter.ReportEvent micFail,"Verify Underlying
Event Page is displayed or not","Underlying Event page is not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Click on a
ny value in the 'Event Name' column ","User should be transferred to the Underl
ying Event screen"
Else
Reporter.ReportEvent micFail,"Step 5: Click on a
ny value in the 'Event Name' column","User is not transferred to the Underlying
Event screen"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Underlying Event","HOME;DR
Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC2()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step # 2
Call Select_Combo_Value("CorporateActions","Reports - Approved U
nderlying Events Search","RMNY",DataTable.Value("RMNY","ApprovedEvents"))
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").Image("Clear").Click
blnRMNY=Trim(Browser("CorporateActions").Page("Reports - Approve
d Underlying Events Search").WebList("RMNY").GetROProperty("selection"))
If blnRMNY="" Then
Reporter.ReportEvent micPass,"Verify RMNY field
selection is cleared or not","Selected values are cleared in RMNY'"
Else
Reporter.ReportEvent micFail,"Verify RMNY field
selection is cleared or not","Selected values are not cleared in RMNY'"
Call captureScreenShot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select 2 v
alues for the 'RM NY' field and click on 'Clear' button","The selected fields sh
ould are cleared"
Else
Reporter.ReportEvent micFail,"Step 2: Select 2 v
alues for the 'RM NY' field and click on 'Clear' button","The selected fields sh
ould are not cleared"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call Select_Combo_Value("CorporateActions","Reports - Approved U
nderlying Events Search","OrgRegion",DataTable.Value("OrgRegion","ApprovedEvents
"))
Call Select_Combo_Value("CorporateActions","Reports - Approved U
nderlying Events Search","CorporateActionType",DataTable.Value("CorporateActionT
ype","ApprovedEvents"))
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").Image("Clear").Click
blnRegion=Trim(Browser("CorporateActions").Page("Reports - Appro
ved Underlying Events Search").WebList("OrgRegion").GetROProperty("selection"))
blnCAType=Trim(Browser("CorporateActions").Page("Reports - Appro
ved Underlying Events Search").WebList("CorporateActionType").GetROProperty("sel
ection"))
If blnRegion="" And blnCAType="" Then
Reporter.ReportEvent micPass,"Select a value for
any two fields and click on the 'Clear' button","Selection is cleared"
Else
Reporter.ReportEvent micFail,"Select a value for
any two fields and click on the 'Clear' button","Selection is not cleared"
Call captureScreenShot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Select a v
alue for the following fields and click on the Clear button","The selected value
s are cleared"
Else
Reporter.ReportEvent micFail,"Step 3: Select a v
alue for the following fields and click on the Clear button","The selected value
s are not cleared"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Search","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC3()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If

'Step # 2
intISINMax=Browser("CorporateActions").Page("Reports - Approved
Underlying Events Search").WebEdit("UnderlyingISIN").GetROProperty("max length")
If intISINMax=12 Then
Reporter.ReportEvent micPass,"Verify ISIN field
accepts maximum 12 characters or not","ISIN field accepts 12 characters maximum"
Else
Reporter.ReportEvent micFail,"Verify ISIN field
accepts maximum 12 characters or not","ISIN field not accepts 12 characters maxi
mum"
Call captureScreenShot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Check if t
he 'ISIN' field accepts all the 12 characters ","The 'ISIN' field is accepting a
ll the 12 characters"
Else
Reporter.ReportEvent micFail,"Step 2: Check if t
he 'ISIN' field accepts all the 12 characters","The 'ISIN' field is not acceptin
g all the 12 characters"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","ISIN",DataTable.Value("UnderlyingISIN","ApprovedE
vents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Enter a v
alue for the 'Underlying ISIN' field and press 'Enter' key ","Approved Underlyin
g Events Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 3: Enter a v
alue for the 'Underlying ISIN' field and press 'Enter' key","Approved Underlying
Events Report not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC4()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If

'Step # 2
intSEDOLMax=Browser("CorporateActions").Page("Reports - Approved
Underlying Events Search").WebEdit("UnderlyingSEDOL").GetROProperty("max length
")
If intSEDOLMax=7 Then
Reporter.ReportEvent micPass,"Check if the 'SEDO
L' field accepts at least 7 characters","The 'SEDOL' field is accepting at least
7 characters"
Else
Reporter.ReportEvent micFail,"Check if the 'SEDO
L' field accepts at least 7 characters","The 'SEDOL' field is not accepting at l
east 7 characters"
Call captureScreenShot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Check if t
he 'SEDOL' field accepts at least 7 characters ","The 'SEDOL' field is accepting
all the 7 characters"
Else
Reporter.ReportEvent micFail,"Step 2: Check if t
he 'SEDOL' field accepts at least 7 characters","The 'SEDOL' field is not accept
ing all the 7 characters"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","SEDOL",DataTable.Value("UnderlyingSEDOL","Approve
dEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Enter a v
alue for the 'Underlying SEDOL' field and click on search","Approved Underlying
Events Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 3: Enter a v
alue for the 'Underlying SEDOL' field and click on search","Approved Underlying
Events Report not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC5()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","ISIN",DataTable.Value("UnderlyingISIN","ApprovedE
vents"))
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","Corporate Action Type",DataTable.Value("Corporate
ActionType","ApprovedEvents"))
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","Owner",DataTable.Value("Owner","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC6()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
strDateDefault=Trim(Browser("CorporateActions").Page("Reports -
Approved Underlying Events Search").WebList("DateRange").GetROProperty("selectio
n"))
If strDateDefault="All" Then
Reporter.ReportEvent micPass,"Verify the default
value of Date Range field","By default is All is selected in the date range fie
ld"
Else
Reporter.ReportEvent micFail,"Verify the default
value of Date Range field","By default is All is not selected in the date range
field"
Call captureScreenShot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Verify the
default value of the 'Date Range' field ","The default value is 'All'"
Else
Reporter.ReportEvent micFail,"Step 2: Verify the
default value of the 'Date Range' field ","The default value is not 'All'"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").WebList("DateRange").Select DataTable.Value("DateRange","Approve
dEvents")
blnFrom=Browser("CorporateActions").Page("Reports - Approved Und
erlying Events Search").Image("ShowCalendar").Exist(2)
blnTo=Browser("CorporateActions").Page("Reports - Approved Under
lying Events Search").Image("ShowCalendar_2").Exist(2)
If blnFrom And blnTo Then
Reporter.ReportEvent micPass,"Verify From and To
caledar icons are populated or not","From and To calendar icons are populated"
Else
Reporter.ReportEvent micFail,"Verify From and To
caledar icons are populated or not","From and To calendar icons are not populat
ed"
Call captureScreenShot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Select 'R
eceived Date' from 'Date Range' ","Corresponding calendar buttons are displayed
"
Else
Reporter.ReportEvent micFail,"Step 3: Select 'R
eceived Date' from 'Date Range'","Corresponding calendar buttons are not displa
yed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC7()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").WebList("DateRange").Select DataTable.Value("DateRange","Approve
dEvents")
blnFrom=Browser("CorporateActions").Page("Reports - Approved Und
erlying Events Search").Image("ShowCalendar").Exist(2)
blnTo=Browser("CorporateActions").Page("Reports - Approved Under
lying Events Search").Image("ShowCalendar_2").Exist(2)
If blnFrom And blnTo Then
Reporter.ReportEvent micPass,"Verify From and To
caledar icons are populated or not","From and To calendar icons are populated"
Else
Reporter.ReportEvent micFail,"Verify From and To
caledar icons are populated or not","From and To calendar icons are not populat
ed"
Call captureScreenShot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select 'A
pproved Date' from 'Date Range' ","Corresponding calendar buttons are displayed
"
Else
Reporter.ReportEvent micFail,"Step 2: Select 'A
pproved Date' from 'Date Range'","Corresponding calendar buttons are not displa
yed"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
Call DateComparision("CorporateActions","Reports - Approved Underlying E
vents Results","Item","Approved Date",DataTable.Value("FromDate","ApprovedEvents
"),"GreaterThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Select 'Fr
om' Date and click on Search","Approved Underlying Events Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 3: Select 'Fr
om' Date and click on Search","Approved Underlying Events Report not generated r
elated to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC8()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").WebList("DateRange").Select DataTable.Value("DateRange","Approve
dEvents")
blnFrom=Browser("CorporateActions").Page("Reports - Approved Und
erlying Events Search").Image("ShowCalendar").Exist(2)
blnTo=Browser("CorporateActions").Page("Reports - Approved Under
lying Events Search").Image("ShowCalendar_2").Exist(2)
If blnFrom And blnTo Then
Reporter.ReportEvent micPass,"Verify From and To
caledar icons are populated or not","From and To calendar icons are populated"
Else
Reporter.ReportEvent micFail,"Verify From and To
caledar icons are populated or not","From and To calendar icons are not populat
ed"
Call captureScreenShot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select 'A
pproved Date' from 'Date Range' ","Corresponding calendar buttons are displayed
"
Else
Reporter.ReportEvent micFail,"Step 2: Select 'A
pproved Date' from 'Date Range'","Corresponding calendar buttons are not displa
yed"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateActions",
"Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
Call DateComparision("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","Approved Date",DataTable.Value("ToDate","Approved
Events"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Select 'To
' Date and click on Search","Approved Underlying Events Report generated related
to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 3: Select 'To
' Date and click on Search","Approved Underlying Events Report not generated rel
ated to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC9()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").WebList("DateRange").Select DataTable.Value("DateRange","Approve
dEvents")
blnFrom=Browser("CorporateActions").Page("Reports - Approved Und
erlying Events Search").Image("ShowCalendar").Exist(2)
blnTo=Browser("CorporateActions").Page("Reports - Approved Under
lying Events Search").Image("ShowCalendar_2").Exist(2)
If blnFrom And blnTo Then
Reporter.ReportEvent micPass,"Verify From and To
caledar icons are populated or not","From and To calendar icons are populated"
Else
Reporter.ReportEvent micFail,"Verify From and To
caledar icons are populated or not","From and To calendar icons are not populat
ed"
Call captureScreenShot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select 'R
eceived Date' from 'Date Range' ","Corresponding calendar buttons are displayed
"
Else
Reporter.ReportEvent micFail,"Step 2: Select 'R
eceived Date' from 'Date Range'","Corresponding calendar buttons are not displa
yed"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
If DataTable.Value("FromDate","ApprovedEvents") <> "" Then
strDataTableValue = DataTable.Value("FromDate","
ApprovedEvents")
strValue = Split(strDataTableValue,";",-1,1)
strDateValue = strValue(0)
strMonthValue = strValue(1)
strYearValue = strValue(2)
Call click_Image("CorporateActions","Reports - A
pproved Underlying Events Search","ShowCalendar")
Call ClickIcon_SetDate("CorporateActions","Repor
ts - Approved Underlying Events Search",strMonthValue,strYearValue,strDateValue)
End If
If DataTable.Value("ToDate","ApprovedEvents") <> "" Then
strDataTableValue = DataTable.Value("ToDate","Ap
provedEvents")
strValue = Split(strDataTableValue,";",-1,1)
strDateValue = strValue(0)
strMonthValue = strValue(1)
strYearValue = strValue(2)
Call click_Image("CorporateActions","Reports - A
pproved Underlying Events Search","ShowCalendar_2")
Call ClickIcon_SetDate("CorporateActions","Repor
ts - Approved Underlying Events Search",strMonthValue,strYearValue,strDateValue)
End If
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").Image("Search").Click
If Dialog("text:=Microsoft Internet Explorer").Exist(5) Then
strWarning=Trim(Dialog("text:=Microsoft Internet
Explorer").WinButton("text:=OK").GetROProperty("attached text"))
If strWarning="From Date can not be greater tha
n To Date" Then
Reporter.ReportEvent mic
Pass,"Verify the error message popup saying From Date can not be greater than To
Date is displayed or not","From Date can not be greater than To Date error mess
age popup is displayed"
Dialog("text:=Microsoft
Internet Explorer").WinButton("text:=OK").Click
Else
Reporter.ReportEvent mic
Pass,"Verify the error message popup saying From Date can not be greater than To
Date is displayed or not","From Date can not be greater than To Date error mess
age popup is not displayed"
Environment.Value("Execu
tion_Log")="False"
Call captureScreenShot()
End If
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Provide 'F
rom' Date greater than 'To' Date and click on Search ","Error msg pops up saying
'From Date cannot be greater than To date' is displayed"
Else
Reporter.ReportEvent micFail,"Step 3: Provide 'F
rom' Date greater than 'To' Date and click on Search","Error msg pops up saying
'From Date cannot be greater than To date' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Search","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC10()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").WebList("DateRange").Select DataTable.Value("DateRange","Approve
dEvents")
blnFrom=Browser("CorporateActions").Page("Reports - Approved Und
erlying Events Search").Image("ShowCalendar").Exist(2)
blnTo=Browser("CorporateActions").Page("Reports - Approved Under
lying Events Search").Image("ShowCalendar_2").Exist(2)
If blnFrom And blnTo Then
Reporter.ReportEvent micPass,"Verify From and To
caledar icons are populated or not","From and To calendar icons are populated"
Else
Reporter.ReportEvent micFail,"Verify From and To
caledar icons are populated or not","From and To calendar icons are not populat
ed"
Call captureScreenShot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select 'R
eceived Date' from 'Date Range' ","Corresponding calendar buttons are displayed
"
Else
Reporter.ReportEvent micFail,"Step 2: Select 'R
eceived Date' from 'Date Range'","Corresponding calendar buttons are not displa
yed"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
If DataTable.Value("FromDate","ApprovedEvents") <> "" Then
strDataTableValue = DataTable.Value("FromDate","
ApprovedEvents")
strValue = Split(strDataTableValue,";",-1,1)
strDateValue = strValue(0)
strMonthValue = strValue(1)
strYearValue = strValue(2)
Call click_Image("CorporateActions","Reports - A
pproved Underlying Events Search","ShowCalendar")
Call ClickIcon_SetDate("CorporateActions","Repor
ts - Approved Underlying Events Search",strMonthValue,strYearValue,strDateValue)
End If
If DataTable.Value("ToDate","ApprovedEvents") <> "" Then
strDataTableValue = DataTable.Value("ToDate","Ap
provedEvents")
strValue = Split(strDataTableValue,";",-1,1)
strDateValue = strValue(0)
strMonthValue = strValue(1)
strYearValue = strValue(2)
Call click_Image("CorporateActions","Reports - A
pproved Underlying Events Search","ShowCalendar_2")
Call ClickIcon_SetDate("CorporateActions","Repor
ts - Approved Underlying Events Search",strMonthValue,strYearValue,strDateValue)
End If
blnFrom=Trim(Browser("CorporateActions").Page("Reports - Approve
d Underlying Events Search").WebEdit("FromDate").GetROProperty("value"))
blnTo=Trim(Browser("CorporateActions").Page("Reports - Approved
Underlying Events Search").WebEdit("ToDate").GetROProperty("value"))
FormatFrom=Trim(SearchCriteriaDateFormat(DataTable.Value("FromDa
te","ApprovedEvents")))
FormatTo=Trim(SearchCriteriaDateFormat(DataTable.Value("ToDate",
"ApprovedEvents")))
If blnFrom=FormatFrom And blnTo=FormatTo Then
Reporter.ReportEvent micPass,"Verify the From an
d To date fields are populated or not","From and To Date fields are populated"
Else
Reporter.ReportEvent micFail,"Verify the From an
d To date fields are populated or not","From and To Date fields are not populate
d"
Call captureScreenShot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Provide 'F
rom' Date and 'To' Date ","Corresponding Dates are populated in Date fields"
Else
Reporter.ReportEvent micFail,"Step 3: Provide 'F
rom' Date and 'To' Date","Corresponding Dates are not populated in Date fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").WebList("DateRange").Select "All"
blnFrom=Trim(Browser("CorporateActions").Page("Reports - Approve
d Underlying Events Search").WebEdit("FromDate").GetROProperty("value"))
blnTo=Trim(Browser("CorporateActions").Page("Reports - Approved
Underlying Events Search").WebEdit("ToDate").GetROProperty("value"))
If blnFrom="" And blnTo="" Then
Reporter.ReportEvent micPass,"Verify From and To
date fields and corresponding calendar icons are cleared or not","From and To d
ate fields and corresponding calendar icons are cleared"
Else
Reporter.ReportEvent micFail,"Verify From and To
date fields and corresponding calendar icons are cleared or not","From and To d
ate fields and corresponding calendar icons are not cleared"
Call captureScreenShot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Now select
'All' from 'Date Range' dropdown","Date buttons corresponding to 'From' and 'To
' should not be displayed and From and To fields should not be cleared."
Else
Reporter.ReportEvent micFail,"Step 4: Now select
'All' from 'Date Range' dropdown","Date buttons corresponding to 'From' and 'To
' should be displayed and From and To fields should not be cleared."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Search","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC11()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
strDefault=Trim(Browser("CorporateActions").Page("Reports - Appr
oved Underlying Events Search").WebList("DateRange").GetROProperty("value"))
If strDefault="All" Then
Reporter.ReportEvent micPass,"Verify the default
value of the date range field","By default all is selected"
Else
Reporter.ReportEvent micFail,"Verify the default
value of the date range field","By default all is not selected"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Verify the
default value of the 'Date Range' field ","By default, 'All' should be selected
"
Else
Reporter.ReportEvent micFail,"Step 2: Verify the
default value of the 'Date Range' field","By default, 'All' should not be selec
ted"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
strDateRangeOptions=Trim(Browser("CorporateActions").Page("Repor
ts - Approved Underlying Events Search").WebList("DateRange").GetROProperty("all
items"))
If strDateRangeOptions=DataTable.Value("DateRangeOptions","Appr
ovedEvents") Then
Reporter.ReportEvent micPass,"Verify the options
available in the date range drop down","Options " & DataTable.Value("DateRangeO
ptions","ApprovedEvents") & " are displayed correctly"
Else
Reporter.ReportEvent micFail,"Verify the options
available in the date range drop down","Options " & DataTable.Value("DateRangeO
ptions","ApprovedEvents") & " are not displayed correctly"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click and
verify the items listed under the 'Date Range' field","Date range options displa
yed correctly"
Else
Reporter.ReportEvent micFail,"Step 3: Click and
verify the items listed under the 'Date Range' field","Date range options not di
splayed correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results",DataTable.Value("MenuPath","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is displa
yed"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is not di
splayed"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("ApprovedEvents").SetCurrentRow(Environment.V
alue("DATATABLE_ROW"))
'Step #6 To Step #7
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 7: Enter
search criteria and click on search button","Approved Underlying Events Report
generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6 To 7: Enter
search criteria and click on search button","Approved Underlying Events Report
not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results",DataTable.Value("MenuPath","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is displa
yed"
Else
Reporter.ReportEvent micFail,"Step 8: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is not di
splayed"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("ApprovedEvents").SetCurrentRow(Environment.V
alue("DATATABLE_ROW"))
'Step #9
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").WebList("DateRange").Select DataTable.Value("DateRange","Approve
dEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Select the
'Received Date' for the 'Date Range' field","The value is selected and displaye
d"
Else
Reporter.ReportEvent micFail,"Step 9: Select the
'Received Date' for the 'Date Range' field","The value is not selected and disp
layed"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").Image("ShowCalendar").Click
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").Frame("popCalFrame").WebElement("Today").Click
strFrom=Trim(Browser("CorporateActions").Page("Reports - Approve
d Underlying Events Search").WebEdit("FromDate").GetROProperty("value"))
If DateValue(strFrom)=DateValue(Date) Then
Reporter.ReportEvent micPass,"Verify today's dat
e is populated or not","Today's date is populated"
Else
Reporter.ReportEvent micFail,"Verify today's dat
e is populated or not","Today's date is not populated"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Click on
the calendar icon for the 'From' field and in the calendar pop up click on the l
ink ' Today: ' ","The current date is populated in the 'From' field"
Else
Reporter.ReportEvent micPass,"Step 10: Click on
the calendar icon for the 'From' field and in the calendar pop up click on the l
ink ' Today: ' ","The current date is not populated in the 'From' field"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").Image("ShowCalendar").Click
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").Frame("popCalFrame").Image("ClearFieldValue").Click
strFrom=Trim(Browser("CorporateActions").Page("Reports - Approve
d Underlying Events Search").WebEdit("FromDate").GetROProperty("value"))
If strFrom="" Then
Reporter.ReportEvent micPass,"Verify the From da
te field is cleated or not","From date field is cleared"
Else
Reporter.ReportEvent micFail,"Verify the From da
te field is cleated or not","From date field is not cleared"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Click on
the calendar icon for the 'From' field and in the calendar pop up click on the '
Clear Field Value' icon","The current date is cleared in the 'From' field"
Else
Reporter.ReportEvent micPass,"Step 11: Click on
the calendar icon for the 'From' field and in the calendar pop up click on the '
Clear Field Value' icon","The current date is not cleared in the 'From' field"
Environment.Value("TestCase_Log")="True"
End If
'Step #12
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").Image("ShowCalendar_2").Click
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").Frame("popCalFrame").WebElement("Today").Click
strTo=Trim(Browser("CorporateActions").Page("Reports - Approved
Underlying Events Search").WebEdit("ToDate").GetROProperty("value"))
If DateValue(strTo)=DateValue(Date) Then
Reporter.ReportEvent micPass,"Verify today's dat
e is populated or not","Today's date is populated"
Else
Reporter.ReportEvent micFail,"Verify today's dat
e is populated or not","Today's date is not populated"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12: Click on
the calendar icon for the 'To' field and in the calendar pop up click on the lin
k ' Today: ' ","The current date is populated in the 'To' field"
Else
Reporter.ReportEvent micPass,"Step 12: Click on
the calendar icon for the 'To' field and in the calendar pop up click on the lin
k ' Today: ' ","The current date is not populated in the 'To' field"
Environment.Value("TestCase_Log")="True"
End If
'Step #13
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").Image("ShowCalendar_2").Click
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").Frame("popCalFrame").Image("ClearFieldValue").Click
strTo=Trim(Browser("CorporateActions").Page("Reports - Approved
Underlying Events Search").WebEdit("ToDate").GetROProperty("value"))
If strTo="" Then
Reporter.ReportEvent micPass,"Verify the To date
field is cleated or not","To date field is cleared"
Else
Reporter.ReportEvent micFail,"Verify the To date
field is cleated or not","To date field is not cleared"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13: Click on
the calendar icon for the 'To' field and in the calendar pop up click on the 'Cl
ear Field Value' icon","The current date is cleared in the 'To' field"
Else
Reporter.ReportEvent micPass,"Step 13: Click on
the calendar icon for the 'To' field and in the calendar pop up click on the 'Cl
ear Field Value' icon","The current date is not cleared in the 'To' field"
Environment.Value("TestCase_Log")="True"
End If
'Step #14
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14: Enter sea
rch criteria and click on search button","Approved Underlying Events Report gene
rated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 14: Enter sea
rch criteria and click on search button","Approved Underlying Events Report not
generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("ApprovedEvents").SetCurrentRow(Environment.V
alue("DATATABLE_ROW"))
'Step #15
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results",DataTable.Value("MenuPath","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 15: Under Rep
orts menu select Approved Events","Reports- Approved Events Search page is displ
ayed"
Else
Reporter.ReportEvent micFail,"Step 15: Under Rep
orts menu select Approved Events","Reports- Approved Events Search page is not d
isplayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #16
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14: Enter sea
rch criteria and click on search button","Approved Underlying Events Report gene
rated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 14: Enter sea
rch criteria and click on search button","Approved Underlying Events Report not
generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC12()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","Underlying Security Name",DataTable.Value("Underl
yingSecurityName","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
strExceptionDefault=Trim(Browser("CorporateActions").Page("Repor
ts - Approved Underlying Events Search").WebList("Exception").GetROProperty("sel
ection"))
If strExceptionDefault="All" Then
Reporter.ReportEvent micPass,"Verify the default
value of the exception field","By default All is selected in the exception fiel
d"
Else
Reporter.ReportEvent micFail,"Verify the default
value of the exception field","By default All is not selected in the exception
field"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Verify the
default value of the 'Exception' field ","By default, 'All' should be selected"
Else
Reporter.ReportEvent micFail,"Step 2: Verify the
default value of the 'Exception' field","By default, 'All' should not be select
ed"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
strExceptionOptions=Trim(Browser("CorporateActions").Page("Repor
ts - Approved Underlying Events Search").WebList("Exception").GetROProperty("all
items"))
If strExceptionOptions=DataTable.Value("ExceptionOptions","Appr
ovedEvents") Then
Reporter.ReportEvent micPass,"Verify the options
of the exception field","Options " & DataTable.Value("ExceptionOptions","Approv
edEvents") & " are displayed correctly"
Else
Reporter.ReportEvent micFail,"Verify the options
of the exception field","Options " & DataTable.Value("ExceptionOptions","Approv
edEvents") & " are not displayed correctly"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click and
verify the items listed under the 'Exception' field","Options " & DataTable.Valu
e("ExceptionOptions","ApprovedEvents") & " are displayed correctly"
Else
Reporter.ReportEvent micFail,"Step 3: Click and
verify the items listed under the 'Exception' field","Options " & DataTable.Valu
e("ExceptionOptions","ApprovedEvents") & " are not displayed correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results",DataTable.Value("MenuPath","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is displa
yed"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is not di
splayed"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("ApprovedEvents").SetCurrentRow(Environment.V
alue("DATATABLE_ROW"))
'Step #6
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results",DataTable.Value("MenuPath","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is displa
yed"
Else
Reporter.ReportEvent micFail,"Step 7: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is not di
splayed"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("ApprovedEvents").SetCurrentRow(Environment.V
alue("DATATABLE_ROW"))
'Step #8
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","Exceptions",DataTable.Value("Exception","Approved
Events"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 8: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results",DataTable.Value("MenuPath","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is displa
yed"
Else
Reporter.ReportEvent micFail,"Step 9: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is not di
splayed"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("ApprovedEvents").SetCurrentRow(Environment.V
alue("DATATABLE_ROW"))
'Step #10
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","Exceptions",DataTable.Value("Exception","Approved
Events"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Enter sea
rch criteria and click on search button","Approved Underlying Events Report gene
rated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 10: Enter sea
rch criteria and click on search button","Approved Underlying Events Report not
generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC14()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","Country",DataTable.Value("CountryofUnderlyingISIN
","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC15()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").WebList("OrgRegion").Select DataTable.Value("OrgRegion","Approve
dEvents")
strOrgRegion=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Search").WebList("OrgRegion").GetROProperty("selection"
))
If strOrgRegion=DataTable.Value("OrgRegion","ApprovedEvents") Th
en
Reporter.ReportEvent micPass,"Verify the value i
s selected or not in the OrgRegion drop down","Value is selected in Org Region d
rop down"
Else
Reporter.ReportEvent micFail,"Verify the value i
s selected or not in the OrgRegion drop down","Value is not selected in Org Regi
on drop down"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
'Step #3
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Search").WebList("OrgRegion").Deselect DataTable.Value("OrgRegion","Appro
vedEvents")
strOrgRegion=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Search").WebList("OrgRegion").GetROProperty("selection"
))
If strOrgRegion="" Then
Reporter.ReportEvent micPass,"Verify the value i
s deselected or not in the OrgRegion drop down","Value is deselected in Org Regi
on drop down"
Else
Reporter.ReportEvent micFail,"Verify the value i
s deselected or not in the OrgRegion drop down","Value is not deselected in Org
Region drop down"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
'Step #4
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2 To 4: Enter
search criteria and click on search button","Approved Underlying Events Report
generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2 To 4: Enter
search criteria and click on search button","Approved Underlying Events Report
not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC16()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","Corporate Action Type",DataTable.Value("Corporate
ActionType","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC17()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2 To Step #3
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","Owner",DataTable.Value("Owner","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2 To 3: Enter
search criteria and click on search button","Approved Underlying Events Report
generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2 To 3: Enter
search criteria and click on search button","Approved Underlying Events Report
not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC18()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","RM NY",DataTable.Value("RMNY","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC19()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","RM Local",DataTable.Value("RMLocal","ApprovedEven
ts"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC20()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","ISIN",DataTable.Value("UnderlyingISIN","ApprovedE
vents"))
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","Region",DataTable.Value("OrgRegion","ApprovedEven
ts"))
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","Corporate Action Type",DataTable.Value("Corporate
ActionType","ApprovedEvents"))
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","Owner",DataTable.Value("Owner","ApprovedEvents"))
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","RM NY",DataTable.Value("RMNY","ApprovedEvents"))
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","RM Local",DataTable.Value("RMLocal","ApprovedEven
ts"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC21()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","ISIN",DataTable.Value("UnderlyingISIN","ApprovedE
vents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("ApprovedEvents").SetCurrentRow(Environment.V
alue("DATATABLE_ROW"))
'Step #3
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results",DataTable.Value("MenuPath","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is displa
yed"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is not di
splayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
strString=Trim(DataTable.Value("OrgRegion","ApprovedEvents"))
strOption=Split(strString,";")
Call chkReportValueswithCondition("CorporateActions","Reports -
Approved Underlying Events Results","Item","Region",strOption(0),strOption(1))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("ApprovedEvents").SetCurrentRow(Environment.V
alue("DATATABLE_ROW"))
'Step #5
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results",DataTable.Value("MenuPath","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is displa
yed"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is not di
splayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
strString=Trim(DataTable.Value("CorporateActionType","ApprovedEv
ents"))
strOption=Split(strString,";")
Call chkReportValueswithCondition("CorporateActions","Reports -
Approved Underlying Events Results","Item","Corporate Action Type",strOption(0),
strOption(1))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("ApprovedEvents").SetCurrentRow(Environment.V
alue("DATATABLE_ROW"))
'Step #7
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results",DataTable.Value("MenuPath","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is displa
yed"
Else
Reporter.ReportEvent micFail,"Step 7: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is not di
splayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
strString=Trim(DataTable.Value("Owner","ApprovedEvents"))
strOption=Split(strString,";")
Call chkReportValueswithCondition("CorporateActions","Reports -
Approved Underlying Events Results","Item","Owner",strOption(0),strOption(1))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 8: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("ApprovedEvents").SetCurrentRow(Environment.V
alue("DATATABLE_ROW"))
'Step #9
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results",DataTable.Value("MenuPath","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is displa
yed"
Else
Reporter.ReportEvent micFail,"Step 9: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is not di
splayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
strString=Trim(DataTable.Value("RMNY","ApprovedEvents"))
strOption=Split(strString,";")
Call chkReportValueswithCondition("CorporateActions","Reports -
Approved Underlying Events Results","Item","RM NY",strOption(0),strOption(1))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Enter sea
rch criteria and click on search button","Approved Underlying Events Report gene
rated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 10: Enter sea
rch criteria and click on search button","Approved Underlying Events Report not
generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("ApprovedEvents").SetCurrentRow(Environment.V
alue("DATATABLE_ROW"))
'Step #11
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results",DataTable.Value("MenuPath","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Under Rep
orts menu select Approved Events","Reports- Approved Events Search page is displ
ayed"
Else
Reporter.ReportEvent micFail,"Step 11: Under Rep
orts menu select Approved Events","Reports- Approved Events Search page is not d
isplayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #12
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
strString=Trim(DataTable.Value("RMLocal","ApprovedEvents"))
strOption=Split(strString,";")
Call chkReportValueswithCondition("CorporateActions","Reports -
Approved Underlying Events Results","Item","RM Local",strOption(0),strOption(1))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12: Enter sea
rch criteria and click on search button","Approved Underlying Events Report gene
rated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 12: Enter sea
rch criteria and click on search button","Approved Underlying Events Report not
generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC22()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC23()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","ISIN",DataTable.Value("UnderlyingISIN","ApprovedE
vents"))
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","Event Name",DataTable.Value("EventName","Approved
Events"))
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","SEDOL",DataTable.Value("UnderlyingSEDOL","Approve
dEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call clickRecordinTableDOM("CorporateActions","Reports - Approve
d Underlying Events Results","Item",DataTable.Value("SelectEventName","ApprovedE
vents"))
strUnderlyingEvent=Trim(Browser("CorporateActions").Page("Underl
ying Event").WebElement("UnderlyingEvent").GetROProperty("innertext"))
If strUnderlyingEvent="Underlying Event" Then
Reporter.ReportEvent micPass,"Verify Underlying
Event Page is displayed or not","Underlying Event page is displayed"
Else
Reporter.ReportEvent micFail,"Verify Underlying
Event Page is displayed or not","Underlying Event page is not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on a
ny value in the 'Event Name' column ","User should be transferred to the Underl
ying Event screen"
Else
Reporter.ReportEvent micFail,"Step 3: Click on a
ny value in the 'Event Name' column","User is not transferred to the Underlying
Event screen"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("ApprovedEvents").SetCurrentRow(Environment.V
alue("DATATABLE_ROW"))
'Step #4
Call select_Menu("CorporateActions","Underlying Event",DataTable
.Value("MenuPath","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is displa
yed"
Else
Reporter.ReportEvent micFail,"Step 4: Under Repo
rts menu select Approved Events","Reports- Approved Events Search page is not di
splayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","ISIN",DataTable.Value("UnderlyingISIN","ApprovedE
vents"))
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","Event Name",DataTable.Value("EventName","Approved
Events"))
Call chkReportValues("CorporateActions","Reports - Approved Unde
rlying Events Results","Item","SEDOL",DataTable.Value("UnderlyingSEDOL","Approve
dEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call clickRecordinTableDOM("CorporateActions","Reports - Approve
d Underlying Events Results","Item",DataTable.Value("SelectUnderlyingISIN","Appr
ovedEvents"))
strUnderlyingEvent=Trim(Browser("CorporateActions").Page("Underl
ying Security Profile").WebElement("UnderlyingSecurityProfile").GetROProperty("i
nnertext"))
If strUnderlyingEvent="Underlying Security Profile" Then
Reporter.ReportEvent micPass,"Verify Underlying
security profile Page is displayed or not","Underlying security parofile page is
displayed"
Else
Reporter.ReportEvent micFail,"Verify Underlying
security profile Page is displayed or not","Underlying security parofile page is
not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Click on a
ny value in the 'Underlying ISIN' column ","User should be transferred to the U
nderlying security profile page"
Else
Reporter.ReportEvent micFail,"Step 6: Click on a
ny value in the Underlying ISIN' column","User should not transferred to the Un
derlying security profile page"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Underlying Security Profile
","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC24()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Results").WebElement("Search").Click
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass,"Verify Reports - A
pproved Underlying Events Search page is displayed or not","Reports - Approved U
nderlying Events Search pag is displayed"
Else
Reporter.ReportEvent micFail,"Verify Reports - A
pproved Underlying Events Search page is displayed or not","Reports - Approved U
nderlying Events Search pag is not displayed"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Search","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC25()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3 To Step #4
Call FilterCriteria("CorporateActions","Reports - Approved Under
lying Events Results","Filter",DataTable.Value("FilterColumn","ApprovedEvents"),
DataTable.Value("FilterExpression","ApprovedEvents"),DataTable.Value("FilterValu
e","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3 To 4: Verif
ication of Filter Criteria","Filter Criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 3 To 4: Verif
ication of Filter Criteria","Filter Criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC26()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3 To Step #6
Call MultipleFilterCriteria("CorporateActions","Reports - Approv
ed Underlying Events Results",DataTable.Value("FilterColumn","ApprovedEvents"),D
ataTable.Value("FilterExpression","ApprovedEvents"),DataTable.Value("FilterValue
","ApprovedEvents"),DataTable.Value("FilterCondition","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3 To 6: Verif
ication of multipleFilter Criteria","Filter Criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 3 To 6: Verif
ication of multiple Filter Criteria","Filter Criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC27()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3 To Step #9
Call MultipleFilterCriteria("CorporateActions","Reports - Approv
ed Underlying Events Results",DataTable.Value("FilterColumn","ApprovedEvents"),D
ataTable.Value("FilterExpression","ApprovedEvents"),DataTable.Value("FilterValue
","ApprovedEvents"),DataTable.Value("FilterCondition","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3 To 9: Verif
ication of multipleFilter Criteria","Filter Criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 3 To 9: Verif
ication of multiple Filter Criteria","Filter Criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC28()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Results").WebElement("EventNameHeader").Click
Call chkSortOrder("CorporateActions","Reports - Approved Underly
ing Events Results", "Item","Event Name","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on a
ny column header","he column should be sorted in ascending order"
Else
Reporter.ReportEvent micFail,"Step 3: Click on a
ny column header","he column should not be sorted in ascending orde"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Results").WebElement("EventNameHeader").Click
Call chkSortOrder("CorporateActions","Reports - Approved Underly
ing Events Results", "Item","Event Name","Descending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on s
ame column header","he column should be sorted in descending order"
Else
Reporter.ReportEvent micFail,"Step 3: Click on s
ame column header","he column should not be sorted in descending orde"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC29()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3 To Step #4
Call SortCriteria("CorporateActions","Reports - Approved Underly
ing Events Results","Sort",DataTable.Value("SortColumn","ApprovedEvents"),DataTa
ble.Value("SortOrder","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3 To 4: Verif
ication of sort criteria","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 3 To 4: Verif
ication of sort criteria","Sort criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC30()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3 To Step #4
Call MultipleSortCriteria("CorporateActions","Reports - Approved
Underlying Events Results","Sort",DataTable.Value("SortColumn","ApprovedEvents"
),DataTable.Value("SortOrder","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3 To 4: Verif
ication of multiple sort criteria","multiple Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 3 To 4: Verif
ication of multiple sort criteria","multiple Sort criteria is not working correc
tly"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC31()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3 To Step #8
Call MultipleSortCriteria("CorporateActions","Reports - Approved
Underlying Events Results","Sort",DataTable.Value("SortColumn","ApprovedEvents"
),DataTable.Value("SortOrder","ApprovedEvents"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3 To 8: Verif
ication of multiple sort criteria","multiple Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 3 To 8: Verif
ication of multiple sort criteria","multiple Sort criteria is not working correc
tly"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Results").WebElement("Sort").Click
'Browser("CorporateActions").Page("Reports - Approved Underlying
Events Results").WebButton("Delete").Click
Call FilterSort_clkAddDelButton("CorporateActions","Reports - Ap
proved Underlying Events Results","Sort:","Delete")
strColumn=Trim(Browser("CorporateActions").Page("Reports - Appro
ved Underlying Events Results").WebList("SortColumn").GetROProperty("selection")
)
strOrder=Trim(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebList("SortOrder").GetROProperty("selection"))
If strColumn="" And strOrder="" Then
Reporter.ReportEvent micPass,"Verify the values
are cleared or not in the column and order fields","Values are cleared"
Else
Reporter.ReportEvent micFail,"Verify the values
are cleared or not in the column and order fields","Values are not cleared"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsApprovedEvents_TC32()
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","ApprovedEvents"))
strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A
pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe
arch").GetROProperty("innertext"))
If strSearchPage="Reports - Approved Underlying Events Search"
Then
Reporter.ReportEvent micPass, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is displayed with all fields"
Else
Reporter.ReportEvent micFail, "Verify Reports -
Approved Underlying Events Search page is displayed or not","Reports - Approved
Underlying Events Search is not displayed with all fields"
Environment.Value("Execution_Log")="False"
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Select App
roved Events from the Reports menu ","The Reports- Approved Events Search page i
s not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA
ctions","Reports - Approved Underlying Events Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv
ed Underlying Events Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Approved Under
lying Events Results","ApprovedEvents","ReportLinks")
Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora
teActions","Reports - Approved Underlying Events Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap
proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of
.*").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Approved Unde
rlying Events Results","CAReportsApprovedEvents")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter sear
ch criteria and click on search button","Approved Underlying Events Report not g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3 To Step #10
Browser("CorporateActions").Page("Reports - Approved Underlying
Events Results").WebElement("EventNameHeader").Click
var_X = Browser("CorporateActions").Page("Reports - Approved Und
erlying Events Results").WebElement("SaveAsExcel").GetROProperty("x")
var_Y = Browser("CorporateActions").Page("Reports - Approved Und
erlying Events Results").WebElement("SaveAsExcel").GetROProperty("y")
Window("regexpwndtitle:=Microsoft Internet Explorer", "regexpwnd
class:=IEFrame").WinObject("regexpwndclass:=Internet Explorer_Server").Click var
_X+10, var_Y+10
Call SaveASExcel("CorporateActions","Reports - Approved Underlyi
ng Events Results","ApprovedEvents","Save")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3 To 10: Veri
fication of Save as Excel functionality","Save as excel functionality is working
as per the requirement"
Else
Reporter.ReportEvent micFail,"Step 3 To 10: Veri
fication of Save as Excel functionality","Save as excel functionality is not wor
king as per the requirement"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Approved Underlyi
ng Events Results","HOME;DR Home")
End Function

Você também pode gostar