Upload
imaarha
View
218
Download
0
Embed Size (px)
Citation preview
8/7/2019 ADRCA_ReportsEventCreation
1/58
'=========================================================================================================' Name of the Script : Corporate Actions Reports Event Creation' Scope of the Script : This test script covers 40 test cases related to the CA reports --> Event Creation
' Author : Mohan Gummadi' Description : Corporate Actions Reports Event Creation' Date and / or Version : 03-11-2008,version 1.0'===========================================================================================================
Sub CAReportsEventCreation()
'****Declaration of Environmental VariableEnvironment.Value("Execution_Log")=True
'''''''''Test case countConst TC_COUNT = 40
strVar = Environment("TestDir")strIndVar = Split(strVar,"\",-1,1)strBound = UBound(strIndVar)strAllPath =""
For i= 0 to strBound - 1strAllPath = strAllPath & strIndVar(i) &"\"
Next
strPath = Trim(strPath)strDataPath = strAllPath & "DataTables\"strLibPath = strAllPath & "Function_Library\"
'****Adding MFLogin sheet to the dataTable and Importing the Input DataTable
DataTable.AddSheet "CALogin"DataTable.ImportSheet strDataPath & "Login.xls","CALogin","CALog
in"DataTable.AddSheet "EventCreation"DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","EventCreation","EventCreation"
Environment.Value("strSheetName")="EventCreation"DataTable.AddSheet "ReportHeader"DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","ReportHeader","ReportHeader"DataTable.AddSheet "HomePageVerification"DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","HomePageVerification","HomePageVerification"
' Logs the Scenario name Execution in a .csv fileCall Execution_log(DataTable.Value("Scenario_Name", "Master"), "
", "", "")Call Execution_log(DataTable.Value(3, "Master"), "", "", "")
'****Invoking IE and navigating to the ADR Login pageDataTable.GetSheet("CALogin").SetCurrentRow(1)
8/7/2019 ADRCA_ReportsEventCreation
2/58
Call invoke_URL("CorporateActions","Login Page",DataTable.Value("URL","CALogin"))
'****Checking the username, password and login objects in the login page
Call pageCheck_WebEdit("CorporateActions","Login Page","username;j_password","")
Call pageCheck_WebButton("CorporateActions","Login Page","Login","")
'****Entering username and password and login into the masterfile application
Call login("CorporateActions","Login Page","User","CALogin")Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser"))
Environment.Value("DATATABLE_ROW")=1DataTable.GetSheet("EventCreation").SetCurrentRow(Environment.Va
lue("DATATABLE_ROW"))
'***************************************** TC Driver Strat *******************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"If DataTable("TestRunFlag","EventCreation")="Y" Then
''If run flag is Y in test data tableReporter.ReportEvent micDone,"######## BEGIN TES
T CASE - '" & DataTable("TestCaseID","EventCreation") & "' ########### ","Execution of Test Case '" & DataTable("TestCaseDesc","EventCreation") & "' Started"
strFuncName = "CAReportsEventCreation_TC" & intTCCount & "()" ''Formation of function name
''Call FunctionExecute "Call " & strFuncName
If Environment.Value("Execution_Log") = "True"Then
Call Execution_log("",Datatable.Value("TestCaseID", "EventCreation"), Datatable.Value("TestCaseDesc", "EventCreation"), "PASS")
ElseCall Execution_log("",Datatable.
Value("TestCaseID", "EventCreation"), Datatable.Value("TestCaseDesc", "EventCreation"), "FAIL")
End IfReporter.ReportEvent micDone,"######### END OF T
EST CASE - '" & DataTable("TestCaseID","EventCreation") & "###########","The Test Case Execution Completed"
End If''Increment the test data table rowEnvironment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1DataTable.GetSheet("EventCreation").SetCurrentRow(Enviro
nment.Value("DATATABLE_ROW"))Next
'***************************************** TC Driver End *******************************************************
8/7/2019 ADRCA_ReportsEventCreation
3/58
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
End Sub
'**********************************************Test Case 1 to Test Case 40******
********************************************
Public Function CAReportsEventCreation_TC1()
Environment.Value("TestCase_Log")="True"
'Step #1Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser")) If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Na
vigate to DR Home page after successful login.","Successfully verified the links- " & DataTable.Value("MenuName","HomePageVerification")
ElseReporter.ReportEvent micFail,"Step 1: Navigate t
o DR Home page after successful login.","The links - '" & DataTable.Value("MenuName","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")="True"End If
'Step #2
Call click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Value("MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Click on C
orporate Actions in DR Home page.","Successfully verified the home page menus -" & DataTable.Value("MenuName","HomePageVerification")
ElseReporter.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 #3Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))Call pageCheck_WebEditOR("CorporateActions","Reports - Event Cre
ation Search","EventName;FromDate;ToDate;UnderlyingISIN;UnderlyingSecurityName;UnderlyingSEDOL")
Call pageCheck_WebListOR("CorporateActions","Reports - Event Creation Search","CorporateActionType;Country;DateRange;EventCreationType;EventStatus;OrgRegion;Owner;RmLocal;RMNY")
Call pageCheck_Image("CorporateActions","Reports - Event Creatio
n Search","Search;Clear","")If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
8/7/2019 ADRCA_ReportsEventCreation
4/58
rts menu select Event Creation.","Expected fields are displayed in search criteria"
ElseReporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Event Creation.","Expected fields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End IfCall select_Menu("CorporateActions","Reports - Event Creation Se
arch","HOME;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsEventCreation_TC2()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Event Creation.","Reports - Event Creation Search page opened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page not opene
d successfully"Environment.Value("TestCase_Log")="True"
End If
'Step # 2Call CAReportsEvtCreationSearchCriteria("CorporateActions","Repo
rts - Event Creation Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Event
Creation Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Event Creation
Results","EventCreation","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","R
eports - Event Creation Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev
ent Creation Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Event Creation Results","Event_Creation")
Call chkReportValues("CorporateActions","Reports - Event Creatio
8/7/2019 ADRCA_ReportsEventCreation
5/58
n Results","Item","Event Name",DataTable.Value("EcEventName","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter thesearch criteria as partial Event name and press 'Enter' key ","Event Creation Report generated related to the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 2: Enter the
search criteria as partial Event name and press 'Enter' key ","Event Creation Report not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"End If
'Step #3Call SelectCAEventNameInReport("CorporateActions","Reports - Eve
nt Creation Results","Item",DataTable.Value("SelectEventName","EventCreation"))strUndelyingPage=Trim(Browser("CorporateActions").Page("Underlyi
ng Event").WebElement("UnderlyingEvent").GetROProperty("innertext"))If strUndelyingPage="Underlying Event" Then
Reporter.ReportEvent micPass,"Verify the Undelty
ing Event Page is displayed or not","Underlying Event page is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Undeltying Event Page is displayed or not","Underlying Event page is not displayed successfully"
Environment.Value("Execution_Log")="False"Call captureScreenshot()
End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under 'Event Name' click on any link.","User should be transferred to the 'Underlying Event' screen"
ElseReporter.ReportEvent micFail,"Step 3: Under 'Eve
nt Name' click on any link.","User not transferred to the 'Underlying Event' screen"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Underlying Event","HOME;DR
Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Public Function CAReportsEventCreation_TC3()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Event Creation.","Reports - Event Creation Search page opened successfully"
8/7/2019 ADRCA_ReportsEventCreation
6/58
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2strEventDefault=Trim(Browser("CorporateActions").Page("Reports -
Event Creation Search").WebList("EventCreationType").GetROProperty("selection"))
If strEventDefault="All" ThenReporter.ReportEvent micPass,"Verify the default
value of the Event Creation Type dropdown","Default value " &strEventDefault&"is displayed in the Event Creation Type dropdown"
ElseReporter.ReportEvent micFail,"Verify the default
value of the Event Creation Type dropdown","No Default value is displayed in the Event Creation Type dropdown"
Environment.Value("Execution_Log")="False"Call captureScreenshot()End If
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Check the
default value of the Event Creation field.","By Default, 'All' should be selected"
ElseReporter.ReportEvent micFail,"Step 2: Check the
default value of the Event Creation field.","No default value is selected"Environment.Value("TestCase_Log")="True"
End If
'Step #3strEventOptions=Trim(Browser("CorporateActions").Page("Reports -
Event Creation Search").WebList("EventCreationType").GetROProperty("all items"))
If strEventOptions=DataTable.Value("EventCreationOptions","EventCreation") Then
Reporter.ReportEvent micPass,"Verify all the items listed in the Event Creation type web list","Listed options "&strEventOptions&" are displyed in the Event Creation Type weblist"
ElseReporter.ReportEvent micFail,"Verify all the ite
ms listed in the Event Creation type web list","Listed options are not displyedin the Event Creation Type weblist"
Environment.Value("Execution_Log")="False"Call captureScreenshot()
End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click andVerify for the listed items under the Event Creation Type.","Listed options "&strEventOptions&" are displyed in the Event Creation Type weblist"
ElseReporter.ReportEvent micFail,"Step 3: Click and
Verify for the listed items under the Event Creation Type.","Listed options arenot displyed in the Event Creation Type weblist"
Environment.Value("TestCase_Log")="True"End If
8/7/2019 ADRCA_ReportsEventCreation
7/58
'Step #4Call CAReportsEvtCreationSearchCriteria("CorporateActions","Repo
rts - Event Creation Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Event
Creation Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Event Creation
Results","EventCreation","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports - Event Creation Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Event Creation Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()End IfCall chkReportHeader("CorporateActions","Reports - Event Creatio
n Results","Event_Creation")Call chkReportValues("CorporateActions","Reports - Event Creatio
n Results","Item","Event Creation Type","Manually")If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Keep all as the selection for Event Creation Type and press 'Enter' key ","Event CreationReport generated related to the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 4: Keep all a
s the selection for Event Creation Type and press 'Enter' key ","Event Creation
Report not generated related to the search criteria entered"Environment.Value("TestCase_Log")="True"
End IfCall select_Menu("CorporateActions","Reports - Event Creation Re
sults","HOME;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsEventCreation_TC4()
Environment.Value("TestCase_Log")=TrueCall click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Event Creation.","Reports - Event Creation Search page opened successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Under Reports menu select Event Creation.","Reports - Event Creation Search page not opened successfully"
8/7/2019 ADRCA_ReportsEventCreation
8/58
Environment.Value("TestCase_Log")="True"End If
'Step #2Call CAReportsEvtCreationSearchCriteria("CorporateActions","Reports - Ev
ent Creation Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Event
Creation Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Event Creation Results
","EventCreation","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports -
Event Creation Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Event Crea
tion Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"Environment.Value("Execution_Log")="False"Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Event Creation Results","Event_Creation")
Call chkReportValues("CorporateActions","Reports - Event Creation Results","Item","Event Creation Type","Manually")
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Select an
item from Event Creation Type and click on search ","Event Creation Report gener
ated related to the search criteria entered"Else
Reporter.ReportEvent micFail,"Step 2: Select anitem from Event Creation Type and click on search ","Event Creation Report not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"End If'Step #3Call SelectCAIsinInReport("CorporateActions","Reports - Event Cr
eation Results","Item",DataTable.Value("SelectISIN","EventCreation"))strISINPage=Trim(Browser("CorporateActions").Page("Underlying Se
curity Profile").WebElement("Underlying Security Profile").GetROProperty("innertext"))
If strISINPage="Underlying Security Profile" ThenReporter.ReportEvent micPass,"Verify the Undelty
ing Security Profile Page is displayed or not","Undeltying Security Profile Pageis displayed successfully"
ElseReporter.ReportEvent micFail,"Verify the Undelty
ing Security Profile Page is displayed or not","Undeltying Security Profile Pageis not displayed successfully"
Environment.Value("Execution_Log")="False"Call captureScreenshot()
End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under 'ISIN' click on any link","User should be transferred to the 'Underlying Security Profile' screen"
8/7/2019 ADRCA_ReportsEventCreation
9/58
ElseReporter.ReportEvent micFail,"Step 3: Under 'ISI
N' click on any link","User should be transferred to the 'Underlying Security Profile' screen"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Underlying Security Profile
","HOME;DR Home")
End Function'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsEventCreation_TC5()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Event Creation.","Reports - Event Creation Search page opened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page not opened successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #2Call CAReportsEvtCreationSearchCriteria("CorporateActions","Repo
rts - Event Creation Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Event
Creation Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Event Creation
Results","EventCreation","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","R
eports - Event Creation Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev
ent Creation Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"Call captureScreenshot()
End IfCall chkReportHeader("CorporateActions","Reports - Event Creatio
n Results","Event_Creation")
Call chkReportValues("CorporateActions","Reports - Event Creation Results","Item","Event Creation Type","Systematically")
If Environment.Value("TestCase_Log")="True" Then
8/7/2019 ADRCA_ReportsEventCreation
10/58
Reporter.ReportEvent micPass,"Step 2: Select anitem from Event Creation Type and click on search ","Event Creation Report generated related to the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 2: Select an
item from Event Creation Type and click on search ","Event Creation Report not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Event Creation Re
sults","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Public Function CAReportsEventCreation_TC6()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Event Creation.","Reports - Event Creation Search page opened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page not opene
d successfully"Environment.Value("TestCase_Log")="True"
End If
'Step #2Call CAReportsEvtCreationSearchCriteria("CorporateActions","Repo
rts - Event Creation Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Event
Creation Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Event Creation
Results","EventCreation","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","R
eports - Event Creation Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev
ent Creation Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"Call captureScreenshot()
End If
Call chkReportHeader("CorporateActions","Reports - Event Creation Results","Event_Creation")
Call chkReportValues("CorporateActions","Reports - Event Creatio
8/7/2019 ADRCA_ReportsEventCreation
11/58
n Results","Item","Underlying Security Name",DataTable.Value("EcUnderlyingName","EventCreation"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Enter Unde
rlying Security Name and click on search ","Event Creation Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 2: Enter Underlying Security Name and click on search ","Event Creation Report not generatedrelated to the search criteria entered"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Event Creation Re
sults","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsEventCreation_TC7()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Event Creation.","Reports - Event Creation Search page opened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call CAReportsEvtCreationSearchCriteria("CorporateActions","Repo
rts - Event Creation Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Event
Creation Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Event Creation
Results","EventCreation","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","R
eports - Event Creation Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev
ent Creation Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"Call captureScreenshot()
End If
8/7/2019 ADRCA_ReportsEventCreation
12/58
Call chkReportHeader("CorporateActions","Reports - Event Creation Results","Event_Creation")
Call chkReportValues("CorporateActions","Reports - Event Creation Results","Item","ISIN",DataTable.Value("EcISIN","EventCreation"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Enter Unde
rlying ISIN and click on search","Event Creation Report generated related to the
search criteria entered"Else
Reporter.ReportEvent micFail,"Step 2: Enter Underlying ISIN and click on search","Event Creation Report not generated related tothe search criteria entered"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Event Creation Re
sults","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsEventCreation_TC8()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page opened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call CAReportsEvtCreationSearchCriteria("CorporateActions","Repo
rts - Event Creation Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Event
Creation Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Event Creation
Results","EventCreation","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","R
eports - Event Creation Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev
ent Creation Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date an
8/7/2019 ADRCA_ReportsEventCreation
13/58
d Timestamp of the report","Date and Timestamp is not displayed successfully"Environment.Value("Execution_Log")="False"Call captureScreenshot()
End IfCall chkReportHeader("CorporateActions","Reports - Event Creatio
n Results","Event_Creation")Call chkReportValues("CorporateActions","Reports - Event Creatio
n Results","Item","SEDOL",DataTable.Value("EcSEDOL","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter Underlying SEDOL and click on search ","Event Creation Report generated related to the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 2: Enter Unde
rlying SEDOL and click on search ","Event Creation Report not generated relatedto the search criteria entered"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Event Creation Re
sults","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsEventCreation_TC9()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Event Creation.","Reports - Event Creation Search page opened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call pageCheck_DefaultValue("CorporateActions","Reports - Event
Creation Search","","WebList","SELECT","All")If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Check thedefault value of the Date Range field ","By Default, 'All' should be selected"
ElseReporter.ReportEvent micFail,"Step 2: Check the
default value of the Date Range field ","By Default, 'All' should be selected"Environment.Value("TestCase_Log")="True"
End If
'Step #3
8/7/2019 ADRCA_ReportsEventCreation
14/58
Call ReadallValuesWebList("CorporateActions","Reports - Event Creation Search","DateRange","DateRangeOptions","EventCreation")
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: Click and
Verify for the listed items under the Date Range ","'All, Creation Date and Event Date' items are displayed in Date Range dropdown:"
Else
Reporter.ReportEvent micFail,"Step 3: Click andVerify for the listed items under the Date Range ","All, Creation Date and EventDate' items are not displayed in Date Range dropdown:"
Environment.Value("TestCase_Log")="True"End If
'Step #4Call CAReportsEvtCreationSearchCriteria("CorporateActions","Repo
rts - Event Creation Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Event
Creation Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Event Creation
Results","EventCreation","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports - Event Creation Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Event Creation Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()End IfCall chkReportHeader("CorporateActions","Reports - Event Creatio
n Results","Event_Creation")If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Keep 'All'as selected from Date Range dropdown and click on Search","Event Creation Report generated related to the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 4: Keep 'All'
as selected from Date Range dropdown and click on Search","Event Creation Report not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Event Creation Re
sults","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsEventCreation_TC10()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
8/7/2019 ADRCA_ReportsEventCreation
15/58
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Event Creation.","Reports - Event Creation Search page opened su
ccessfully"Else
Reporter.ReportEvent micFail,"Step 1: Under Reports menu select Event Creation.","Reports - Event Creation Search page not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call select_Combo_Value ("CorporateActions","Reports - Event Cre
ation Search","DateRange",DataTable.Value("EcDateRange","EventCreation"))Call pageCheck_ImageOR("CorporateActions","Reports - Event Creat
ion Search","ShowCalendar;ShowCalendar_2")If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Select 'Cr
eation Date' from Date Range dropdown","Corresponding calendar buttons for the 'From' and 'To' fields should be displayed"
ElseReporter.ReportEvent micFail,"Step 2: Select 'Cr
eation Date' from Date Range dropdown","Corresponding calendar buttons for the 'From' and 'To' fields should be displayed"
Environment.Value("TestCase_Log")="True"End If
'Step #3
Call FromDateCalendarOperation("CorporateActions","Reports - Event Creation Search","ShowCalendar")
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: Click on t
he calendar icon for the 'From' field and in the calendar pop up click on the link ' Today: ' ","The current date is populated in the 'From' field"
ElseReporter.ReportEvent micFail,"Step 3: Click on t
he calendar icon for the 'From' field and in the calendar pop up click on the link ' Today: ' ","The current date is not populated in the 'From' field"
Environment.Value("TestCase_Log")="True"End If
'Step #4Browser("CorporateActions").Page("Reports - Event Creation Searc
h").Image("ShowCalendar").ClickBrowser("CorporateActions").Page("Reports - Event Creation Searc
h").Frame("popCalFrame").Image("Clear Field Value").ClickFromDate=Trim(Browser("CorporateActions").Page("Reports - Event
Creation Search").WebEdit("FromDate").GetROProperty("value"))If FromDate="" Then
Reporter.ReportEvent micPass,"Verify the From Date field is cleared or not","From Date field is cleared"
ElseReporter.ReportEvent micFail,"Verify the From Da
te field is cleared or not","From Date field is not cleared"Environment.Value("Execution_Log")="False"Call captureScreenshot()
8/7/2019 ADRCA_ReportsEventCreation
16/58
End If
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 4: Click on t
he calendar icon for the 'From' field and in the calendar pop up click on the 'Clear Field Value' icon","The current date is cleared in the 'From' field"
Else
Reporter.ReportEvent micFail,"Step 4: Click on the calendar icon for the 'From' field and in the calendar pop up click on the 'Clear Field Value' icon","The current date is not cleared in the 'From' field"
Environment.Value("TestCase_Log")="True"End If
'Step #5Call ToDateCalendarOperation("CorporateActions","Reports - Event
Creation Search","ShowCalendar_2")If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Click on the calendar icon for the 'To' field and in the calendar pop up click on the link
' Today: ' ","The current date is populated in the 'To' field"ElseReporter.ReportEvent micFail,"Step 5: Click on t
he calendar icon for the 'To' field and in the calendar pop up click on the link' Today: ' ","The current date is not populated in the 'To' field"
Environment.Value("TestCase_Log")="True"End If
'Step #6Browser("CorporateActions").Page("Reports - Event Creation Searc
h").Image("ShowCalendar_2").ClickBrowser("CorporateActions").Page("Reports - Event Creation Searc
h").Frame("popCalFrame").Image("Clear Field Value").Click
ToDate=Trim(Browser("CorporateActions").Page("Reports - Event Creation Search").WebEdit("ToDate").GetROProperty("value"))
If ToDate="" ThenReporter.ReportEvent micPass,"Verify the To Date
field is cleared or not","To Date field is cleared"Else
Reporter.ReportEvent micFail,"Verify the To Datefield is cleared or not","To Date field is not cleared"
Environment.Value("Execution_Log")="False"Call captureScreenshot()
End If
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 6: Click on t
he calendar icon for the 'To' field and in the calendar pop up click on the 'Clear Field Value' icon","The current date is cleared in the 'To' field"
ElseReporter.ReportEvent micFail,"Step 6: Click on t
he calendar icon for the 'To' field and in the calendar pop up click on the 'Clear Field Value' icon","The current date is not cleared in the 'To' field"
Environment.Value("TestCase_Log")="True"End If
'Step #7 & Step #8Call CAReportsEvtCreationSearchCriteria("CorporateActions","Repo
rts - Event Creation Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Event
Creation Results").WebElement("TimeStamp"))
8/7/2019 ADRCA_ReportsEventCreation
17/58
Call chkReportLinks("CorporateActions","Reports - Event CreationResults","EventCreation","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports - Event Creation Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Event Creation Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"Call captureScreenshot()
End IfCall chkReportHeader("CorporateActions","Reports - Event Creatio
n Results","Event_Creation")Call DateComparision("CorporateActions","Reports - Event Creation Result
s","Item","Event Creation Date/Time",DataTable.Value("EcFrom","EventCreation"),"GreaterThan")Call DateComparision("CorporateActions","Reports - Event Creatio
n Results","Item","Event Creation Date/Time",DataTable.Value("EcTo","EventCreation"),"LessThan")
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 7 & Step8: Pr
ovide From Date and To Date and Click on Search button","Event Creation reportis generated related to the search criteria"
ElseReporter.ReportEvent micFail,"Step 7 & Step8: Pr
ovide From Date and To Date and Click on Search button","Event Creation reportis not generated related to the search criteria"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Event Creation Re
sults","HOME;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsEventCreation_TC11()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Event Creation.","Reports - Event Creation Search page opened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page not opened successfully"
Environment.Value("TestCase_Log")="True"
8/7/2019 ADRCA_ReportsEventCreation
18/58
End If
'Step #2Call select_Combo_Value ("CorporateActions","Reports - Event Cre
ation Search","DateRange",DataTable.Value("EcDateRange","EventCreation"))Call pageCheck_ImageOR("CorporateActions","Reports - Event Creat
ion Search","ShowCalendar;ShowCalendar_2")
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Select 'Ev
ent Date' from Date Range dropdown","Corresponding calendar buttons for the 'From' and 'To' fields should be displayed"
ElseReporter.ReportEvent micFail,"Step 2: Select 'Ev
ent Date' from Date Range dropdown","Corresponding calendar buttons for the 'From' and 'To' fields should be displayed"
Environment.Value("TestCase_Log")="True"End If
'Step #3 & Step #4
Call CAReportsEvtCreationSearchCriteria("CorporateActions","Reports - Event Creation Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Event
Creation Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Event Creation
Results","EventCreation","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","R
eports - Event Creation Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev
ent Creation Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"Call captureScreenshot()
End IfCall chkReportHeader("CorporateActions","Reports - Event Creatio
n Results","Event_Creation")Call DateComparision("CorporateActions","Reports - Event Creatio
n Results","Item","Event Date",DataTable.Value("EcFrom","EventCreation"),"GreaterThan")
Call DateComparision("CorporateActions","Reports - Event Creation Results","Item","Event Date",DataTable.Value("EcTo","EventCreation"),"LessThan")
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3 & Step 4: P
rovide From Date and To Date and Click on Search button","Event Creation reportis generated related to the search criteria"
ElseReporter.ReportEvent micFail,"Step 3 & Step 4: P
rovide From Date and To Date and Click on Search button","Event Creation reportis not generated related to the search criteria"
Environment.Value("TestCase_Log")="True"End If
Call select_Menu("CorporateActions","Reports - Event Creation Results","HOME;DR Home")
8/7/2019 ADRCA_ReportsEventCreation
19/58
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Public Function CAReportsEventCreation_TC12()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Event Creation.","Reports - Event Creation Search page opened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page not opened successfully"Environment.Value("TestCase_Log")="True"
End If
'Step #2Call select_Combo_Value ("CorporateActions","Reports - Event Cre
ation Search","DateRange",DataTable("EcDateRange","EventCreation"))Call pageCheck_ImageOR("CorporateActions","Reports - Event Creat
ion Search","ShowCalendar;ShowCalendar_2")If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select 'Creation Date' from Date Range dropdown","Corresponding calendar buttons for the '
From' and 'To' fields should be displayed"Else
Reporter.ReportEvent micFail,"Step 2: Select 'Creation Date' from Date Range dropdown","Corresponding calendar buttons for the 'From' and 'To' fields should be displayed"
Environment.Value("TestCase_Log")="True"End If
'Step #3Browser("CorporateActions").Page("Reports - Event Creation Searc
h").Image("Search").ClickIf Dialog("text:=Microsoft Internet Explorer").WinButton("text:=
OK").Exist(5) ThenPopupText=Trim(Dialog("text:=Microsoft Internet
Explorer").Static("text:=Please select From date").GetROProperty("text"))If PopupText="Please select From date" Then
Reporter.ReportEvent micPass,"Verify the pop up with message 'Please Select From Date'","Pop up with message 'Please Select From Date' is displayed"
ElseReporter.ReportEvent micFail,"Ve
rify the pop up with message 'Please Select From Date'","Pop up with message 'Please Select From Date' is not displayed"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()End If
End If
8/7/2019 ADRCA_ReportsEventCreation
20/58
Dialog("text:=Microsoft Internet Explorer").WinButton("text:=OK").Click
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: Do not sel
ect any dates and click on search","A pop up message should be displayed saying'Please Select From Date'"
Else
Reporter.ReportEvent micFail,"Step 3: Do not select any dates and click on search","A pop up message is not displayed saying 'Please Select From Date'"
Environment.Value("Execution_Log")="False"Call captureScreenshot()
End IfCall select_Menu("CorporateActions","Reports - Event Creation Search","H
OME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++
Public Function CAReportsEventCreation_TC13()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page opened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call select_Combo_Value ("CorporateActions","Reports - Event Cre
ation Search","DateRange",DataTable.Value("EcDateRange","EventCreation"))Call pageCheck_ImageOR("CorporateActions","Reports - Event Creat
ion Search","ShowCalendar;ShowCalendar_2")If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select 'Creation Date' from Date Range dropdown","Corresponding calendar buttons for the 'From' and 'To' fields should be displayed"
ElseReporter.ReportEvent micFail,"Step 2: Select 'Cr
eation Date' from Date Range dropdown","Corresponding calendar buttons for the 'From' and 'To' fields should be displayed"
Environment.Value("TestCase_Log")="True"End If
'Step #3Call CAReportsEvtCreationSearchCriteria("CorporateActions","Repo
rts - Event Creation Search")
8/7/2019 ADRCA_ReportsEventCreation
21/58
If Dialog("text:=Microsoft Internet Explorer").WinButton("text:=OK").Exist(5) Then
PopupText=Trim(Dialog("text:=Microsoft InternetExplorer").Static("text:=Please select To date").GetROProperty("text"))
If PopupText="Please select To date" ThenReporter.ReportEvent micPass,"Ve
rify the pop up with message 'Please Select To Date'","Pop up with message 'Plea
se Select To Date' is displayed"Else
Reporter.ReportEvent micFail,"Verify the pop up with message 'Please Select To Date'","Pop up with message 'Please Select To Date' is not displayed"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()End If
End IfDialog("text:=Microsoft Internet Explorer").WinButton("text:=OK"
).Click
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: Select From Date and click on Search","A pop up message should be displayed saying 'PleaseSelect To Date'"
ElseReporter.ReportEvent micFail,"Step 3: Select Fro
m Date and click on Search","A pop up message is not displayed saying 'Please Select To Date'"
Environment.Value("Execution_Log")="False"Call captureScreenshot()
End IfCall select_Menu("CorporateActions","Reports - Event Creation Se
arch","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsEventCreation_TC14()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Event Creation.","Reports - Event Creation Search page opened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page not opened successfully"
Environment.Value("TestCase_Log")="True"End If
8/7/2019 ADRCA_ReportsEventCreation
22/58
'Step #2Call select_Combo_Value ("CorporateActions","Reports - Event Cre
ation Search","DateRange",DataTable.Value("EcDateRange","EventCreation"))Call pageCheck_ImageOR("CorporateActions","Reports - Event Creat
ion Search","ShowCalendar;ShowCalendar_2")If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select 'Cr
eation Date' from Date Range dropdown","Corresponding calendar buttons for the 'From' and 'To' fields should be displayed"
ElseReporter.ReportEvent micFail,"Step 2: Select 'Cr
eation Date' from Date Range dropdown","Corresponding calendar buttons for the 'From' and 'To' fields should be displayed"
Environment.Value("TestCase_Log")="True"End If
'Step #3Call CAReportsEvtCreationSearchCriteria("CorporateActions","Repo
rts - Event Creation Search")
If Dialog("text:=Microsoft Internet Explorer").WinButton("text:=OK").Exist(5) ThenPopupText=Trim(Dialog("text:=Microsoft Internet
Explorer").Static("text:=From Date cannot be greater than To Date").GetROProperty("text"))
If PopupText="From Date cannot be greater than To Date" ThenReporter.ReportEvent micPass,"Verify the pop up
with message 'Please Select To Date'","Pop up with message 'Please Select To Date' is displayed"
ElseReporter.ReportEvent micFail,"Verify the pop up
with message 'Please Select To Date'","Pop up with message 'Please Select To Date' is not displayed"
Environment.Value("Execution_Log")="False"Call captureScreenshot()
End IfEnd IfDialog("text:=Microsoft Internet Explorer").WinButton("text:=OK"
).ClickIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Provide From Date greater than To and click on Search","A pop up message should be displayed saying 'From Date cannot be greater than To date'"
ElseReporter.ReportEvent micFail,"Step 3: Provide Fr
om Date greater than To and click on Search","A pop up message is not displayedsaying 'From Date cannot be greater than To date'"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Event Creation Se
arch","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsEventCreation_TC15()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
8/7/2019 ADRCA_ReportsEventCreation
23/58
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page opened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call select_Combo_Value ("CorporateActions","Reports - Event Cre
ation Search","DateRange",DataTable.Value("EcDateRange","EventCreation"))
Call pageCheck_ImageOR("CorporateActions","Reports - Event Creation Search","ShowCalendar;ShowCalendar_2")If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select 'Creation Date' from Date Range dropdown","Corresponding calendar buttons for the 'From' and 'To' fields should be displayed"
ElseReporter.ReportEvent micFail,"Step 2: Select 'Cr
eation Date' from Date Range dropdown","Corresponding calendar buttons for the 'From' and 'To' fields should be displayed"
Environment.Value("TestCase_Log")="True"End If
'Step #3If DataTable.Value("EcFrom","EventCreation") "" Then
strDataTableValue = DataTable.Value("EcFrom","EventCreation")
strValue = Split(strDataTableValue,";",-1,1)strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)Call click_Image("CorporateActions","Reports - E
vent Creation Search","ShowCalendar")Call ClickIcon_SetDate("CorporateActions","Repor
ts - Event Creation Search",strMonthValue,strYearValue,strDateValue)End If
If DataTable.Value("EcTo","EventCreation") "" ThenstrDataTableValue = DataTable.Value("EcTo","Even
tCreation")strValue = Split(strDataTableValue,";",-1,1)strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)Call click_Image("CorporateActions","Reports - E
vent Creation Search","ShowCalendar_2")Call ClickIcon_SetDate("CorporateActions","Repor
ts - Event Creation Search",strMonthValue,strYearValue,strDateValue)
End IfblnFrom=Trim(Browser("CorporateActions").Page("Reports - Event C
reation Search").WebEdit("FromDate").GetROProperty("value"))
8/7/2019 ADRCA_ReportsEventCreation
24/58
blnTo=Trim(Browser("CorporateActions").Page("Reports - Event Creation Search").WebEdit("ToDate").GetROProperty("value"))
If blnFrom "" And blnTo "" ThenReporter.ReportEvent micPass,"Verify the 'From'
and 'To' Fields are populated or not","'From' and 'To' fields are populated"Else
Reporter.ReportEvent micFail,"Verify the 'From'
and 'To' Fields are populated or not","'From' and 'To' fields are not populated"Environment.Value("Execution_Log")="False"Call captureScreenshot()
End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Provide From Date and To Date","Corresponding Dates should be populated in Date fields"
ElseReporter.ReportEvent micFail,"Step 3: Provide Fr
om Date and To Date","Corresponding Dates should be populated in Date fields"Environment.Value("TestCase_Log")="True"
End If
'Step #4Call select_Combo_Value ("CorporateActions","Reports - Event Cre
ation Search","DateRange","All")Wait(5)blnFromCheck=Browser("CorporateActions").Page("Reports - Event C
reation Search").Image("ShowCalendar").GetROProperty("disabled")blnToCheck=Browser("CorporateActions").Page("Reports - Event Cre
ation Search").Image("ShowCalendar_2").GetROProperty("disabled")If blnFromCheck="" And blnToCheck="" Then
Reporter.ReportEvent micPass,"Verify the Calendar icons are disappeared or not","Calendar icons are disappeared successfully"
Else
Reporter.ReportEvent micFail,"Verify the Calendar icons are disappeared or not","Calendar icons are not disappeared successfully"
Environment.Value("Execution_Log")="False"Call captureScreenshot()
End IfblnFrom=Trim(Browser("CorporateActions").Page("Reports - Event C
reation Search").WebEdit("FromDate").GetROProperty("value"))blnTo=Trim(Browser("CorporateActions").Page("Reports - Event Cre
ation Search").WebEdit("ToDate").GetROProperty("value"))If blnFrom ="" And blnTo="" Then
Reporter.ReportEvent micPass,"Verify the 'From'and 'To' Fields are clreared or not","'From' and 'To' fields are cleared"
ElseReporter.ReportEvent micFail,"Verify the 'From'
and 'To' Fields are clreared or not","'From' and 'To' fields are not cleared"Environment.Value("Execution_Log")="False"Call captureScreenshot()
End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Now select'All' from Date Range dropdown","Calendar icons and date fields are cleared"
ElseReporter.ReportEvent micFail,"Step 4: Now select
'All' from Date Range dropdown","Calendar icons and date fields are not cleared
"Environment.Value("TestCase_Log")="True"
End If
8/7/2019 ADRCA_ReportsEventCreation
25/58
Call select_Menu("CorporateActions","Reports - Event Creation Search","HOME;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsEventCreation_TC16()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page opened successfully"Else
Reporter.ReportEvent micFail,"Step 1: Under Reports menu select Event Creation.","Reports - Event Creation Search page not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call ReadallValuesWebList("CorporateActions","Reports - Event Cr
eation Search","EventStatus","EventStatusOptions","EventCreation")If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Verify theitem list under Event Status Combo box","All the items are displayed correctlyin the 'Event Status' weblist"
ElseReporter.ReportEvent micFail,"Step 2: Verify the
item list under Event Status Combo box","All the items are not displayed correctly in the 'Event Status' weblist"
Environment.Value("TestCase_Log")="True"End If
'Step #3Call CAReportsEvtCreationSearchCriteria("CorporateActions","Repo
rts - Event Creation Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Event
Creation Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Event Creation
Results","EventCreation","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","R
eports - Event Creation Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev
ent Creation Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
ElseReporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
8/7/2019 ADRCA_ReportsEventCreation
26/58
Environment.Value("Execution_Log")="False"Call captureScreenshot()
End IfCall chkReportHeader("CorporateActions","Reports - Event Creatio
n Results","Event_Creation")Call chkReportValues("CorporateActions","Reports - Event Creatio
n Results","Item","Event Status",DataTable.Value("EcEventStatus","EventCreation"
))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Select 'Approved' item from Event Status and click on search","Event Creation report is generated as per the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 3: Select 'A
pproved' item from Event Status and click on search","Event Creation report is not generated as per the search criteria entered"
Environment.Value("TestCase_Log")="True"End If
'Step #4Call SelectCAEventNameInReport("CorporateActions","Reports - Event Creation Results","Item",DataTable.Value("SelectEventName","EventCreation"))
strUndelyingPage=Trim(Browser("CorporateActions").Page("Underlying Event").WebElement("UnderlyingEvent").GetROProperty("innertext"))
If strUndelyingPage="Underlying Event" ThenReporter.ReportEvent micPass,"Verify the Undelty
ing Event Page is displayed or not","Underlying Event page is displayed successfully"
ElseReporter.ReportEvent micFail,"Verify the Undelty
ing Event Page is displayed or not","Underlying Event page is not displayed successfully"
Environment.Value("Execution_Log")="False"Call captureScreenshot()
End IfIf Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Under 'Event Name' click on any link","Underlying Event page is not displayed successfully"
ElseReporter.ReportEvent micFail,"Step 4: Under 'Eve
nt Name' click on any link","Underlying Event page is not displayed successfully"
Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Underlying Event","HOME;DR
Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsEventCreation_TC17()
Environment.Value("TestCase_Log")="True"
8/7/2019 ADRCA_ReportsEventCreation
27/58
Call click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Event Creation.","Reports - Event Creation Search page opened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call CAReportsEvtCreationSearchCriteria("CorporateActions","Repo
rts - Event Creation Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - EventCreation Results").WebElement("TimeStamp"))
Call chkReportLinks("CorporateActions","Reports - Event CreationResults","EventCreation","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports - Event Creation Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Event Creation Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
ElseReporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"Environment.Value("Execution_Log")="False"Call captureScreenshot()
End IfCall chkReportHeader("CorporateActions","Reports - Event Creatio
n Results","Event_Creation")Call chkReportValues("CorporateActions","Reports - Event Creatio
n Results","Item","Event Status",DataTable.Value("EcEventStatus","EventCreation"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Select 'C
ancelled' item from Event Status and click on search","Event Creation report isgenerated as per the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 2: Select 'C
ancelled' item from Event Status and click on search","Event Creation report isnot generated as per the search criteria entered"
Environment.Value("TestCase_Log")="True"End If
'Step #3Call SelectCAEventNameInReport("CorporateActions","Reports - Eve
nt Creation Results","Item",DataTable.Value("SelectEventName","EventCreation"))
strUndelyingPage=Trim(Browser("CorporateActions").Page("Underlying Event").WebElement("UnderlyingEvent").GetROProperty("innertext"))
8/7/2019 ADRCA_ReportsEventCreation
28/58
strProcess=Trim(Browser("CorporateActions").Page("Underlying Event").WebEdit("ProcessingStatus").GetROProperty("value"))
If strUndelyingPage="Underlying Event" And strProcess=DataTable.Value("EcEventStatus","EventCreation") Then
Reporter.ReportEvent micPass,"Verify the Undeltying Event Page is displayed or not","Underlying Event page is displayed successfully with event status as " & DataTable.Value("EcEventStatus","E
ventCreation")Else
Reporter.ReportEvent micFail,"Verify the Undeltying Event Page is displayed or not","Underlying Event page is not displayed successfully with event status as " & DataTable.Value("EcEventStatus","EventCreation")
Environment.Value("Execution_Log")="False"
Call captureScreenshot()End IfIf Environment.Value("TestCase_Log")="True" The
n
Reporter.ReportEvent micPass,"Step 3: Under 'Event Name' click on any link","Underlying Event page is displayedsuccessfully with Event status as " & DataTable.Value("EcEventStatus","EventCreation")
ElseReporter.ReportEvent micFail,"St
ep 3: Under 'Event Name' click on any link","Underlying Event page is not displayed successfully with Event Status as " & DataTable.Value("EcEventStatus","EventCreation")
Environment.Value("TestCase_Log")="True"
End IfCall select_Menu("CorporateActio
ns","Underlying Event","HOME;DR Home")End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsEventCreation_TC18()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Event Creation.","Reports - Event Creation Search page opened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page not opened successfully"
Environment.Value("TestCase_Log")="True"End If
8/7/2019 ADRCA_ReportsEventCreation
29/58
'Step #2Call CAReportsEvtCreationSearchCriteria("CorporateActions","Repo
rts - Event Creation Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Event
Creation Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Event Creation
Results","EventCreation","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports - Event Creation Results")
DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Event Creation Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
Call captureScreenshot()End IfCall chkReportHeader("CorporateActions","Reports - Event Creatio
n Results","Event_Creation")Call chkReportValues("CorporateActions","Reports - Event Creatio
n Results","Item","Event Status",DataTable.Value("EcEventStatus","EventCreation"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Select 'N
o Action Needed' item from Event Status and click on search","Event Creation report is generated as per the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 2: Select 'N
o Action Needed' item from Event Status and click on search","Event Creation report is not generated as per the search criteria entered"
Environment.Value("TestCase_Log")="True"End If
'Step #3Call SelectCAEventNameInReport("CorporateActions","Reports - Eve
nt Creation Results","Item",DataTable.Value("SelectEventName","EventCreation"))strUndelyingPage=Trim(Browser("CorporateActions").Page("Underlyi
ng Event").WebElement("UnderlyingEvent").GetROProperty("innertext"))strProcess=Trim(Browser("CorporateActions").Page("Underlying Eve
nt").WebEdit("ProcessingStatus").GetROProperty("value"))If strUndelyingPage="Underlying Event" And strPr
ocess=DataTable.Value("EcEventStatus","EventCreation") ThenReporter.ReportEvent micPass,"Ve
rify the Undeltying Event Page is displayed or not","Underlying Event page is displayed successfully with event status as " & DataTable.Value("EcEventStatus","EventCreation")
ElseReporter.ReportEvent micFail,"Ve
rify the Undeltying Event Page is displayed or not","Underlying Event page is not displayed successfully with event status as " & DataTable.Value("EcEventStatus","EventCreation")
Environment.Value("Execution_Log")="False"
Call captureScreenshot()End IfIf Environment.Value("TestCase_Log")="True" The
8/7/2019 ADRCA_ReportsEventCreation
30/58
nReporter.ReportEvent micPass,"St
ep 3: Under 'Event Name' click on any link","Underlying Event page is displayedsuccessfully with Event status as " & DataTable.Value("EcEventStatus","EventCreation")
ElseReporter.ReportEvent micFail,"St
ep 3: Under 'Event Name' click on any link","Underlying Event page is not displayed successfully with Event Status as " & DataTable.Value("EcEventStatus","EventCreation")
Environment.Value("TestCase_Log")="True"
End IfCall select_Menu("CorporateActions","Underlying Event","HOME;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsEventCreation_TC19()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page opened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call CAReportsEvtCreationSearchCriteria("CorporateActions","Repo
rts - Event Creation Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Event
Creation Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Event Creation
Results","EventCreation","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","R
eports - Event Creation Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev
ent Creation Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"
8/7/2019 ADRCA_ReportsEventCreation
31/58
Call captureScreenshot()End IfCall chkReportHeader("CorporateActions","Reports - Event Creatio
n Results","Event_Creation")Call chkReportValues("CorporateActions","Reports - Event Creatio
n Results","Item","Event Status",DataTable.Value("EcEventStatus","EventCreation"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Select 'P
ending' item from Event Status and click on search","Event Creation report is generated as per the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 2: Select 'P
ending' item from Event Status and click on search","Event Creation report is not generated as per the search criteria entered"
Environment.Value("TestCase_Log")="True"End If
'Step #3
Call SelectCAEventNameInReport("CorporateActions","Reports - Event Creation Results","Item",DataTable.Value("SelectEventName","EventCreation"))strUndelyingPage=Trim(Browser("CorporateActions").Page("Underlyi
ng Event").WebElement("UnderlyingEvent").GetROProperty("innertext"))strProcess=Trim(Browser("CorporateActions").Page("Underlying Eve
nt").WebEdit("ProcessingStatus").GetROProperty("value"))If strUndelyingPage="Underlying Event" And strPr
ocess=DataTable.Value("EcEventStatus","EventCreation") ThenReporter.ReportEvent micPass,"Ve
rify the Undeltying Event Page is displayed or not","Underlying Event page is displayed successfully with event status as " & DataTable.Value("EcEventStatus","EventCreation")
Else
Reporter.ReportEvent micFail,"Verify the Undeltying Event Page is displayed or not","Underlying Event page is not displayed successfully with event status as " & DataTable.Value("EcEventStatus","EventCreation")
Environment.Value("Execution_Log")="False"
Call captureScreenshot()End IfIf Environment.Value("TestCase_Log")="True" The
nReporter.ReportEvent micPass,"St
ep 3: Under 'Event Name' click on any link","Underlying Event page is displayedsuccessfully with Event status as " & DataTable.Value("EcEventStatus","EventCreation")
ElseReporter.ReportEvent micFail,"St
ep 3: Under 'Event Name' click on any link","Underlying Event page is not displayed successfully with Event Status as " & DataTable.Value("EcEventStatus","EventCreation")
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("CorporateActions","Underlying Event","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8/7/2019 ADRCA_ReportsEventCreation
32/58
+++++
Public Function CAReportsEventCreation_TC20()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Event Creation.","Reports - Event Creation Search page opened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call CAReportsEvtCreationSearchCriteria("CorporateActions","Repo
rts - Event Creation Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Event
Creation Results").WebElement("TimeStamp"))intRowCount=Browser("CorporateActions").Page("Reports - Event Cr
eation Results").WebTable("Item").RowCountIf intRowCount=1 Then
Reporter.ReportEvent micFail,"Verify the reporttable is displayed with records or not","No records are displayed in the report
table so unable to proceed further execution"Environment.Value("Execution_Log")="False"Call captureScreenshot()Call select_Menu("CorporateActions","Reports - E
vent Creation Results","Home;DR Home")Exit Function
End IfCall chkReportLinks("CorporateActions","Reports - Event Creation
Results","EventCreation","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","R
eports - Event Creation Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev
ent Creation Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"Call captureScreenshot()
End IfCall chkReportHeader("CorporateActions","Reports - Event Creatio
n Results","Event_Creation")
Call chkReportValues("CorporateActions","Reports - Event Creation Results","Item","Event Status",DataTable.Value("EcEventStatus","EventCreation"))
8/7/2019 ADRCA_ReportsEventCreation
33/58
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Select 'R
ejected' item from Event Status and click on search","Event Creation report is generated as per the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 2: Select 'R
ejected' item from Event Status and click on search","Event Creation report is n
ot generated as per the search criteria entered"Environment.Value("TestCase_Log")="True"
End If
'Step #3Call SelectCAEventNameInReport("CorporateActions","Reports - Eve
nt Creation Results","Item",DataTable.Value("SelectEventName","EventCreation"))strUndelyingPage=Trim(Browser("CorporateActions").Page("Underlyi
ng Event").WebElement("UnderlyingEvent").GetROProperty("innertext"))strProcess=Trim(Browser("CorporateActions").Page("Underlying Eve
nt").WebEdit("ProcessingStatus").GetROProperty("value"))If strUndelyingPage="Underlying Event" And strPr
ocess=DataTable.Value("EcEventStatus","EventCreation") ThenReporter.ReportEvent micPass,"Verify the Undeltying Event Page is displayed or not","Underlying Event page is displayed successfully with event status as " & DataTable.Value("EcEventStatus","EventCreation")
ElseReporter.ReportEvent micFail,"Ve
rify the Undeltying Event Page is displayed or not","Underlying Event page is not displayed successfully with event status as " & DataTable.Value("EcEventStatus","EventCreation")
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End IfIf Environment.Value("TestCase_Log")="True" The
nReporter.ReportEvent micPass,"St
ep 3: Under 'Event Name' click on any link","Underlying Event page is displayedsuccessfully with Event status as " & DataTable.Value("EcEventStatus","EventCreation")
ElseReporter.ReportEvent micFail,"St
ep 3: Under 'Event Name' click on any link","Underlying Event page is not displayed successfully with Event Status as " & DataTable.Value("EcEventStatus","EventCreation")
Environment.Value("TestCase_Log")="True"
End IfCall select_Menu("CorporateActions","Underlying Event","HOME;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsEventCreation_TC21()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
8/7/2019 ADRCA_ReportsEventCreation
34/58
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page opened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call CAReportsEvtCreationSearchCriteria("CorporateActions","Repo
rts - Event Creation Search")
Call fnc_wait(Browser("CorporateActions").Page("Reports - EventCreation Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Event Creation
Results","EventCreation","ReportLinks")Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","R
eports - Event Creation Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev
ent Creation Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"Else
Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")="False"Call captureScreenshot()
End IfCall chkReportHeader("CorporateActions","Reports - Event Creatio
n Results","Event_Creation")Call chkReportValues("CorporateActions","Reports - Event Creatio
n Results","Item","Event Status",DataTable.Value("EcEventStatus","EventCreation"))
If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Select 'U
napproved' item from Event Status and click on search","Event Creation report isgenerated as per the search criteria entered"
ElseReporter.ReportEvent micFail,"Step 2: Select 'U
napproved' item from Event Status and click on search","Event Creation report isnot generated as per the search criteria entered"
Environment.Value("TestCase_Log")="True"End If
'Step #3Call SelectCAEventNameInReport("CorporateActions","Reports - Eve
nt Creation Results","Item",DataTable.Value("SelectEventName","EventCreation"))strUndelyingPage=Trim(Browser("CorporateActions").Page("Underlyi
ng Event").WebElement("UnderlyingEvent").GetROProperty("innertext"))strProcess=Trim(Browser("CorporateActions").Page("Underlying Eve
nt").WebEdit("ProcessingStatus").GetROProperty("value"))
8/7/2019 ADRCA_ReportsEventCreation
35/58
If strUndelyingPage="Underlying Event" And strProcess=DataTable.Value("EcEventStatus","EventCreation") Then
Reporter.ReportEvent micPass,"Verify the Undeltying Event Page is displayed or not","Underlying Event page is displayed successfully with event status as " & DataTable.Value("EcEventStatus","EventCreation")
Else
Reporter.ReportEvent micFail,"Verify the Undeltying Event Page is displayed or not","Underlying Event page is not displayed successfully with event status as " & DataTable.Value("EcEventStatus","EventCreation")
Environment.Value("Execution_Log")="False"
Call captureScreenshot()End IfIf Environment.Value("TestCase_Log")="True" The
nReporter.ReportEvent micPass,"St
ep 3: Under 'Event Name' click on any link","Underlying Event page is displayed
successfully with Event status as " & DataTable.Value("EcEventStatus","EventCreation")Else
Reporter.ReportEvent micFail,"Step 3: Under 'Event Name' click on any link","Underlying Event page is not displayed successfully with Event Status as " & DataTable.Value("EcEventStatus","EventCreation")
Environment.Value("TestCase_Log")="True"
End IfCall select_Menu("CorporateActions","Underlying Event","HOME;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAReportsEventCreation_TC22()
Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","EventCreation"))If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Event Creation.","Reports - Event Creation Search page opened successfully"
ElseReporter.ReportEvent micFail,"Step 1: Under Repo
rts menu select Event Creation.","Reports - Event Creation Search page not opened successfully"
Environment.Value("TestCase_Log")="True"End If
'Step #2Call ReadallValuesWebList("CorporateActions","Reports - Event Cr
8/7/2019 ADRCA_ReportsEventCreation
36/58
eation Search","Owner","OwnerOptions","EventCreation")If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Verify theitem list under Owner Combo box","All the items are displayed correctly in the'Owner' weblist"
ElseReporter.ReportEvent micFail,"Step 2: Verify the
item list under Owner Combo box","All the items are not displayed correctly inthe 'Owner' weblist"
Environment.Value("TestCase_Log")="True"End If
'Step #3Call CAReportsEvtCreationSearchCriteria("CorporateActions","Repo
rts - Event Creation Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Event
Creation Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Event Creation
Results","EventCreation","ReportLinks")
Call chkCAReportsEvtCreationSearchCriteria("CorporateActions","Reports - Event Creation Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev
ent Creation Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))
If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfu