ADRCA_ReportsApprovedEvents

  • Upload
    imaarha

  • View
    214

  • Download
    0

Embed Size (px)

Citation preview

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    1/71

    '=========================================================================================================' 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 CAReportsApprovedEvents()

    '****Declaration of Environmental VariableEnvironment.Value("Execution_Log")=True

    '''''''''Test case countConst TC_COUNT = 32

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

    ","ApprovedEvents","ApprovedEvents"

    Environment.Value("strSheetName")="ApprovedEvents"DataTable.AddSheet "ReportHeader"DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls

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

    ","HomePageVerification","HomePageVerification"

    ' Logs the Scenario name Execution in a .csv 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_ReportsApprovedEvents

    2/71

    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("ApprovedEvents").SetCurrentRow(Environment.V

    alue("DATATABLE_ROW"))

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

    For intTCCount = 1 to TC_COUNT

    Environment.Value("Execution_Log") = "True"Environment.Value("TestCase_Log")="True"If DataTable("TestRunFlag","ApprovedEvents")="Y" Then

    ''If run flag is Y in test data tableReporter.ReportEvent micDone,"######## BEGIN TES

    T CASE - '" & DataTable("TestCaseID","ApprovedEvents") & "' ########### ","Execu

    tion of Test Case '" & DataTable("TestCaseDesc","ApprovedEvents") & "' Started"strFuncName = "CAReportsApprovedEvents_TC" & intTCCount & "()"

    ''Formation of function name''Call FunctionExecute "Call " & strFuncName

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

    Call Execution_log("",Datatable.Value("TestCaseID", "ApprovedEvents"), Datatable.Value("TestCaseDesc", "ApprovedEvents"), "PASS")

    ElseCall Execution_log("",Datatable.

    Value("TestCaseID", "ApprovedEvents"), Datatable.Value("TestCaseDesc", "ApprovedEvents"), "FAIL")

    End IfReporter.ReportEvent micDone,"######### END OF T

    EST CASE - '" & DataTable("TestCaseID","ApprovedEvents") & "###########","The Test Case Execution Completed"

    End If

    strPrevious=Trim(DataTable.Value("TestCaseID","ApprovedEvents"))

    ''Increment the test data table row

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

    DataTable.GetSheet("ApprovedEvents").SetCurrentRow(Envir

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    3/71

    onment.Value("DATATABLE_ROW"))strNext=Trim(DataTable.Value("TestCaseID","ApprovedEvent

    s"))While strPrevious = strNext

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

    DataTable.GetSheet("ApprovedEvents").SetCurrentR

    ow(Environment.Value("DATATABLE_ROW"))strNext=Trim(DataTable.Value("TestCaseID","Appro

    vedEvents"))Wend

    Next

    Call logoutfromApp("MasterFile","Depositary Receipt Division's")

    End Sub

    '************************************************Driver Script End**************

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

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

    Public Function CAReportsApprovedEvents_TC1()

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

    'Step #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 #2Call click_WebElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Val

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

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

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    4/71

    "HomePageVerification") & "' are not displayed"Environment.Value("TestCase_Log")="True"

    End If

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

    .Value("MenuPath","ApprovedEvents"))

    Call pageCheck_WebEditOR("CorporateActions","Reports - ApprovedUnderlying Events Search","EventName;UnderlyingISIN;UnderlyingSEDOL;FromDate;ToDate;UnderlyingSecurityName")

    Call pageCheck_WebListOR("CorporateActions","Reports - ApprovedUnderlying Events Search","DateRange;Exception;CountryofUnderlyingISIN;OrgRegion;CorporateActionType;Owner;RMNY;RMLocal")

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

    strSearchPage=Trim(Browser("CorporateActions").Page("Reports - Approved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSearch").GetROProperty("innertext"))

    If strSearchPage="Reports - Approved Underlying Events Search"

    Then Reporter.ReportEvent micPass, "Verify Reports -Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is displayed with all fields"

    ElseReporter.ReportEvent micFail, "Verify Reports -

    Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is not displayed with all fields"

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

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

    Reporter.ReportEvent micPass,"Step 3: Under Repo

    rts menu select Approved Underying Events","Expected fields are displayed in search criteria"

    ElseReporter.ReportEvent micFail,"Step 3: Under Repo

    rts menu select Approved Underying Events","Expected fields are not displayed insearch criteria"

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

    'Step #4Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA

    ctions","Reports - Approved Underlying Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv

    ed Underlying Events Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Approved Under

    lying Events Results","ApprovedEvents","ReportLinks")Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora

    teActions","Reports - Approved Underlying Events Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap

    proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

    If DateTimetext"" 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_ReportsApprovedEvents

    5/71

    Call captureScreenshot()End IfCall chkReportHeader("CorporateActions","Reports - Approved Unde

    rlying Events Results","CAReportsApprovedEvents")Call chkReportValues("CorporateActions","Reports - Approved Unde

    rlying Events Results","Item","Event Name",DataTable.Value("EventName","ApprovedEvents"))

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

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

    ElseReporter.ReportEvent micFail,"Step 4:Enter a va

    lue for the 'Event Name' field and click on search ","Approved Underlying EventsReport not generated related to the search criteria entered"

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

    'Step #5

    Call clickRecordinTableDOM("CorporateActions","Reports - Approved Underlying Events Results","Item",DataTable.Value("SelectEventName","ApprovedEvents"))

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

    If strUnderlyingEvent="Underlying Event" ThenReporter.ReportEvent micPass,"Verify Underlying

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

    Reporter.ReportEvent micFail,"Verify UnderlyingEvent Page is displayed or not","Underlying Event page is not displayed"

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

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

    Reporter.ReportEvent micPass,"Step 5: Click on any value in the 'Event Name' column ","User should be transferred to the Underlying Event screen"

    ElseReporter.ReportEvent micFail,"Step 5: Click on a

    ny value in the 'Event Name' column","User is not transferred to the UnderlyingEvent screen"

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

    Call select_Menu("CorporateActions","Underlying Event","HOME;DRHome")

    End Function

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

    Public Function CAReportsApprovedEvents_TC2()

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

    ision's","CorporateActions")

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

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    6/71

    .Value("MenuPath","ApprovedEvents"))strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A

    pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSearch").GetROProperty("innertext"))

    If strSearchPage="Reports - Approved Underlying Events Search"Then

    Reporter.ReportEvent micPass, "Verify Reports -

    Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is displayed with all fields"

    ElseReporter.ReportEvent micFail, "Verify Reports -

    Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is not displayed with all fields"

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

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

    Reporter.ReportEvent micPass,"Step 1: Select Approved Events from the Reports menu ","The Reports- Approved Events Search page i

    s displayed" ElseReporter.ReportEvent micFail,"Step 1: Select App

    roved Events from the Reports menu ","The Reports- Approved Events Search page is not displayed"

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

    'Step # 2Call Select_Combo_Value("CorporateActions","Reports - Approved U

    nderlying Events Search","RMNY",DataTable.Value("RMNY","ApprovedEvents"))Browser("CorporateActions").Page("Reports - Approved Underlying

    Events Search").Image("Clear").Click

    blnRMNY=Trim(Browser("CorporateActions").Page("Reports - Approved Underlying Events Search").WebList("RMNY").GetROProperty("selection"))

    If blnRMNY="" ThenReporter.ReportEvent micPass,"Verify RMNY field

    selection is cleared or not","Selected values are cleared in RMNY'"Else

    Reporter.ReportEvent micFail,"Verify RMNY fieldselection is cleared or not","Selected values are not cleared in RMNY'"

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

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

    Reporter.ReportEvent micPass,"Step 2: Select 2 values for the 'RM NY' field and click on 'Clear' button","The selected fields should are cleared"

    ElseReporter.ReportEvent micFail,"Step 2: Select 2 v

    alues for the 'RM NY' field and click on 'Clear' button","The selected fields should are not cleared"

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

    'Step #3Call Select_Combo_Value("CorporateActions","Reports - Approved U

    nderlying Events Search","OrgRegion",DataTable.Value("OrgRegion","ApprovedEvents

    "))Call Select_Combo_Value("CorporateActions","Reports - Approved U

    nderlying Events Search","CorporateActionType",DataTable.Value("CorporateActionT

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    7/71

    ype","ApprovedEvents"))Browser("CorporateActions").Page("Reports - Approved Underlying

    Events Search").Image("Clear").ClickblnRegion=Trim(Browser("CorporateActions").Page("Reports - Appro

    ved Underlying Events Search").WebList("OrgRegion").GetROProperty("selection"))blnCAType=Trim(Browser("CorporateActions").Page("Reports - Appro

    ved Underlying Events Search").WebList("CorporateActionType").GetROProperty("sel

    ection"))If blnRegion="" And blnCAType="" Then

    Reporter.ReportEvent micPass,"Select a value forany two fields and click on the 'Clear' button","Selection is cleared"

    ElseReporter.ReportEvent micFail,"Select a value for

    any two fields and click on the 'Clear' button","Selection is not cleared"Call captureScreenShot()Environment.Value("Execution_Log")="False"

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

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

    alue for the following fields and click on the Clear button","The selected values are cleared"Else

    Reporter.ReportEvent micFail,"Step 3: Select a value for the following fields and click on the Clear button","The selected values are not cleared"

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

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

    End Function

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

    Public Function CAReportsApprovedEvents_TC3()

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

    ision's","CorporateActions")

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

    .Value("MenuPath","ApprovedEvents"))strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A

    pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSearch").GetROProperty("innertext"))

    If strSearchPage="Reports - Approved Underlying Events Search"Then

    Reporter.ReportEvent micPass, "Verify Reports -Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is displayed with all fields"

    ElseReporter.ReportEvent micFail, "Verify Reports -

    Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is not displayed with all fields"

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

    End If

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    8/71

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

    roved Events from the Reports menu ","The Reports- Approved Events Search page is displayed"

    ElseReporter.ReportEvent micFail,"Step 1: Select App

    roved Events from the Reports menu ","The Reports- Approved Events Search page i

    s not displayed"Environment.Value("TestCase_Log")="True"

    End If

    'Step # 2intISINMax=Browser("CorporateActions").Page("Reports - Approved

    Underlying Events Search").WebEdit("UnderlyingISIN").GetROProperty("max length")If intISINMax=12 Then

    Reporter.ReportEvent micPass,"Verify ISIN fieldaccepts maximum 12 characters or not","ISIN field accepts 12 characters maximum"

    Else

    Reporter.ReportEvent micFail,"Verify ISIN fieldaccepts maximum 12 characters or not","ISIN field not accepts 12 characters maximum"

    Call captureScreenShot()Environment.Value("Execution_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 is accepting all the 12 characters"

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

    he 'ISIN' field accepts all the 12 characters","The 'ISIN' field is not acceptin

    g all the 12 characters"Environment.Value("TestCase_Log")="True"

    End If

    'Step #3Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA

    ctions","Reports - Approved Underlying Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv

    ed Underlying Events Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Approved Under

    lying Events Results","ApprovedEvents","ReportLinks")Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora

    teActions","Reports - Approved Underlying Events Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap

    proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

    If DateTimetext"" 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 - Approved Underlying Events Results","CAReportsApprovedEvents")

    Call chkReportValues("CorporateActions","Reports - Approved Unde

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    9/71

    rlying Events Results","Item","ISIN",DataTable.Value("UnderlyingISIN","ApprovedEvents"))

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

    alue for the 'Underlying ISIN' field and press 'Enter' key ","Approved Underlying Events Report generated related to the search criteria entered"

    Else

    Reporter.ReportEvent micFail,"Step 3: Enter a value for the 'Underlying ISIN' field and press 'Enter' key","Approved UnderlyingEvents Report not generated related to the search criteria entered"

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

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

    End Function

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

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

    Public Function CAReportsApprovedEvents_TC4()

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

    ision's","CorporateActions")

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

    .Value("MenuPath","ApprovedEvents"))strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A

    pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe

    arch").GetROProperty("innertext"))If strSearchPage="Reports - Approved Underlying Events Search"

    ThenReporter.ReportEvent micPass, "Verify Reports -

    Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is displayed with all fields"

    ElseReporter.ReportEvent micFail, "Verify Reports -

    Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is not displayed with all fields"

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

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

    Reporter.ReportEvent micPass,"Step 1: Select Approved Events from the Reports menu ","The Reports- Approved Events Search page is displayed"

    ElseReporter.ReportEvent micFail,"Step 1: Select App

    roved Events from the Reports menu ","The Reports- Approved Events Search page is not displayed"

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

    'Step # 2intSEDOLMax=Browser("CorporateActions").Page("Reports - Approved

    Underlying Events Search").WebEdit("UnderlyingSEDOL").GetROProperty("max length

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    10/71

    ")If intSEDOLMax=7 Then

    Reporter.ReportEvent micPass,"Check if the 'SEDOL' field accepts at least 7 characters","The 'SEDOL' field is accepting at least7 characters"

    ElseReporter.ReportEvent micFail,"Check if the 'SEDO

    L' field accepts at least 7 characters","The 'SEDOL' field is not accepting at least 7 characters"

    Call captureScreenShot()Environment.Value("Execution_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 is acceptingall the 7 characters"

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

    he 'SEDOL' field accepts at least 7 characters","The 'SEDOL' field is not accept

    ing all the 7 characters" Environment.Value("TestCase_Log")="True"End If

    'Step #3Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA

    ctions","Reports - Approved Underlying Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv

    ed Underlying Events Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Approved Under

    lying Events Results","ApprovedEvents","ReportLinks")Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora

    teActions","Reports - Approved Underlying Events Results")

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

    rlying Events Results","CAReportsApprovedEvents")Call chkReportValues("CorporateActions","Reports - Approved Unde

    rlying Events Results","Item","SEDOL",DataTable.Value("UnderlyingSEDOL","ApprovedEvents"))

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

    alue for the 'Underlying SEDOL' field and click on search","Approved UnderlyingEvents Report generated related to the search criteria entered"

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

    alue for the 'Underlying SEDOL' field and click on search","Approved UnderlyingEvents Report not generated related to the search criteria entered"

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

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    11/71

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

    End Function

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

    Public Function CAReportsApprovedEvents_TC5()

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

    ision's","CorporateActions")

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

    .Value("MenuPath","ApprovedEvents"))strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A

    pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe

    arch").GetROProperty("innertext"))If strSearchPage="Reports - Approved Underlying Events Search"Then

    Reporter.ReportEvent micPass, "Verify Reports -Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is displayed with all fields"

    ElseReporter.ReportEvent micFail, "Verify Reports -

    Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is not displayed with all fields"

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

    End If

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

    roved Events from the Reports menu ","The Reports- Approved Events Search page is displayed"

    ElseReporter.ReportEvent micFail,"Step 1: Select App

    roved Events from the Reports menu ","The Reports- Approved Events Search page is not displayed"

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

    'Step #2Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA

    ctions","Reports - Approved Underlying Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv

    ed Underlying Events Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Approved Under

    lying Events Results","ApprovedEvents","ReportLinks")Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora

    teActions","Reports - Approved Underlying Events Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap

    proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

    If DateTimetext"" 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_ReportsApprovedEvents

    12/71

    d Timestamp of the report","Date and Timestamp is not displayed successfully"Environment.Value("Execution_Log")="False"Call captureScreenshot()

    End IfCall chkReportHeader("CorporateActions","Reports - Approved Unde

    rlying Events Results","CAReportsApprovedEvents")Call chkReportValues("CorporateActions","Reports - Approved Unde

    rlying Events Results","Item","ISIN",DataTable.Value("UnderlyingISIN","ApprovedEvents"))

    Call chkReportValues("CorporateActions","Reports - Approved Underlying Events Results","Item","Corporate Action Type",DataTable.Value("CorporateActionType","ApprovedEvents"))

    Call chkReportValues("CorporateActions","Reports - Approved Underlying Events Results","Item","Owner",DataTable.Value("Owner","ApprovedEvents"))

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

    ch criteria and click on search button","Approved Underlying Events Report generated related to the search criteria entered"

    Else

    Reporter.ReportEvent micFail,"Step 2: Enter search criteria and click on search button","Approved Underlying Events Report not generated related to the search criteria entered"

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

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

    End Function

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

    Public Function CAReportsApprovedEvents_TC6()

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

    ision's","CorporateActions")

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

    .Value("MenuPath","ApprovedEvents"))strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A

    pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSearch").GetROProperty("innertext"))

    If strSearchPage="Reports - Approved Underlying Events Search"Then

    Reporter.ReportEvent micPass, "Verify Reports -Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is displayed with all fields"

    ElseReporter.ReportEvent micFail, "Verify Reports -

    Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is not displayed with all fields"

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

    End If

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

    roved Events from the Reports menu ","The Reports- Approved Events Search page i

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    13/71

    s displayed"Else

    Reporter.ReportEvent micFail,"Step 1: Select Approved Events from the Reports menu ","The Reports- Approved Events Search page is not displayed"

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

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

    Approved Underlying Events Search").WebList("DateRange").GetROProperty("selection"))

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

    value of Date Range field","By default is All is selected in the date range field"

    ElseReporter.ReportEvent micFail,"Verify the default

    value of Date Range field","By default is All is not selected in the date range

    field" Call captureScreenShot()Environment.Value("Execution_Log")="False"

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

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

    ElseReporter.ReportEvent micFail,"Step 2: Verify the

    default value of the 'Date Range' field ","The default value is not 'All'"Environment.Value("TestCase_Log")="True"

    End If

    'Step #3Browser("CorporateActions").Page("Reports - Approved Underlying

    Events Search").WebList("DateRange").Select DataTable.Value("DateRange","ApprovedEvents")

    blnFrom=Browser("CorporateActions").Page("Reports - Approved Underlying Events Search").Image("ShowCalendar").Exist(2)

    blnTo=Browser("CorporateActions").Page("Reports - Approved Underlying Events Search").Image("ShowCalendar_2").Exist(2)

    If blnFrom And blnTo ThenReporter.ReportEvent micPass,"Verify From and To

    caledar icons are populated or not","From and To calendar icons are populated"Else

    Reporter.ReportEvent micFail,"Verify From and Tocaledar icons are populated or not","From and To calendar icons are not populated"

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

    End IfIf 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 displa

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

    End If

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    14/71

    'Step #4Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA

    ctions","Reports - Approved Underlying Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv

    ed Underlying Events Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Approved Under

    lying Events Results","ApprovedEvents","ReportLinks")Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora

    teActions","Reports - Approved Underlying Events Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap

    proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

    If DateTimetext"" 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 - Approved Unde

    rlying Events Results","CAReportsApprovedEvents")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 4: Enter search criteria and click on search button","Approved Underlying Events Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 4: Enter sear

    ch criteria and click on search button","Approved Underlying Events Report not generated related to the search criteria entered"

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

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

    End Function

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

    Public Function CAReportsApprovedEvents_TC7()

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

    ision's","CorporateActions")

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

    .Value("MenuPath","ApprovedEvents"))strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A

    pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSearch").GetROProperty("innertext"))

    If strSearchPage="Reports - Approved Underlying Events Search"Then

    Reporter.ReportEvent micPass, "Verify Reports -Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is displayed with all fields"

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    15/71

    ElseReporter.ReportEvent micFail, "Verify Reports -

    Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is not displayed with all fields"

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

    End If

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

    roved Events from the Reports menu ","The Reports- Approved Events Search page is displayed"

    ElseReporter.ReportEvent micFail,"Step 1: Select App

    roved Events from the Reports menu ","The Reports- Approved Events Search page is not displayed"

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

    'Step #2

    Browser("CorporateActions").Page("Reports - Approved UnderlyingEvents Search").WebList("DateRange").Select DataTable.Value("DateRange","ApprovedEvents")

    blnFrom=Browser("CorporateActions").Page("Reports - Approved Underlying Events Search").Image("ShowCalendar").Exist(2)

    blnTo=Browser("CorporateActions").Page("Reports - Approved Underlying Events Search").Image("ShowCalendar_2").Exist(2)

    If blnFrom And blnTo ThenReporter.ReportEvent micPass,"Verify From and To

    caledar icons are populated or not","From and To calendar icons are populated"Else

    Reporter.ReportEvent micFail,"Verify From and Tocaledar icons are populated or not","From and To calendar icons are not populat

    ed"Call captureScreenShot()Environment.Value("Execution_Log")="False"

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

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

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

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

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

    'Step #3Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA

    ctions","Reports - Approved Underlying Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv

    ed Underlying Events Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Approved Under

    lying Events Results","ApprovedEvents","ReportLinks")Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora

    teActions","Reports - Approved Underlying Events Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap

    proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

    If DateTimetext"" Then

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    16/71

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

    End IfCall chkReportHeader("CorporateActions","Reports - Approved Unde

    rlying Events Results","CAReportsApprovedEvents")Call DateComparision("CorporateActions","Reports - Approved Underlying E

    vents Results","Item","Approved Date",DataTable.Value("FromDate","ApprovedEvents"),"GreaterThan")

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

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

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

    om' Date and click on Search","Approved Underlying Events Report not generated related to the search criteria entered"Environment.Value("TestCase_Log")="True"

    End If

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

    End Function

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

    Public Function CAReportsApprovedEvents_TC8()

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

    ision's","CorporateActions")

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

    .Value("MenuPath","ApprovedEvents"))strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A

    pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSearch").GetROProperty("innertext"))

    If strSearchPage="Reports - Approved Underlying Events Search"Then

    Reporter.ReportEvent micPass, "Verify Reports -Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is displayed with all fields"

    ElseReporter.ReportEvent micFail, "Verify Reports -

    Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is not displayed with all fields"

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

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

    Reporter.ReportEvent micPass,"Step 1: Select Approved Events from the Reports menu ","The Reports- Approved Events Search page is displayed"

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    17/71

    ElseReporter.ReportEvent micFail,"Step 1: Select App

    roved Events from the Reports menu ","The Reports- Approved Events Search page is not displayed"

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

    'Step #2Browser("CorporateActions").Page("Reports - Approved Underlying

    Events Search").WebList("DateRange").Select DataTable.Value("DateRange","ApprovedEvents")

    blnFrom=Browser("CorporateActions").Page("Reports - Approved Underlying Events Search").Image("ShowCalendar").Exist(2)

    blnTo=Browser("CorporateActions").Page("Reports - Approved Underlying Events Search").Image("ShowCalendar_2").Exist(2)

    If blnFrom And blnTo ThenReporter.ReportEvent micPass,"Verify From and To

    caledar icons are populated or not","From and To calendar icons are populated"Else

    Reporter.ReportEvent micFail,"Verify From and Tocaledar icons are populated or not","From and To calendar icons are not populated"

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

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

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

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

    pproved Date' from 'Date Range'","Corresponding calendar buttons are not displa

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

    End If

    'Step #3Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateActions",

    "Reports - Approved Underlying Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv

    ed Underlying Events Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Approved Under

    lying Events Results","ApprovedEvents","ReportLinks")Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora

    teActions","Reports - Approved Underlying Events Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap

    proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

    If DateTimetext"" 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 - Approved Underlying Events Results","CAReportsApprovedEvents")

    Call DateComparision("CorporateActions","Reports - Approved Unde

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    18/71

    rlying Events Results","Item","Approved Date",DataTable.Value("ToDate","ApprovedEvents"),"LessThan")

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

    ' Date and click on Search","Approved Underlying Events Report generated relatedto the search criteria entered"

    Else

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

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

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

    End Function

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

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

    Public Function CAReportsApprovedEvents_TC9()

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

    ision's","CorporateActions")

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

    .Value("MenuPath","ApprovedEvents"))strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A

    pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSe

    arch").GetROProperty("innertext"))If strSearchPage="Reports - Approved Underlying Events Search"

    ThenReporter.ReportEvent micPass, "Verify Reports -

    Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is displayed with all fields"

    ElseReporter.ReportEvent micFail, "Verify Reports -

    Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is not displayed with all fields"

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

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

    Reporter.ReportEvent micPass,"Step 1: Select Approved Events from the Reports menu ","The Reports- Approved Events Search page is displayed"

    ElseReporter.ReportEvent micFail,"Step 1: Select App

    roved Events from the Reports menu ","The Reports- Approved Events Search page is not displayed"

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

    'Step #2

    Browser("CorporateActions").Page("Reports - Approved UnderlyingEvents Search").WebList("DateRange").Select DataTable.Value("DateRange","ApprovedEvents")

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    19/71

    blnFrom=Browser("CorporateActions").Page("Reports - Approved Underlying Events Search").Image("ShowCalendar").Exist(2)

    blnTo=Browser("CorporateActions").Page("Reports - Approved Underlying Events Search").Image("ShowCalendar_2").Exist(2)

    If blnFrom And blnTo ThenReporter.ReportEvent micPass,"Verify From and To

    caledar icons are populated or not","From and To calendar icons are populated"

    ElseReporter.ReportEvent micFail,"Verify From and To

    caledar icons are populated or not","From and To calendar icons are not populated"

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

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

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

    Else

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

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

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

    strDataTableValue = DataTable.Value("FromDate","ApprovedEvents")

    strValue = Split(strDataTableValue,";",-1,1)strDateValue = strValue(0)strMonthValue = strValue(1)

    strYearValue = strValue(2)Call click_Image("CorporateActions","Reports - A

    pproved Underlying Events Search","ShowCalendar")Call ClickIcon_SetDate("CorporateActions","Repor

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

    If DataTable.Value("ToDate","ApprovedEvents") "" ThenstrDataTableValue = DataTable.Value("ToDate","Ap

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

    pproved Underlying Events Search","ShowCalendar_2")Call ClickIcon_SetDate("CorporateActions","Repor

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

    Browser("CorporateActions").Page("Reports - Approved UnderlyingEvents Search").Image("Search").Click

    If Dialog("text:=Microsoft Internet Explorer").Exist(5) ThenstrWarning=Trim(Dialog("text:=Microsoft Internet

    Explorer").WinButton("text:=OK").GetROProperty("attached text"))If strWarning="From Date can not be greater tha

    n To Date" Then

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    20/71

    Reporter.ReportEvent micPass,"Verify the error message popup saying From Date can not be greater than ToDate is displayed or not","From Date can not be greater than To Date error message popup is displayed"

    Dialog("text:=MicrosoftInternet Explorer").WinButton("text:=OK").Click

    Else

    Reporter.ReportEvent micPass,"Verify the error message popup saying From Date can not be greater than ToDate is displayed or not","From Date can not be greater than To Date error message popup is not displayed"

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

    Call captureScreenShot()End If

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

    Reporter.ReportEvent micPass,"Step 3: Provide 'From' Date greater than 'To' Date and click on Search ","Error msg pops up saying

    'From Date cannot be greater than To date' is displayed"ElseReporter.ReportEvent micFail,"Step 3: Provide 'F

    rom' Date greater than 'To' Date and click on Search","Error msg pops up saying'From Date cannot be greater than To date' is not displayed"

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

    Call select_Menu("CorporateActions","Reports - Approved Underlyi

    ng Events Search","HOME;DR Home")

    End Function

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

    Public Function CAReportsApprovedEvents_TC10()

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

    ision's","CorporateActions")

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

    .Value("MenuPath","ApprovedEvents"))strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A

    pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSearch").GetROProperty("innertext"))

    If strSearchPage="Reports - Approved Underlying Events Search"Then

    Reporter.ReportEvent micPass, "Verify Reports -Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is displayed with all fields"

    ElseReporter.ReportEvent micFail, "Verify Reports -

    Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is not displayed with all fields"

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

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

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    21/71

    Reporter.ReportEvent micPass,"Step 1: Select Approved Events from the Reports menu ","The Reports- Approved Events Search page is displayed"

    ElseReporter.ReportEvent micFail,"Step 1: Select App

    roved Events from the Reports menu ","The Reports- Approved Events Search page is not displayed"

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

    'Step #2Browser("CorporateActions").Page("Reports - Approved Underlying

    Events Search").WebList("DateRange").Select DataTable.Value("DateRange","ApprovedEvents")

    blnFrom=Browser("CorporateActions").Page("Reports - Approved Underlying Events Search").Image("ShowCalendar").Exist(2)

    blnTo=Browser("CorporateActions").Page("Reports - Approved Underlying Events Search").Image("ShowCalendar_2").Exist(2)

    If blnFrom And blnTo Then

    Reporter.ReportEvent micPass,"Verify From and Tocaledar icons are populated or not","From and To calendar icons are populated"Else

    Reporter.ReportEvent micFail,"Verify From and Tocaledar icons are populated or not","From and To calendar icons are not populated"

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

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

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

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

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

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

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

    strDataTableValue = DataTable.Value("FromDate","ApprovedEvents")

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

    pproved Underlying Events Search","ShowCalendar")Call ClickIcon_SetDate("CorporateActions","Repor

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

    If DataTable.Value("ToDate","ApprovedEvents") "" ThenstrDataTableValue = DataTable.Value("ToDate","Ap

    provedEvents")strValue = Split(strDataTableValue,";",-1,1)

    strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    22/71

    Call click_Image("CorporateActions","Reports - Approved Underlying Events Search","ShowCalendar_2")

    Call ClickIcon_SetDate("CorporateActions","Reports - Approved Underlying Events Search",strMonthValue,strYearValue,strDateValue)

    End IfblnFrom=Trim(Browser("CorporateActions").Page("Reports - Approve

    d Underlying Events Search").WebEdit("FromDate").GetROProperty("value"))

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

    FormatFrom=Trim(SearchCriteriaDateFormat(DataTable.Value("FromDate","ApprovedEvents")))

    FormatTo=Trim(SearchCriteriaDateFormat(DataTable.Value("ToDate","ApprovedEvents")))

    If blnFrom=FormatFrom And blnTo=FormatTo ThenReporter.ReportEvent micPass,"Verify the From an

    d To date fields are populated or not","From and To Date fields are populated"Else

    Reporter.ReportEvent micFail,"Verify the From and To date fields are populated or not","From and To Date fields are not populate

    d" Call captureScreenShot()Environment.Value("Execution_Log")="False"

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

    Reporter.ReportEvent micPass,"Step 3: Provide 'From' Date and 'To' Date ","Corresponding Dates are populated in Date fields"

    ElseReporter.ReportEvent micFail,"Step 3: Provide 'F

    rom' Date and 'To' Date","Corresponding Dates are not populated in Date fields"Environment.Value("TestCase_Log")="True"

    End If

    'Step #4Browser("CorporateActions").Page("Reports - Approved Underlying

    Events Search").WebList("DateRange").Select "All"blnFrom=Trim(Browser("CorporateActions").Page("Reports - Approve

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

    Underlying Events Search").WebEdit("ToDate").GetROProperty("value"))If blnFrom="" And blnTo="" Then

    Reporter.ReportEvent micPass,"Verify From and Todate fields and corresponding calendar icons are cleared or not","From and To date fields and corresponding calendar icons are cleared"

    ElseReporter.ReportEvent micFail,"Verify From and To

    date fields and corresponding calendar icons are cleared or not","From and To date fields and corresponding calendar icons are not cleared"

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

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

    Reporter.ReportEvent micPass,"Step 4: Now select'All' from 'Date Range' dropdown","Date buttons corresponding to 'From' and 'To' should not be displayed and From and To fields should not be cleared."

    ElseReporter.ReportEvent micFail,"Step 4: Now select

    'All' from 'Date Range' dropdown","Date buttons corresponding to 'From' and 'To

    ' should be displayed and From and To fields should not be cleared."Environment.Value("TestCase_Log")="True"

    End If

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    23/71

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

    End Function

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

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

    Public Function CAReportsApprovedEvents_TC11()

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

    ision's","CorporateActions")

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

    .Value("MenuPath","ApprovedEvents"))strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A

    pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSearch").GetROProperty("innertext"))If strSearchPage="Reports - Approved Underlying Events Search"

    ThenReporter.ReportEvent micPass, "Verify Reports -

    Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is displayed with all fields"

    ElseReporter.ReportEvent micFail, "Verify Reports -

    Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is not displayed with all fields"

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

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

    Reporter.ReportEvent micPass,"Step 1: Select Approved Events from the Reports menu ","The Reports- Approved Events Search page is displayed"

    ElseReporter.ReportEvent micFail,"Step 1: Select App

    roved Events from the Reports menu ","The Reports- Approved Events Search page is not displayed"

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

    'Step #2strDefault=Trim(Browser("CorporateActions").Page("Reports - Appr

    oved Underlying Events Search").WebList("DateRange").GetROProperty("value"))If strDefault="All" Then

    Reporter.ReportEvent micPass,"Verify the defaultvalue of the date range field","By default all is selected"

    ElseReporter.ReportEvent micFail,"Verify the default

    value of the date range field","By default all is not selected"Environment.Value("Execution_Log")="False"Call captureScreenShot()

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

    Reporter.ReportEvent micPass,"Step 2: Verify thedefault value of the 'Date Range' field ","By default, 'All' should be selected"

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    24/71

    ElseReporter.ReportEvent micFail,"Step 2: Verify the

    default value of the 'Date Range' field","By default, 'All' should not be selected"

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

    'Step #3strDateRangeOptions=Trim(Browser("CorporateActions").Page("Repor

    ts - Approved Underlying Events Search").WebList("DateRange").GetROProperty("allitems"))

    If strDateRangeOptions=DataTable.Value("DateRangeOptions","ApprovedEvents") Then

    Reporter.ReportEvent micPass,"Verify the optionsavailable in the date range drop down","Options " & DataTable.Value("DateRangeOptions","ApprovedEvents") & " are displayed correctly"

    ElseReporter.ReportEvent micFail,"Verify the options

    available in the date range drop down","Options " & DataTable.Value("DateRangeO

    ptions","ApprovedEvents") & " are not displayed correctly"Environment.Value("Execution_Log")="False"Call captureScreenShot()

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

    Reporter.ReportEvent micPass,"Step 3: Click andverify the items listed under the 'Date Range' field","Date range options displayed correctly"

    ElseReporter.ReportEvent micFail,"Step 3: Click and

    verify the items listed under the 'Date Range' field","Date range options not displayed correctly"

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

    End If

    'Step #4Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA

    ctions","Reports - Approved Underlying Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv

    ed Underlying Events Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Approved Under

    lying Events Results","ApprovedEvents","ReportLinks")Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora

    teActions","Reports - Approved Underlying Events Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap

    proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

    If DateTimetext"" 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 - Approved Unde

    rlying Events Results","CAReportsApprovedEvents")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 4: Enter sear

    ch criteria and click on search button","Approved Underlying Events Report gener

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    25/71

    ated related to the search criteria entered"Else

    Reporter.ReportEvent micFail,"Step 4: Enter search criteria and click on search button","Approved Underlying Events Report not generated related to the search criteria entered"

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

    'Step #5Call select_Menu("CorporateActions","Reports - Approved Underlyi

    ng Events Results",DataTable.Value("MenuPath","ApprovedEvents"))If Environment.Value("TestCase_Log")="True" Then

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

    ElseReporter.ReportEvent micFail,"Step 5: Under Repo

    rts menu select Approved Events","Reports- Approved Events Search page is not displayed"

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

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

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

    'Step #6 To Step #7Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA

    ctions","Reports - Approved Underlying Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv

    ed Underlying Events Results").WebElement("TimeStamp"))

    Call chkReportLinks("CorporateActions","Reports - Approved Underlying Events Results","ApprovedEvents","ReportLinks")

    Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("CorporateActions","Reports - Approved Underlying Events Results")

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

    rlying Events Results","CAReportsApprovedEvents")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 6 To 7: Entersearch criteria and click on search button","Approved Underlying Events Reportgenerated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 6 To 7: Enter

    search criteria and click on search button","Approved Underlying Events Report

    not generated related to the search criteria entered"Environment.Value("TestCase_Log")="True"

    End If

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    26/71

    'Step #8Call select_Menu("CorporateActions","Reports - Approved Underlyi

    ng Events Results",DataTable.Value("MenuPath","ApprovedEvents"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 8: Under Reports menu select Approved Events","Reports- Approved Events Search page is displa

    yed"Else

    Reporter.ReportEvent micFail,"Step 8: Under Reports menu select Approved Events","Reports- Approved Events Search page is not displayed"

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

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

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

    'Step #9Browser("CorporateActions").Page("Reports - Approved Underlying

    Events Search").WebList("DateRange").Select DataTable.Value("DateRange","ApprovedEvents")

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

    'Received Date' for the 'Date Range' field","The value is selected and displayed"

    ElseReporter.ReportEvent micFail,"Step 9: Select the

    'Received Date' for the 'Date Range' field","The value is not selected and displayed"

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

    'Step #10Browser("CorporateActions").Page("Reports - Approved Underlying

    Events Search").Image("ShowCalendar").ClickBrowser("CorporateActions").Page("Reports - Approved Underlying

    Events Search").Frame("popCalFrame").WebElement("Today").ClickstrFrom=Trim(Browser("CorporateActions").Page("Reports - Approve

    d Underlying Events Search").WebEdit("FromDate").GetROProperty("value"))If DateValue(strFrom)=DateValue(Date) Then

    Reporter.ReportEvent micPass,"Verify today's date is populated or not","Today's date is populated"

    ElseReporter.ReportEvent micFail,"Verify today's dat

    e is populated or not","Today's date is not populated"Environment.Value("Execution_Log")="False"Call captureScreenshot()

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

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

    the 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"

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    27/71

    End If

    'Step #11Browser("CorporateActions").Page("Reports - Approved Underlying

    Events Search").Image("ShowCalendar").ClickBrowser("CorporateActions").Page("Reports - Approved Underlying

    Events Search").Frame("popCalFrame").Image("ClearFieldValue").Click

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

    If strFrom="" ThenReporter.ReportEvent micPass,"Verify the From da

    te field is cleated or not","From date field is cleared"Else

    Reporter.ReportEvent micFail,"Verify the From date field is cleated or not","From date field is not cleared"

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

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

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

    the calendar icon for the 'From' field and in the calendar pop up click on the 'Clear Field Value' icon","The current date is not cleared in the 'From' field"

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

    'Step #12Browser("CorporateActions").Page("Reports - Approved Underlying

    Events Search").Image("ShowCalendar_2").Click

    Browser("CorporateActions").Page("Reports - Approved UnderlyingEvents Search").Frame("popCalFrame").WebElement("Today").Click

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

    If DateValue(strTo)=DateValue(Date) ThenReporter.ReportEvent micPass,"Verify today's dat

    e is populated or not","Today's date is populated"Else

    Reporter.ReportEvent micFail,"Verify today's date is populated or not","Today's date is not populated"

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

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

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

    the 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 #13

    Browser("CorporateActions").Page("Reports - Approved UnderlyingEvents Search").Image("ShowCalendar_2").Click

    Browser("CorporateActions").Page("Reports - Approved Underlying

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    28/71

    Events Search").Frame("popCalFrame").Image("ClearFieldValue").ClickstrTo=Trim(Browser("CorporateActions").Page("Reports - Approved

    Underlying Events Search").WebEdit("ToDate").GetROProperty("value"))If strTo="" Then

    Reporter.ReportEvent micPass,"Verify the To datefield is cleated or not","To date field is cleared"

    Else

    Reporter.ReportEvent micFail,"Verify the To datefield is cleated or not","To date field is not cleared"

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

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

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

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

    ear Field Value' icon","The current date is not cleared in the 'To' field"Environment.Value("TestCase_Log")="True"End If

    'Step #14Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA

    ctions","Reports - Approved Underlying Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv

    ed Underlying Events Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Approved Under

    lying Events Results","ApprovedEvents","ReportLinks")Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora

    teActions","Reports - Approved Underlying Events Results")

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

    rlying Events Results","CAReportsApprovedEvents")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 14: Enter search criteria and click on search button","Approved Underlying Events Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 14: Enter sea

    rch criteria and click on search button","Approved Underlying Events Report notgenerated related to the search criteria entered"

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

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

    DataTable.GetSheet("ApprovedEvents").SetCurrentRow(Environment.V

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    29/71

    alue("DATATABLE_ROW"))

    'Step #15Call select_Menu("CorporateActions","Reports - Approved Underlyi

    ng Events Results",DataTable.Value("MenuPath","ApprovedEvents"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 15: Under Rep

    orts menu select Approved Events","Reports- Approved Events Search page is displayed"

    ElseReporter.ReportEvent micFail,"Step 15: Under Rep

    orts menu select Approved Events","Reports- Approved Events Search page is not displayed"

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

    'Step #16Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA

    ctions","Reports - Approved Underlying Events Search")

    Call fnc_wait(Browser("CorporateActions").Page("Reports - Approved Underlying Events Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Approved Under

    lying Events Results","ApprovedEvents","ReportLinks")Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora

    teActions","Reports - Approved Underlying Events Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap

    proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

    If DateTimetext"" 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 - Approved Unde

    rlying Events Results","CAReportsApprovedEvents")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 14: Enter search criteria and click on search button","Approved Underlying Events Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 14: Enter sea

    rch criteria and click on search button","Approved Underlying Events Report notgenerated related to the search criteria entered"

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

    Call select_Menu("CorporateActions","Reports - Approved Underlying Events Results","Home;DR Home")

    End Function

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

    Public Function CAReportsApprovedEvents_TC12()

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    30/71

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

    ision's","CorporateActions")

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

    .Value("MenuPath","ApprovedEvents"))

    strSearchPage=Trim(Browser("CorporateActions").Page("Reports - Approved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSearch").GetROProperty("innertext"))

    If strSearchPage="Reports - Approved Underlying Events Search"Then

    Reporter.ReportEvent micPass, "Verify Reports -Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is displayed with all fields"

    ElseReporter.ReportEvent micFail, "Verify Reports -

    Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is not displayed with all fields"

    Environment.Value("Execution_Log")="False"Call captureScreenShot()End IfIf Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 1: Select Approved Events from the Reports menu ","The Reports- Approved Events Search page is displayed"

    ElseReporter.ReportEvent micFail,"Step 1: Select App

    roved Events from the Reports menu ","The Reports- Approved Events Search page is not displayed"

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

    'Step #2Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA

    ctions","Reports - Approved Underlying Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv

    ed Underlying Events Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Approved Under

    lying Events Results","ApprovedEvents","ReportLinks")Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora

    teActions","Reports - Approved Underlying Events Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap

    proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

    If DateTimetext"" 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 - Approved Unde

    rlying Events Results","CAReportsApprovedEvents")Call chkReportValues("CorporateActions","Reports - Approved Unde

    rlying Events Results","Item","Underlying Security Name",DataTable.Value("UnderlyingSecurityName","ApprovedEvents"))

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

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    31/71

    Reporter.ReportEvent micPass,"Step 2: Enter search criteria and click on search button","Approved Underlying Events Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 2: Enter sear

    ch criteria and click on search button","Approved Underlying Events Report not generated related to the search criteria entered"

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

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

    End Function

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

    Public Function CAReportsApprovedEvents_TC13()

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

    ision's","CorporateActions")

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

    .Value("MenuPath","ApprovedEvents"))strSearchPage=Trim(Browser("CorporateActions").Page("Reports - A

    pproved Underlying Events Search").WebElement("ReportsApprovedUnderlyingEventsSearch").GetROProperty("innertext"))

    If strSearchPage="Reports - Approved Underlying Events Search"Then

    Reporter.ReportEvent micPass, "Verify Reports -Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is displayed with all fields"

    ElseReporter.ReportEvent micFail, "Verify Reports -

    Approved Underlying Events Search page is displayed or not","Reports - ApprovedUnderlying Events Search is not displayed with all fields"

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

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

    Reporter.ReportEvent micPass,"Step 1: Select Approved Events from the Reports menu ","The Reports- Approved Events Search page is displayed"

    ElseReporter.ReportEvent micFail,"Step 1: Select App

    roved Events from the Reports menu ","The Reports- Approved Events Search page is not displayed"

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

    'Step #2strExceptionDefault=Trim(Browser("CorporateActions").Page("Repor

    ts - Approved Underlying Events Search").WebList("Exception").GetROProperty("selection"))

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

    value of the exception field","By default All is selected in the exception fiel

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    32/71

    d"Else

    Reporter.ReportEvent micFail,"Verify the defaultvalue of the exception field","By default All is not selected in the exceptionfield"

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

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

    Reporter.ReportEvent micPass,"Step 2: Verify thedefault value of the 'Exception' field ","By default, 'All' should be selected"

    ElseReporter.ReportEvent micFail,"Step 2: Verify the

    default value of the 'Exception' field","By default, 'All' should not be selected"

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

    'Step #3

    strExceptionOptions=Trim(Browser("CorporateActions").Page("Reports - Approved Underlying Events Search").WebList("Exception").GetROProperty("allitems"))

    If strExceptionOptions=DataTable.Value("ExceptionOptions","ApprovedEvents") Then

    Reporter.ReportEvent micPass,"Verify the optionsof the exception field","Options " & DataTable.Value("ExceptionOptions","ApprovedEvents") & " are displayed correctly"

    ElseReporter.ReportEvent micFail,"Verify the options

    of the exception field","Options " & DataTable.Value("ExceptionOptions","ApprovedEvents") & " are not displayed correctly"

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

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

    Reporter.ReportEvent micPass,"Step 3: Click andverify the items listed under the 'Exception' field","Options " & DataTable.Value("ExceptionOptions","ApprovedEvents") & " are displayed correctly"

    ElseReporter.ReportEvent micFail,"Step 3: Click and

    verify the items listed under the 'Exception' field","Options " & DataTable.Value("ExceptionOptions","ApprovedEvents") & " are not displayed correctly"

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

    'Step #4Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA

    ctions","Reports - Approved Underlying Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv

    ed Underlying Events Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Approved Under

    lying Events Results","ApprovedEvents","ReportLinks")Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora

    teActions","Reports - Approved Underlying Events Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap

    proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

    If DateTimetext"" ThenReporter.ReportEvent micPass,"Verify the Date an

    d Timestamp of the report",DateTimetext&" is displayed successfully"

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    33/71

    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 - Approved Unde

    rlying Events Results","CAReportsApprovedEvents")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 4: Enter search criteria and click on search button","Approved Underlying Events Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 4: Enter sear

    ch criteria and click on search button","Approved Underlying Events Report not generated related to the search criteria entered"

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

    'Step #5Call select_Menu("CorporateActions","Reports - Approved Underlying Events Results",DataTable.Value("MenuPath","ApprovedEvents"))

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

    rts menu select Approved Events","Reports- Approved Events Search page is displayed"

    ElseReporter.ReportEvent micFail,"Step 5: Under Repo

    rts menu select Approved Events","Reports- Approved Events Search page is not displayed"

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

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

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

    'Step #6Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateA

    ctions","Reports - Approved Underlying Events Search")Call fnc_wait(Browser("CorporateActions").Page("Reports - Approv

    ed Underlying Events Results").WebElement("TimeStamp"))Call chkReportLinks("CorporateActions","Reports - Approved Under

    lying Events Results","ApprovedEvents","ReportLinks")Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("Corpora

    teActions","Reports - Approved Underlying Events Results")DateTimetext=Trim(Browser("CorporateActions").Page("Reports - Ap

    proved Underlying Events Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

    If DateTimetext"" 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 - Approved Unde

  • 8/7/2019 ADRCA_ReportsApprovedEvents

    34/71

    rlying Events Results","CAReportsApprovedEvents")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 6: Enter search criteria and click on search button","Approved Underlying Events Report generated related to the search criteria entered"

    ElseReporter.ReportEvent micFail,"Step 6: Enter sear

    ch criteria and click on search button","Approved Underlying Events Report not generated related to the search criteria entered"

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

    'Step #7Call select_Menu("CorporateActions","Reports - Approved Underlyi

    ng Events Results",DataTable.Value("MenuPath","ApprovedEvents"))If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 7: Under Reports menu select Approved Events","Reports- Approved Events Search page is displayed"

    Else Reporter.ReportEvent micFail,"Step 7: Under Reports menu select Approved Events","Reports- Approved Events Search page is not displayed"

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

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

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

    'Step #8

    Call CAReportsApprovedUnderlyingEventsSearchCriteria("CorporateActions","Reports - Approved Underlying Events Search")

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

    Call chkReportLinks("CorporateActions","Reports - Approved Underlying Events Results","ApprovedEvents","ReportLinks")

    Call chkCAReportsApprovedUnderlyingEventsSearchCriteria("CorporateActions","Reports - Approved Underlying Events Results")

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

    rlying Events Results","CAReportsApprovedEvents")Call chkReportValues("CorporateActions","Reports - Approved Unde

    rlying Events Results","Item","Exceptions",DataTable.Val