ADRCA_ReportsEventSearch

download ADRCA_ReportsEventSearch

of 76

Transcript of ADRCA_ReportsEventSearch

  • 8/7/2019 ADRCA_ReportsEventSearch

    1/76

    '=========================================================================================================' Name of the Script : Corporate Actions Reports Event Search' Scope of the Script : This test script covers 36 test cases related to th

    e CA reports --> Event Search' Author : Mohan Gummadi' Description : Corporate Actions Reports Event Search' Date and / or Version : 13-11-2008,version 1.0'===========================================================================================================

    Sub CAReportsEventSearch()

    '****Declaration of Environmental Variable

    Environment.Value("Execution_Log")= "True"

    '''''''''Test case countConst TC_COUNT = 36

    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 "EventSearch"DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls

    ","EventSearch","EventSearch"DataTable.AddSheet "ReportHeader"DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls

    ","ReportHeader","ReportHeader"DataTable.AddSheet "HomePageVerification"DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls

    ","HomePageVerification","HomePageVerification"Environment.Value("strSheetName")="EventSearch"

    ' 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 page

  • 8/7/2019 ADRCA_ReportsEventSearch

    2/76

    DataTable.GetSheet("CALogin").SetCurrentRow(1)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

    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")=1DataTable.GetSheet("EventSearch").SetCurrentRow(Environment.Value("DATATABLE_ROW"))

    '***************************************** TC Driver Strat *******************************************************

    For intTCCount = 1 to TC_COUNT

    Environment.Value("Execution_Log") = "True"If DataTable("TestRunFlag","EventSearch")="Y" Th

    en ''If run flag is Y in test data tableReporter.ReportEvent micDone,"######## BEGIN TEST CASE - '"

    & DataTable("TestCaseID","EventSearch") & "' ########### ","Execution of Test Case '" & DataTable("TestCaseDesc","EventSearch") & "' Started"

    strFuncName = "CAReportsEventSearch_TC" & intTCCount & "()" ''Formation of function name

    ''Call FunctionExecute "Call " & strFuncNameIf Environment.Value("Execution

    _Log") = "True"ThenCall Execution_l

    og("",Datatable.Value("TestCaseID", "EventSearch"), Datatable.Value("TestCaseDesc", "EventSearch"), "PASS")

    ElseCall Execution_l

    og("",Datatable.Value("TestCaseID", "EventSearch"), Datatable.Value("TestCaseDesc", "EventSearch"), "FAIL")

    End IfReporter.ReportE

    vent micDone,"######### END OF TEST CASE - '" & DataTable("TestCaseID","EventSearch") & "###########","The Test Case Execution Completed"

    End IfstrPrevious=Trim(DataTable.Value("TestCaseID","E

    ventSearch"))''Increment the test data table rowEnvironment.Value("DATATABLE_ROW") = Environment

    .Value("DATATABLE_ROW") + 1

    DataTable.GetSheet("EventSearch").SetCurrentRow(Environment.Value("DATATABLE_ROW"))

    strNext=Trim(DataTable.Value("TestCaseID","Event

  • 8/7/2019 ADRCA_ReportsEventSearch

    3/76

    Search"))While strPrevious = strNext

    Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW") + 1

    DataTable.GetSheet("EventSearch").SetCurrentRow(Environment.Value("DATATABLE_ROW"))

    strNext=Trim(DataTable.Value("Te

    stCaseID","EventSearch"))Wend

    NextCall logoutfromApp("CorporateActions","Depositary Receipt Divisi

    on's")

    '***************************************** TC Driver End *******************************************************

    End Sub

    '**********************************************Test Case 1 to Test Case 36**************************************************

    Public Function CAReportsEventSearch_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 to DR Home page after successful login.","Successfully verified the links - " & DataTable.Value("HomePageLinks","HomePageVerification")

    ElseReporter.ReportEvent micFail,"Step 1: Navigate t

    o DR Home page after successful login.","The links - '" & DataTable.Value("HomePageLinks","HomePageVerification") & "' are not displayed"

    Environment.Value("TestCase_Log")="True"End If

    'Step #2Call click_WebElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")Call chkMFCAHomePage("CorporateActions","CorporateActions",DataT

    able.Value("MenuName","HomePageVerification"),Environment.Value("NormalUser"))Call chkCAPage("CorporateActions","CorporateActions",DataTable.V

    alue("MenuName","HomePageVerification"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 2: Click on Corporate 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

  • 8/7/2019 ADRCA_ReportsEventSearch

    4/76

    'Step #3Call select_Menu("CorporateActions","CorporateActions",DataTable

    .Value("MenuPath","EventSearch"))Call pageCheck_WebEditOR("CorporateActions","Reports - Events Se

    arch","EventName;UnderlyingISIN;UnderlyingSEDOL;FromDate;ToDate;SenderName;SenderBIC;UnderlyingSecurityName")

    Call pageCheck_WebListOR("CorporateActions","Reports - Events Se

    arch","DateRange;SenderType;Exception;EventStatus;CountryOfUnderlyingISIN;OrgRegion;CorporateActionType;Owner;RMNY;RMLocal")

    Call pageCheck_Image("CorporateActions","Reports - Events Search","Search;Clear","")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: Under Repo

    rts menu select Events Search.","Expected fields are displayed in search criteria"

    ElseReporter.ReportEvent micFail,"Step 3: Under Repo

    rts menu select Events Search","Expected fields are not displayed in search criteria"

    Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Events Search","H

    OME;DR Home")

    End Function

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

    Public Function CAReportsEventSearch_TC2()

    Environment.Value("TestCase_Log")="True"

    Call click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")

    'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable

    .Value("MenuPath","EventSearch"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Event Events Search.","Reports - Events Search Search page opened successfully"

    ElseReporter.ReportEvent micFail,"Step 1: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page not openedsuccessfully"

    Environment.Value("TestCase_Log")="True"End If

    'Step # 2Call CAReportsEventSearchInputCriteria("CorporateActions","Repor

    ts - Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Events

    Search Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Events Search

    Results","EventSearch","ReportLinks")Call chkCAReportsEventsSearchCriteria("CorporateActions","Report

    s - Events Search Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev

    ents Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro

  • 8/7/2019 ADRCA_ReportsEventSearch

    5/76

    perty("outertext"))If DateTimetext"" Then

    Reporter.ReportEvent micPass,"Verify the Date and 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"

    Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End IfCall chkReportHeader("CorporateActions","Reports - Events Search

    Results","EventSearch")Call chkReportValues("CorporateActions","Reports - Events Search

    Results","Item","Underlying Security Name",DataTable.Value("UnderlyingSecurityName","EventSearch"))

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Enter a v

    alue for the 'Underlying Security Name' field and click on search","Events Searc

    h Report generated related to the search criteria entered"ElseReporter.ReportEvent micFail,"Step 2: Enter a v

    alue for the 'Underlying Security Name' field and click on search","Events Search Report not generated related to the search criteria entered"

    Environment.Value("TestCase_Log")="True"End If

    Call select_Menu("CorporateActions","Reports - Events Search Results","HOME;DR Home")

    End Function

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

    Public Function CAReportsEventSearch_TC3()

    Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")

    'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable

    .Value("MenuPath","EventSearch"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Events Search.","Reports - Events Search Search page opened successfully"

    ElseReporter.ReportEvent micFail,"Step 1: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page not openedsuccessfully"

    Environment.Value("TestCase_Log")="True"End If

    'Step #2intMaxLength=Browser("CorporateActions").Page("Reports - Events

    Search").WebEdit("UnderlyingISIN").GetROProperty("max length")If intMaxLength=12 Then

    Reporter.ReportEvent micPass,"Verify the maximum length

  • 8/7/2019 ADRCA_ReportsEventSearch

    6/76

    of UnderlyingISIN field","Underlying ISIN field accepts 12 characters"ElseReporter.ReportEvent micFail,"Verify the maximum length

    of UnderlyingISIN field","Underlying ISIN field not accepts 12 characters"Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End IfIf Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 2: Check if the 'ISIN' field accepts all the 12 characters","The 'ISIN' field should accept all the 12 characters"

    ElseReporter.ReportEvent micFail,"Step 2: Check if t

    he 'ISIN' field accepts all the 12 characters","The 'ISIN' field should not accept all the 12 characters"

    Environment.Value("TestCase_Log")="True"End If

    'Step # 3Call CAReportsEventSearchInputCriteria("CorporateActions","Reports - Events Search")

    Call fnc_wait(Browser("CorporateActions").Page("Reports - EventsSearch Results").WebElement("TimeStamp"))

    Call chkReportLinks("CorporateActions","Reports - Events SearchResults","EventSearch","ReportLinks")

    Call chkCAReportsEventsSearchCriteria("CorporateActions","Reports - Events Search Results")

    DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Events Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

    If DateTimetext"" Then

    Reporter.ReportEvent micPass,"Verify the Date and 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"Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End IfCall chkReportHeader("CorporateActions","Reports - Events Search

    Results","EventSearch")Call chkReportValues("CorporateActions","Reports - Events Search

    Results","Item","ISIN",DataTable.Value("UnderlyingISIN","EventSearch"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 3: Enter a value for the 'Underlying ISIN' field and click on search","Events Search Reportgenerated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 3: Enter a v

    alue for the 'Underlying ISIN' field and click on search","Events Search Reportnot generated related to the search criteria entered"

    Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Events Search Res

    ults","HOME;DR Home")

    End Function

  • 8/7/2019 ADRCA_ReportsEventSearch

    7/76

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

    Public Function CAReportsEventSearch_TC4()

    Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")

    'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable

    .Value("MenuPath","EventSearch"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Events Search.","Reports - Events Search Search page opened successfully"

    ElseReporter.ReportEvent micFail,"Step 1: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page not opened

    successfully" Environment.Value("TestCase_Log")="True"End If

    'Step #2intMaxLength=Browser("CorporateActions").Page("Reports - Events

    Search").WebEdit("UnderlyingSEDOL").GetROProperty("max length")If intMaxLength>=7 Then

    Reporter.ReportEvent micPass,"Verify the maximumlength of Underlying SEDOL field","Underlying SEDOL field accepts 7 characters"

    ElseReporter.ReportEvent micFail,"Verify the maximum

    length of Underlying SEDOL field","Underlying SEDOL field not accepts 7 charact

    ers"Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End IfIf Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 2: Check if the 'SEDOL' field accepts at least 7 characters","The 'SEDOL' field should is accepting all the 7 characters"

    ElseReporter.ReportEvent micFail,"Step 2: Check if t

    he 'SEDOL' field accepts at least 7 characters","The 'SEDOL' field should is notaccepting all the 7 characters"

    Environment.Value("TestCase_Log")="True"End If

    'Step # 3Call CAReportsEventSearchInputCriteria("CorporateActions","Repor

    ts - Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Events

    Search Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Events Search

    Results","EventSearch","ReportLinks")Call chkCAReportsEventsSearchCriteria("CorporateActions","Report

    s - Events Search Results")

    DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Events Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

  • 8/7/2019 ADRCA_ReportsEventSearch

    8/76

    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"

    Call captureScreenshot()

    Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End IfCall chkReportHeader("CorporateActions","Reports - Events Search

    Results","EventSearch")Call chkReportValues("CorporateActions","Reports - Events Search

    Results","Item","SEDOL",DataTable.Value("UnderlyingSEDOL","EventSearch"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 3: Enter a value for the 'Underlying SEDOL' field and click on search","Events Search Reportgenerated related to the search criteria entered"

    Else

    Reporter.ReportEvent micFail,"Step 3: Enter a value for the 'Underlying SEDOL' field and click on search","Events Search Reportnot generated related to the search criteria entered"

    Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Events Search Res

    ults","HOME;DR Home")

    End Function

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

    Public Function CAReportsEventSearch_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","EventSearch"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Events Search.","Reports - Events Search Search page opened successfully"

    ElseReporter.ReportEvent micFail,"Step 1: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page not openedsuccessfully"

    Environment.Value("TestCase_Log")="True"End If

    'Step # 2Call CAReportsEventSearchInputCriteria("CorporateActions","Repor

    ts - Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Events

    Search Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Events Search

    Results","EventSearch","ReportLinks")

  • 8/7/2019 ADRCA_ReportsEventSearch

    9/76

    Call chkCAReportsEventsSearchCriteria("CorporateActions","Reports - Events Search Results")

    DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Events Search 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"

    Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End IfCall chkReportHeader("CorporateActions","Reports - Events Search

    Results","EventSearch")Call chkReportValues("CorporateActions","Reports - Events Search

    Results","Item","ISIN",DataTable.Value("UnderlyingISIN","EventSearch"))

    Call chkReportValues("CorporateActions","Reports - Events SearchResults","Item","SEDOL",DataTable.Value("UnderlyingSEDOL","EventSearch"))Call chkReportValues("CorporateActions","Reports - Events Search

    Results","Item","Event Name",DataTable.Value("EventName","EventSearch"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 2: Enter values for Event Name, ISIN and SEDOL, click on search","Events Search Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 2: Enter valu

    es for Event Name, ISIN and SEDOL, click on search","Events Search Report not generated related to the search criteria entered"

    Environment.Value("TestCase_Log")="True"

    End IfCall select_Menu("CorporateActions","Reports - Events Search Res

    ults","HOME;DR Home")

    End Function

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

    Public Function CAReportsEventSearch_TC6()

    Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")

    'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable

    .Value("MenuPath","EventSearch"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Events Search.","Reports - Events Search Search page opened successfully"

    ElseReporter.ReportEvent micFail,"Step 1: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page not opened

    successfully"Environment.Value("TestCase_Log")="True"

    End If

  • 8/7/2019 ADRCA_ReportsEventSearch

    10/76

    'Step # 2strDateDefaultText=Trim(Browser("CorporateActions").Page("Report

    s - Events Search").WebList("DateRange").GetROProperty("selection"))If strDateDefaultText="All" Then

    Reporter.ReportEvent micPass,"Verify the defaultvalue of the Date Range field","Date Range default value 'All' is displayed"

    ElseReporter.ReportEvent micFail,"Verify the default

    value of the Date Range field","Date Range default value 'All' is not displayed"

    Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End IfIf Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 2: Verify thedefault value of the 'Date Range' field.","The default value of Date Range field 'All' is displayed"

    Else Reporter.ReportEvent micFail,"Step 2: Verify thedefault value of the 'Date Range' field.","The default value of Date Range field 'All' is not displayed"

    Environment.Value("TestCase_Log")="True"End If

    'Step #3Call select_Combo_Value ("CorporateActions","Reports - Events Se

    arch","DateRange","Received Date")Call pageCheck_ImageOR("CorporateActions","Reports - Events Sear

    ch","ShowCalendar;ShowCalendar_2")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 3: Select 'Received Date' from 'Date Range'","Corresponding calendar buttons are displayed"

    ElseReporter.ReportEvent micFail,"Step 3: Select 'R

    eceived Date' from 'Date Range'","Corresponding calendar buttons are not displayed"

    Environment.Value("TestCase_Log")="True"End If

    'Step #4Call CAReportsEventSearchInputCriteria("CorporateActions","Repor

    ts - Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Events

    Search Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Events Search

    Results","EventSearch","ReportLinks")Call chkCAReportsEventsSearchCriteria("CorporateActions","Report

    s - Events Search Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev

    ents Search 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"

    Call captureScreenshot()

  • 8/7/2019 ADRCA_ReportsEventSearch

    11/76

    Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End IfCall chkReportHeader("CorporateActions","Reports - Events Search

    Results","EventSearch")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 4: Do not sel

    ect any dates and click on search","Events Search Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 4: Do not sel

    ect any dates and click on search","Events Search Report not generated related to the search criteria entered"

    Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Events Search Res

    ults","HOME;DR Home")

    End Function

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

    Public Function CAReportsEventSearch_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","EventSearch"))

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page opened successfully"

    ElseReporter.ReportEvent micFail,"Step 1: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page not openedsuccessfully"

    Environment.Value("TestCase_Log")="True"End If

    'Step #2Call select_Combo_Value ("CorporateActions","Reports - Events Se

    arch","DateRange","Event Date")Call pageCheck_ImageOR("CorporateActions","Reports - Events Sear

    ch","ShowCalendar;ShowCalendar_2")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 2: Select 'Event Date' from 'Date Range'","Corresponding calendar buttons are displayed"

    ElseReporter.ReportEvent micFail,"Step 2: Select 'E

    vent Date' from 'Date Range'","Corresponding calendar buttons are not displayed"

    Environment.Value("TestCase_Log")="True"End If

    'Step #3Call CAReportsEventSearchInputCriteria("CorporateActions","Repor

  • 8/7/2019 ADRCA_ReportsEventSearch

    12/76

    ts - Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Events

    Search Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Events Search

    Results","EventSearch","ReportLinks")Call chkCAReportsEventsSearchCriteria("CorporateActions","Report

    s - Events Search Results")

    DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Events Search 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"

    Call captureScreenshot()Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")= "False"

    End IfCall chkReportHeader("CorporateActions","Reports - Events SearchResults","EventSearch")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: Select 'Fr

    om' Date and click on Search","Events Search Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 3: Select 'Fr

    om' Date and click on Search","Events Search Report not generated related to thesearch criteria entered"

    Environment.Value("TestCase_Log")="True"End If

    'Step #4strFinalDate=SearchCriteriaDateFormat(DataTable.Value("FromDate"

    ,"EventSearch"))Call DateComparision("CorporateActions","Reports - Events Search

    Results","Item","Event Date",DataTable.Value("FromDate","EventSearch"),"GreaterThan")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 4: In the Res

    ults displayed, check the values in the 'Event Date' column","The values in the'Event Date' column are greater than or equal to the "&DataTable.Value("FromDate","EventSearch")

    ElseReporter.ReportEvent micPass,"Step 4: In the Res

    ults displayed, check the values in the 'Event Date' column","The values in the'Event Date' column are not greater than or equal to the "&DataTable.Value("FromDate","EventSearch")

    Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Events Search Res

    ults","HOME;DR Home")

    End Function

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

  • 8/7/2019 ADRCA_ReportsEventSearch

    13/76

    Public Function CAReportsEventSearch_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","EventSearch"))

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page opened successfully"

    ElseReporter.ReportEvent micFail,"Step 1: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page not openedsuccessfully"

    Environment.Value("TestCase_Log")="True"End If

    'Step #2Call select_Combo_Value ("CorporateActions","Reports - Events Se

    arch","DateRange","Event Date")Call pageCheck_ImageOR("CorporateActions","Reports - Events Sear

    ch","ShowCalendar;ShowCalendar_2")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 2: Select 'Event Date' from 'Date Range'","Corresponding calendar buttons are displayed"

    ElseReporter.ReportEvent micFail,"Step 2: Select 'E

    vent Date' from 'Date Range'","Corresponding calendar buttons are not displayed"

    Environment.Value("TestCase_Log")="True"End If

    'Step #3Call CAReportsEventSearchInputCriteria("CorporateActions","Reports -

    Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Events Sear

    ch Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Events Search

    Results","EventSearch","ReportLinks")Call chkCAReportsEventsSearchCriteria("CorporateActions","Report

    s - Events Search Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev

    ents Search 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"

    Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End If

    Call chkReportHeader("CorporateActions","Reports - Events SearchResults","EventSearch")

    Call DateComparision("CorporateActions","Reports - Events Search

  • 8/7/2019 ADRCA_ReportsEventSearch

    14/76

    Results","Item","Event Date",DataTable.Value("ToDate","EventSearch"),"LessThan")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: Select 'To

    ' Date and click on Search","Events Search Report generated related to the search criteria entered"

    Else

    Reporter.ReportEvent micFail,"Step 3: Select 'To' Date and click on Search","Events Search Report not generated related to the search criteria entered"

    Environment.Value("TestCase_Log")="True"End If

    Call select_Menu("CorporateActions","Reports - Events Search Results","HOME;DR Home")

    End Function

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

    Public Function CAReportsEventSearch_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","EventSearch"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Events Search.","Reports - Events Search page opened successfull

    y"Else

    Reporter.ReportEvent micFail,"Step 1: Under Reports menu select Events Search.","Reports - Events Search page not opened successfully"

    Environment.Value("TestCase_Log")="True"End If

    'Step #2Call select_Combo_Value ("CorporateActions","Reports - Events Se

    arch","DateRange",DataTable.Value("DateRange","EventSearch"))Call pageCheck_ImageOR("CorporateActions","Reports - Events Sear

    ch","ShowCalendar;ShowCalendar_2")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 2: Select 'Event 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

    Call CAReportsEventSearchInputCriteria("CorporateActions","Reports - Events Search")

    If Dialog("text:=Microsoft Internet Explorer").WinButton("text:=

  • 8/7/2019 ADRCA_ReportsEventSearch

    15/76

    OK").Exist(5) ThenPopupText=Trim(Dialog("text:=Microsoft Internet

    Explorer").Static("text:=From Date can not be greater than To Date").GetROProperty("text"))

    If PopupText="From Date can not be greater thanTo Date" Then

    Reporter.ReportEvent micPass,"Ve

    rify the pop up with message 'From Date can not be greater than To Date'","Pop up with message 'From Date can not be greater than To Date' is displayed"

    ElseReporter.ReportEvent micFail,"Ve

    rify the pop up with message 'From Date can not be greater than To Date'","Pop up with message 'From Date can not be greater than To Date' is not displayed"

    Call captureScreenshot()Environment.Value("Execution_Log

    ")= "False"Environment.Value("TestCase_Log"

    )= "False"End If

    End IfDialog("text:=Microsoft Internet Explorer").WinButton("text:=OK").Click

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: Provide Fr

    om 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 If

    Call select_Menu("CorporateActions","Reports - Events Search","HOME;DR Home")

    End Function

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

    Public Function CAReportsEventSearch_TC10()

    Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")

    'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable

    .Value("MenuPath","EventSearch"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Events Search.","Reports - Events Search Search page opened successfully"

    ElseReporter.ReportEvent micFail,"Step 1: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page not openedsuccessfully"

    Environment.Value("TestCase_Log")="True"

  • 8/7/2019 ADRCA_ReportsEventSearch

    16/76

    End If

    'Step #2Call select_Combo_Value ("CorporateActions","Reports - Events Se

    arch","DateRange","Event Date")Call pageCheck_ImageOR("CorporateActions","Reports - Events Sear

    ch","ShowCalendar;ShowCalendar_2")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Select 'E

    vent Date' from 'Date Range'","Corresponding calendar buttons are displayed"Else

    Reporter.ReportEvent micFail,"Step 2: Select 'Event Date' from 'Date Range'","Corresponding calendar buttons are not displayed"

    Environment.Value("TestCase_Log")="True"End If

    'Step #3If DataTable.Value("FromDate","EventSearch") "" Then

    strDataTableValue = DataTable.Value("FromDate","EventSearch")strValue = Split(strDataTableValue,";",-1,1)strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)Call click_Image("CorporateActions","Reports - E

    vents Search","ShowCalendar")Call ClickIcon_SetDate("CorporateActions","Repor

    ts - Events Search",strMonthValue,strYearValue,strDateValue)End If

    If DataTable.Value("ToDate","EventSearch") "" Then

    strDataTableValue = DataTable.Value("ToDate","EventSearch")

    strValue = Split(strDataTableValue,";",-1,1)strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)Call click_Image("CorporateActions","Reports - E

    vents Search","ShowCalendar_2")Call ClickIcon_SetDate("CorporateActions","Repor

    ts - Events Search",strMonthValue,strYearValue,strDateValue)End IfblnFrom=Trim(Browser("CorporateActions").Page("Reports - Events

    Search").WebEdit("FromDate").GetROProperty("value"))blnTo=Trim(Browser("CorporateActions").Page("Reports - Events Se

    arch").WebEdit("ToDate").GetROProperty("value"))If blnFrom "" And blnTo "" Then

    Reporter.ReportEvent micPass,"Verify the 'From'and 'To' Fields are populated or not","'From' and 'To' fields are populated"

    ElseReporter.ReportEvent micFail,"Verify the 'From'

    and 'To' Fields are populated or not","'From' and 'To' fields are not populated"Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End If

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: Provide Fr

    om Date and To Date","Corresponding Dates should be populated in Date fields"

  • 8/7/2019 ADRCA_ReportsEventSearch

    17/76

    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 #4

    Call select_Combo_Value ("CorporateActions","Reports - Events Search","DateRange","All")

    blnFrom=Trim(Browser("CorporateActions").Page("Reports - Events Search").WebEdit("FromDate").GetROProperty("value"))

    blnTo=Trim(Browser("CorporateActions").Page("Reports - Events Search").WebEdit("ToDate").GetROProperty("value"))

    If blnFrom ="" And blnTo="" ThenReporter.ReportEvent micPass,"Verify the 'From'

    and 'To' Fields are clreared or not","'From' and 'To' fields are cleared"Else

    Reporter.ReportEvent micFail,"Verify the 'From'and 'To' Fields are clreared or not","'From' and 'To' fields are not cleared"

    Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    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

    Call select_Menu("CorporateActions","Reports - Events Search","HOME;DR Home")

    End Function

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

    Public Function CAReportsEventSearch_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","EventSearch"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Events Search.","Reports - Events Search Search page opened successfully"

    ElseReporter.ReportEvent micFail,"Step 1: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page not openedsuccessfully"

    Environment.Value("TestCase_Log")="True"End If

  • 8/7/2019 ADRCA_ReportsEventSearch

    18/76

    'Step #2Call pageCheck_DefaultValue("CorporateActions","Reports - Events 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"

    Else

    Reporter.ReportEvent micFail,"Step 2: Check thedefault value of the Date Range field ","By Default, 'All' should be selected"

    Environment.Value("TestCase_Log")="True"End If

    'Step #3Call ReadallValuesWebList("CorporateActions","Reports - Events S

    earch","DateRange","DateRangeOptions","EventSearch")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 3: Click andVerify for the listed items under the Date Range ","'All, Received 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, Received Date and EventDate' items are not displayed in Date Range dropdown:"

    Environment.Value("TestCase_Log")="True"End If

    'Step #4Call CAReportsEventSearchInputCriteria("CorporateActions","Reports -

    Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Events Sear

    ch Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Events Search

    Results","EventSearch","ReportLinks")Call chkCAReportsEventsSearchCriteria("CorporateActions","Report

    s - Events Search Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev

    ents Search 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"

    Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End IfCall chkReportHeader("CorporateActions","Reports - Events Search

    Results","EventSearch")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 4: Select 'All' Date and click on Search","Events Search Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 4: Select 'Al

    l' Date and click on Search","Events Search Report not generated related to the

    search criteria entered"Environment.Value("TestCase_Log")="True"

    End If

  • 8/7/2019 ADRCA_ReportsEventSearch

    19/76

    Call select_Menu("CorporateActions","Reports - Events Search Results","HOME;DR Home")

    Call click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")

    Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW") + 1

    DataTable.GetSheet("EventSearch").SetCurrentRow(Environment.Value("DATATABLE_ROW"))

    'Step#5Call select_Menu("CorporateActions","CorporateActions",DataTable

    .Value("MenuPath","EventSearch"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 5: Under Reports menu select Events Search ","'Reports- Events Search is displayed"

    ElseReporter.ReportEvent micFail,"Step 5: Click and

    Verify for the listed items under the Date Range ","Reports- Events Search is not displayed"Environment.Value("TestCase_Log")="True"

    End If

    'Step #6Call select_Combo_Value ("CorporateActions","Reports - Events Se

    arch","DateRange","Event Date")Call pageCheck_ImageOR("CorporateActions","Reports - Events Sear

    ch","ShowCalendar;ShowCalendar_2")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 6: Select 'R

    eceived Date' from 'Date Range'","Corresponding calendar buttons are displayed"Else

    Reporter.ReportEvent micFail,"Step 6: Select 'Received Date' from 'Date Range'","Corresponding calendar buttons are not displayed"

    Environment.Value("TestCase_Log")="True"End If

    'Step #7Call FromDateCalendarOperation("CorporateActions","Reports - Eve

    nts Search","ShowCalendar")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 7: Click on the 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 7: 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 #8Browser("CorporateActions").Page("Reports - Events Search").Imag

    e("ShowCalendar").Click

    Browser("CorporateActions").Page("Reports - Events Search").Frame("popCalFrame").Image("Clear Field Value").Click

    FromDate=Trim(Browser("CorporateActions").Page("Reports - Events

  • 8/7/2019 ADRCA_ReportsEventSearch

    20/76

    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"

    Call captureScreenshot()Environment.Value("Execution_Log")="False"

    End If

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 8: 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"

    ElseReporter.ReportEvent micFail,"Step 8: 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 not cleared in the 'From' field"

    Environment.Value("TestCase_Log")="True"End If

    'Step #9Call ToDateCalendarOperation("CorporateActions","Reports - Event

    s Search","ShowCalendar_2")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 9: 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 9: 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 #10Browser("CorporateActions").Page("Reports - Events Search").Imag

    e("ShowCalendar_2").ClickBrowser("CorporateActions").Page("Reports - Events Search").Fram

    e("popCalFrame").Image("Clear Field Value").ClickToDate=Trim(Browser("CorporateActions").Page("Reports - Events S

    earch").WebEdit("ToDate").GetROProperty("value"))If ToDate="" Then

    Reporter.ReportEvent micPass,"Verify the To Datefield is cleared or not","To Date field is cleared"

    ElseReporter.ReportEvent micFail,"Verify the To Date

    field 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" ThenReporter.ReportEvent micPass,"Step 10: Click on

    the calendar icon for the 'To' field and in the calendar pop up click on the 'Cl

    ear Field Value' icon","The current date is cleared in the 'To' field"Else

    Reporter.ReportEvent micFail,"Step 10: Click on

  • 8/7/2019 ADRCA_ReportsEventSearch

    21/76

    the 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 #11Call CAReportsEventSearchInputCriteria("CorporateActions","Repor

    ts - Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Events

    Search Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Events Search

    Results","EventSearch","ReportLinks")Call chkCAReportsEventsSearchCriteria("CorporateActions","Report

    s - Events Search Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev

    ents Search 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"Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End IfCall chkReportHeader("CorporateActions","Reports - Events Search

    Results","EventSearch")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 11: Select From and To Date and click on Search","Events Search Report generated related to t

    he search criteria entered"Else

    Reporter.ReportEvent micFail,"Step 11: Select From and To Date and click on Search","Events Search Report not generated relatedto the search criteria entered"

    Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Events Search Res

    ults","HOME;DR Home")Call click_WebElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")

    Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW") + 1

    DataTable.GetSheet("EventSearch").SetCurrentRow(Environment.Value("DATATABLE_ROW"))

    'Step #12Call select_Menu("CorporateActions","CorporateActions",DataTable

    .Value("MenuPath","EventSearch"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 12: Under Reports menu select Events Search ","'Reports- Events Search is displayed"

    ElseReporter.ReportEvent micFail,"Step 12: Click and

    Verify for the listed items under the Date Range ","Reports- Events Search is n

  • 8/7/2019 ADRCA_ReportsEventSearch

    22/76

    ot displayed"Environment.Value("TestCase_Log")="True"

    End If

    'Step #13Call CAReportsEventSearchInputCriteria("CorporateActions","Repor

    ts - Events Search")

    Call fnc_wait(Browser("CorporateActions").Page("Reports - EventsSearch Results").WebElement("TimeStamp"))

    Call chkReportLinks("CorporateActions","Reports - Events SearchResults","EventSearch","ReportLinks")

    Call chkCAReportsEventsSearchCriteria("CorporateActions","Reports - Events Search Results")

    DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Events Search 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"

    Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End IfCall chkReportHeader("CorporateActions","Reports - Events Search

    Results","EventSearch")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 13: Select From and To Date and click on Search","Events Search Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 13: Select Fr

    om and To Date and click on Search","Events Search Report not generated relatedto the search criteria entered"

    Environment.Value("TestCase_Log")="True"End If

    'Step #14strFromDate=SearchCriteriaDateFormat(DataTable.Value("FromDate",

    "EventSearch"))strToDate=SearchCriteriaDateFormat(DataTable.Value("ToDate","Eve

    ntSearch"))Call DateComparision("CorporateActions","Reports - Events Search

    Results","Item","Event Date",DataTable.Value("FromDate","EventSearch"),"GreaterThan")

    Call DateComparision("CorporateActions","Reports - Events SearchResults","Item","Event Date",DataTable.Value("ToDate","EventSearch"),"LessThan")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 14: In the Re

    sults displayed, check the values in the 'Event Date' column","The values for the 'Event Date' column are in the range"

    ElseReporter.ReportEvent micPass,"Step 14: In the Re

    sults displayed, check the values in the 'Event Date' column","The values for th

    e 'Event Date' column are not in the range"Environment.Value("TestCase_Log")="True"

    End If

  • 8/7/2019 ADRCA_ReportsEventSearch

    23/76

    Call select_Menu("CorporateActions","Reports - Events Search Results","HOME;DR Home")

    End Function

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

    +++++++++++++++++

    Public Function CAReportsEventSearch_TC12()

    Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")

    'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable

    .Value("MenuPath","EventSearch"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Events Search.","Reports - Events Search Search page opened successfully"

    ElseReporter.ReportEvent micFail,"Step 1: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page not openedsuccessfully"

    Environment.Value("TestCase_Log")="True"End If

    'Step #2strSenderDefault=Trim(Browser("CorporateActions").Page("Reports

    - Events Search").WebList("SenderType").GetROProperty("value"))

    If strSenderDefault="All" ThenReporter.ReportEvent micPass,"Verify the default

    value in the 'Sender Type' weblist","Default value'All' is displayed in 'SenderType' weblist"

    ElseReporter.ReportEvent micFail,"Verify the default

    value in the 'Sender Type' weblist","Default value'All' is not displayed in 'Sender Type' weblist"

    End IfIf Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 2: Check thedefault value of the 'Sender Type' field ","By Default, 'All' is selected"

    ElseReporter.ReportEvent micFail,"Step 2: Check the

    default value of the 'Sender Type' field ","By Default, 'All' is not selected"Environment.Value("TestCase_Log")="True"

    End If

    'Step #3Call ReadallValuesWebList("CorporateActions","Reports - Events S

    earch","SenderType","SenderTypeOptions","EventSearch")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 3: Click andVerify for the listed items under the Sender Type ","'All, Custodian and Issuer'items are displayed in Sender Type dropdown:"

    ElseReporter.ReportEvent micFail,"Step 3: Click and

    Verify for the listed items under the Sender Type ","'All, Custodian and Issuer'

  • 8/7/2019 ADRCA_ReportsEventSearch

    24/76

    items are not displayed in Sender Type dropdown:"Environment.Value("TestCase_Log")="True"

    End If

    'Step #4Call CAReportsEventSearchInputCriteria("CorporateActions","Repor

    ts - Events Search")

    Call fnc_wait(Browser("CorporateActions").Page("Reports - EventsSearch Results").WebElement("TimeStamp"))

    Call chkReportLinks("CorporateActions","Reports - Events SearchResults","EventSearch","ReportLinks")

    Call chkCAReportsEventsSearchCriteria("CorporateActions","Reports - Events Search Results")

    DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Events Search 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"

    Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End IfCall chkReportHeader("CorporateActions","Reports - Events Search

    Results","EventSearch")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 4: Select Sender Type as 'All' and click on Search","Events Search Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 4: Select Sen

    der Type as 'All' and click on Search","Events Search Report not generated related to the search criteria entered"

    Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Events Search Res

    ults","HOME;DR Home")Call click_WebElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")

    Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW") + 1

    DataTable.GetSheet("EventSearch").SetCurrentRow(Environment.Value("DATATABLE_ROW"))

    'Step #5Call select_Menu("CorporateActions","CorporateActions",DataTable

    .Value("MenuPath","EventSearch"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 5: Under Reports menu select Events Search.","Reports - Events Search Search page opened successfully"

    ElseReporter.ReportEvent micFail,"Step 5: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page not openedsuccessfully"

    Environment.Value("TestCase_Log")="True"

  • 8/7/2019 ADRCA_ReportsEventSearch

    25/76

    End If

    'Step #6Call CAReportsEventSearchInputCriteria("CorporateActions","Repor

    ts - Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Events

    Search Results").WebElement("TimeStamp"))

    Call chkReportLinks("CorporateActions","Reports - Events SearchResults","EventSearch","ReportLinks")

    Call chkCAReportsEventsSearchCriteria("CorporateActions","Reports - Events Search Results")

    DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Events Search 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

    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 IfCall chkReportHeader("CorporateActions","Reports - Events Search

    Results","EventSearch")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 6: Select Sender Type as 'Custodian' and click on Search","Events Search Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 6: Select Sen

    der Type as 'Custodian' and click on Search","Events Search Report not generatedrelated to the search criteria entered"

    Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Events Search Res

    ults","HOME;DR Home")Call click_WebElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")

    Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW") + 1

    DataTable.GetSheet("EventSearch").SetCurrentRow(Environment.Value("DATATABLE_ROW"))

    'Step #7Call select_Menu("CorporateActions","CorporateActions",DataTable

    .Value("MenuPath","EventSearch"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 7: Under Reports menu select Events Search.","Reports - Events Search Search page opened successfully"

    ElseReporter.ReportEvent micFail,"Step 7: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page not openedsuccessfully"

    Environment.Value("TestCase_Log")="True"End If

  • 8/7/2019 ADRCA_ReportsEventSearch

    26/76

    'Step #8Call CAReportsEventSearchInputCriteria("CorporateActions","Repor

    ts - Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Events

    Search Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Events Search

    Results","EventSearch","ReportLinks")

    Call chkCAReportsEventsSearchCriteria("CorporateActions","Reports - Events Search Results")

    DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Events Search 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"

    Call captureScreenshot()

    Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"End IfCall chkReportHeader("CorporateActions","Reports - Events Search

    Results","EventSearch")

    Call DateComparision("CorporateActions","Reports - Events SearchResults","Item","Event Date",DataTable.Value("FromDate","EventSearch"),"GreaterThan")

    Call DateComparision("CorporateActions","Reports - Events SearchResults","Item","Event Date",DataTable.Value("ToDate","EventSearch"),"LessThan")

    If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 8: Select Sender Type as 'Issuer' and click on Search","Events Search Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 8: Select Sen

    der Type as 'Issuer' and click on Search","Events Search Report not generated related to the search criteria entered"

    Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Events Search Res

    ults","HOME;DR Home")

    End Function

    '++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Public Function CAReportsEventSearch_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","EventSearch"))

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page opened succ

  • 8/7/2019 ADRCA_ReportsEventSearch

    27/76

    essfully"Else

    Reporter.ReportEvent micFail,"Step 1: Under Reports menu select Events Search.","Reports - Events Search Search page not openedsuccessfully"

    Environment.Value("TestCase_Log")="True"End If

    'Step #2Call CAReportsEventSearchInputCriteria("CorporateActions","Repor

    ts - Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Events

    Search Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Events Search

    Results","EventSearch","ReportLinks")Call chkCAReportsEventsSearchCriteria("CorporateActions","Report

    s - Events Search Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev

    ents Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPro

    perty("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"

    Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End IfCall chkReportHeader("CorporateActions","Reports - Events Search

    Results","EventSearch")

    Call chkReportValues("CorporateActions","Reports - Events SearchResults","Item","Sender Name",DataTable.Value("SenderName","EventSearch"))

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Select 'Se

    nder Name' and click on Search","Events Search Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 2: Select 'Se

    nder Name' and click on Search","Events Search Report not generated related to the search criteria entered"

    Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Events Search Res

    ults","HOME;DR Home")Call click_WebElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")

    Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW") + 1

    DataTable.GetSheet("EventSearch").SetCurrentRow(Environment.Value("DATATABLE_ROW"))

    'Step #3Call select_Menu("CorporateActions","CorporateActions",DataTable

    .Value("MenuPath","EventSearch"))

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page opened succ

  • 8/7/2019 ADRCA_ReportsEventSearch

    28/76

  • 8/7/2019 ADRCA_ReportsEventSearch

    29/76

    Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("MenuPath","EventSearch"))

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page opened successfully"

    Else

    Reporter.ReportEvent micFail,"Step 1: Under Reports menu select Events Search.","Reports - Events Search Search page not openedsuccessfully"

    Environment.Value("TestCase_Log")="True"End If

    'Step #2Call CAReportsEventSearchInputCriteria("CorporateActions","Repor

    ts - Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Events

    Search Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Events Search

    Results","EventSearch","ReportLinks")Call chkCAReportsEventsSearchCriteria("CorporateActions","Reports - Events Search Results")

    DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Events Search 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"

    Call captureScreenshot()

    Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End IfCall chkReportHeader("CorporateActions","Reports - Events Search

    Results","EventSearch")Call chkReportValues("CorporateActions","Reports - Events Search

    Results","Item","Underlying Security Name",DataTable.Value("UnderlyingSecurityName","EventSearch"))

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Select 'Un

    derlying Security Name' and click on Search","Events Search Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 2: Select 'Un

    derlying Security Name' and click on Search","Events Search Report not generatedrelated to the search criteria entered"

    Environment.Value("TestCase_Log")="True"End If

    Call select_Menu("CorporateActions","Reports - Events Search Results","HOME;DR Home")

    End Function

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

    Public Function CAReportsEventSearch_TC15()

  • 8/7/2019 ADRCA_ReportsEventSearch

    30/76

    Environment.Value("TestCase_Log")="True"Call click_WebElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")

    'Step #1Call select_Menu("CorporateActions","CorporateActions",DataTable

    .Value("MenuPath","EventSearch"))

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page opened successfully"

    ElseReporter.ReportEvent micFail,"Step 1: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page not openedsuccessfully"

    Environment.Value("TestCase_Log")="True"End If

    'Step #2

    strSenderDefault=Trim(Browser("CorporateActions").Page("Reports- Events Search").WebList("SenderType").GetROProperty("value"))If strSenderDefault="All" Then

    Reporter.ReportEvent micPass,"Verify the default value in the 'Exception' weblist","Default value'All' is displayed in 'Sender Type' weblist"

    ElseReporter.ReportEvent micFail,"Verify the default value i

    n the 'Exception' weblist","Default value'All' is not displayed in 'Sender Type'weblist"

    Call captureScreenshot()Environment.Value("Execution_Log")="False"

    End If

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2: Check the

    default value of the 'Exception' field ","By Default, 'All' is selected"Else

    Reporter.ReportEvent micFail,"Step 2: Check thedefault value of the 'Exception' field ","By Default, 'All' is not selected"

    Environment.Value("TestCase_Log")="True"End If

    'Step #3Call ReadallValuesWebList("CorporateActions","Reports - Events S

    earch","Exception","ExceptionOptions","EventSearch")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 3: Click andVerify for the listed items under the Exception ","'All, None, Insufficient Dataand Exception' items are displayed in Sender Type dropdown:"

    ElseReporter.ReportEvent micFail,"Step 3: Click and

    Verify for the listed items under the Exception ","'All, None, Insufficient Dataand Exception' items are not displayed in Sender Type dropdown:"

    Environment.Value("TestCase_Log")="True"End If

    'Step #4Call CAReportsEventSearchInputCriteria("CorporateActions","Repor

    ts - Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Events

    Search Results").WebElement("TimeStamp"))

  • 8/7/2019 ADRCA_ReportsEventSearch

    31/76

    Call chkReportLinks("CorporateActions","Reports - Events SearchResults","EventSearch","ReportLinks")

    Call chkCAReportsEventsSearchCriteria("CorporateActions","Reports - Events Search Results")

    DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Events Search 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"Environment.Value("TestCase_Log")= "False"

    End IfCall chkReportHeader("CorporateActions","Reports - Events Search

    Results","EventSearch")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 4: Select 'Exception' and click on Search","Events Search Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 4: Select 'Ex

    ception' and click on Search","Events Search Report not generated related to thesearch criteria entered"

    Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Events Search Res

    ults","HOME;DR Home")Call click_WebElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")

    Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW") + 1

    DataTable.GetSheet("EventSearch").SetCurrentRow(Environment.Value("DATATABLE_ROW"))

    'Step #5Call select_Menu("CorporateActions","CorporateActions",DataTable

    .Value("MenuPath","EventSearch"))Call ReadallValuesWebList("CorporateActions","Reports - Events S

    earch","Exception","ExceptionOptions","EventSearch")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 5: Click andVerify for the listed items under the Exception ","'All, None, Insufficient Dataand Exception' items are displayed in Sender Type dropdown:"

    ElseReporter.ReportEvent micFail,"Step 5: Click and

    Verify for the listed items under the Exception ","'All, None, Insufficient Dataand Exception' items are not displayed in Sender Type dropdown:"

    Environment.Value("TestCase_Log")="True"End If

    'Step #6Call CAReportsEventSearchInputCriteria("CorporateActions","Repor

    ts - Events Search")

    Call fnc_wait(Browser("CorporateActions").Page("Reports - EventsSearch Results").WebElement("TimeStamp"))

    Call chkReportLinks("CorporateActions","Reports - Events Search

  • 8/7/2019 ADRCA_ReportsEventSearch

    32/76

    Results","EventSearch","ReportLinks")Call chkCAReportsEventsSearchCriteria("CorporateActions","Report

    s - Events Search Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev

    ents Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

    If DateTimetext"" Then

    Reporter.ReportEvent micPass,"Verify the Date and 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"Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End IfCall chkReportHeader("CorporateActions","Reports - Events Search

    Results","EventSearch")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 6: Select 'Exception' and click on Search","Events Search Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 6: Select 'Ex

    ception' and click on Search","Events Search Report not generated related to thesearch criteria entered"

    Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Events Search Res

    ults","HOME;DR Home")Call click_WebElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")

    Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW") + 1

    DataTable.GetSheet("EventSearch").SetCurrentRow(Environment.Value("DATATABLE_ROW"))

    'Step #7Call select_Menu("CorporateActions","CorporateActions",DataTable

    .Value("MenuPath","EventSearch"))Call ReadallValuesWebList("CorporateActions","Reports - Events S

    earch","Exception","ExceptionOptions","EventSearch")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 7: Click andVerify for the listed items under the Exception ","'All, None, Insufficient Dataand Exception' items are displayed in Sender Type dropdown:"

    ElseReporter.ReportEvent micFail,"Step 7: Click and

    Verify for the listed items under the Exception ","'All, None, Insufficient Dataand Exception' items are not displayed in Sender Type dropdown:"

    Environment.Value("TestCase_Log")="True"End If

    'Step #8Call CAReportsEventSearchInputCriteria("CorporateActions","Repor

    ts - Events Search")

    Call fnc_wait(Browser("CorporateActions").Page("Reports - EventsSearch Results").WebElement("TimeStamp"))

    Call chkReportLinks("CorporateActions","Reports - Events Search

  • 8/7/2019 ADRCA_ReportsEventSearch

    33/76

    Results","EventSearch","ReportLinks")Call chkCAReportsEventsSearchCriteria("CorporateActions","Report

    s - Events Search Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev

    ents Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

    If DateTimetext"" Then

    Reporter.ReportEvent micPass,"Verify the Date and 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"Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End IfCall chkReportHeader("CorporateActions","Reports - Events Search

    Results","EventSearch")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 8: Select 'Exception' and click on Search","Events Search Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 8: Select 'Ex

    ception' and click on Search","Events Search Report not generated related to thesearch criteria entered"

    Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Reports - Events Search Res

    ults","HOME;DR Home")Call click_WebElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")

    Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW") + 1

    DataTable.GetSheet("EventSearch").SetCurrentRow(Environment.Value("DATATABLE_ROW"))

    'Step #9Call select_Menu("CorporateActions","CorporateActions",DataTable

    .Value("MenuPath","EventSearch"))Call ReadallValuesWebList("CorporateActions","Reports - Events S

    earch","Exception","ExceptionOptions","EventSearch")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 9: Click andVerify for the listed items under the Exception ","'All, None, Insufficient Dataand Exception' items are displayed in Sender Type dropdown:"

    ElseReporter.ReportEvent micFail,"Step 9: Click and

    Verify for the listed items under the Exception ","'All, None, Insufficient Dataand Exception' items are not displayed in Sender Type dropdown:"

    Environment.Value("TestCase_Log")="True"End If

    'Step #10Call CAReportsEventSearchInputCriteria("CorporateActions","Repor

    ts - Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Events

    Search Results").WebElement("TimeStamp"))

  • 8/7/2019 ADRCA_ReportsEventSearch

    34/76

  • 8/7/2019 ADRCA_ReportsEventSearch

    35/76

    Call fnc_wait(Browser("CorporateActions").Page("Reports - Events Search Results").WebElement("TimeStamp"))

    Call chkReportLinks("CorporateActions","Reports - Events SearchResults","EventSearch","ReportLinks")

    Call chkCAReportsEventsSearchCriteria("CorporateActions","Reports - Events Search Results")

    DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ev

    ents Search 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"

    Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End If

    Call chkReportHeader("CorporateActions","Reports - Events SearchResults","EventSearch")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 2: Select 'Event Status' and click on Search","Events Search Report generated related to thesearch criteria entered"

    ElseReporter.ReportEvent micFail,"Step 2: Select 'Ev

    ent Status' and click on Search","Events Search Report not generated related tothe search criteria entered"

    Environment.Value("TestCase_Log")="True"End If

    'Step #3intRowCount=Browser("CorporateActions").Page("Reports - Events S

    earch Results").WebTable("Item").RowCountIf intRowCount > 1 Then

    Call SelectCAEventNameInReport("CorporateActions","Reports - Events Search Results","Item",DataTable.Value("SelectEventName","EventSearch"))

    strPageText=Trim(Browser("CorporateActions").Page("Underlying Event").WebElement("Underlying Event").GetROProperty("innertext"))

    If strPageText="Underlying Event" ThenReporter.ReportEvent micPass,"Verify the

    Underlying Event page is displayed or not","Underlying Event page is displayed"ElseReporter.ReportEvent micFail,"Verify the

    Underlying Event page is displayed or not","Underlying Event page is not displayed"

    Call captureScreenshot()Environment.Value("Execution_Log")= "Fal

    se"Environment.Value("TestCase_Log")= "False"End IfstrProcessText=Trim(Browser("CorporateActions").

    Page("Underlying Event").WebList("ProcessingStatus").GetROProperty("selection"))If strProcessText=DataTable.Value("EventStatus"

    ,"EventSearch")Then

    Reporter.ReportEvent micPass,"Verify thestatus of the event name","The process of the event name is " & strProcessText

    Else

  • 8/7/2019 ADRCA_ReportsEventSearch

    36/76

    Reporter.ReportEvent micFail,"Verify thestatus of the event name","The process of the event name is not " & strProcessText

    Call captureScreenshot()Environment.Value("Execution_Log")= "Fal

    se"Environment.Value("TestCase_Log")= "False"

    End If

    ElseCall captureScreenshot()Reporter.ReportEvent micFail,"Verify the number

    of records displayed in the report","No records displayed so unable to proceed further test execution"

    Call select_Menu("CorporateActions","Reports - Events Search Results","HOME;DR Home")

    Environment.Value("TestCase_Log")="True"Exit Function

    End If

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3: In the results screen, click on any value under the 'Event name' column","The user shouldis transferred to the Underlying Event screen and here the 'Processing Status'should be 'Approved'"

    ElseReporter.ReportEvent micFail,"Step 3: In the res

    ults screen, click on any value under the 'Event name' column","The user shouldis not transferred to the Underlying Event screen"

    Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Underlying Event","HOME;DR

    Home")

    Call click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")

    Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW") + 1

    DataTable.GetSheet("EventSearch").SetCurrentRow(Environment.Value("DATATABLE_ROW"))

    'Step #4Call select_Menu("CorporateActions","CorporateActions",DataTable

    .Value("MenuPath","EventSearch"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 4: Under Reports menu select Events Search.","Reports - Events Search Search page opened successfully"

    ElseReporter.ReportEvent micFail,"Step 4: Under Repo

    rts menu select Events Search.","Reports - Events Search Search page not openedsuccessfully"

    Environment.Value("TestCase_Log")="True"End If

    'Step #5Call CAReportsEventSearchInputCriteria("CorporateActions","Repor

    ts - Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Events

    Search Results").WebElement("TimeStamp"))

  • 8/7/2019 ADRCA_ReportsEventSearch

    37/76

    Call chkReportLinks("CorporateActions","Reports - Events SearchResults","EventSearch","ReportLinks")

    Call chkCAReportsEventsSearchCriteria("CorporateActions","Reports - Events Search Results")

    DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Events Search 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"

    Call captureScreenshot()Environment.Value("Execution_Log")= "False"Environment.Value("TestCase_Log")= "False"

    End IfCall chkReportHeader("CorporateActions","Reports - Events Search

    Results","EventSearch")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: Select 'Event Status' and click on Search","Events Search Report generated related to thesearch criteria entered"

    ElseReporter.ReportEvent micFail,"Step 5: Select 'Ev

    ent Status' and click on Search","Events Search Report not generated related tothe search criteria entered"

    Environment.Value("TestCase_Log")="True"End If

    'Step #6

    intRowCount=Browser("CorporateActions").Page("Reports - Events Search Results").WebTable("Item").RowCount

    If intRowCount > 1 ThenFor intCounter=2 To 10

    strEventStatus=Trim(Browser("CorporateActions").Page("Reports - Events Search Results").WebTable("Item").GetCellData(intCounter,2))

    If strEventStatus=DataTable.Value("EventStatus","EventSearch") Then

    blnFlag="True"ElseblnFlag="Flase"Exit ForEnd IfIf blnFlag="True" Then

    Reporter.ReportEvent micPass,"Verify the event status in the report results","Event status is displayed according to the searchcriteria"

    ElseCall captureScreenshot()Reporter.ReportEvent micFail,"Verify the event s

    tatus in the report results","Event status is not displayed according to the search criteria"

    End IfNextElse

    Call captureScreenshot()Environment.Value("Execution_Log")="False"Reporter.ReportEvent micFail,"verify the number of records displ

  • 8/7/2019 ADRCA_ReportsEventSearch

    38/76

    ayed in the search results","No records are displayed in the results so, unableto proceed further execution"

    Environment.Value("TestCase_Log")="True"Exit FunctionEnd IfIf Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 6: Select a v

    alue for the Event status field and click on search","Events Search Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 6: Select a v

    alue for the Event status field and click on search","Events Search Report not generated related to the search criteria entered"

    Environment.Value("TestCase_Log")="True"End If

    'Step #7intRowCount=Browser("CorporateActions").Page("Reports - Events S

    earch Results").WebTable("Item").RowCount

    If intRowCount > 1 ThenCall SelectCAEventNameInReport("CorporateActions","Reports - Events Search Results","Item",DataTable.Value("SelectEventName","EventSearch"))

    strPageText=Trim(Browser("CorporateActions").Page("Underlying Event").WebElement("Underlying Event").GetROProperty("innertext"))

    If strPageText="Underlying Event" ThenReporter.ReportEvent micPass,"Ve

    rify the Underlying Event page is displayed or not","Underlying Event page is displayed"

    ElseCall captureScreenshot()Reporter.ReportEvent micFail,"Ve

    rify the Underlying Event page is displayed or not","Underlying Event page is not displayed"

    Environment.Value("Execution_Log")= "False"

    Environment.Value("Test