Você está na página 1de 52

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

==========================
' Name of the Script : CAReportsNotificationSear
ch
' Scope of the Script : This test script covers 3
7 test cases related to CA Reports Notifications Search
' Author : Satish Dupati
' Description : CAReportsNotificationSear
ch
' Date and / or Version : 05-11-2008,version 1.0
'===============================================================================
============================
Sub CAReportsNotificationSearch()
'****Declaration of Environmental Variable
Environment.Value("Execution_Log")="True"
Environment.Value("strSheetName")="NotificationSearch"
'''''''''Test case count
Const TC_COUNT =37
strVar = Environment("TestDir")
strIndVar = Split(strVar,"\",-1,1)
strBound = UBound(strIndVar)
strAllPath =""
For intCounter = 0 to strBound - 1
strAllPath = strAllPath & strIndVar(intCounter)
&"\"
Next
strPath = Trim(strPath)
strDataPath = strAllPath & "DataTables\"
strLibPath = strAllPath & "Function_Library\"

'****Adding CALogin sheet to the dataTable and Importing the In


put DataTable
DataTable.AddSheet "CALogin"
DataTable.ImportSheet strDataPath & "Login.xls","CALogin","CALog
in"
DataTable.AddSheet "NotificationSearch"
DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","NotificationSearch","NotificationSearch"
DataTable.AddSheet "HomePageVerification"
DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","HomePageVerification","HomePageVerification"
DataTable.AddSheet "ReportHeader"
DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","ReportHeader","ReportHeader"
' Logs the Scenario name Execution in a .csv file
Call Execution_log(DataTable.Value("Scenario_Name", "Master"), "
", "", "")
Environment.Value("DATATABLE_ROW")=1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'***************************************** TC Driver Strat *****
**************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"
If DataTable("TestRunFlag","NotificationSearch") = "Y" T
hen ''If run flag is Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TEST CASE - '" & Da
taTable("TestCaseID","NotificationSearch") & "' ########### ","Execution of Test
Case '" & DataTable("TestCaseDesc","NotificationSearch") & "' Started"
Environment.Value("TestCase_Log")="True"
strFuncName = "CAReportsNotificationSearch_TC" & intTCCount & "(
)" ''Formation of function name
Execute "Call " & strFuncName
If Environment.Value("Execution_Log") = "True"
Then
Call Execution_log("",Datatable.
Value("TestCaseID", "NotificationSearch"), Datatable.Value("TestCaseDesc", "Noti
ficationSearch"), "PASS")
Else
Call Execution_log("",Datatable.
Value("TestCaseID", "NotificationSearch"), Datatable.Value("TestCaseDesc", "Noti
ficationSearch"), "FAIL")
End If
Reporter.ReportEvent micDone,"######### END OF T
EST CASE - '" & DataTable("TestCaseID","NotificationSearch") & "###########","Th
e Test Case Execution Completed"
End If
strPrevious=Trim(DataTable.Value("TestCaseID","Notificat
ionSearch"))
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(E
nvironment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","NotificationS
earch"))
While strPrevious = strNext
Environment.Value("DATATABLE_ROW") = Environment.Value
("DATATABLE_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow
(Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","Notificatio
nSearch"))
Wend
Next
Call logoutfromApp("CorporateActions","Depositary Receipt Divisi
on's")
'***************************************** TC Driver End ***************
****************************************

End Sub
'******************************************************************** Test Case
1 to Test Case 37 **************************************************************
******************************************************
Public Function CAReportsNotificationSearch_TC1()
'Step1
DataTable.GetSheet("CALogin").SetCurrentRow(1)
Call invoke_URL("CorporateActions","Login Page",DataTable.Value(
"URL","CALogin"))
Call pageCheck_WebEdit("CorporateActions","Login Page","username;j_passw
ord","")
Call pageCheck_WebButton("CorporateActions","Login Page","Login"
,"")
Call login("CorporateActions","Login Page","User","CALogin")
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:Navigate to the DR
Home page after successfully logging in.","DR Home page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Navigate to the DR
Home page after successfully logging in.","DR Home page 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 Corporate
Actions in the DR Home page.","Corporate Actions Home screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 2:Click on Corporate
Actions in the DR Home page.","Corporate Actions Home screen is Not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 3
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
Call pageCheck_WebEdit("CorporateActions","Reports - Notificatio
ns Search","sndrBicId;sndrSdivId;isinNo;undSecNm;sedolNo;fromDate;toDate","")
Call pageCheck_WebList("CorporateActions","Reports - Notificatio
ns Search","usrgroup;catype;country;dateType;evntstatus;xcptTypeCd;ntcstatus;reg
ion;relmgr;relmgrny;sndrSdivType;source","")
Call pageCheck_Image("CorporateActions","Reports - Notifications
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed with
theall req search criteria :"
Else
Reporter.ReportEvent micFail,"Step 3:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed with
theall req search criteria :"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notifications Sea
rch","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC2()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Underlying Security Name",DataTable.Value("UnderlyingSec
urityName","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Enter a value for
the 'Underlying Security Name' field and click on search"," All the items listed
with the given search criteria"
Else
Reporter.ReportEvent micFail,"Step 2:Enter a value for
the 'Underlying Security Name' field and click on search"," All the items listed
with the given search criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Search Resul
ts","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC3()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
If Browser("CorporateActions").Page("Reports - Notifications Sea
rch").WebEdit("UnderlyingISIN").GetROProperty("max length") = 12 Then
Reporter.ReportEvent micPass,"Step 2:Check if the 'ISIN'
field accepts all the 12 characters","The 'ISIN' field should accept all the 1
2 characters."
Else
Reporter.ReportEvent micFail,"Step 2:Check if the 'ISIN'
field accepts all the 12 characters","The 'ISIN' field should accept all the 1
2 characters."
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
'Step 3
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","ISIN",DataTable.Value("UnderlyingISIN","NotificationSear
ch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3:Enter a value for
the 'ISIN' field and click on search","All the items listed with the given searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 3:Enter a value for
the 'ISIN' field and click on search","All the items listed with the given searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Search Resul
ts","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC4()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
If Browser("CorporateActions").Page("Reports - Notifications Sea
rch").WebEdit("UnderlyingSEDOL").GetROProperty("max length") = 7 Then
Reporter.ReportEvent micPass,"Step 2:Check if the 'Under
lying SEDOL' field accepts all the 12 characters","The 'UnderlyingSEDOL' field
should accept all the 7 characters."
Else
Reporter.ReportEvent micFail,"Step 2:Check if the 'Under
lying SEDOL' field accepts all the 12 characters","The 'UnderlyingSEDOL' field
should accept all the 7 characters."
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
'Step 3
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification Search R
esults","Item","SEDOL",DataTable.Value("UnderlyingSEDOL","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3:Enter a value for
the 'SEDOL' field and click on search","All the items listed with the given sear
ch criteria"
Else
Reporter.ReportEvent micFail,"Step 3:Enter a value for
the 'SEDOL' field and click on search","All the items listed with the given sear
ch criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Search Resul
ts","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC5()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Underlying Security Name",DataTable.Value("UnderlyingSec
urityName","NotificationSearch"))
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","ISIN",DataTable.Value("UnderlyingISIN","NotificationSear
ch"))
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","SEDOL",DataTable.Value("UnderlyingSEDOL","NotificationSe
arch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Enter a value for
the 'Underlying Security Name,ISIN,SEDOL' field and click on search","All the it
ems listed with the given search criteria"
Else
Reporter.ReportEvent micFail,"Step 2:Enter a value for
the 'Underlying Security Name,ISIN,SEDOL' field and click on search","All the it
ems listed with the given search criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Search Resul
ts","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC6()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2,3,4
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2,3,4:Verify the defa
ult value of the 'Date Range' field,Select 'Received Date' and click on search"
,"Default All is displayed,Corresponding calendar buttons for the 'From' and 'To
' fields displayed, And An error message displayed saying 'Please select From Da
te'."
Else
Reporter.ReportEvent micFail,"Step 2,3,4:Verify the defa
ult value of the 'Date Range' field,Select 'Received Date' and click on search"
,"Default All is displayed,Corresponding calendar buttons for the 'From' and 'To
' fields displayed, And An error message displayed saying 'Please select From Da
te'."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notifications Sea
rch","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC7()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2,3
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2,3:Select 'Received
Date' from 'Date Range' field,Select 'From Date' and click on Search.","Corresp
onding calendar buttons for the 'From' and 'To' fields displayed,A pop up messag
e should be displayed saying 'Please Select To Date'"
Else
Reporter.ReportEvent micFail,"Step 2,3:Select 'Received
Date' from 'Date Range' field,Select 'From Date' and click on Search.","Corresp
onding calendar buttons for the 'From' and 'To' fields displayed,A pop up messag
e should be displayed saying 'Please Select To Date'"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notifications Sea
rch","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC8()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2,3
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2,3:Select 'Received
Date' from 'Date Range' field,Select 'To Date' and click on Search.","Correspon
ding calendar buttons for the 'From' and 'To' fields displayed,A pop up message
should be displayed saying 'Please Select From Date'"
Else
Reporter.ReportEvent micFail,"Step 2,3:Select 'Received
Date' from 'Date Range' field,Select 'To Date' and click on Search.","Correspon
ding calendar buttons for the 'From' and 'To' fields displayed,A pop up message
should be displayed saying 'Please Select From Date'"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notifications Sea
rch","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC9()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2,3
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2,3:Select 'Received
Date' from 'Date Range' field,Provide 'From' Date greater than 'To' and click o
n Search..","Corresponding calendar buttons for the 'From' and 'To' fields displ
ayed,Error msg pops up saying 'From Date cannot be greater than To date'"
Else
Reporter.ReportEvent micFail,"Step 2,3:Select 'Received
Date' from 'Date Range' field,Provide 'From' Date greater than 'To' and click o
n Search..","Corresponding calendar buttons for the 'From' and 'To' fields displ
ayed,Error msg pops up saying 'From Date cannot be greater than To date'"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notifications Sea
rch","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC10()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2,3,4
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2,3,4:Select 'Receive
d Date' from 'Date Range' field,Provide 'From' Date and 'To Date' and Now sele
ct 'All' from 'Date Range' dropdown.","Corresponding calendar buttons for the 'F
rom' and 'To' fields displayed,Dates populated, Date buttons corresponding to Fr
om and To not displayed, From and To fields cleared."
Else
Reporter.ReportEvent micFail,"Step 2,3,4:Select 'Receive
d Date' from 'Date Range' field,Provide 'From' Date and 'To Date' and Now sele
ct 'All' from 'Date Range' dropdown.","Corresponding calendar buttons for the 'F
rom' and 'To' fields displayed,Dates populated, Date buttons corresponding to Fr
om and To not displayed, From and To fields cleared."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notifications Sea
rch","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC11()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
If get_WebList_Value("CorporateActions","Reports - Notifications
Search","DateRange") = "All" Then
Reporter.ReportEvent micPass,"Step 2:Default Val
ue of Date Range is Displayed Correctly","As- All"
Else
Reporter.ReportEvent micFail,"Step 2:Default Val
ue of Date Range is Not Displayed Correctly","As - "&get_WebList_Value("Corporat
eActions","Reports - Notifications Search","DateRange")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 3
If Browser("CorporateActions").Page("Reports - Notifications Sea
rch").WebList("DateRange").GetROProperty("all items")= "All;Received Date;Event
Date" Then
Reporter.ReportEvent micPass,"Step 3:Following i
tems are available under Date Range dropdown:","All;Received Date;Event Date"
Else
Reporter.ReportEvent micFail,"Step 3:Following i
tems are available under Date Range dropdown:","-"&Browser("CorporateActions").P
age("Reports - Notifications Search").WebList("DateRange").GetROProperty("all it
ems")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 4
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call ReportLoadWait("CorporateActions","Reports - Notification S
earch Results","Item","Item")
If Browser("CorporateActions").Page("Reports - Notification Sear
ch Results").WebTable("Item").Exist Then
Call chkCANotificationSearchResult("CorporateAct
ions","Reports - Notification Search Results")
Reporter.ReportEvent micPass,"Step 4:Result Tabl
e is Available:","Passed"
Else
Reporter.ReportEvent micFail,"Step 4:Result Tabl
e is Not Available:","Failed"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 5
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results",Datatable.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 5:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 6
Call select_Combo_Value("CorporateActions","Reports - Notificati
ons Search","DateRange","Received Date")
If Browser("CorporateActions").Page("Reports - Notifications Search").Im
age("FromCalendar").Exist(2) AND Browser("CorporateActions").Page("Reports - Not
ifications Search").Image("ToCalendar").Exist(2) Then
Reporter.ReportEvent micPass,"Step 6:After Selec
ting Date Range as Received Date,Corresponding Calender Buttons are Displaying C
orrectly","From Calendar,To Calendar"
Else
Reporter.ReportEvent micFail,"Step 6:After Selec
ting Date Range as Received Date,Corresponding Calender Buttons are Displaying C
orrectly","From Calendar,To Calendar"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 7
Call click_Image("CorporateActions","Reports - Notifications Sea
rch","FromCalendar")
Browser("CorporateActions").Page("Reports - Notifications Search
").Frame("popCalFrame").WebElement("html tag:=FONT","outertext:=Today.*").Click
If date=cdate(get_WebEdit_Value ("CorporateActions","Reports -
Notifications Search","fromDate"))Then
Reporter.ReportEvent micPass,"Step 7:After Click
ing on Today field in From Calandar,Current Date is populating","As-"&date
Else
Reporter.ReportEvent micFail,"Step 7:After Click
ing on Today field in From Calandar,Current Date is Not populating","Populating
As-"&get_WebEdit_Value ("CorporateActions","Reports - Notifications Search","fro
mDate")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 8
Call click_Image("CorporateActions","Reports - Notifications Sea
rch","FromCalendar")
Browser("CorporateActions").Page("Reports - Notifications Search
").Frame("popCalFrame").Image("name:=Image").Click
If get_WebEdit_Value ("CorporateActions","Reports - Notificatio
ns Search","fromDate")="" then
Reporter.ReportEvent micPass,"Step 8:Current Dat
e is Cleared","After clicking on Clear Image in the From calandar"
Else
Reporter.ReportEvent micFail,"Step 8:Current Dat
e is Not Cleared After clicking on Clear Image in the From calandar","Populating
As-"&get_WebEdit_Value ("CorporateActions","Reports - Notifications Search","fr
omDate")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 9
Call click_Image("CorporateActions","Reports - Notifications Sea
rch","ToCalendar")
Browser("CorporateActions").Page("Reports - Notifications Search
").Frame("popCalFrame").WebElement("html tag:=FONT","outertext:=Today.*").Click
If date=cdate(get_WebEdit_Value ("CorporateActions","Reports -
Notifications Search","toDate"))Then
Reporter.ReportEvent micPass,"Step 9:After Click
ing on Today field in To Calandar,Current Date is populating","As-"&date
Else
Reporter.ReportEvent micFail,"Step 9:After Click
ing on Today field in To Calandar,Current Date is Not populating","Populating As
-"&get_WebEdit_Value ("CorporateActions","Reports - Notifications Search","fromD
ate")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 10
Call click_Image("CorporateActions","Reports - Notifications Sea
rch","ToCalendar")
Browser("CorporateActions").Page("Reports - Notifications Search
").Frame("popCalFrame").Image("name:=Image").Click
If get_WebEdit_Value ("CorporateActions","Reports - Notificatio
ns Search","toDate")="" then
Reporter.ReportEvent micPass,"Step 10:Current Da
te is Cleared","After clicking on Clear Image in the To calandar"
Else
Reporter.ReportEvent micFail,"Step 10:Current Da
te is Not Cleared After clicking on Clear Image in the To calandar","Populating
As-"&get_WebEdit_Value ("CorporateActions","Reports - Notifications Search","fro
mDate")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step 11,12
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports - Notific
ation Search Results")
Call chkReportValuesForDate("CorporateActions","Reports - Notifi
cation Search Results","Item","Received Date/Time",DataTable.Value("From","Notif
icationSearch"),DataTable.Value("To","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11,12:Select Received
Date value for the Date Range field and enter From date and To Date and clic
k on search.","All the items listed with the search criteria as mentioned above
"
Else
Reporter.ReportEvent micFail,"Step 11,12:Select Received
Date value for the Date Range field and enter From date and To Date and clic
k on search.","All the items listed with the search criteria as mentioned above
"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step 13
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results",Datatable.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 13:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 14
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports - Notific
ation Search Results")
Call chkReportValuesForDate("CorporateActions","Reports - Notifi
cation Search Results","Item","Event Date",DataTable.Value("From","NotificationS
earch"),DataTable.Value("To","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14:Select Event Date
value for the Date Range field and enter From date and To Date and click on s
earch.","All the items listed with the search criteria as mentioned above"
Else
Reporter.ReportEvent micFail,"Step 14:Select Event Date
value for the Date Range field and enter From date and To Date and click on s
earch.","All the items listed with the search criteria as mentioned above"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC12()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Di
vision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatabl
e.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
If get_WebList_Value("CorporateActions","Reports - Notificatio
ns Search","SenderType") = "All" Then
Reporter.ReportEvent micPass,"St
ep 2:Default Value of Sender Type is Displayed Correctly","As- All"
Else
Reporter.ReportEvent micFail,"Step 2:Default Val
ue of Sender Type is Not Displayed Correctly","As - "&get_WebList_Value("Corpora
teActions","Reports - Notifications Search","SenderType")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 3
If Browser("CorporateActions").Page("Reports - Notifications Sea
rch").WebList("SenderType").GetROProperty("all items")= "All;Custodian;Issuer" T
hen
Reporter.ReportEvent micPass,"Step 3:Following i
tems are available under SenderType dropdown:","All;Custodian;Issuer"
Else
Reporter.ReportEvent micFail,"Step 3:Following i
tems are available under SenderType dropdown:","-"&Browser("CorporateActions").P
age("Reports - Notifications Search").WebList("SenderType").GetROProperty("all i
tems")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 4
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
If Browser("CorporateActions").Page("Reports - Notification Sear
ch Results").WebTable("Item").Exist Then
Call chkCANotificationSearchResult("CorporateAct
ions","Reports - Notification Search Results")
Reporter.ReportEvent micPass,"Step 4:Result Tabl
e is Available:","Passed"
Else
Reporter.ReportEvent micFail,"Step 4:Result Tabl
e is Not Available:","Failed"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 5
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results",Datatable.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 5:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step 6
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports - Notific
ation Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Sender Type",DataTable.Value("SenderType","NotificationS
earch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6:Select the Sender T
ype field as Custodian and click on search","All the items listed with the sear
ch criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 6:Select the Sender T
ype field as Custodian and click on search","All the items listed with the sear
ch criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step 7
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results",Datatable.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 7:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 8
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports - Notific
ation Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Sender Type",DataTable.Value("SenderType","NotificationS
earch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Select the Sender T
ype field as Custodian and click on search","All the items listed with the sear
ch criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 8:Select the Sender T
ype field as Custodian and click on search","All the items listed with the sear
ch criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC13()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Sender Name",DataTable.Value("SenderName","NotificationS
earch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Enter a value for t
he Sender Name field and click on search","All the items listed with the search
criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2:Enter a value for t
he Sender Name field and click on search","All the items listed with the search
criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step 3
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results",Datatable.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 3:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 4
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Sender BIC",DataTable.Value("SenderBIC","NotificationSea
rch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4:Enter a value for t
he Sender BIC field and click on search","All the items listed with the search
criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 4:Enter a value for t
he Sender BIC field and click on search","All the items listed with the search
criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC14()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
If get_WebList_Value("CorporateActions","Reports - Notifications
Search","Exception") = "All" Then
Reporter.ReportEvent micPass,"Step 2:Default Va
lue of Exception is Displayed Correctly","As- All"
Else
Reporter.ReportEvent micFail,"Step 2:Default Val
ue of Exception is Not Displayed Correctly","As - "&get_WebList_Value("Corporate
Actions","Reports - Notifications Search","Exception")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 3
If Browser("CorporateActions").Page("Reports - Notifications Sea
rch").WebList("Exception").GetROProperty("all items")= "All;None;Insufficient Da
ta;Exception" Then
Reporter.ReportEvent micPass,"Step 3:Following i
tems are available under Exception dropdown:","All;None;Insufficient Data;Except
ion"
Else
Reporter.ReportEvent micFail,"Step 3:Following i
tems are available under Exception dropdown:","-"&Browser("CorporateActions").Pa
ge("Reports - Notifications Search").WebList("Exception").GetROProperty("all ite
ms")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 4
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
If Browser("CorporateActions").Page("Reports - Notification Sear
ch Results").WebTable("Item").Exist Then
Call chkCANotificationSearchResult("CorporateAct
ions","Reports - Notification Search Results")
Reporter.ReportEvent micPass,"Step 4:Result Tabl
e is Available:","Passed"
Else
Reporter.ReportEvent micFail,"Step 4:Result Tabl
e is Not Available:","Failed"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 5
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results",Datatable.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 5:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step 6
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports - Notific
ation Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Exception",DataTable.Value("Exception","NotificationSear
ch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6:Enter a value for t
he Exception field and click on search","All the items listed with the search c
riteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 6:Enter a value for t
he Exception field and click on search","All the items listed with the search c
riteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step 7
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results",Datatable.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 7:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 8
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports - Notific
ation Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Exception",DataTable.Value("Exception","NotificationSear
ch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Enter a value for t
he Exception field and click on search","All the items listed with the search c
riteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 8:Enter a value for t
he Exception field and click on search","All the items listed with the search c
riteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step 9
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results",Datatable.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 9:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 10
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports - Notific
ation Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Exception",DataTable.Value("Exception","NotificationSear
ch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10:Enter a value for
the Exception field and click on search","All the items listed with the search
criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 10:Enter a value for
the Exception field and click on search","All the items listed with the search
criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC15()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Country",DataTable.Value("Country","NotificationSearch")
)
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Enter a value for t
he Country field and click on search","All the items listed with the search cri
teria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2:Enter a value for t
he Country field and click on search","All the items listed with the search cri
teria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC16()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Browser("CorporateActions").Page("Reports - Notifications Search
").WebList("OrgRegion").Select DataTable.Value("OrgRegion","NotificationSearch")
If Browser("CorporateActions").Page("Reports - Notifications Sea
rch").WebList("OrgRegion").GetROProperty("selected items count")=1 Then
Reporter.ReportEvent micPass,"Step 2:OrgRegion Item is S
elected","Passed"
Else
Reporter.ReportEvent micFail,"Step 2:OrgRegion Item is n
ot Selected","Failed"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 3
Browser("CorporateActions").Page("Reports - Notifications Search
").WebList("OrgRegion").Deselect DataTable.Value("OrgRegion","NotificationSearch
")
If Browser("CorporateActions").Page("Reports - Notifications Sea
rch").WebList("OrgRegion").GetROProperty("selected items count")=0 Then
Reporter.ReportEvent micPass,"Step 3:OrgRegion Item is n
ow de Selected","Passed"
Else
Reporter.ReportEvent micFail,"Step 3:OrgRegion Item is n
ot de Selected","Failed"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 4
Call CANotificationSearch("CorporateActions","Reports - Notifications Se
arch")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Region",DataTable.Value("OrgRegion","NotificationSearch"
))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4:Enter a value for t
he OrgRegion field and click on search","All the items listed with the search c
riteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 4 :Enter a value for
the OrgRegion field and click on search","All the items listed with the search
criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC17()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2 and 3
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","CA Type",DataTable.Value("CorporateActionType","Notifica
tionSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2,3:Enter a value for
the CorporateActionType field and click on search","All the items listed with
the search criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2,3 :Enter a value fo
r the CorporateActionType field and click on search","All the items listed with
the search criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC18()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2 and 3
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Source",DataTable.Value("Source","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2,3:Enter a value for
the Source field and click on search","All the items listed with the search cr
iteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2,3 :Enter a value fo
r the Source field and click on search","All the items listed with the search c
riteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC19()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2 and 3
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Notification Status",DataTable.Value("NotificationStatus
","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2,3:Enter a value for
the Notification Status field and click on search","All the items listed with
the search criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2,3 :Enter a value fo
r the Notification Status field and click on search","All the items listed with
the search criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC20()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Event Status",DataTable.Value("EventStatus","Notificatio
nSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Enter a value for t
he Event Status field and click on search","All the items listed with the searc
h criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2 :Enter a value for
the Event Status field and click on search","All the items listed with the sear
ch criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
val=Browser("CorporateActions").Page("Reports - Notification Search Res
ults").WebTable("Item").GetCellData(2,7)
'Step 3 and 4
Browser("CorporateActions").Page("Reports - Notification Search
Results").WebElement("html tag:=TD","innertext:="&val&"").click
Wait(2)
If Browser("CorporateActions").Page("Underlying Notification").E
xist Then
Reporter.ReportEvent micPass,"Underlying Notific
ation page is Appearing after click on the value "&val," In Received Date/Time c
olumn."
If get_WebList_Value("CorporateActions","Underly
ing Notification","ProcessingStatus")="Assigned" Then
Reporter.ReportEvent micPass,"St
ep 3 and 4:After clicking on Received Date , Processing Status field in Underlyi
ng Notification is Correct","As-Assigned"
Else
Reporter.ReportEvent micFail,"St
ep 3 and 4:After clicking on Received Date , Processing Status field in Underlyi
ng Notification is not Correct:","Have -"&get_WebList_Value("CorporateActions","
Underlying Notification","ProcessingStatus")
Call captureScreenshot()
Environment.Value("Execution_Log
")="False"
Environment.Value("TestCase_Log"
)="False"
End If
Else
Reporter.ReportEvent micFail,"St
ep 3 and 4:Underlying Notification page is Not Appearing after click on the valu
e "&val," In Received Date/Time column."
Call captureScreenshot()
Environment.Value("Execution_Log
")="False"
Environment.Value("TestCase_Log"
)="False"
End If
' Call select_Menu("CorporateActions","Underlying Notification",Datatab
le.Value("MenuPath","NotificationSearch"))
' Wait(5)
Call select_Menu("CorporateActions","Underlying Notification","Home;D
R Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC21()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2 and 3
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Assigned Group",DataTable.Value("AssignedToUserGroups","
NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2,3:Enter a value for
the AssignedToUserGroups field and click on search","All the items listed with
the search criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2,3 :Enter a value fo
r the AssignedToUserGroups field and click on search","All the items listed wit
h the search criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC22()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","RM NY",DataTable.Value("RMNY","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Enter a value for t
he RM NY field and click on search","All the items listed with the search crit
eria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2 :Enter a value for
the RM NY field and click on search","All the items listed with the search cri
teria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step 3
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results",Datatable.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 3:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 4
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","RM Local",DataTable.Value("RMLocal","NotificationSearch"
))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4:Enter a value for t
he RMLocal field and click on search","All the items listed with the search cri
teria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 4 :Enter a value for
the RMLocal field and click on search","All the items listed with the search cr
iteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC23()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Select 2 values for
the Country field and click on search:","All the items listed with the search
criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2 :Enter 2 values for
the Countryfield and click on search","All the items listed with the search cr
iteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step 3
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results",Datatable.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 3:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 4
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4:Select 2 values for
the Org. Region field and click on search:","All the items listed with the sea
rch criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 4 :Enter 2 values for
the Org. Region and click on search","All the items listed with the search cri
teria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATAB
LE_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step 5
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results",Datatable.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 5:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 6
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6:Select 2 values for
the Corporate Action Type field and click on search:","All the items listed wi
th the search criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 6 :Enter 2 values for
the Corporate Action Type and click on search","All the items listed with the
search criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATAB
LE_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step 7
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results",Datatable.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 7:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 8
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Select 2 values for
the Source field and click on search:","All the items listed with the search c
riteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 8 :Enter 2 values for
the Source and click on search","All the items listed with the search criteria
as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC24()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Select 2 values for
the Notification Status field and click on search:","All the items listed with
the search criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2 :Enter 2 values for
the Notification Status and click on search","All the items listed with the se
arch criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step 3
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results",Datatable.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 3:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 4
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4:Select 2 values for
the Event Status field and click on search:","All the items listed with the se
arch criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 4 :Enter 2 values for
the Event Status and click on search","All the items listed with the search cr
iteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATAB
LE_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step 5
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results",Datatable.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 5:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 6
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6:Select 2 values for
the Assigned to User Groups field and click on search:","All the items listed
with the search criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 6 :Enter 2 values for
the Assigned to User Groups and click on search","All the items listed with th
e search criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATAB
LE_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step 7
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results",Datatable.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 7:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 8
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Select 2 values for
the RM NY field and click on search:","All the items listed with the search c
riteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 8 :Enter 2 values for
the RM NY and click on search","All the items listed with the search criteria
as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step 9
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results",Datatable.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 9:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 10
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Select 2 values for
the RM Local field and click on search:","All the items listed with the searc
h criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 8 :Enter 2 values for
the RM Local and click on search","All the items listed with the search criter
ia as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC25()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Underlying Security Name",DataTable.Value("UnderlyingSec
urityName","NotificationSearch"))
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Sender Type",DataTable.Value("SenderType","NotificationS
earch"))
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Country",DataTable.Value("Country","NotificationSearch")
)
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","CA Type",DataTable.Value("CorporateActionType","Notifica
tionSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Select values for t
he UnderlyingSecurityName,SenderType, Country,CorporateActionType fields and cli
ck on search:","All the items listed with the search criteria as mentioned abov
e "
Else
Reporter.ReportEvent micFail,"Step 2:Select values for t
he UnderlyingSecurityName,SenderType, Country,CorporateActionType fields and cli
ck on search","All the items listed with the search criteria as mentioned above
"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step 3
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results",Datatable.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 3:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 4
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification Search R
esults","Item","Source",DataTable.Value("Source","NotificationSearch"))
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Country",DataTable.Value("Country","NotificationSearch")
)
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","CA Type",DataTable.Value("CorporateActionType","Notifica
tionSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4:Select values for
the Source,Country,CorporateActionType field and click on search:","All the item
s listed with the search criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 4:Select values for
the Source,Country,CorporateActionType field and click on search:","All the item
s listed with the search criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC26()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Combo_Value("CorporateActions","Reports - Notificati
ons Search","RMNY",Datatable.Value("RMNY","NotificationSearch"))
Call click_Image("CorporateActions","Reports - Notifications Search","Cl
ear")
If get_WebList_Value("CorporateActions","Reports - Notifications
Search","RMNY")="" Then
Reporter.ReportEvent micPass,"Step 2:Verificatio
n of RMNY Fields After click on Clear Button",Datatable.Value("RMNY","Notificati
onSearch")& " Values are Cleared in RMNY After click on Clear Button"
Else
Reporter.ReportEvent micFail,"Step 2:Verificatio
n of Values in RMNY","Not Cleared,It Have -"&get_WebList_Value("CorporateActions
","Reports - Notifications Search","RMNY")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 3
Call set_WebEdit_Value("CorporateActions","Reports - Notificatio
ns Search","SenderName",Datatable.Value("SenderName","NotificationSearch"))
Call set_WebEdit_Value("CorporateActions","Reports - Notificatio
ns Search","SenderBIC",Datatable.Value("SenderBIC","NotificationSearch"))
Call click_Image("CorporateActions","Reports - Notifications Sea
rch","Clear")
If get_WebEdit_Value("CorporateActions","Reports - Notifications
Search","SenderName")="" And get_WebEdit_Value("CorporateActions","Reports - N
otifications Search","SenderBIC")="" Then
Reporter.ReportEvent micPass,"Step 3:Verificatio
n of Clear button"&Datatable.Value("SenderName","NotificationSearch")&" , "&Data
table.Value("SenderBIC","NotificationSearch")&" Values are Cleared in SenderNam
e and SenderBIC fields ","After click on Clear Button"
Else
Reporter.ReportEvent micFail,"Step 3:Verificatio
n of Clear button,Values are Not Cleared in SenderName and SenderBIC","Those Hav
e -"&get_WebEdit_Value("CorporateActions","Reports - Notifications Search","Send
erName")&","&get_WebEdit_Value("CorporateActions","Reports - Notifications Searc
h","SenderBIC")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call select_Menu("CorporateActions","Reports - Notifications Sea
rch","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC27()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notific
ations Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Underlying Security Name",DataTable.Value("UnderlyingSec
urityName","NotificationSearch"))
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","ISIN",DataTable.Value("UnderlyingISIN","NotificationSear
ch"))
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","SEDOL",DataTable.Value("UnderlyingSEDOL","NotificationSe
arch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Select values for
the Underlying Security Name,ISIN,SEDOL field and click on search:","All the ite
ms listed with the search criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2:Select values for
the Underlying Security Name,ISIN,SEDOL field and click on search:","All the ite
ms listed with the search criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
'Step 3
strVal=Browser("CorporateActions").Page("Reports - Notification
Search Results").WebTable("Item").GetCellData(2,7)
Browser("CorporateActions").Page("Reports - Notification Search
Results").WebElement("html tag:=TD","index:=0","innertext:="&strVal&"").click
Wait(2)
If Browser("CorporateActions").Page("Underlying Notification").E
xist Then
Reporter.ReportEvent micPass,"Step 3:Verificatio
n of Underlying Notification page is Appearing after click on the value "&val,"
In Received Date/Time column."
Else
Reporter.ReportEvent micFail,"Step 3:Verificatio
n of Underlying Notification page is Not Appearing after click on the value "&va
l," In Received Date/Time column."
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 4
Call select_Menu("CorporateActions","Underlying Notification",Da
tatable.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 4:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
Wait(5)
'Step 5
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Underlying Security Name",DataTable.Value("UnderlyingSec
urityName","NotificationSearch"))
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","ISIN",DataTable.Value("UnderlyingISIN","NotificationSear
ch"))
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","SEDOL",DataTable.Value("UnderlyingSEDOL","NotificationSe
arch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5:Select values for
the Underlying Security Name,ISIN,SEDOL field and click on search","All the item
s listed with the search criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 5:Select values for
the Underlying Security Name,ISIN,SEDOL field and click on search","All the item
s listed with the search criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
strVal=Browser("CorporateActions").Page("Reports - Notification
Search Results").WebTable("Item").GetCellData(2,2)
Wait(2)
'Step 6
Browser("CorporateActions").Page("Reports - Notification Search
Results").WebElement("html tag:=TD","index:=1","innertext:="&strVal&"").click
Wait(2)
If Browser("CorporateActions").Page("Underlying Security Profile
").Exist Then
Reporter.ReportEvent micPass,"Step 6:Underlying
Security Profile page is Appearing after click on the value "&val," In Underlyin
g Security Name column."
Else
Reporter.ReportEvent micFail,"Step 6:Underlying
Security Profile page is Not Appearing after click on the value "&val," In Under
lying Security Name column."
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call select_Menu("CorporateActions","Underlying Security Profile
","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC28()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Underlying Security Name",DataTable.Value("UnderlyingSec
urityName","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Enter a value for
the 'Underlying Security Name' field and click on search"," All the items listed
with the given search criteria"
Else
Reporter.ReportEvent micFail,"Step 2:Enter a value for
the 'Underlying Security Name' field and click on search"," All the items listed
with the given search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step 3
Call click_webElement("CorporateActions","Reports - Notification
Search Results","Search")
If Browser("CorporateActions").Page("Reports - Notifications Sea
rch").Exist Then
Reporter.ReportEvent micPass,"Step 3:Reports -
Notifications Search page is Appearing after click on the Search image ","Passed
"
Else
Reporter.ReportEvent micFail,"Step 3:Reports - N
otifications Search page is Not Appearing after click on the Search image", "Fai
led"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call select_Menu("CorporateActions","Reports - Notifications Sea
rch","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC29()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notific
ations Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Country",DataTable.Value("Country","NotificationSearch")
)
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Enter a value for t
he Country field and click on search","All the items listed with the search cri
teria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2:Enter a value for t
he Country field and click on search","All the items listed with the search cri
teria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
'Step 3 and 4
Call FilterCriteria("CorporateActions","Reports - Notification S
earch Results","Filter",DataTable.Value("FilterColumn","NotificationSearch"),Dat
aTable.Value("FilterExpression","NotificationSearch"),DataTable.Value("FilterVal
ue","NotificationSearch"))
Call chkFilterSearchCriteria("CorporateActions","Reports - Notif
ication Search Results",DataTable.Value("FilterColumn","NotificationSearch"),Dat
aTable.Value("FilterExpression","NotificationSearch"),DataTable.Value("FilterVal
ue","NotificationSearch"))
Wait(3)
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4:Click on the Filt
er option in the results screen,Select one option from Column, and one option fr
om Expression,Click on the '?' icon next to the Value field and select a value f
rom the drop-down,Click on 'Ok'.","Filter window displayed, and Results are disp
layed as per the given criteria"
Else
Reporter.ReportEvent micFail,"Step 3,4:Click on the Filt
er option in the results screen,Select one option from Column, and one option fr
om Expression,Click on the '?' icon next to the Value field and select a value f
rom the drop-down,Click on 'Ok'.","Filter window displayed, and Results are disp
layed as per the given criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC30()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notifications Se
arch")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Country",DataTable.Value("Country","NotificationSearch")
)
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Enter a value for t
he Country field and click on search","All the items listed with the search cri
teria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2:Enter a value for t
he Country field and click on search","All the items listed with the search cri
teria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
'Step 3,4,5,6
Call FilterCriteria_MarketReview("CorporateActions","Reports - N
otification Search Results",DataTable.Value("FilterColumn","NotificationSearch")
,DataTable.Value("FilterExpression","NotificationSearch"),DataTable.Value("Filte
rValue","NotificationSearch"),"AND;AND")
Call chkMultipleFilterSearchCriteria("CorporateActions","Reports - Notif
ication Search Results",DataTable.Value("FilterColumn","NotificationSearch"),Dat
aTable.Value("FilterExpression","NotificationSearch"),DataTable.Value("FilterVal
ue","NotificationSearch"),"AND;AND")
Wait(3)
Call chkCANotificationSearchResult("CorporateActions","Reports
- Notification Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4,5,6:Verification
of ADD Button and Multiple Filter Criteria","Multiple Filter Criteria was done o
n given search Result with given Filter Criteria "
Else
Reporter.ReportEvent micFail,"Step 3,4,5,6:Verification
of ADD Button and Multiple Filter Criteria","Multiple Filter Criteria was done o
n given search Result with given Filter Criteria "
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC31()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notifications S
earch")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Country",DataTable.Value("Country","NotificationSearch")
)
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Enter a value for t
he Country field and click on search","All the items listed with the search cri
teria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2:Enter a value for t
he Country field and click on search","All the items listed with the search cri
teria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
'Step 3,4,5,6
Call FilterCriteria_MarketReview("CorporateActions","Reports - N
otification Search Results",DataTable.Value("FilterColumn","NotificationSearch")
,DataTable.Value("FilterExpression","NotificationSearch"),DataTable.Value("Filte
rValue","NotificationSearch"),"AND;AND")
Call chkMultipleFilterSearchCriteria("CorporateActions","Reports
- Notification Search Results",DataTable.Value("FilterColumn","NotificationSear
ch"),DataTable.Value("FilterExpression","NotificationSearch"),DataTable.Value("F
ilterValue","NotificationSearch"),"AND;AND")
Wait(3)
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4,5,6:Verification
of ADD Button and Multiple Filter Criteria","Multiple Filter Criteria was done o
n given search Result with given Filter Criteria "
Else
Reporter.ReportEvent micFail,"Step 3,4,5,6:Verification
of ADD Button and Multiple Filter Criteria","Multiple Filter Criteria was done o
n given search Result with given Filter Criteria "
Environment.Value("TestCase_Log")="True"
End If
'Step 7
Browser("CorporateActions").Page("Reports - Notification Search
Results").WebElement("Filter").Click
Call click_WebButton("CorporateActions","Reports - Notification
Search Results", "Delete")
If Browser("CorporateActions").Page("Reports - Notification Sea
rch Results").WebTable("FilterColumn").RowCount = 2 Then
Reporter.ReportEvent micPass,"Step 7:Additional
Row is DELETED to enter the filtering options","After Click on DELETE Button"
Else
Reporter.ReportEvent micFail,"Step 7:Additional
Row is Not DELETED to enter the filtering options","Even After Click on DELETE B
utton"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 8
Call click_WebButton("CorporateActions","Reports - Notification
Search Results", "OK")
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
Wait(2)
Call chkFilterSearchCriteria("CorporateActions","Reports - Notif
ication Search Results",DataTable.Value("FilterColumn","NotificationSearch"),Dat
aTable.Value("FilterExpression","NotificationSearch"),DataTable.Value("FilterVal
ue","NotificationSearch"))
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Click OK button","A
ll the items are Filterd as per given single filter criteria"
Else
Reporter.ReportEvent micFail,"Step 8:Click OK button","A
ll the items are Filterd as per given single filter criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step 9
Browser("CorporateActions").Page("Reports - Notification Search
Results").WebElement("Filter").Click
Call click_WebButton("CorporateActions","Reports - Notification
Search Results", "Delete")
If get_WebList_Value("CorporateActions","Reports - Notification
Search Results","FilterColumn")="" And get_WebEdit_Value("CorporateActions","Re
ports - Notification Search Results","Value")="" Then
Reporter.ReportEvent micPass,"Step 9:Filter Colu
mn and Value Filelds are cleared","After Click on DELETE Button"
Else
Reporter.ReportEvent micFail,"Step 9:Filter Colu
mn and Value Filelds are NOT cleared","Even After Click on DELETE Button,having
"&get_WebList_Value("CorporateActions","Reports - Notification Search Results","
FilterColumn")&" ,"&get_WebEdit_Value("CorporateActions","Reports - Notification
Search Results","Value")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC32()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notific
ations Search")
Call chkCANotificationSearchResult("CorporateActions","Reports - No
tification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Country",DataTable.Value("Country","NotificationSearch"
))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Enter a value for t
he Country field and click on search","All the items listed with the search cri
teria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2:Enter a value for t
he Country field and click on search","All the items listed with the search cri
teria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
'Step 3
If Browser("CorporateActions").Page("Reports - Notification Searc
h Results").WebTable("Item").WebElement("innertext:=ISIN","innerhtml:=ISIN").exi
st Then
Browser("CorporateActions").Page("Reports - Noti
fication Search Results").WebTable("Item").WebElement("innertext:=ISIN","innerht
ml:=ISIN").Click
Reporter.ReportEvent micPass,"Step 3:ISIN Header
is existed and Clicked on It","Successfully"
Wait(2)
Call chkSortOrder("CorporateActions","Reports -
Notification Search Results","Item","ISIN","Ascending")
'Step 4
Browser("CorporateActions").Page("Reports - Noti
fication Search Results").WebTable("Item").WebElement("innertext:=ISIN","innerht
ml:=ISIN").Click
Reporter.ReportEvent micPass,"Step 3:ISIN Header
is existed and Clicked on It once again","Successfully"
Wait(2)
Call chkSortOrder("CorporateActions","Reports -
Notification Search Results","Item","ISIN","Descending")
Else
Reporter.ReportEvent micFail," Step 3:ISIN Heade
r was not exist ","Failed"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call select_Menu("CorporateActions","Reports - Notification S
earch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC33()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Region",DataTable.Value("OrgRegion","NotificationSearch"
))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Enter a value for t
he OrgRegion field and click on search","All the items listed with the search c
riteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2:Enter a value for t
he OrgRegion field and click on search","All the items listed with the search c
riteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
'Step 3 ,4
Call SortCriteria("CorporateActions","Reports - Notification Search Resu
lts","Sort",DataTable.Value("SortColumn","NotificationSearch"),DataTable.Value("
SortOrder","NotificationSearch"))
Wait(2)
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4:Click on Sort lin
k in the results screen,Give Sort Criteria","Results are Sorted as Per given sor
t Criteria "
Else
Reporter.ReportEvent micFail,"Step 3,4:Click on Sort lin
k in the results screen,Give Sort Criteria","Results are Sorted as Per given sor
t Criteria "
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC34()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Region",DataTable.Value("OrgRegion","NotificationSearch"
))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Enter a value for t
he OrgRegion field and click on search","All the items listed with the search c
riteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2:Enter a value for t
he OrgRegion field and click on search","All the items listed with the search c
riteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
'Step 3,4,5,6
Call MultipleSortCriteria("CorporateActions","Reports - Notific
ation Search Results","Sort",Datatable.Value("SortColumn","NotificationSearch"),
DataTable.Value("SortOrder","NotificationSearch"))
Wait(2)
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4,5,6:Click on Sort
link in the results screen,Give Multiple Sort Criteria","Results are Sorted as
Per given sort Criteria "
Else
Reporter.ReportEvent micFail,"Step 3,4,5,6:Click on Sort
link in the results screen,Give Multiple Sort Criteria","Results are Sorted as
Per given sort Criteria "
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC35()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notifications S
earch")
Call chkCANotificationSearchResult("CorporateActions","Reports
- Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Region",DataTable.Value("OrgRegion","NotificationSearch
"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Enter a value for t
he OrgRegion field and click on search","All the items listed with the search c
riteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2:Enter a value for t
he OrgRegion field and click on search","All the items listed with the search c
riteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
'Step 3,4,5,6
Call MultipleSortCriteria("CorporateActions","Reports - Notific
ation Search Results","Sort",Datatable.Value("SortColumn","NotificationSearch"),
DataTable.Value("SortOrder","NotificationSearch"))
Wait(2)
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4,5,6:Click on Sort
link in the results screen,Give Multiple Sort Criteria","Results are Sorted as
Per given sort Criteria "
Else
Reporter.ReportEvent micFail,"Step 3,4,5,6:Click on Sort
link in the results screen,Give Multiple Sort Criteria","Results are Sorted as
Per given sort Criteria "
Environment.Value("TestCase_Log")="True"
End If
Browser("CorporateActions").Page("Reports - Notification Search
Results").WebElement("Sort").Click
'Call click_WebButton("CorporateActions","Reports - Notification
Search Results", "SortAdd")
'Step 7
Call click_WebButton("CorporateActions","Reports - Notification
Search Results", "SortDelete")
If Browser("CorporateActions").Page("Reports - Notification Sea
rch Results").WebTable("SortColumn").RowCount = 2 Then
Reporter.ReportEvent micPass,"Step 7:Verificatio
n of Additional Row","Additional Row is DELETED to enter the Sorting options Aft
er Click on DELETE Button"
Else
Reporter.ReportEvent micFail,"Step 7:Verificatio
n of Additional Row","Additional Row is NOT DELETED to enter the Sorting options
After Click on DELETE Button"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 8
Call click_WebButton("CorporateActions","Reports - Notification
Search Results", "SortOK")
Call chkCANotificationSearchResult("CorporateActions","Reports - Not
ification Search Results")
Browser("CorporateActions").Page("Reports - Notification Search
Results").WebElement("Sort").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Click on the OK b
utton .","The results should be displayed with the results sorted as per Underly
ing Security Name. "
Else
Reporter.ReportEvent micFail,"Step 8:Click on the OK b
utton .","The results should be displayed with the results sorted as per Underly
ing Security Name. "
Environment.Value("TestCase_Log")="True"
End If
'Step 9
Call click_WebButton("CorporateActions","Reports - Notification
Search Results", "SortDelete")
If get_WebList_Value("CorporateActions","Reports - Notification
Search Results","SortColumn")="" And get_WebList_Value("CorporateActions","Repo
rts - Notification Search Results","SortOrder")="" Then
Reporter.ReportEvent micPass,"Step 9:Verificatio
n of Sort Column and Order Values","Sort Column and Order Values are cleared Aft
er Click on DELETE Button"
Else
Reporter.ReportEvent micFail,"Step 9:Verificatio
n of Sort Column and Order Values","Sort Column and Order Values are cleared Aft
er Click on DELETE Button having :"&get_WebList_Value("CorporateActions","Report
s - Notification Search Results","SortColumn")&" ,"&get_WebList_Value("Corporate
Actions","Reports - Notification Search Results","SortOrder")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC36()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notifications Se
arch")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Country",DataTable.Value("Country","NotificationSearch")
)
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","CA Type",DataTable.Value("CorporateActionType","Notifica
tionSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Enter a value for t
he Country ,CA Type field and click on search","All the items listed with the s
earch criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2:Enter a value for t
he Country ,CA Type field and click on search","All the items listed with the
search criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
'Step 3,4
Call FilterCriteria_MarketReview("CorporateActions","Reports - N
otification Search Results",DataTable.Value("FilterColumn","NotificationSearch")
,DataTable.Value("FilterExpression","NotificationSearch"),DataTable.Value("Filte
rValue","NotificationSearch"),"AND;AND")
Call chkMultipleFilterSearchCriteria("CorporateActions","Reports
- Notification Search Results",DataTable.Value("FilterColumn","NotificationSear
ch"),DataTable.Value("FilterExpression","NotificationSearch"),DataTable.Value("F
ilterValue","NotificationSearch"),"AND;AND")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4:Filter the repor
t based by entering values for the following fields,","The selected values shoul
d be displayed in the popup."
Else
Reporter.ReportEvent micFail,"Step 3,4:Enter a value for
the Country ,CA Type field and click on search","All the items listed with th
e search criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
'Step 5
Browser("CorporateActions").Page("Reports - Notification Search
Results").WebElement("Filter").Click
Call click_WebButton("CorporateActions","Reports - Notification
Search Results", "Delete")
If Browser("CorporateActions").Page("Reports - Notification Sea
rch Results").WebTable("FilterColumn").RowCount = 2 Then
Reporter.ReportEvent micPass,"Step 5:Additional
Row is DELETED to enter the filtering options","After Click on DELETE Button"
Else
Reporter.ReportEvent micFail,"Step 5:Additional
Row is Not DELETED to enter the filtering options","Even After Click on DELETE B
utton"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Browser("CorporateActions").Page("Reports - Notification Search Results"
).WebButton("Delete").Click
Browser("CorporateActions").Page("Reports - Notification Search
Results").Image("Filter_CloseButton").Click
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW
") + 1
DataTable.GetSheet("NotificationSearch").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step 6
Call FilterCriteria_MarketReview("CorporateActions","Reports - N
otification Search Results",DataTable.Value("FilterColumn","NotificationSearch")
,DataTable.Value("FilterExpression","NotificationSearch"),DataTable.Value("Filte
rValue","NotificationSearch"),"OR;AND")
Call chkMultipleFilterSearchCriteria("CorporateActions","Reports
- Notification Search Results",DataTable.Value("FilterColumn","NotificationSear
ch"),DataTable.Value("FilterExpression","NotificationSearch"),DataTable.Value("F
ilterValue","NotificationSearch"),"OR;AND")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6:Filter the
report based by entering values for the following fields,","The selected values
should be displayed in the popup."
Else
Reporter.ReportEvent micFail,"Step 6:Filter the
report based by entering values for the following fields,","The selected values
should be displayed in the popup."
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
'Step 7
Browser("CorporateActions").Page("Reports - Notification Search
Results").WebElement("Filter").Click
Call click_WebButton("CorporateActions","Reports - Notification
Search Results", "Delete")
If Browser("CorporateActions").Page("Reports - Notification Sea
rch Results").WebTable("FilterColumn").RowCount = 2 Then
Reporter.ReportEvent micPass,"Step 7:Additional
Row is DELETED to enter the filtering options","After Click on DELETE Button"
Else
Reporter.ReportEvent micFail,"Step 7:Additional
Row is Not DELETED to enter the filtering options","Even After Click on DELETE B
utton"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Browser("CorporateActions").Page("Reports - Notification Search Results"
).WebButton("Delete").Click
Browser("CorporateActions").Page("Reports - Notification Search
Results").Image("Filter_CloseButton").Click
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************
Public Function CAReportsNotificationSearch_TC37()
'Step 1
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page displayed"
Else
Reporter.ReportEvent micFail,"Step 1:Under Reports menu
select Notifications Search","Reports- Notifications Search page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Region",DataTable.Value("OrgRegion","NotificationSearch"
))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Enter a value for t
he OrgRegion field and click on search","All the items listed with the search c
riteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 2:Enter a value for t
he OrgRegion field and click on search","All the items listed with the search c
riteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
'Step 3,4,5 and 10
Call SaveASExcelwithClick("CorporateActions","Reports - Notifica
tion Search Results","NotificationSearch","SAVE")
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4,5 and 10:Click on
Save as Excel, Click on Save,Select Desktop as the location and click ok, And v
erify the saved result","A pop-up window opened in a New Window having options
to Open ,Save and cancel the Xls,Excelviewer.xls was saved Correctly"
Else
Reporter.ReportEvent micFail,"Step 3,4,5and 10:Click on
Save as Excel, Click on Save,Select Desktop as the location and click ok,And ver
ify the saved result","A pop-up window opened in a New Window having options to
Open ,Save and cancel the Xls,Excelviewer.xls was saved Correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step 6
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Region",DataTable.Value("OrgRegion","NotificationSearch"
))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6:Repeat Step 1 to 3"
,"All the items listed with the search criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 6:Repeat Step 1 to 3"
,"All the items listed with the search criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
'Step 7
Call SaveASExcelwithClick("CorporateActions","Reports - Notifica
tion Search Results","NotificationSearch","OPEN")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7:Click on Open","The
Excel file should be opened and the results should be the same as in the result
s screen of Notification Search within the browser"
Else
Reporter.ReportEvent micFail,"Step 7:Click on Open","The
Excel file should be opened and the results should be the same as in the result
s screen of Notification Search within the browser"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sear
ch Results","Home;DR Home")
''Step 8
Call click_webElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",Datatable
.Value("MenuPath","NotificationSearch"))
Call CANotificationSearch("CorporateActions","Reports - Notifica
tions Search")
Call chkCANotificationSearchResult("CorporateActions","Reports -
Notification Search Results")
Call chkReportValues("CorporateActions","Reports - Notification
Search Results","Item","Region",DataTable.Value("OrgRegion","NotificationSearch"
))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Repeat Step 1 to 3"
,"All the items listed with the search criteria as mentioned above "
Else
Reporter.ReportEvent micFail,"Step 8:Repeat Step 1 to 3"
,"All the items listed with the search criteria as mentioned above "
Environment.Value("TestCase_Log")="True"
End If
'Step 9
Call SaveASExcelwithClick("CorporateActions","Reports - Notific
ation Search Results","NotificationSearch","CANCEL")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9:Click on CANCEL","T
he jsp window should be closed and the user should see the Notification Search r
esults screen. "
Else
Reporter.ReportEvent micFail,"Step 9:Click on CANCEL","T
he jsp window should be closed and the user should see the Notification Search r
esults screen. "
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - Notification Sea
rch Results","Home;DR Home")
End Function
'*******************************************************************************
********************************************************************************
*************************

Você também pode gostar