Sei sulla pagina 1di 47

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

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

Sub CAReportsIDCCorporateActions()
'****Declaration of Environmental Variable
Environment.Value("Execution_Log")= "True"
'''''''''Test case count
Const TC_COUNT = 26
strVar = Environment("TestDir")
strIndVar = Split(strVar,"\",-1,1)
strBound = UBound(strIndVar)
strAllPath =""
For i= 0 to strBound - 1
strAllPath = strAllPath & strIndVar(i) &"\"
Next
strPath = Trim(strPath)
strDataPath = strAllPath & "DataTables\"
strLibPath = strAllPath & "Function_Library\"
'****Adding MFLogin sheet to the dataTable and Importing the Inp
ut DataTable
DataTable.AddSheet "CALogin"
DataTable.ImportSheet strDataPath & "Login.xls","CALogin","CALog
in"
DataTable.AddSheet "IDCCorporateActions"
DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","IDCCorporateActions","IDCCorporateActions"
DataTable.AddSheet "ReportHeader"
DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","ReportHeader","ReportHeader"
DataTable.AddSheet "HomePageVerification"
DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","HomePageVerification","HomePageVerification"
Environment.Value("strSheetName")="IDCCorporateActions"
' Logs the Scenario name Execution in a .csv file
Call Execution_log(DataTable.Value("Scenario_Name", "Master"), "
", "", "")
Call Execution_log(DataTable.Value(3, "Master"), "", "", "")
'****Invoking IE and navigating to the ADR Login page
DataTable.GetSheet("CALogin").SetCurrentRow(1)
Call invoke_URL("CorporateActions","Login Page",DataTable.Value(
"URL","CALogin"))
'****Checking the username, password and login objects in the lo
gin page
Call pageCheck_WebEdit("CorporateActions","Login Page","username
;j_password","")
Call pageCheck_WebButton("CorporateActions","Login Page","Login"
,"")
'****Entering username and password and login into the masterfil
e application
DataTable.GetSheet("CALogin").SetCurrentRow(1)
Call login("CorporateActions","Login Page","User","CALogin")
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
Environment.Value("DATATABLE_ROW")=1
DataTable.GetSheet("IDCCorporateActions").SetCurrentRow(Environm
ent.Value("DATATABLE_ROW"))
'***************************************** TC Driver Strat *****
**************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"
If DataTable("TestRunFlag","IDCCorporateActions"
)="Y" Then ''If run flag is Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TEST CASE - '"
& DataTable("TestCaseID","IDCCorporateActions") & "' ########### ","Execution of
Test Case '" & DataTable("TestCaseDesc","IDCCorporateActions") & "' Started"
strFuncName = "CAReportsIDCCorpo
rateActions_TC" & intTCCount & "()" ''Formation of function name
''Call Function
Execute "Call " & strFuncName
If Environment.Value("Execution
_Log") = "True"Then
Call Execution_l
og("",Datatable.Value("TestCaseID", "IDCCorporateActions"), Datatable.Value("Tes
tCaseDesc", "IDCCorporateActions"), "PASS")
Else
Call Execution_l
og("",Datatable.Value("TestCaseID", "IDCCorporateActions"), Datatable.Value("Tes
tCaseDesc", "IDCCorporateActions"), "FAIL")
End If
Reporter.ReportE
vent micDone,"######### END OF TEST CASE - '" & DataTable("TestCaseID","IDCCorpo
rateActions") & "###########","The Test Case Execution Completed"
End If
strPrevious=Trim(DataTable.Value("TestCaseID","I
DCCorporateActions"))
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("IDCCorporateActions").SetCur
rentRow(Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","IDCCo
rporateActions"))
While strPrevious = strNext
Environment.Value("DATATABLE_ROW
") = Environment.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("IDCCorporate
Actions").SetCurrentRow(Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("Te
stCaseID","IDCCorporateActions"))
Wend
Next
Call logoutfromApp("CorporateActions","Depositary Receipt Divisi
on's")
'***************************************** TC Driver End *******
************************************************
End Sub
'***************************************************** TestCase #1 to TestCase #
26******************************
Public Function CAReportsIDCCorporateActions_TC1()
Environment.Value("TestCase_Log")="True"
'Step #1
'Call chkCAHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Navigate t
o DR Home page after successful login.","Successfully verified the links - " & D
ataTable.Value("HomePageLinks","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 1: Navigate t
o DR Home page after successful login.","The links - '" & DataTable.Value("HomeP
ageLinks","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call chkMFCAHomePage("CorporateActions","CorporateActions",DataT
able.Value("MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on C
orporate Actions in DR Home page.","Successfully verified the home page menus -
" & DataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Click on C
orporate Actions in DR Home page.","The menus - '" & DataTable.Value("MenuName",
"HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
Call pageCheck_WebEditOR("CorporateActions","Reports - IDC Corpo
rate Actions Search","FromDate;ToDate")
Call pageCheck_WebListOR("CorporateActions","Reports - IDC Corpo
rate Actions Search","SecurityType;AssignedUserGroup")
Call pageCheck_Image("CorporateActions","Reports - IDC Corporate
Actions Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select IDC Corporate Actions Search.","Expected fields are displayed in
search criteria"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select IDC Corporate Actions Search","Expected fields are not displayed
in search criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Search","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC2()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
strFromDefault=Trim(Browser("CorporateActions").Page("Reports -
IDC Corporate Actions Search").WebEdit("FromDate").GetROProperty("value"))
If DateValue(strFromDefault)=Date Then
Reporter.ReportEvent micPass,"Verify the default
value in the from date field","By default current date is displayed"
Else
Reporter.ReportEvent micFail,"Verify the default
value in the from date field","By default current date is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log")="False"
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Verify the
default value of the 'From Date' field","The default value should be the Curren
t Date"
Else
Reporter.ReportEvent micFail,"Step 2: Verify the
default value of the 'From Date' field","The default value should not be the Cu
rrent Date"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
strToDefault=Trim(Browser("CorporateActions").Page("Reports - ID
C Corporate Actions Search").WebEdit("ToDate").GetROProperty("value"))
If DateValue(strToDefault)=Date Then
Reporter.ReportEvent micPass,"Verify the default
value in the to date field","By default current date is displayed"
Else
Reporter.ReportEvent micFail,"Verify the default
value in the to date field","By default current date is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log")="False"
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Verify the
default value of the 'To Date' field","The default value should be the Current
Date"
Else
Reporter.ReportEvent micFail,"Step 3: Verify the
default value of the 'To Date' field","The default value should not be the Curr
ent Date"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
strSecurityDefault=Trim(Browser("CorporateActions").Page("Report
s - IDC Corporate Actions Search").WebList("SecurityType").GetROProperty("select
ion"))
If strSecurityDefault="Underlying Security" Then
Reporter.ReportEvent micPass,"Verify the default
value of the underlying security field","By default underlying security should
be selected"
Else
Reporter.ReportEvent micFail,"Verify the default
value of the underlying security field","By default underlying security should
be not selected"
Call captureScreenshot()
Environment.Value("TestCase_Log")="False"
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Verify the
default value of the 'Security Type' field","By default, 'Underlying Security'
is selected"
Else
Reporter.ReportEvent micFail,"Step 4: Verify the
default value of the 'Security Type' field","By default, 'Underlying Security'
is not selected"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
strAssignedDefault=Trim(Browser("CorporateActions").Page("Repor
ts - IDC Corporate Actions Search").WebList("AssignedUserGroup").GetROProperty("
selection"))
If strAssignedDefault="" Then
Reporter.ReportEvent micPass,"Verify the default
value of the Assigned to UserGroup field","By default no value is selected"
Else
Reporter.ReportEvent micFail,"Verify the default
value of the Assigned to UserGroup field","By default some value is selected"
Call captureScreenshot()
Environment.Value("TestCase_Log")="False"
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Verify the
default value of the 'Assigned to User Group' field","By default,no value is se
lected"
Else
Reporter.ReportEvent micFail,"Step 5: Verify the
default value of the 'Assigned to User Group' field"," By default,some value is
selected"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Search","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC3()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call ReadallValuesWebList("CorporateActions","Reports - IDC Corp
orate Actions Search","SecurityType","SecurityTypeOptions","IDCCorporateActions"
)
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Verify the
items present in the 'Security Type' drop-down field","The following items are
available under Security Type dropdown:CUSIP and Underlying Security"
Else
Reporter.ReportEvent micPass,"Step 2: Verify the
items present in the 'Security Type' drop-down field","The following items are
not available under Security Type dropdown:CUSIP and Underlying Security"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
strSecurityDefault=Trim(Browser("CorporateActions").Page("Report
s - IDC Corporate Actions Search").WebList("SecurityType").GetROProperty("select
ion"))
If strSecurityDefault="Underlying Security" Then
Reporter.ReportEvent micPass,"Verify the default
value of the underlying security field","By default underlying security should
be selected"
Else
Reporter.ReportEvent micFail,"Verify the default
value of the underlying security field","By default underlying security should
be not selected"
Call captureScreenshot()
Environment.Value("TestCase_Log")="False"
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Verify the
default value of the 'Security Type' field","By default, 'Underlying Security'
is selected"
Else
Reporter.ReportEvent micFail,"Step 3: Verify the
default value of the 'Security Type' field","By default, 'Underlying Security'
is not selected"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Combo_Value ("CorporateActions","Reports - IDC Corpo
rate Actions Search","SecurityType",DataTable.Value("SecurityType","IDCCorporate
Actions"))
blnExistance=Browser("CorporateActions").Page("Reports - IDC Cor
porate Actions Search").WebList("AssignedUserGroup").Exist(5)
blnHOLDRExistance=Browser("CorporateActions").Page("Reports - ID
C Corporate Actions Search").WebElement("HOLDRConstituentsOnly").Exist(5)
If blnExistance="False" And blnHOLDRExistance="True" Then
Reporter.ReportEvent micPass,"verify the Assigne
d to the user group field is disappeared or not","Assigned to UserGroup field is
disappeared and HOLDR Constituents only filed appeared on selection of CUSIP in
the Security Type dropdown"
Else
Reporter.ReportEvent micFail,"verify the Assigne
d to the user group field is disappeared or not","Assigned to UserGroup field is
not disappeared and HOLDR Constituents only filed appeared on selection of CUSI
P in the Security Type dropdown"
Call captureScreenshot()
Environment.Value("TestCase_Log")="False"
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Select 'CU
SIP' from the 'Security Type' drop-down field","On selecting CUSIP, the 'Assigne
d to User Group' field must disappear and 'HOLDR Constituents Only' is displayed
along with a check box"
Else
Reporter.ReportEvent micFail,"Step 4: Select 'CU
SIP' from the 'Security Type' drop-down field","On selecting CUSIP, the 'Assigne
d to User Group' field must disappear and 'HOLDR Constituents Only' is not displ
ayed along with a check box"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corpo
rate Actions Search","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC4()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporat
eActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateA
ctions"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select Fro
m Date and To Date, click on search ","IDCCorporate Actions Report generated rel
ated to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Select Fro
m Date and To Date, click on search ","IDCCorporate Actions Report generated rel
ated to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC5()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
If DataTable.Value("FromDate","IDCCorporateActions") <> "" Then
strDataTableValue = DataTable.Value("FromDate","
IDCCorporateActions")
strValue = Split(strDataTableValue,";",-1,1)
strDateValue = strValue(0)
strMonthValue = strValue(1)
strYearValue = strValue(2)
Call click_Image("CorporateActions","Reports - I
DC Corporate Actions Search","ShowCalendar")
Call ClickIcon_SetDate("CorporateActions","Repor
ts - IDC Corporate Actions Search",strMonthValue,strYearValue,strDateValue)
End If
strFromDate=Browser("CorporateActions").Page("Reports - IDC Corp
orate Actions Search").WebEdit("FromDate").GetROProperty("value")
If strFromDate<>"" Then
Reporter.ReportEvent micPass, "Verify whether fr
om date field is selected or not","From Date field is selected"
Else
Reporter.ReportEvent micFail, "Verify whether fr
om date field is selected or not","From Date field is not selected"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on t
he 'From Date' calendar button and select a date","The value is selected"
Else
Reporter.ReportEvent micPass,"Step 2: Click on t
he 'From Date' calendar button and select a date","The value is not selected"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call click_Image("CorporateActions","Reports - IDC Corporate Act
ions Search","ShowCalendar_2")
blnCalendarExistance=Browser("CorporateActions").Page("Reports -
IDC Corporate Actions Search").Frame("popCalFrame").Exist(5)
If blnCalendarExistance="True" Then
Reporter.ReportEvent micPass,"verify the To date
calendar popup is opened or not","To date Calendar popup is opened"
Else
Reporter.ReportEvent micFail,"verify the To date
calendar popup is opened or not","To date Calendar popup is not opened"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on t
he 'To Date' calendar button","The calendar window is opened"
Else
Reporter.ReportEvent micPass,"Step 3: Click on t
he 'To Date' calendar button","The calendar window is not opened"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Search").Frame("popCalFrame").Image("ClearFieldValue").Click
blnTo=Trim(Browser("CorporateActions").Page("Reports - IDC Corpo
rate Actions Search").WebEdit("ToDate").GetROProperty("value"))
If blnTo="" Then
Reporter.ReportEvent micPass,"Verify the To date
filed is cleared or not","To Date field is cleared"
Else
Reporter.ReportEvent micFail,"Verify the To date
filed is cleared or not","To Date field is not cleared"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Inside the
calendar window, click on the clear button","The 'To Date' field is cleared"
Else
Reporter.ReportEvent micPass,"Step 4: Inside the
calendar window, click on the clear button","The 'To Date' field is not cleared
"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call click_Image("CorporateActions","Reports - IDC Corporate Act
ions Search","Search")
If Dialog("text:=Microsoft Internet Explorer").WinButton("text:=
OK").Exist(5) Then
strWarningText=Trim(Dialog("text:=Microsoft Inte
rnet Explorer").Static("text:=Please select To Date").GetROProperty("text"))
If strWarningText="Please select To Date" Then
Reporter.ReportEvent micPass,"Ve
rify the popup is displayed or not","Popup with text 'Please select To Date' is
displayed"
Dialog("text:=Microsoft Internet
Explorer").WinButton("text:=OK").Click
Else
Reporter.ReportEvent micFail,"Ve
rify the popup is displayed or not","Popup with text 'Please select To Date' is
not displayed"
Call captureScreenshot()
Environment.Value("Execution_Log
")= "False"
Environment.Value("TestCase_Log"
)= "False"
End If
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Click on S
earch","A pop up message is displayed saying 'Please Select To Date'"
Else
Reporter.ReportEvent micPass,"Step 5:Click on Se
arch","A pop up message is not displayed saying 'Please Select To Date'"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Search","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC6()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
If Dialog("text:=Microsoft Internet Explorer").WinButton("text:=OK").Exi
st(5) Then
strWarningText=Trim(Dialog("text:=Microsoft Inte
rnet Explorer").Static("text:=From Date cannot be greater than To Date").GetROPr
operty("text"))
If strWarningText="From Date cannot be greater
than To Date" Then
Reporter.ReportEvent micPass,"Ve
rify the popup is displayed or not","Popup with text 'From Date cannot be greate
r than To Date' is displayed"
Dialog("text:=Microsoft Internet
Explorer").WinButton("text:=OK").Click
Else
Reporter.ReportEvent micFail,"Ve
rify the popup is displayed or not","Popup with text 'From Date cannot be greate
r than To Date' is not displayed"
Call captureScreenshot()
Environment.Value("Execution_Log
")= "False"
Environment.Value("TestCase_Log"
)= "False"
End If
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Provide 'F
rom Date' greater than 'To Date' and click on Search","Error message pops up say
ing 'From Date cannot be greater than To date' is displayed"
Else
Reporter.ReportEvent micFail,"Step 2: Provide 'F
rom Date' greater than 'To Date' and click on Search","Error message pops up say
ing 'From Date cannot be greater than To date' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Search","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC7()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporat
eActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateA
ctions"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select val
ues for the 'From date' and 'To Date' fields where the 'To Date' is greater than
Current Date ","IDCCorporate Actions Report generated related to the search cri
teria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Select val
ues for the 'From date' and 'To Date' fields where the 'To Date' is greater than
Current Date","IDCCorporate Actions Report generated related to the search crit
eria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC8()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call click_Image("CorporateActions","Reports - IDC Corporate Act
ions Search","ShowCalendar")
blnCalendarExistance=Browser("CorporateActions").Page("Reports -
IDC Corporate Actions Search").Frame("popCalFrame").Exist(5)
If blnCalendarExistance="True" Then
Reporter.ReportEvent micPass,"verify the From da
te calendar popup is opened or not","From date Calendar popup is opened"
Else
Reporter.ReportEvent micFail,"verify the From da
te calendar popup is opened or not","From date Calendar popup is not opened"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on t
he 'From Date' calendar button","The calendar window is opened"
Else
Reporter.ReportEvent micPass,"Step 2: Click on t
he 'From Date' calendar button","The calendar window is not opened"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Search").Frame("popCalFrame").Image("ClearFieldValue").Click
blnTo=Trim(Browser("CorporateActions").Page("Reports - IDC Corpo
rate Actions Search").WebEdit("FromDate").GetROProperty("value"))
If blnTo="" Then
Reporter.ReportEvent micPass,"Verify the From da
te filed is cleared or not","From Date field is cleared"
Else
Reporter.ReportEvent micFail,"Verify the From da
te filed is cleared or not","From Date field is not cleared"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Inside the
calendar window, click on the clear button","The 'From Date' field is cleared"
Else
Reporter.ReportEvent micPass,"Step 3: Inside the
calendar window, click on the clear button","The 'From Date' field is not clear
ed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
If DataTable.Value("ToDate","IDCCorporateActions") <> "" Then
strDataTableValue = DataTable.Value("ToDate","ID
CCorporateActions")
strValue = Split(strDataTableValue,";",-1,1)
strDateValue = strValue(0)
strMonthValue = strValue(1)
strYearValue = strValue(2)
Call click_Image("CorporateActions","Reports - I
DC Corporate Actions Search","ShowCalendar_2")
Call ClickIcon_SetDate("CorporateActions","Repor
ts - IDC Corporate Actions Search",strMonthValue,strYearValue,strDateValue)
End If
strToDate=Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Search").WebEdit("ToDate").GetROProperty("value")
If strToDate<>"" Then
Reporter.ReportEvent micPass, "Verify whether to
date field is selected or not","To Date field is selected"
Else
Reporter.ReportEvent micFail, "Verify whether to
date field is selected or not","To Date field is not selected"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on t
he 'To Date' calendar button and select a date","The value is selected"
Else
Reporter.ReportEvent micPass,"Step 4: Click on t
he 'To Date' calendar button and select a date","The value is not selected"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call click_Image("CorporateActions","Reports - IDC Corporate Act
ions Search","Search")
If Dialog("text:=Microsoft Internet Explorer").WinButton("text:=
OK").Exist(5) Then
strWarningText=Trim(Dialog("text:=Microsoft Inte
rnet Explorer").Static("text:=Please select From Date").GetROProperty("text"))
If strWarningText="Please select From Date" The
n
Reporter.ReportEvent micPass,"Ve
rify the popup is displayed or not","Popup with text 'Please select From Date' i
s displayed"
Dialog("text:=Microsoft Internet
Explorer").WinButton("text:=OK").Click
Else
Reporter.ReportEvent micFail,"Ve
rify the popup is displayed or not","Popup with text 'Please select From Date' i
s not displayed"
Call captureScreenshot()
Environment.Value("Execution_Log
")= "False"
Environment.Value("TestCase_Log"
)= "False"
End If
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Click on S
earch","A pop up message is displayed saying 'Please Select From Date'"
Else
Reporter.ReportEvent micPass,"Step 5:Click on Se
arch","A pop up message is not displayed saying 'Please Select From Date'"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Search","HOME;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC9()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActionsHOLDR")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporat
eActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateA
ctions"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'CUSIP' from the 'Securi
ty Type' field and click on search ","IDCCorporate Actions Report generated rela
ted to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'CUSIP' from the 'Securi
ty Type' field and click on search","IDCCorporate Actions Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC10()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call select_Combo_Value ("CorporateActions","Reports - IDC Corpo
rate Actions Search","SecurityType",DataTable.Value("SecurityType","IDCCorporate
Actions"))
blnField=Browser("CorporateActions").Page("Reports - IDC Corpora
te Actions Search").WebList("AssignedUserGroup").Exist(5)
If blnField="False" Then
Reporter.ReportEvent micPass,"Verify the Assigne
d to the Group Users filed is disappeared or not","Assigned to the User Group f
ield is disappeared"
Else
Reporter.ReportEvent micFail,"Verify the Assigne
d to the Group Users filed is disappeared or not","Assigned to the User Group f
ield is notdisappeared"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
blnCheck=Browser("CorporateActions").Page("Reports - IDC Corpora
te Actions Search").WebCheckBox("HOLDRConstituent").Exist(5)
If blnCheck="True" Then
Reporter.ReportEvent micPass,"Verify 'HOLDR Cons
tituents Only' field is displayed or not","'HOLDR Constituents Only' field is di
splayed"
Else
Reporter.ReportEvent micFail,"Verify 'HOLDR Cons
tituents Only' field is displayed or not","'HOLDR Constituents Only' field is no
t displayed"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select 'CU
SIP' from the 'Security Type' drop-down field","On selecting CUSIP, the 'Assigne
d to User Group' field must disappear and 'HOLDR Constituents Only' is displayed
along with a check box"
Else
Reporter.ReportEvent micFail,"Step 2: Select 'CU
SIP' from the 'Security Type' drop-down field","On selecting CUSIP, the 'Assigne
d to User Group' field must disappear and 'HOLDR Constituents Only' is not displ
ayed along with a check box"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActionsHOLDR")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Select val
ues for the 'From date' and 'To Date' fields and select 'CUSIP' from the 'Securi
ty Type' field and click on search ","IDCCorporate Actions Report generated rela
ted to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 3: Select val
ues for the 'From date' and 'To Date' fields and select 'CUSIP' from the 'Securi
ty Type' field and click on search","IDCCorporate Actions Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC11()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call ReadallValuesWebList("CorporateActions","Reports - IDC Corp
orate Actions Search","AssignedUserGroup","AssignedUserGroupOptions","IDCCorpora
teActions")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Verify the
items listed under the 'Assigned to User Group' field.","The following items ar
e available under the 'Assigned to User Group' field:Corporate Actions and Unspo
nsored, Dividends, Mergers and Acquisitions & HOLDRs, Proxy and Relationship Man
agement"
Else
Reporter.ReportEvent micFail,"Step 2: Verify the
items listed under the 'Assigned to User Group' field.","The following items ar
e not available under the 'Assigned to User Group' field:Corporate Actions and U
nsponsored, Dividends, Mergers and Acquisitions & HOLDRs, Proxy and Relationship
Management"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Search","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC12()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'Corpoprate Actions and
Unsponsored' from the 'AssignedUserGroup' field and click on search ","IDCCorpor
ate Actions Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'Corpoprate Actions and
Unsponsored' from the 'AssignedUserGroup' field and click on search","IDCCorpora
te Actions Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call chkReportValues("CorporateActions","Reports - IDC Corporate
Actions Results","item","Assigned to User Group",DataTable.Value("AssignedUserG
roup","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' c
olumn","In the 'Assigned to User Group' column all the values are displayed as
'Corporate Actions Unsponsored' ."
Else
Reporter.ReportEvent micFail,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' c
olumn","In the 'Assigned to User Group' column all the values are not displayed
as 'Corporate Actions Unsponsored' ."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC13()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporat
eActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateA
ctions"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'Corpoprate Actions and
Unsponsored' from the 'AssignedUserGroup' field and click on search ","IDCCorpor
ate Actions Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'Corpoprate Actions and
Unsponsored' from the 'AssignedUserGroup' field and click on search","IDCCorpora
te Actions Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call chkReportValues("CorporateActions","Reports - IDC Corporate
Actions Results","item","Assigned to User Group",DataTable.Value("AssignedUserG
roup","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' c
olumn","In the 'Assigned to User Group' column all the values are displayed as
'Dividends' ."
Else
Reporter.ReportEvent micFail,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' c
olumn","In the 'Assigned to User Group' column all the values are not displayed
as 'Dividends' ."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC14()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporat
eActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateA
ctions"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'Corpoprate Actions and
Unsponsored' from the 'AssignedUserGroup' field and click on search ","IDCCorpor
ate Actions Report is generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'Corpoprate Actions and
Unsponsored' from the 'AssignedUserGroup' field and click on search","IDCCorpora
te Actions Report is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call chkReportValues("CorporateActions","Reports - IDC Corporate
Actions Results","item","Assigned to User Group",DataTable.Value("AssignedUserG
roup","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' c
olumn","In the 'Assigned to User Group' column all the values are displayed as
'Mergers and Acquisitions & HOLDRs' ."
Else
Reporter.ReportEvent micFail,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' c
olumn","In the 'Assigned to User Group' column all the values are not displayed
as 'Mergers and Acquisitions & HOLDRs' ."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC15()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporat
eActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateA
ctions"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'Corpoprate Actions and
Unsponsored' from the 'AssignedUserGroup' field and click on search ","IDCCorpor
ate Actions Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'Corpoprate Actions and
Unsponsored' from the 'AssignedUserGroup' field and click on search","IDCCorpora
te Actions Report is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call chkReportValues("CorporateActions","Reports - IDC Corporate
Actions Results","item","Assigned to User Group",DataTable.Value("AssignedUserG
roup","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' c
olumn","In the 'Assigned to User Group' column all the values are displayed as
'Proxy' ."
Else
Reporter.ReportEvent micFail,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' c
olumn","In the 'Assigned to User Group' column all the values are not displayed
as 'Proxy' ."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC16()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
Call DateComparision("CorporateActions","Reports
- IDC Corporate Actions Results","Item","Received Date",DataTable.Value("FromDa
te","IDCCorporateActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateA
ctions"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'Corpoprate Actions and
Unsponsored' from the 'AssignedUserGroup' field and click on search ","IDCCorpor
ate Actions Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Select val
ues for the 'From date' and 'To Date' fields and select 'Corpoprate Actions and
Unsponsored' from the 'AssignedUserGroup' field and click on search","IDCCorpora
te Actions Report is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call chkReportValues("CorporateActions","Reports - IDC Corporate
Actions Results","item","Assigned to User Group",DataTable.Value("AssignedUserG
roup","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' c
olumn","In the 'Assigned to User Group' column all the values are displayed as
'Relationship Management' ."
Else
Reporter.ReportEvent micFail,"Step 3: In the res
ults displayed, check for the values displayed in the 'Assigned to User Group' c
olumn","In the 'Assigned to User Group' column all the values are not displayed
as 'Relationship Management' ."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC17()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call click_Image("CorporateActions","Reports - IDC Corporate Act
ions Search","ShowCalendar")
Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Search").Frame("popCalFrame").WebElement("Today").Click
strDateText=Trim(Browser("CorporateActions").Page("Reports - IDC
Corporate Actions Search").WebEdit("FromDate").GetROProperty("value"))
If DateValue(strDateText)=Date Then
Reporter.ReportEvent micPass,"verify today date
is populated or not in the from date field","Todays's date is populated in the f
rom date field"
Else
Reporter.ReportEvent micFail,"verify today date
is populated or not in the from date field","Todays's date is not populated in t
he from date field"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on t
he calendar icon for the 'From Date' field and in the calendar pop up click on t
he link Today","The current date is populated in the 'From Date' field."
Else
Reporter.ReportEvent micFail,"Step 2: Click on t
he calendar icon for the 'From Date' field and in the calendar pop up click on t
he link Today","The current date is not populated in the 'From Date' field."
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call click_Image("CorporateActions","Reports - IDC Corporate Act
ions Search","ShowCalendar")
Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Search").Frame("popCalFrame").Image("ClearFieldValue").Click
strDateText=Trim(Browser("CorporateActions").Page("Reports - IDC
Corporate Actions Search").WebEdit("FromDate").GetROProperty("value"))
If strDateText="" Then
Reporter.ReportEvent micPass,"verify today date
is cleared or not in the from date field","Todays's date is cleared in the from
date field"
Else
Reporter.ReportEvent micFail,"verify today date
is cleared or not in the from date field","Todays's date is not cleared in the f
rom date field"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on t
he calendar icon for the 'From Date' field and in the calendar pop up click on t
he 'Clear Field Value' icon.","The current date is cleared in the 'From Date' fi
eld."
Else
Reporter.ReportEvent micFail,"Step 3: Click on t
he calendar icon for the 'From Date' field and in the calendar pop up click on t
he 'Clear Field Value' icon.","The current date is not cleared in the 'From Date
' field."
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call click_Image("CorporateActions","Reports - IDC Corporate Act
ions Search","ShowCalendar_2")
Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Search").Frame("popCalFrame").WebElement("Today").Click
strDateText=Trim(Browser("CorporateActions").Page("Reports - IDC
Corporate Actions Search").WebEdit("ToDate").GetROProperty("value"))
If DateValue(strDateText)=Date Then
Reporter.ReportEvent micPass,"verify today date
is populated or not in the to date field","Todays's date is populated in the to
date field"
Else
Reporter.ReportEvent micFail,"verify today date
is populated or not in the to date field","Todays's date is not populated in the
to date field"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on t
he calendar icon for the 'To Date' field and in the calendar pop up click on the
link Today","The current date is populated in the 'To Date' field."
Else
Reporter.ReportEvent micFail,"Step 4: Click on t
he calendar icon for the 'To Date' field and in the calendar pop up click on the
link Today","The current date is not populated in the 'To Date' field."
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call click_Image("CorporateActions","Reports - IDC Corporate Act
ions Search","ShowCalendar_2")
Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Search").Frame("popCalFrame").Image("ClearFieldValue").Click
strDateText=Trim(Browser("CorporateActions").Page("Reports - IDC
Corporate Actions Search").WebEdit("ToDate").GetROProperty("value"))
If strDateText="" Then
Reporter.ReportEvent micPass,"verify today date
is cleared or not in the to date field","Todays's date is cleared in the to date
field"
Else
Reporter.ReportEvent micFail,"verify today date
is cleared or not in the to date field","Todays's date is not cleared in the to
date field"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Click on t
he calendar icon for the 'To Date' field and in the calendar pop up click on the
'Clear Field Value' icon.","The current date is cleared in the 'To Date' field.
"
Else
Reporter.ReportEvent micFail,"Step 5: Click on t
he calendar icon for the 'To Date' field and in the calendar pop up click on the
'Clear Field Value' icon.","The current date is not cleared in the 'To Date' fi
eld."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
If DataTable.Value("SelectFromDate","IDCCorporateActions") <> "
" Then
strDataTableValue = DataTable.Value("FromDate","
IDCCorporateActions")
strValue = Split(strDataTableValue,";",-1,1)
strDateValue = strValue(0)
strMonthValue = strValue(1)
strYearValue = strValue(2)
Call click_Image("CorporateActions","Reports - I
DC Corporate Actions Search","ShowCalendar")
Call ClickIcon_SetDate("CorporateActions","Reports - IDC Corpora
te Actions Search",strMonthValue,strYearValue,strDateValue)
End If
strFrom=Trim(Browser("CorporateActions").Page("Reports - IDC Cor
porate Actions Search").WebEdit("FromDate").GetROProperty("value"))
If DataTable.Value("SelectToDate","IDCCorporateActions") <> ""
Then
strDataTableValue = DataTable.Value("ToDate","ID
CCorporateActions")
strValue = Split(strDataTableValue,";",-1,1)
strDateValue = strValue(0)
strMonthValue = strValue(1)
strYearValue = strValue(2)
Call click_Image("CorporateActions","Reports - I
DC Corporate Actions Search","ShowCalendar_2")
Call ClickIcon_SetDate("CorporateActions","Reports - IDC Corpora
te Actions Search",strMonthValue,strYearValue,strDateValue)
End If
strTo=Trim(Browser("CorporateActions").Page("Reports - IDC Corpo
rate Actions Search").WebEdit("ToDate").GetROProperty("value"))
If strFrom <> "" And strTo <> "" Then
Reporter.ReportEvent micPass,"verify the From an
d To date are populated","From and To date are populated"
Else
Reporter.ReportEvent micFail,"verify the From an
d To date are populated","From and To date are not populated"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Select val
ues for the 'From date' and 'To Date' fields","The dates are selected and displa
yed"
Else
Reporter.ReportEvent micFail,"Step 6: Select val
ues for the 'From date' and 'To Date' fields","The dates are not selected and di
splayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call Select_Combo_Value("CorporateActions","Reports - IDC Corpor
ate Actions Search","AssignedUserGroup",DataTable.Value("SelectAssignedUser","ID
CCorporateActions"))
strSelection=Trim(Browser("CorporateActions").Page("Reports - ID
C Corporate Actions Search").WebList("AssignedUserGroup").GetROProperty("selecti
on"))
If strSelection=DataTable.Value("SelectAssignedUser","IDCCorpor
ateActions") Then
Reporter.ReportEvent micPass,"verify the velue i
s selected or not in the assigned to user group field","Value is selected succes
sfully"
Else
Reporter.ReportEvent micFail,"verify the velue i
s selected or not in the assigned to user group field","Value is not selected su
ccessfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Select any
item from the 'Assigned to User Group' field.","The item is selected and displa
yed"
Else
Reporter.ReportEvent micFail,"Step 7: Select any
item from the 'Assigned to User Group' field.","The item is not selected and di
splayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call deselect_Combo_Value ("CorporateActions","Reports - IDC Cor
porate Actions Search","AssignedUserGroup",DataTable.Value("SelectAssignedUser",
"IDCCorporateActions"))
strSelection=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Search").WebList("AssignedUserGroup").GetROProperty("selection"))
If strSelection="" Then
Reporter.ReportEvent micPass,"verify the velue i
s deselected or not in the assigned to user group field","Value is deselected su
ccessfully"
Else
Reporter.ReportEvent micGFail,"verify the velue
is deselected or not in the assigned to user group field","Value is not deselect
ed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Hold the c
ontrol key and click on 'Dividends' again.","The value is de-selected"
Else
Reporter.ReportEvent micFail,"Step 8: Hold the c
ontrol key and click on 'Dividends' again.","The value is not de-selected"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Browser("CorporateActions").Page("Reports - IDC Corporate Actions Search
").Image("Search").Click
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
Call DateComparision("CorporateActions","Reports
- IDC Corporate Actions Results","Item","Received Date",DataTable.Value("FromDa
te","IDCCorporateActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateA
ctions"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9:Select 2 it
ems from the 'Assigned to User Group'field and click on search","IDCCorporate Ac
tions Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 9:Select 2 it
ems from the 'Assigned to User Group'field and click on search","IDCCorporate Ac
tions Report not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call chkReportValues("CorporateActions","Reports - IDC Corporate
Actions Results","item","Assigned to User Group",DataTable.Value("AssignedUserG
roup","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: In the re
sults displayed, check for the values displayed in the 'Assigned to User Group'
column.","In the 'Assigned to User Group' column all the values are either 'Corp
orate Actions and Unsponsored' or 'Dividends'"
Else
Reporter.ReportEvent micFail,"Step 10: In the re
sults displayed, check for the values displayed in the 'Assigned to User Group'
column.","In the 'Assigned to User Group' column all the values are not either '
Corporate Actions and Unsponsored' or 'Dividends"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC18()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporat
eActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateA
ctions"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Select From
Date and To date and one item items from the 'Assigned to User Group' field and
click on search","IDCCorporate Actions Report generated related to the search c
riteria entered"
Else
Reporter.ReportEvent micFail,"Step 2:Select From
Date and To date and one item items from the 'Assigned to User Group' field and
click on search","IDCCorporate Actions Report not generated related to the sear
ch criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Results").WebElement("CUSIPName").Click
Call chkSortOrder("CorporateActions","Reports - IDC Corporate Ac
tions Results", "Item","CUSIP Name","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on a
ny column header","The column is sorted in ascending order"
Else
Reporter.ReportEvent micFail,"Step 3: Click on a
ny column header","The column is not sorted in ascending order"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Results").WebElement("CUSIPName").Click
Call chkSortOrder("CorporateActions","Reports - IDC Corporate Ac
tions Results", "Item","CUSIP Name","Descending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click agai
n on the same column header as in Step 3","The column is sorted in descending or
der"
Else
Reporter.ReportEvent micFail,"Step 4: Click agai
n on the same column header as in Step 3","The column is not sorted in descendin
g order"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC19()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporat
eActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateA
ctions"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Select From
Date and To date click on search","IDCCorporate Actions Report generated relate
d to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2:Select From
Date and To date click on search","IDCCorporate Actions Report not generated re
lated to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3 To Step #4
Call SortCriteria("CorporateActions","Reports - IDC Corporate Ac
tions Results","Sort",DataTable.Value("SortColumn","IDCCorporateActions"),DataTa
ble.Value("SortOrder","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3 & 4:Select
the value 'CUSIP Name' for the 'column' field and select the value 'Descending'
for the 'Order' field and click on Ok.","The results displayed are sorted in des
cending order based on 'CUSIP Name'"
Else
Reporter.ReportEvent micFail,"Step 3 & 4:Select
the value 'CUSIP Name' for the 'column' field and select the value 'Descending'
for the 'Order' field and click on Ok.","The results displayed are not sorted in
descending order based on 'CUSIP Name'"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC20()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporat
eActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateA
ctions"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Select From
Date and To date click on search","IDCCorporate Actions Report generated relate
d to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2:Select From
Date and To date click on search","IDCCorporate Actions Report not generated re
lated to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3 To Step #9
Call MultipleSortCriteria("CorporateActions","Reports - IDC Corp
orate Actions Results","Sort",DataTable.Value("SortColumn","IDCCorporateActions"
),DataTable.Value("SortOrder","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3 To 9:Select
the value 'CUSIP Name' for the 'column' field and select the value 'Descending'
for the 'Order' field and click on Ok.","The results displayed are sorted in de
scending order based on 'CUSIP Name'"
Else
Reporter.ReportEvent micFail,"Step 3 To 9:Select
the value 'CUSIP Name' for the 'column' field and select the value 'Descending'
for the 'Order' field and click on Ok.","The results displayed are not sorted i
n descending order based on 'CUSIP Name'"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC21()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporat
eActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateA
ctions"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Select From
Date and To date click on search","IDCCorporate Actions Report generated relate
d to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2:Select From
Date and To date click on search","IDCCorporate Actions Report not generated re
lated to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3 To Step #4
Call FilterCriteria("CorporateActions","Reports - IDC Corporate
Actions Results","Filter",DataTable.Value("FilterColumn","IDCCorporateActions"),
DataTable.Value("FilterExpression","IDCCorporateActions"),DataTable.Value("Filte
rValue","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3 & 4:Verific
ation of Filter Criteria","Filter Criteria is working as per the requirement"
Else
Reporter.ReportEvent micFail,"Step 3 & 4:Verific
ation of Filter Criteria","Filter Criteria is not working as per the requirement
"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC22()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporat
eActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateA
ctions"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Select From
Date and To date click on search","IDCCorporate Actions Report generated relate
d to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2:Select From
Date and To date click on search","IDCCorporate Actions Report not generated re
lated to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3 To Step #9
Call MultipleFilterCriteria("CorporateActions","Reports - IDC Corporate
Actions Results",DataTable.Value("FilterColumn","IDCCorporateActions"),DataTable
.Value("FilterExpression","IDCCorporateActions"),DataTable.Value("FilterValue","
IDCCorporateActions"),DataTable.Value("FilterCondition","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3 To 9:Verifi
cation of Multiple Filter Criteria","Multiple Filter Criteria is working as per
the requirement"
Else
Reporter.ReportEvent micFail,"Step 3 To 9:Verifi
cation of Multiple Filter Criteria","Multiple Filter Criteria is not working as
per the requirement"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC23()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporat
eActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateA
ctions"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Select From
Date and To date click on search","IDCCorporate Actions Report generated relate
d to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2:Select From
Date and To date click on search","IDCCorporate Actions Report not generated re
lated to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
intRowCount=Browser("CorporateActions").Page("Reports - IDC Corp
orate Actions Results").WebTable("Item").RowCount
If intRowCount > 1 Then
Call SelectCAEventNameInReport("CorporateActions
","Reports - IDC Corporate Actions Results","Item",DataTable.Value("SlectCUSIPNa
me","IDCCorporateActions"))
strPageText=Trim(Browser("CorporateActions").Pag
e("CUSIP Profile").WebElement("CUSIPProfile").GetROProperty("innertext"))
If strPageText="CUSIP Profile" Then
Reporter.ReportEvent micPass,"Ve
rify the CUSIp Profile page is displayed or not","CUSIP Profile page is displaye
d"
Else
Reporter.ReportEvent micFail,"Ve
rify the CUSIp Profile page is displayed or not","CUSIP Profile page is not disp
layed"
Call captureScreenshot()
Environment.Value("Execution_Log
")= "False"
Environment.Value("TestCase_Log"
)= "False"
End If
Call select_Menu("CorporateActions","CUSIP Profi
le","HOME;DR Home")
Else
Reporter.ReportEvent micFail,"Verify the records
displayed in the report","no records displayed so, unable to proceed further ex
ecution"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
Call select_Menu("CorporateActions","Reports - I
DC Corporate Actions Results","HOME;DR Home")
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC24()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("FromDate","IDCCorporat
eActions"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - IDC Corporate
Actions Results","Item","Received Date",DataTable.Value("ToDate","IDCCorporateA
ctions"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Select From
Date and To date click on search","IDCCorporate Actions Report generated relate
d to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2:Select From
Date and To date click on search","IDCCorporate Actions Report not generated re
lated to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Results").WebElement("Search").Click
strPageText=Trim(Browser("CorporateActions").Page("Reports - IDC
Corporate Actions Search").WebElement("Reports - IDC Corporate Actions Search")
.GetROProperty("innertext"))
If strPageText="Reports - IDC Corporate Actions Search" Then
Reporter.ReportEvent micPass,"Verify IDR Corpora
te Agctions search page is displayed or not","IDR Corporate Actions search Page
is displayed"
Else
Reporter.ReportEvent micFail,"Verify IDR Corpora
te Agctions search page is displayed or not","IDR Corporate Actions search Page
is not displayed"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on t
he 'Search' Link.","Reports- IDC Corporate Actions Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 3: Click on t
he 'Search' Link.","Reports- IDC Corporate Actions Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Search","HOME;DR Home")
End function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC25()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
If DataTable.Value("FromDate","IDCCorporateActions") <> "" Then
strDataTableValue = DataTable.Value("FromDate","
IDCCorporateActions")
strValue = Split(strDataTableValue,";",-1,1)
strDateValue = strValue(0)
strMonthValue = strValue(1)
strYearValue = strValue(2)
Call click_Image("CorporateActions","Reports - I
DC Corporate Actions Search","ShowCalendar")
Call ClickIcon_SetDate("CorporateActions","Repor
ts - IDC Corporate Actions Search",strMonthValue,strYearValue,strDateValue)
End If
If DataTable.Value("ToDate","IDCCorporateActions") <> "" Then
strDataTableValue = DataTable.Value("ToDate","ID
CCorporateActions")
strValue = Split(strDataTableValue,";",-1,1)
strDateValue = strValue(0)
strMonthValue = strValue(1)
strYearValue = strValue(2)
Call click_Image("CorporateActions","Reports - I
DC Corporate Actions Search","ShowCalendar_2")
Call ClickIcon_SetDate("CorporateActions","Repor
ts - IDC Corporate Actions Search",strMonthValue,strYearValue,strDateValue)
End If
If DataTable.Value("AssignedUserGroup","IDCCorporateActions") <>
"" Then
Call select_Combo_Value("CorporateActions","Repo
rts - IDC Corporate Actions Search","AssignedUserGroup", DataTable.Value("Assign
edUserGroup","IDCCorporateActions"))
End If
Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Search").Image("Clear").Click
strFrom=Trim(Browser("CorporateActions").Page("Reports - IDC Cor
porate Actions Search").WebEdit("FromDate").GetROProperty("value"))
strTo=Trim(Browser("CorporateActions").Page("Reports - IDC Corpo
rate Actions Search").WebEdit("ToDate").GetROProperty("value"))
strAssigned=Trim(Browser("CorporateActions").Page("Reports - IDC
Corporate Actions Search").WebList("AssignedUserGroup").GetROProperty("value"))
If strFrom="" And strTo="" And strAssigned="" Then
Reporter.ReportEvent micPass,"verify all the fie
lds are cleared or not in the IDR search page","All the fields are cleared in th
e IDR report search page"
Else
Reporter.ReportEvent micFail,"verify all the fie
lds are cleared or not in the IDR search page","All the fields are not cleared i
n the IDR report search page"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Search","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsIDCCorporateActions_TC26()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select IDC Corporate Actions.","Reports - IDC Corporate Actions Search
page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Select From
Date and To date click on search","IDCCorporate Actions Report generated relate
d to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2:Select From
Date and To date click on search","IDCCorporate Actions Report not generated re
lated to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Browser("CorporateActions").Page("Reports - IDC Corporate Action
s Results").WebElement("CUSIPName").Click
var_X = Browser("CorporateActions").Page("Reports - IDC Corporat
e Actions Results").WebElement("SaveAsExcel").GetROProperty("x")
var_Y = Browser("CorporateActions").Page("Reports - IDC Corporat
e Actions Results").WebElement("SaveAsExcel").GetROProperty("y")
Window("regexpwndtitle:=Microsoft Internet Explorer", "regexpwnd
class:=IEFrame").WinObject("regexpwndclass:=Internet Explorer_Server").Click var
_X+10, var_Y+10
Wait(10)
If Dialog("text:=File Download").Exist(5) Then
Reporter.ReportEvent micPass,"Verify the Save as
Excel popup is opened or not","Save as Excel popup is opened"
Else
Reporter.ReportEvent micFail,"Verify the Save as
Excel popup is opened or not","Save as Excel popup is not opened"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on S
ave as Excel in Reports - IDC Corporate Actions Results","A new window with file
name excelviewer.jsp should open and also a Pop-up window to Open ,Save and Canc
el the Xls having name as 'Excel Viewer.xls' is displayed "
Else
Reporter.ReportEvent micFail,"Step 3: Click on Save as Excel in
Reports - IDC Corporate Actions Results","A new window with filename excelviewer
.jsp should open and also a Pop-up window to Open ,Save and Cancel the Xls havin
g name as 'Excel Viewer.xls' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 & 5
strExcelPath=SaveASExcel("CorporateActions","Reports - IDC Corporate Act
ions Results","IDCCorporateActions","Save")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 & 5: Click
on Save option in jsp window","Results issaved to excel. The saved Excel is havi
ng the same content as present in the Reports - Event Creation Results page"
Else
Reporter.ReportEvent micFail,"Step 4 &5: Click o
n Save option in jsp window","Results issaved to excel. The saved Excel is not h
aving the same content as present in the Reports - Event Creation Results page"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))

'Step 6
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6:Select From
Date and To date click on search","IDCCorporate Actions Report generated relate
d to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6:Select From
Date and To date click on search","IDCCorporate Actions Report not generated re
lated to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
var_X = Browser("CorporateActions").Page("Reports - IDC Corporat
e Actions Results").WebElement("SaveAsExcel").GetROProperty("x")
var_Y = Browser("CorporateActions").Page("Reports - IDC Corporat
e Actions Results").WebElement("SaveAsExcel").GetROProperty("y")
Window("regexpwndtitle:=Microsoft Internet Explorer", "regexpwnd
class:=IEFrame").WinObject("regexpwndclass:=Internet Explorer_Server").Click var
_X+10, var_Y+10
Call SaveASExcel("CorporateActions","Reports - IDC Corporate Act
ions Results","IDCCorporateActions","Open")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Click on O
pen option in jsp window","Results is opened in excel sheet format"
Else
Reporter.ReportEvent micFail,"Step 7: Click on O
pen option in jsp window","Results is not opened in excel sheet format"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","IDCCorporateActions"))
'Step #8
Call CAIDCReportsSearchCriteria("CorporateActions","Reports - ID
C Corporate Actions Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - IDC Co
rporate Actions Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - IDC Corporate Actions
Results","IDCCorporateActions","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
IDC Corporate Actions Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - IDC Corpor
ate Actions Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro
perty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("CorporateActions","Reports - IDC Corporate
Actions Results","IDCCorporateActions")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Select From
Date and To date click on search","IDCCorporate Actions Report generated relate
d to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 8:Select From
Date and To date click on search","IDCCorporate Actions Report not generated re
lated to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
var_X = Browser("CorporateActions").Page("Reports - IDC Corporat
e Actions Results").WebElement("SaveAsExcel").GetROProperty("x")
var_Y = Browser("CorporateActions").Page("Reports - IDC Corporat
e Actions Results").WebElement("SaveAsExcel").GetROProperty("y")
Window("regexpwndtitle:=Microsoft Internet Explorer", "regexpwnd
class:=IEFrame").WinObject("regexpwndclass:=Internet Explorer_Server").Click var
_X+10, var_Y+10
Call SaveASExcel("CorporateActions","Reports - IDC Corporate Act
ions Results","IDCCorporateActions","Cancel")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Click on C
ancel","The jsp window is closed and the user should see the IDC Corporate Actio
ns results screen"
Else
Reporter.ReportEvent micFail,"Step 9: Click on C
ancel","The jsp window is not closed and the user should see the IDC Corporate A
ctions results screen"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call chkExcelHeaderNames(strExcelPath,DataTable.Value("TestCaseI
D","IDCCorporateActions"),"IDCCorporateActions","IDCCorporateActions","Item")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Navigate
to the location where the Excel file is saved and open the Excelviewer.xls","All
the headers are displayed correctly"
Else
Reporter.ReportEvent micFail,"Step 10: Navigate
to the location where the Excel file is saved and open the Excelviewer.xls","All
the headers are not displayed correctly"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Reports - IDC Corporate Act
ions Results","HOME;DR Home")
End Function

Potrebbero piacerti anche