ADRCA_ProfileUnderlyingNotification

download ADRCA_ProfileUnderlyingNotification

of 97

Transcript of ADRCA_ProfileUnderlyingNotification

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    1/97

    '=========================================================================================================' Name of the Script : Corporate Actions Profille Underlying Notification' Scope of the Script : This test script covers 23 test cases related to the CA Profile Underlying Notification

    ' Author : Shyam H D' Description : Corporate Actions Profille Underlying Notification' Date and / or Version : 05 - 03 - 2009,version 1.0'===========================================================================================================

    Sub CAProfileUnderlyingNotification()

    '****Declaration of Environmental VariableEnvironment.Value("strSheetName")= "UnderlyingNotification"

    '''''''''Test case countConst TC_COUNT = 23

    strVar = Environment("TestDir")strIndVar = Split(strVar,"\",-1,1)strBound = UBound(strIndVar)strAllPath =""

    For intCounter = 0 to strBound - 1strAllPath = strAllPath & strIndVar(intCounter)

    &"\"Next

    strPath = Trim(strPath)strDataPath = strAllPath & "DataTables\"strLibPath = strAllPath & "Function_Library\"

    ' Including the Library files where all the Scripts are saved'ExecuteFile strLibPath & "CAReportsUnderlyingNotificationTC.vbs

    "

    '****Adding MFLogin sheet to the dataTable and Importing the Input DataTable

    DataTable.AddSheet "CALogin"DataTable.ImportSheet strDataPath & "Login.xls","CALogin","CALog

    in" DataTable.AddSheet "UnderlyingNotification"DataTable.ImportSheet strDataPath & "CorporateActionsProfile.xls

    ","UnderlyingNotification","UnderlyingNotification"DataTable.AddSheet "ReportHeader"DataTable.ImportSheet strDataPath & "CorporateActionsProfile.xls

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

    ","HomePageVerification","HomePageVerification"

    ' Logs the Scenario name Execution in a .csv fileCall Execution_log(DataTable.Value("Scenario_Name", "Master"), "

    ", "", "")

    '****Invoking IE and navigating to the ADR Login page

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    2/97

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

    Environment.Value("DATATABLE_ROW")=1DataTable.GetSheet("UnderlyingNotification").SetCurrentRow(Envir

    onment.Value("DATATABLE_ROW"))

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

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

    For intTCCount = 1 to TC_COUNT

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

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

    T CASE - '" & DataTable("TestCaseID","UnderlyingNotification") & "' ###########","Execution of Test Case '" & DataTable("TestCaseDesc","UnderlyingNotification") & "' Started"

    strFuncName = "CAProfileUnderlyingNotification_TC" & intTCCount

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

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

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

    ElseCall Execution_log("",Datatable.

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

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

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

    End If

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

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

    DATATABLE_ROW") + 1

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

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

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    3/97

    ification"))While strPrevious = strNext

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

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

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

    lyingNotification"))Wend

    Next

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

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

    End Sub

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

    Public Function CAProfileUnderlyingNotification_TC1()

    ' 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: Check for DR Hom

    e Page","The Required Links and the User Details are displayed Successfully"Else

    Reporter.ReportEvent micFail,"Step 1: Check for DR HomePage","The Required Links and the User Details are NOT displayed Successfully"

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

    End If

    ' Clicking on the Corporate Action ElementCall click_WebElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")

    ' Step 2Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Val

    ue("MenuName","HomePageVerification"),Environment.Value("NormalUser"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 2: Click on Corporat

    e Action Element and Check for CA Home Page","The Required Menu Items are Displayed Successfully"

    ElseReporter.ReportEvent micFail,"Step 2: Click on Corporate

    Action Element and Check for CA Home Page","The Required Menu Items are Displayed Successfully"

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

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

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    4/97

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    5/97

    the Fields","The Result are NOT displayed when clicked on 'Enter Key' with theDefaultValue in the Fields"

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

    End If

    ' Step 5:

    Call select_Menu("CorporateActions","Profile - Underlying Notification Search","Home;DR Home")

    Call chkADRHomePage("CorporateActions","Depositary Receipt Division's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 5: Check for DR Hom

    e Page","The Required Links and the User Details are displayed Successfully"Else

    Reporter.ReportEvent micFail,"Step 5: Check for DR Home

    Page","The Required Links and the User Details are NOT displayed Successfully"Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"

    End If

    End Function

    '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++''Public Function CAProfileUnderlyingNotification_TC2()'

    ' Call click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")' Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value("MenuPath", "UnderlyingNotification"))'' If Browser("CorporateActions").Page("Profile - Underlying NotificationSearch").Exist(5) Then' Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"' Else' Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is NOT displayed successfully"' Environment.Value("Execution_Log") = "False"' End If'' Call select_Menu("CorporateActions","Profile - Underlying Notification Search","Home;DR Home")''End Function'''''++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    +++++++++++++++++++++++++++''Public Function CAProfileUnderlyingNotification_TC3()

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    6/97

    '' Call click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")' Call select_Menu("CorporateActions", "CorporateActions", "PROFILE;Upload Notification")'' If Browser("CorporateActions").Page("Profile - Upload Notification").Ex

    ist(5) Then' Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile - Upload Notification ' is Displayed or NOT", "The Page ' Profile UnderlyingNotification Search ' is displayed successfully"' Else' Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profile - Upload Notification ' is Displayed or NOT", "The Page ' Profile UnderlyingNotification Search ' is NOT displayed successfully"' Environment.Value("Execution_Log") = "False"' End If'' ' Step 2

    ' Call CreateNewFolder("UploadFiles")' strFilePath = CreateFile("UploadFiles",DataTable.Value("TestCaseID","UnderlyingNotification"),"txt")' Call Select_Combo_Value("CorporateActions","Profile - Upload Notification","TargetDocument",DataTable.Value("TargetDocument","UnderlyingNotification"))'' ' Entering the path of the File and clicking on Save' Browser("CorporateActions").Page("Profile - Upload Notification").WebFile("UploadFile").Click' Browser("CorporateActions").Dialog("Choose file").WinEdit("Filename:").Set strFilePath' Browser("CorporateActions").Dialog("Choose file").WinButton("Open").Click

    '' ' Selecting Underlying Security' Call click_Image("CorporateActions","Profile - Upload Notification","UnderlyingSecurity")' Call operation_on_FrameObjects_WithName("CorporateActions","Profile - Upload Notification","lookupFrame","WebEdit","divNm",DataTable.Value("UnderlyingSecurity","UnderlyingNotification"))' Call operation_on_FrameObjects_WithName("CorporateActions","Profile - Upload Notification","lookupFrame","Image","Go","")' Call SelectValueinFrame("CorporateActions","Profile - Upload Notification","lookupFrame","FrameTable")'' ' Entering the Corporate Action Type' Call SelectCorporateActionType("CorporateActions","Profile - Upload Notification","CorporateActionType",DataTable.Value("CorporateActionType","UnderlyingNotification"))'' Call Select_Combo_Value("CorporateActions","Profile - Upload Notification","Comparison",DataTable.Value("Comparison","UnderlyingNotification"))'' ' Setting thr Local Record Date' Call click_image("CorporateActions","Profile - Upload Notification","LocalRecordDate")' 'strDate= DataTable.Value("LocalRecordDate","UnderlyingNotification")

    ' Call SetDate("CorporateActions","Profile - Upload Notification",DataTable.Value("LocalRecordDate","UnderlyingNotification"))'

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    7/97

    ' ' Saving the Changes made' Call click_Image("CorporateActions","Profile - Upload Notification","Save")' Wait(5)' If Browser("CorporateActions").Page("Underlying Upload Notification").Exist(5) Then' strAppValue = Browser("CorporateActions").Page("Underlyi

    ng Upload Notification").Frame("msgFrame").GetROProperty("innertext")' strValue = ReadTextFile(strFilePath)' strAppValue = Replace(strAppValue," ","")' strValue = Replace(strValue," ","")' If Trim(strAppValue) = Trim(strValue) Then' Reporter.ReportEvent micPass,"Step 2: Verifyingif the Document is Uploaded or Not","The Document is Uploaded Successfully"' Else' Reporter.ReportEvent micFail,"Step 2: Verifyingif the Document is Uploaded or Not","The Document is NOT Uploaded Successfully"' Environment.Value("Execution_Log") = "False"' End If

    ' Call select_Menu("CorporateActions","Underlying Upload Notification","Home;DR Home")' Else' Reporter.ReportEvent micFail,"Step 2: Verifying if the Document is Uploaded or Not","The Document is NOT Uploaded Successfully"' Environment.Value("Execution_Log") = "False"' Call select_Menu("CorporateActions","Profile - Upload Notification","Home;DR Home")' End If''End Function

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

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

    Public Function CAProfileUnderlyingNotification_TC2()

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

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

    If Browser("CorporateActions").Page("Profile - Underlying Notification Search").Exist(5) Then

    Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"

    ElseReporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi

    le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is NOT displayed successfully"

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

    End If

    strAppValues = Browser("CorporateActions").Page("Profile - Underlying Notification Search").webList("ProcessingStatus").GetROProperty("all items")

    intPos = InStr(1, strAppValues, DataTable.Value("AllItemsofVariousField"

    , "UnderlyingNotification"))If intPos 0 Then

    Reporter.ReportEvent micPass, "Step 2: Verifying if the Field ' Proc

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    8/97

    essing Staus ' has the required Items or NOT", "The Field ' Processing Status 'contains the following items: " & strAppValues

    ElseReporter.ReportEvent micFail, "Step 2: Verifying if the Field ' Proc

    essing Staus ' has the required Items or NOT", "All the Required items are not Present in the Field ' Processing Status ' "

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

    Call captureScreenShot()End If

    strDefaultValue = Browser("CorporateActions").Page("Profile - UnderlyingNotification Search").webList("ProcessingStatus").GetROProperty("value")

    If InStr(1, strDefaultValue, "All") 0 ThenReporter.ReportEvent micPass, "Step 3: Verifying the Default value i

    n the Field ' Processing Status '", "The Default Value in the Field ' ProcessingStatus ' is " & strDefaultValue

    ElseReporter.ReportEvent micFail, "Step 3: Verifying the Default value i

    n the Field ' Processing Status '", "The Default Value in the Field ' Processing

    Status ' is NOT " & strDefaultValueEnvironment.Value("Execution_Log") = "False"Call captureScreenShot()

    End If

    Call select_Menu("CorporateActions", "Profile - Underlying NotificationSearch", "Home;DR Home")End Function

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

    Public Function CAProfileUnderlyingNotification_TC3()

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

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

    If Browser("CorporateActions").Page("Profile - Underlying Notification Search").Exist(5) Then

    Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"

    ElseReporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi

    le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is NOT displayed successfully"

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

    End If

    Call EnterDetailsinUnderlyingNotification("Assigned", "", "")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass, "Step 2, 3, 4: Verifying the Details f

    or the Processing Status ' Assigned ' ", "The Notification Details for the Proce

    ssing Status Assigned is displayed successfully"Else

    Reporter.ReportEvent micFail, "Step 2, 3, 4: Verifying the Details f

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    9/97

    or the Processing Status ' Assigned ' ", "The Notification Details for the Processing Status Assigned is NOT displayed successfully"

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

    End If

    Call EnterDetailsinUnderlyingNotification("No Action Needed", "", "")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass, "Step 5, 6, 7: Verifying the Details f

    or the Processing Status 'No Action Needed' ", "The Notification Details for theProcessing Status 'No Action Needed' is displayed successfully"

    ElseReporter.ReportEvent micFail, "Step 5, 6, 7: Verifying the Details f

    or the Processing Status 'No Action Needed' ", "The Notification Details for theProcessing Status 'No Action Needed' is NOT displayed successfully"

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

    End If

    Call EnterDetailsinUnderlyingNotification("Deleted", "", "")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass, "Step 8, 9, 10: Verifying the Details

    for the Processing Status 'Deleted' ", "The Notification Details for the Processing Status 'Deleted' is displayed successfully"

    ElseReporter.ReportEvent micFail, "Step 8, 9, 10: Verifying the Details

    for the Processing Status 'Deleted' ", "The Notification Details for the Processing Status 'Deleted' is NOT displayed successfully"

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

    End If

    Call EnterDetailsinUnderlyingNotification("Return to IMMR", DataTable.Value("FromDate","UnderlyingNotification"),DataTable.Value("ToDate","UnderlyingNotification"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass, "Step 11, 12, 13: Verifying the Detail

    s for the Processing Status 'Return to IMMR' ", "The Notification Details for the Processing Status 'Return to IMMR' is displayed successfully"

    ElseReporter.ReportEvent micFail, "Step 11, 12, 13: Verifying the Detail

    s for the Processing Status 'Return to IMMR' ", "The Notification Details for the Processing Status 'Return to IMMR' is NOT displayed successfully"

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

    End If

    Call EnterDetailsinUnderlyingNotification("Unassigned", "","")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass, "Step 14, 15: Verifying the Details fo

    r the Processing Status 'Unassigned' ", "The Notification Details for the Processing Status 'Unassigned' is displayed successfully"

    Else

    Reporter.ReportEvent micFail, "Step 14, 15: Verifying the Details for the Processing Status 'Unassigned' ", "The Notification Details for the Processing Status 'Unassigned' is NOT displayed successfully"

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    10/97

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

    End If

    Call select_Menu("CorporateActions", "Profile - Underlying NotificationSearch", "Home;DR Home")

    Call chkADRHomePage("CorporateActions","Depositary Receipt Divis

    ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 16: Check for DR Ho

    me Page","The Required Links and the User Details are displayed Successfully"Else

    Reporter.ReportEvent micFail,"Step 16: Check for DR HomePage","The Required Links and the User Details are NOT displayed Successfully"

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

    End If

    End Function

    '++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Public Function CAProfileUnderlyingNotification_TC4()

    ' Step 1Call click_WebElement("CorporateActions","Depositary Receipt Division's"

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

    ("MenuPath", "UnderlyingNotification"))

    If Browser("CorporateActions").Page("Profile - Underlying Notification Search").Exist(5) Then

    Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"

    ElseReporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi

    le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is NOT displayed successfully"

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

    End If

    strFromReceivedDate = get_WebEdit_Value("CorporateActions","Profile - Underlying Notification Search","ReceivedDate")

    strToReceivedDate = get_WebEdit_Value("CorporateActions","Profile - Underlying Notification Search","ReceivedEndDate")

    If strFromReceivedDate "" And DateValue(strToReceivedDate) =Date Then

    Reporter.ReportEvent micPass,"Step 2: Verifying the Value in the Received Date Field","The Value in the Received From Date is ' " & strFromReceivedDate & " ' and Date displayed in Received End Date is 'Today Date i

    .e., ' " & strToReceivedDateElse

    Reporter.ReportEvent micFail,"Step 2: Verifying the Valu

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    11/97

    e in the Received Date Field","The Value in the Received From Date is ' NULL ' or Date displayed in Received End Date is Not 'Today Date ' "

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

    End If

    ' Step 3

    Call click_Image("CorporateActions", "Profile - Underlying NotificationSearch", "Clear")

    strReceivedDate1 = get_WebEdit_Value("CorporateActions", "Profile - Underlying Notification Search", "ReceivedDate")

    strReceivedDate2 = get_WebEdit_Value("CorporateActions", "Profile - Underlying Notification Search", "ReceivedEndDate")

    If strReceivedDate1 = "" And strRececivedDate2 = "" ThenReporter.ReportEvent micPass, "Step 3: Verifying if the Values in th

    e Date is Cleared or NOT", "The Values are Cleared after clicking on Clear button"

    ElseReporter.ReportEvent micFail, "Step 3: Verifying if the Values in th

    e Date is Cleared or NOT", "The Values are NOT Cleared after clicking on Clear button"Call captureScreenShot()

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

    ' Step 4Call click_Image("CorporateActions", "Profile - Underlying Notification

    Search", "ReceivedDate")Browser("CorporateActions").Page("Profile - Underlying Notification Sear

    ch").Frame("PopCalFrame").WebElement("Today").ClickstrReceivedDate = get_WebEdit_Value("CorporateActions", "Profile - Under

    lying Notification Search", "ReceivedDate")

    strConvertedDate = DateValue(strReceivedDate)If strConvertedDate = Date Then

    Reporter.ReportEvent micPass, "Step 4: Verifying if the Current Dateis Displayed in the Received Date Field or Not", "The Current Date is Displayedin the Received Date Field"

    ElseReporter.ReportEvent micFail, "Step 4: Verifying if the Current Date

    is Displayed in the Received Date Field or Not", "The Current Date is NOT Displayed in the Received Date Field"

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

    End If

    ' Step 5Call click_Image("CorporateActions", "Profile - Underlying Notification

    Search", "ReceivedDate")Browser("CorporateActions").Page("Profile - Underlying Notification Sear

    ch").Frame("PopCalFrame").Image("Clear").ClickstrReceivedDate = get_WebEdit_Value("CorporateActions", "Profile - Under

    lying Notification Search", "ReceivedDate")If strReceivedDate = "" Then

    Reporter.ReportEvent micPass, "Step 5: Verifying if the Date is Cleared in the Received Date Field", "The Date is Cleared in the Received Date Fieldwhen Clicked on the Clear Image in the Calender"

    Else

    Reporter.ReportEvent micFail, "Step 5: Verifying if the Date is Cleared in the Received Date Field", "The Date is NOT Cleared in the Received Date Field when Clicked on the Clear Image in the Calender"

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    12/97

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

    End If

    'Step 6Call click_Image("CorporateActions", "Profile - Underlying Notification

    Search", "ReceivedEndDate")

    Browser("CorporateActions").Page("Profile - Underlying Notification Search").Frame("PopCalFrame").WebElement("Today").Click

    strReceivedDate = get_WebEdit_Value("CorporateActions", "Profile - Underlying Notification Search", "ReceivedEndDate")

    strConvertedDate = DateValue(strReceivedDate)If strConvertedDate = Date Then

    Reporter.ReportEvent micPass, "Step 6: Verifying if the Current Dateis Displayed in the Received Date Field or Not", "The Current Date is Displayedin the Received Date Field"

    ElseReporter.ReportEvent micFail, "Step 6: Verifying if the Current Date

    is Displayed in the Received Date Field or Not", "The Current Date is NOT Displ

    ayed in the Received Date Field"Call captureScreenShot()Environment.Value("Execution_Log") = "False"

    End If

    ' Step 7Call click_Image("CorporateActions", "Profile - Underlying Notification

    Search", "ReceivedEndDate")Browser("CorporateActions").Page("Profile - Underlying Notification Sear

    ch").Frame("PopCalFrame").Image("Clear").ClickstrReceivedDate = get_WebEdit_Value("CorporateActions", "Profile - Under

    lying Notification Search", "ReceivedEndDate")If strReceivedDate = "" Then

    Reporter.ReportEvent micPass, "Step 7: Verifying if the Date is Cleared in the Received Date Field", "The Date is Cleared in the Received Date Fieldwhen Clicked on the Clear Image in the Calender"

    ElseReporter.ReportEvent micFail, "Step 7: Verifying if the Date is Clea

    red in the Received Date Field", "The Date is NOT Cleared in the Received Date Field when Clicked on the Clear Image in the Calender"

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

    ' Step 8Call click_Image("CorporateActions", "Profile - Underlying Notification

    Search", "ReceivedDate")Call SetDate("CorporateActions", "Profile - Underlying Notification Sear

    ch", DataTable.Value("FromDate", "UnderlyingNotification"))Call click_Image("CorporateActions", "Profile - Underlying Notification

    Search", "ReceivedEndDate")Call SetDate("CorporateActions", "Profile - Underlying Notification Sear

    ch", DataTable.Value("ToDate", "UnderlyingNotification"))Call click_Image("CorporateActions", "Profile - Underlying Notification

    Search", "Search")strFromDate = get_WebEdit_Value("CorporateActions", "Profile - U

    nderlying Notification Search","ReceivedDate")strToDate = get_WebEdit_Value("CorporateActions", "Profile - Und

    erlying Notification Search","ReceivedEndDate")

    Call chkDateRangeinTable("CorporateActions", "Profile - Underlying Notification Search","UnderlyingNotification","Received Date",strFromDate,str

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    13/97

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

    Reporter.ReportEvent micPass,"Step 8: Verifying if the Results are Displayed within the Date Range","The Results are Displayed in the Date Range " & strFromDate & " - " & strToDate

    ElseReporter.ReportEvent micFail,"Step 8: Verifying if the R

    esults are Displayed within the Date Range","The Results are NOT Displayed in the Date Range " & strFromDate & " - " & strToDate

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

    End IfCall select_Menu("CorporateActions", "Profile - Underlying Notif

    ication Search", "Home;DR Home")Wait(5)Call chkADRHomePage("CorporateActions","Depositary Receipt Divis

    ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser"))

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

    Reporter.ReportEvent micPass,"Step 9: Check for DR Home Page","The Required Links and the User Details are displayed Successfully"Else

    Reporter.ReportEvent micFail,"Step 9: Check for DR HomePage","The Required Links and the User Details are NOT displayed Successfully"

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

    End IfEnd Function

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

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

    Public Function CAProfileUnderlyingNotification_TC5()' Step 1Call click_WebElement("CorporateActions","Depositary Receipt Division's"

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

    ("MenuPath", "UnderlyingNotification"))

    If Browser("CorporateActions").Page("Profile - Underlying Notification Search").Exist(5) Then

    Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"

    ElseReporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi

    le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is NOT displayed successfully"

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

    End If

    ' Step 2strAssignedUserValue = Browser("CorporateActions").Page("Profile - Under

    lying Notification Search").WebList("AssignedtoUserGroups").GetROProperty("all i

    tems")If InStr(1, UCase(strAssignedUserValue), UCase(DataTable.Value("AllItems

    ofVariousField", "UnderlyingNotification"))) 0 Then

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    14/97

    Reporter.ReportEvent micPass, "Step 2: Verifying if all the Items are Present in the Field 'Assigned to User Group'", "All the Items namely " & strAssignedUserValue

    ElseReporter.ReportEvent micFail, "Step 2: Verifying if all the Items ar

    e Present in the Field 'Assigned to User Group'", "All the Items namely " & strAssignedUserValue & " are NOT Present in the Field ' Assigned to User Groups ' "

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

    End If

    ' Step 3strValue = "All"strAssignedValue = get_WebList_Value("CorporateActions", "Profile - Unde

    rlying Notification Search", "AssignedtoUserGroups")If InStr(1, strAssignedValue, strValue) 0 Then

    Reporter.ReportEvent micPass, "Step 3: Verifying the Default Value of Assigned to User Group", "The Default Value of the Field 'Assigned to User Groups' is' " & strAssigedValue '

    ElseReporter.ReportEvent micFail, "Step 3: Verifying the Default Value of Assigned to User Group", "The Default Value of the Field 'Assigned to User Groups' is NOT ' " & strAssigedValue '

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

    End If

    Call select_Menu("CorporateActions", "Profile - Underlying NotificationSearch", "Home;DR Home")End Function

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

    Public Function CAProfileUnderlyingNotification_TC6()

    ' Step 1Call click_WebElement("CorporateActions","Depositary Receipt Division's"

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

    ("MenuPath", "UnderlyingNotification"))

    If Browser("CorporateActions").Page("Profile - Underlying Notification Search").Exist(5) Then

    Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"

    ElseReporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi

    le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is NOT displayed successfully"

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

    End If

    strAssignedValues = DataTable.Value("AssignedtoUserGroups","UnderlyingNotification")

    strAssignedValue = Split(strAssignedValues,";",-1,1)

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    15/97

    For intValCounter = 0 to UBound(strAssignedValue)intCount = intValCounter + 2strSelectValue = strAssignedValue(intValCounter)Call select_Menu("CorporateActions", "Profile - Underlyi

    ng Notification Search", DataTable.Value("MenuPath", "UnderlyingNotification"))'Call click_Image("CorporateActions","Profile - Underlyi

    ng Notification Search","Clear")

    Wait(1)Call click_Image("CorporateActions","Profile - Underlyin

    g Notification Search","Search")InitialRowCount = Browser("CorporateActions").Page("Prof

    ile - Underlying Notification Search").WebTable("UnderlyingNotification").RowCount

    Call Select_Combo_Value("CorporateActions","Profile - Underlying Notification Search","AssignedtoUserGroups",strSelectValue)

    Call click_Image("CorporateActions","Profile - Underlying Notification Search","Search")

    Wait(2)

    FinalRowCount = Browser("CorporateActions").Page("Profile - Underlying Notification Search").WebTable("UnderlyingNotification").RowCount

    If FinalRowCount

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    16/97

    Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is NOT displayed successfully"

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

    End If

    ' Step 2strSourceAllValue = Browser("CorporateActions").Page("Profile - Underlyi

    ng Notification Search").WebList("Source").GetROProperty("all items")If InStr(1, strSourceAllValue, DataTable.Value("AllItemsofVariousField",

    "UnderlyingNotification")) 0 ThenReporter.ReportEvent micPass, "Step 2: Verifying if all the Items ar

    e Present in the Field 'Source'", "All the Items namely " & strSourceAllValue &" is Present in the Field 'Source' "

    ElseReporter.ReportEvent micFail, "Step 2: Verifying if all the Items ar

    e Present in the Field 'Source'", "All the Items namely " & strSourceAllValue &" are NOT Present in the Field 'Source' "

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

    ' Step 3strValue = "All"strSourceValue = get_WebList_Value("CorporateActions", "Profile - Underl

    ying Notification Search", "Source")If InStr(1, strSourceValue, strValue) 0 Then

    Reporter.ReportEvent micPass, "Step 3: Verifying the Default Value of Source Field", "The Default Value of the Field 'Source' is' " & strSourceValue'

    Else

    Reporter.ReportEvent micFail, "Step 3: Verifying the Default Value of Source Field", "The Default Value of the Field 'Source' is NOT ' " & strSourceValue '

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

    End If

    Call select_Menu("CorporateActions", "Profile - Underlying NotificationSearch", "Home;DR Home")End Function

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

    Public Function CAProfileUnderlyingNotification_TC8()

    ' Step 1Call click_WebElement("CorporateActions","Depositary Receipt Division's"

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

    ("MenuPath", "UnderlyingNotification"))

    If Browser("CorporateActions").Page("Profile - Underlying Notification Search").Exist(5) Then

    Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    17/97

    ElseReporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi

    le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is NOT displayed successfully"

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

    End If

    ' Step 2 to 15

    strSelectValues = Split(DataTable.Value("Source", "UnderlyingNotification"), ";", -1, 1)

    For intValCounter = 0 To UBound(strSelectValues)strSelectValue = strSelectValues(intValCounter)Call Select_Combo_Value("CorporateActions", "Profile - Underlying No

    tification Search", "Source", strSelectValue)Call click_Image("CorporateActions", "Profile - Underlying Notificat

    ion Search","Search")Wait (5)Call chkResultinTable("CorporateActions", "Profile - Underlying Noti

    fication Search","UnderlyingNotification", "Source", strSelectValue)If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass, "Verifying if the Results are disp

    layed with Source as " & strSelectValue, "The Results are displayed as per the Search Criteria: 'Source " & strSelectValue '

    ElseReporter.ReportEvent micFail, "Verifying if the Results are disp

    layed with Source as " & strSelectValue, "The Results are NOT displayed as per the Search Criteria: 'Source " & strSelectValue '

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

    End IfintRowCounts = Browser("CorporateActions").Page("Profile - Underlyin

    g Notification Search").WebTable("UnderlyingNotification").RowCountIf intRowCounts > 2 Then

    Call SelectElementValueinTable("CorporateActions", "Profile - Underlying Notification Search", "UnderlyingNotification", "Received Date")

    Wait (10)If Browser("CorporateActions").Page("Underlying Notification").E

    xist(2) ThenIf Browser("CorporateActions").Dialog("F

    ile Download").Exist(5) ThenBrowser("CorporateActions").Dial

    og("File Download").WinButton("Cancel").ClickEnd If

    strSourceValue = get_WebEdit_Value("CorporateActions", "Underlying Notification", "Source")

    If UCase(Trim(strSourceValue)) = UCase(Trim(strSelectValue))Then

    Reporter.ReportEvent micPass, "Verifying the Value displayed in the ' Source ' Field", "The Value displayed in the 'Source' Field is " &strSourceValue

    ElseReporter.ReportEvent micFail, "Verifying the Value displ

    ayed in the ' Source ' Field", "The " & strSourceValue & " is Not the Value displayed in the 'Source' Field "

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

    'Environment.Value("Execution_Log") = "False"End IfCall select_Menu("CorporateActions", "Underlying Notificatio

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    18/97

    n", DataTable.Value("MenuPath", "UnderlyingNotification"))Else

    Reporter.ReportEvent micFail, "Verifying if the Page 'Underlying Notification' is displayed or NOT", "The Page 'Underlying Notification' isNot displayed"

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

    'Environment.Value("TestCase_Log") = "False"End If

    ElseReporter.ReportEvent micWarning, "Verifying the Search Result",

    "No Results are displayed for the Search Criteria :'Source - " & strSelectValue& " ' "

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

    'Environment.Value("TestCase_Log") = "False"End If

    Next

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass, "Step 2 to 15 : Verifying if the Results are displayed when other items in the 'Source' Field are Selected", "The Results are displayed with other items in the 'Source' Field"

    ElseReporter.ReportEvent micFail, "Step 2 to 15 : Verifying if the Resul

    ts are displayed when other items in the 'Source' Field are Selected", "The Results are NOT displayed with other items in the 'Source' Field"

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

    End If

    If Browser("CorporateActions").Page("Underlying Notification").Exist(2)

    ThenCall select_Menu("CorporateActions", "Underlying Notification", "Hom

    e;DR Home")ElseIf Browser("CorporateActions").Page("Profile - Underlying Notificati

    on Search").Exist(2) ThenCall select_Menu("CorporateActions", "Profile - Underlying Notificat

    ion Search", "Home;DR Home")End If

    Call chkADRHomePage("CorporateActions","Depositary Receipt Division's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 16: Check for DR Ho

    me Page","The Required Links and the User Details are displayed Successfully"Else

    Reporter.ReportEvent micFail,"Step 16: Check for DR HomePage","The Required Links and the User Details are NOT displayed Successfully"

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

    End IfEnd Function

    '++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'Earlier Test Case 11

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    19/97

    Public Function CAProfileUnderlyingNotification_TC9()

    ' Step 1Call click_WebElement("CorporateActions","Depositary Receipt Division's"

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

    ("MenuPath", "UnderlyingNotification"))

    If Browser("CorporateActions").Page("Profile - Underlying Notification S

    earch").Exist(5) ThenReporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi

    le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"

    ElseReporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi

    le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is NOT displayed successfully"

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

    End If

    ' Step 2strExceptionAllValue = Browser("CorporateActions").Page("Profile - Under

    lying Notification Search").WebList("Exception").GetROProperty("all items")If InStr(1, strExceptionAllValue, DataTable.Value("AllItemsofVariousFiel

    d", "UnderlyingNotification")) 0 ThenReporter.ReportEvent micPass, "Step 2: Verifying if all the Items ar

    e Present in the Field 'Exception'", "All the Items namely " & strExecptionAllValue & " is Present in the Field 'Exception' "

    ElseReporter.ReportEvent micFail, "Step 2: Verifying if all the Items ar

    e Present in the Field 'Exception'", "All the Items namely " & strExecptionAllVa

    lue & " are NOT Present in the Field 'Exception' "Call captureScreenShot()

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

    ' Step 3strValue = "All"strExceptionValue = get_WebList_Value("CorporateActions", "Profile - Und

    erlying Notification Search", "Exception")If InStr(1, strExceptionValue, strValue) 0 Then

    Reporter.ReportEvent micPass, "Step 3: Verifying the Default Value of Exception Field", "The Default Value of the Field 'Exception' is' " & strExceptionValue '

    ElseReporter.ReportEvent micFail, "Step 3: Verifying the Default Value o

    f Exception Field", "The Default Value of the Field 'Exception' is NOT ' " & strExceptionValue '

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

    End If

    strException = Split(DataTable.Value("Exception", "UnderlyingNotification"), ";", -1, 1)

    Call click_Image("CorporateActions","Profile - Underlying Notification Search","Search")

    InitialRowCount = Browser("CorporateActions").Page("Profile - Underlying Notification Search").WebTable("UnderlyingNotification").RowCount

    Wait(2)

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    20/97

    Call Select_Combo_Value("CorporateActions", "Profile - Underlying Notification Search", "Exception", strException(0))

    Call click_Image("CorporateActions", "Profile - Underlying Notification Search","Search")

    Wait (5)FinalRowCount = Browser("CorporateActions").Page("Profile - Unde

    rlying Notification Search").WebTable("UnderlyingNotification").RowCount

    If FinalRowCount 2 Then

    Call SelectElementValueinTable("CorporateActions", "Profile - Underlying Notification Search", "UnderlyingNotification", "Received Date")

    Wait (5)If Browser("CorporateActions").Page("Underlying Notifica

    tion").Exist(5) ThenIf Browser("CorporateActions").Dialog("File Down

    load").Exist(5) ThenBrowser("CorporateActions").Dialog("File

    Download").WinButton("Cancel").Click

    End IfstrExceptionValue = get_WebEdit_Value("Corporat

    eActions", "Underlying Notification", "ParserExceptionCode")If UCase(Trim(strExceptionValue)) = "EXCEPTION"

    ThenReporter.ReportEvent micPass, "Step 5: V

    erifying the Value displayed in the ' ParserExceptionCode ' Field", "The Value displayed in the 'Source' Field is " & strExceptionValue

    ElseReporter.ReportEvent micFail, "Step 5: V

    erifying the Value displayed in the ' ParserExceptionCode ' Field", "The " & strExceptionValue & " is displayed the 'ParserExceptionCode' Field instead of 'Exception' "

    Call captureScreenShot()Environment.Value("TestCase_Log") = "Fal

    se"Environment.Value("Execution_Log") = "Fa

    lse"End IfCall select_Menu("CorporateActions", "Underlying

    Notification", DataTable.Value("MenuPath", "UnderlyingNotification"))If Browser("CorporateActions").Page("Profile - U

    nderlying Notification Search").Exist(3) ThenReporter.ReportEvent micPass,"Step 6:Ver

    ifying if the Profile - Underlying Notification is displayed or Not","The Page '

    Profile - Underlying Notification' is dispalyed successfully"Else

    Reporter.ReportEvent micFail,"Step 6:Ver

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    21/97

    ifying if the Profile - Underlying Notification is displayed or Not","The Page 'Profile - Underlying Notification' is Not dispalyed successfully"

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

    lse"End If

    Else

    Reporter.ReportEvent micFail, "Step 5 : Verifying if the Page 'Underlying Notification' is displayed or NOT", "The Page 'Underlying Notification' is Not displayed"

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

    End IfElse

    Reporter.ReportEvent micFail, "Step 3: Verifying the Search Result", "No Results are displayed for the Search Criteria :'Source - " & strSelectValue '

    Call captureScreenShot()

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

    ' Select No in Exception Field

    Call click_Image("CorporateActions","Profile - Underlying Notification Search","Search")

    InitialRowCount = Browser("CorporateActions").Page("Profile - Underlying Notification Search").WebTable("UnderlyingNotification").RowCount

    Wait(2)Call Select_Combo_Value("CorporateActions", "Profile - Underlyin

    g Notification Search", "Exception", strException(1))Call click_Image("CorporateActions", "Profile - Underlying Notif

    ication Search","Search")Wait (5)FinalRowCount = Browser("CorporateActions").Page("Profile - Unde

    rlying Notification Search").WebTable("UnderlyingNotification").RowCountIf FinalRowCount 2 ThenCall SelectElementValueinTable("CorporateActions", "Prof

    ile - Underlying Notification Search", "UnderlyingNotification", "Received Date")

    Wait (5)If Browser("CorporateActions").Page("Underlying Notifica

    tion").Exist(5) Then

    If Browser("CorporateActions").Dialog("File Download").Exist(5) Then

    Browser("CorporateActions").Dialog("File

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    22/97

    Download").WinButton("Cancel").ClickEnd IfstrExceptionValue = get_WebEdit_Value("Corporat

    eActions", "Underlying Notification", "ParserExceptionCode")If UCase(Trim(strExceptionValue)) = "" Then

    Reporter.ReportEvent micPass, "Step 8 :Verifying the Value displayed in the ' ParserExceptionCode ' Field", "The Value

    displayed in the 'ParserExceptionCode' Field is 'Null' "Else

    Reporter.ReportEvent micFail, "Step 8: Verifying the Value displayed in the ' ParserExceptionCode ' Field", "The " & strExceptionValue & " is displayed the 'ParserExceptionCode' Field instead of 'Null' "

    Call captureScreenShot()Environment.Value("TestCase_Log") = "Fal

    se"Environment.Value("Execution_Log") = "Fa

    lse"End If

    Call select_Menu("CorporateActions", "UnderlyingNotification", DataTable.Value("MenuPath", "UnderlyingNotification"))Else

    Reporter.ReportEvent micFail, "Step 7 : Verifying if the Page 'Underlying Notification' is displayed or NOT", "The Page 'Underlying Notification' is Not displayed"

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

    End IfElse

    Reporter.ReportEvent micFail, "Step 7: Verifying the Search Result", "No Results are displayed for the Search Criteria :'Source - " & st

    rSelectValue & " ' "Call captureScreenShot()Environment.Value("Execution_Log") = "False"Environment.Value("TestCase_Log") = "False"

    End If

    Call select_Menu("CorporateActions", "Profile - Underlying NotificationSearch", "Home;DR Home")

    Call chkADRHomePage("CorporateActions","Depositary Receipt Division's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 9: Check for DR Hom

    e Page","The Required Links and the User Details are displayed Successfully"Else

    Reporter.ReportEvent micFail,"Step 9: Check for DR HomePage","The Required Links and the User Details are NOT displayed Successfully"

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

    End If

    End Function

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

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    23/97

    Public Function CAProfileUnderlyingNotification_TC10()

    ' Step 1Call click_WebElement("CorporateActions","Depositary Receipt Division's"

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

    ("MenuPath", "UnderlyingNotification"))

    If Browser("CorporateActions").Page("Profile - Underlying Notification Search").Exist(5) Then

    Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"

    ElseReporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi

    le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is NOT displayed successfully"

    Call captureScreenShot()

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

    ' Step 2Call click_Image("CorporateActions", "Profile - Underlying Notification

    Search", "ISIN")Call pageCheck_Frame("CorporateActions", "Profile - Underlying Notificat

    ion Search", "lookupFrame", "ISIN;SEDOL;UnderlyingSecurityName", "Go;Clear", "ISIN;SEDOL;Und.SecurityName;Type")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass, "Step 2: Verifying the Fields inside t

    he Frame", "The Required Fields are Present in the Frame"Else

    Reporter.ReportEvent micFail, "Step 2: Verifying the Fields inside the Frame", "The Required Fields are NOT present in the Frame"

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

    End If

    ' Step 3Browser("CorporateActions").Page("Profile - Underlying Notification Sear

    ch").Frame("lookupFrame").WebEdit("ISIN").Set DataTable.Value("ISIN", "UnderlyingNotification")

    Call operation_on_FrameObjects_WithName("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame", "Image", "Go", "")

    Call ReportLoadWaitinFrame("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame", "ISIN", "ISIN")

    Call chkResultinFrame("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame", "ISIN", "ISIN", DataTable.Value("ISIN", "UnderlyingNotification"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass, "Step 3: Verifying the ISIN Values in

    the Table", "The Value in the ISIN Column is " & DataTable.Value("ISIN", "UnderlyingNotification")

    ElseReporter.ReportEvent micFail, "Step 3: Verifying the ISIN Values in

    the Table", "The Value in the ISIN Column is NOT displayed as " & DataTable.Valu

    e("ISIN", "UnderlyingNotification")Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    24/97

    End If

    ' Step 4strApp = SelectValueinFrame("CorporateActions", "Profile - Underlying No

    tification Search", "lookupFrame", "ISIN")strISINValue = get_WebEdit_Value("CorporateActions", "Profile - Underlyi

    ng Notification Search", "ISIN")

    strUndSecName = get_WebEdit_Value("CorporateActions", "Profile - Underlying Notification Search", "UnderlyingSecurityName")

    If InStr(1, UCase(Trim(strApp)), UCase(Trim(strISINValue))) 0 And InStr(1, UCase(Trim(strApp)), UCase(Trim(strUndSecName))) 0 Then

    Reporter.ReportEvent micPass, "Step 4: Verifying if the ISIN and Underlying Security Name values are filled or NOT", "The Value of ISIN is " & strISIN & " and Underlying Security Name is " & strUndSecName

    ElseReporter.ReportEvent micFail, "Step 4: Verifying if the ISIN and Und

    erlying Security Name values are filled or NOT", "The Values are not filled in ISIN or Underlying Security Name Field"

    Call captureScreenShot()

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

    ' Step 5Call click_Image("CorporateActions", "Profile - Underlying Notification

    Search", "Search")Wait (5)Call chkResultinTable("CorporateActions", "Profile - Underlying Notifica

    tion Search", "UnderlyingNotification", "ISIN", DataTable.Value("ISIN", "UnderlyingNotification"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass, "Step 5:Verifying if the Result are di

    splayed with ISIN Value = " & DataTable.Value("ISIN", "UnderlyingNotification")

    & "or NOT ", "The Results are Displayed with Search Criteria as : " & DataTable.Value("ISIN", "UnderlyingNotification")

    ElseReporter.ReportEvent micFail, "Step 5:Verifying if the Result are di

    splayed with ISIN Value = " & DataTable.Value("ISIN", "UnderlyingNotification")& "or NOT ", "The Results are NOT Displayed with ISIN Value = " & DataTable.Value("ISIN", "UnderlyingNotification")

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

    End If

    intRowCounts = Browser("CorporateActions").Page("Profile - Underlying Notification Search").WebTable("UnderlyingNotification").RowCount

    If intRowCounts > 2 ThenCall SelectElementValueinTable("CorporateActions", "Profile - Un

    derlying Notification Search", "UnderlyingNotification", "Received Date")Wait (10)If Browser("CorporateActions").Page("Underlying Notification").E

    xist(5) ThenIf Browser("CorporateActions").Dialog("F

    ile Download").Exist(5) ThenBrowser("CorporateActions").Dial

    og("File Download").WinButton("Cancel").ClickEnd IfIf Dialog("text:=Security Alert").Exist

    (3) ThenDialog("text:=Security Alert").W

    inButton("text:=&Yes").Click

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    25/97

    End IfstrISINValue = get_WebEdit_Value("CorporateActions", "Underl

    ying Notification", "ISIN")If UCase(Trim(strISINValue)) = UCase(Trim(DataTable.Value("I

    SIN", "UnderlyingNotification"))) ThenReporter.ReportEvent micPass, "Step 6: Verifying the Val

    ue displayed in the ' ISIN ' Field", "The Value displayed in the 'ISIN' Field is

    " & strISINValueElse

    Reporter.ReportEvent micFail, "Step 6: Verifying the Value displayed in the ' ISIN ' Field", "The " & strISINValue & " is Not the Valuedisplayed in the 'ISIN' Field "

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

    End IfIf Dialog("text:=Security Alert").Exist

    (3) ThenDialog("text:=Security Alert").W

    inButton("text:=&Yes").Click End IfCall select_Menu("CorporateActions", "Underlying Notificatio

    n", DataTable.Value("MenuPath", "UnderlyingNotification"))Else

    Reporter.ReportEvent micFail, "Step 6: Verifying if the Page'Underlying Notification' is displayed or NOT", "The Page 'Underlying Notification' is Not displayed"

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

    End IfElse

    Repoter.ReportEvent micFail, "Step 5: Verifying the Search Result", "No Results are displayed for the Search Criteria :'ISIN - " & strSelectValue & " '"

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

    End If

    Call select_Menu("CorporateActions", "Profile - Underlying NotificationSearch", "Home;DR Home")

    Call chkADRHomePage("CorporateActions","Depositary Receipt Division's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 7: Check for DR Hom

    e Page","The Required Links and the User Details are displayed Successfully"Else

    Reporter.ReportEvent micFail,"Step 7: Check for DR HomePage","The Required Links and the User Details are NOT displayed Successfully"

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

    End IfEnd Function

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    26/97

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

    Public Function CAProfileUnderlyingNotification_TC11()

    ' Step 1Call click_WebElement("CorporateActions","Depositary Receipt Division's"

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

    ("MenuPath", "UnderlyingNotification"))

    If Browser("CorporateActions").Page("Profile - Underlying Notification Search").Exist(5) Then

    Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"

    ElseReporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi

    le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un

    derlying Notification Search ' is NOT displayed successfully"Call captureScreenShot()Environment.Value("Execution_Log") = "False"

    End If

    ' Step 2Call click_Image("CorporateActions", "Profile - Underlying Notification

    Search", "UnderlyingSecurityName")Call pageCheck_Frame("CorporateActions", "Profile - Underlying Notificat

    ion Search", "lookupFrame", "ISIN;SEDOL;UnderlyingSecurityName", "Go;Clear", "ISIN;SEDOL;Und.SecurityName;Type")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass, "Step 2: Verifying the Fields inside t

    he Frame", "The Required Fields are present in the Frame"Else

    Reporter.ReportEvent micFail, "Step 2: Verifying the Fields inside the Frame", "The Required Fields are NOT present in the Frame"

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

    End If

    ' Step 3Browser("CorporateActions").Page("Profile - Underlying Notificat

    ion Search").Frame("lookupFrame").WebEdit("UnderlyingSecurityName").Set DataTable.Value("UnderlyingSecurity", "UnderlyingNotification")

    Call operation_on_FrameObjects_WithName("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame", "Image", "Go", "")

    Call ReportLoadWaitinFrame("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame", "ISIN", "ISIN")

    Call chkResultinFrame("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame", "ISIN","Und. Security Name",DataTable.Value("UnderlyingSecurity", "UnderlyingNotification"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass, "Step 3: Verifying the Underlying Secu

    rity Name in the Table", "The Value in the Underlying Security Name Column is "& DataTable.Value("UnderlyingSecurity", "UnderlyingNotification")

    Else

    Reporter.ReportEvent micFail, "Step 3: Verifying the Underlying Security Name in the Table", "The Value in the Underlying Security Name Column is NOT " & DataTable.Value("UnderlyingSecurity", "UnderlyingNotification")

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    27/97

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

    End If

    ' Step 4strApp = SelectValueinFrame("CorporateActions", "Profile - Underlying No

    tification Search", "lookupFrame","ISIN")

    strISINValue = get_WebEdit_Value("CorporateActions", "Profile - Underlying Notification Search", "ISIN")

    strUndSecName = get_WebEdit_Value("CorporateActions", "Profile - Underlying Notification Search", "UnderlyingSecurityName")

    If InStr(1, UCase(Trim(strApp)), UCase(Trim(strISINValue))) 0 And InStr(1, UCase(Trim(strApp)), UCase(Trim(strUndSecName))) 0 Then

    Reporter.ReportEvent micPass, "Step 4: Verifying if the ISIN and Underlying Security Name values are filled or NOT", "The Value of ISIN is " & strISIN & " and Underlying Security Name is " & strUndSecName

    ElseReporter.ReportEvent micFail, "Step 4: Verifying if the ISIN and Und

    erlying Security Name values are filled or NOT", "The Values are not filled in I

    SIN or Underlying Security Name Field"Call captureScreenShot()Environment.Value("Execution_Log") = "False"

    End If

    ' Step 5:Call click_Image("CorporateActions", "Profile - Underlying Notif

    ication Search", "UnderlyingSecurityName")Call pageCheck_Frame("CorporateActions", "Profile - Underlying Notificat

    ion Search", "lookupFrame", "ISIN;SEDOL;UnderlyingSecurityName", "Go;Clear", "ISIN;SEDOL;Und.SecurityName;Type")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass, "Step 5: Verifying the Fields inside t

    he Frame", "The Required Fields are present in the Frame"Else

    Reporter.ReportEvent micFail, "Step 5: Verifying the Fields inside the Frame", "The Required Fields are NOT present in the Frame"

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

    End IfWait(2)Browser("CorporateActions").Page("Profile - Underlying Notificat

    ion Search").Frame("lookupFrame").Image("Clear").ClickWait(2)strISINValue1 = get_WebEdit_Value("CorporateActions", "Profile -

    Underlying Notification Search", "ISIN")strUndSecName1 = get_WebEdit_Value("CorporateActions", "Profile - Underl

    ying Notification Search", "UnderlyingSecurityName")If strISINValue1 = "" And strUndSecName1 = "" Then

    Reporter.ReportEvent micPass,"Step 6: Verifying if the ISIN and Underlying Security Name value is Cleared or Not","The ISIN and Underlying Security Name is Cleared after clicking on the Clear button"

    ElseReporter.ReportEvent micFail,"Step 6: Verifying if the I

    SIN and Underlying Security Name value is Cleared or Not","The ISIN Or Underlying Security Name is Not Cleared after clicking on the Clear button"

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

    Call captureScreenShot()End If

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    28/97

    ' Step 7:Call click_Image("CorporateActions", "Profile - Underlying Notif

    ication Search", "UnderlyingSecurityName")Call pageCheck_Frame("CorporateActions", "Profile - Underlying Notificat

    ion Search", "lookupFrame", "ISIN;SEDOL;UnderlyingSecurityName", "Go;Clear", "ISIN;SEDOL;Und.SecurityName;Type")

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

    Reporter.ReportEvent micPass, "Step 7: Verifying the Fields inside the Frame", "The Required Fields are present in the Frame"

    ElseReporter.ReportEvent micFail, "Step 7: Verifying the Fields inside t

    he Frame", "The Required Fields are NOT present in the Frame"Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"

    End IfWait(2)

    ' Step 8:Browser("CorporateActions").Page("Profile - Underlying Notificat

    ion Search").Frame("lookupFrame").WebEdit("UnderlyingSecurityName").Set DataTable.Value("UnderlyingSecurity", "UnderlyingNotification")Call operation_on_FrameObjects_WithName("CorporateActions", "Profile - U

    nderlying Notification Search", "lookupFrame", "Image", "Go", "")Call ReportLoadWaitinFrame("CorporateActions", "Profile - Underlying Not

    ification Search", "lookupFrame", "ISIN", "ISIN")Call chkResultinFrame("CorporateActions", "Profile - Underlying Notifica

    tion Search", "lookupFrame", "ISIN","Und. Security Name",DataTable.Value("UnderlyingSecurity", "UnderlyingNotification"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass, "Step 8: Verifying the Underlying Secu

    rity Name in the Table", "The Value in the Underlying Security Name Column is "

    & DataTable.Value("UnderlyingSecurity", "UnderlyingNotification")Else

    Reporter.ReportEvent micFail, "Step 8: Verifying the Underlying Security Name in the Table", "The Value in the Underlying Security Name Column is NOT " & DataTable.Value("UnderlyingSecurity", "UnderlyingNotification")

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

    End If

    ' Step 9strApp = SelectValueinFrame("CorporateActions", "Profile - Underlying No

    tification Search", "lookupFrame","ISIN")strISINValue = get_WebEdit_Value("CorporateActions", "Profile - Underlyi

    ng Notification Search", "ISIN")strUndSecName = get_WebEdit_Value("CorporateActions", "Profile - Underly

    ing Notification Search", "UnderlyingSecurityName")If InStr(1, UCase(Trim(strApp)), UCase(Trim(strISINValue))) 0 And InS

    tr(1, UCase(Trim(strApp)), UCase(Trim(strUndSecName))) 0 ThenReporter.ReportEvent micPass, "Step 9: Verifying if the ISIN and Und

    erlying Security Name values are filled or NOT", "The Value of ISIN is " & strISIN & " and Underlying Security Name is " & strUndSecName

    ElseReporter.ReportEvent micFail, "Step 9: Verifying if the ISIN and Und

    erlying Security Name values are filled or NOT", "The Values are not filled in ISIN or Underlying Security Name Field"

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

    End If

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    29/97

    ' Step 10Call click_Image("CorporateActions", "Profile - Underlying Notification

    Search", "Search")Wait (5)Call chkResultinTable("CorporateActions", "Profile - Underlying Notifica

    tion Search", "UnderlyingNotification", "Underlying Security", DataTable.Value("

    UnderlyingSecurity", "UnderlyingNotification"))If Environment.Value("TestCase_Log") = "True" Then

    Reporter.ReportEvent micPass, "Step 10:Verifying if the Result are displayed with Underlying Security Name = " & DataTable.Value("UnderlyingSecurity", "UnderlyingNotification") & "or NOT ", "The Results are Displayed with SearchCriteria as Underlying Security Name: " & DataTable.Value("UnderlyingSecurity","UnderlyingNotification")

    ElseReporter.ReportEvent micFail, "Step 10:Verifying if the Result are d

    isplayed with Underlying Security Name = " & DataTable.Value("UnderlyingSecurity", "UnderlyingNotification") & "or NOT ", "The Results are NOT Displayed with Underlying Security Name = " & DataTable.Value("UnderlyingSecurity", "UnderlyingNo

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

    End If

    intRowCounts = Browser("CorporateActions").Page("Profile - Underlying Notification Search").WebTable("UnderlyingNotification").RowCount

    If intRowCounts > 2 ThenCall SelectElementValueinTable("CorporateActions", "Profile - Un

    derlying Notification Search", "UnderlyingNotification", "Received Date")Wait (10)If Browser("CorporateActions").Page("Underlying Notification").E

    xist(2) Then

    If Browser("CorporateActions").Dialog("File Download").Exist(5) Then

    Browser("CorporateActions").Dialog("File Download").WinButton("Cancel").Click

    End IfstrUnderlyingSecurityNameValue = get_WebEdit_Value("Corporat

    eActions", "Underlying Notification", "UnderlyingSecurityName")If UCase(Trim(strUnderlyingSecurityNameValue)) = UCase(Trim(

    DataTable.Value("UnderlyingSecurity", "UnderlyingNotification"))) ThenReporter.ReportEvent micPass,"Step 11: Verifying the Val

    ue displayed in the ' UnderlyingSecurityName ' Field", "The " & strUnderlyingSecurityNameValue & " is the Value displayed in the 'UnderlyingSecurityName' Field"

    ElseReporter.ReportEvent micFail, "Step 11: Verifying the Va

    lue displayed in the ' UnderlyingSecurityName ' Field", "The " & strUnderlyingSecurityNameValue & " is Not the Value displayed in the 'UnderlyingSecurityName' Field "

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

    End IfCall select_Menu("CorporateActions", "Underlying Notificatio

    n", DataTable.Value("MenuPath", "UnderlyingNotification"))Else

    Reporter.ReportEvent micFail, "Step 11: Verifying if the Page 'Underlying Notification' is displayed or NOT", "The Page 'Underlying Notification' is Not displayed"

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    30/97

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

    End IfElse

    Reporter.ReportEvent micFail, "Step 10: Verifying the Search Result", "No Results are displayed for the Search Criteria :'UnderlyingSecurityName

    - " & strSelectValue 'Call captureScreenShot()

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

    End If'Next

    Call select_Menu("CorporateActions", "Profile - Underlying Notification

    Search", "Home;DR Home")Call chkADRHomePage("CorporateActions","Depositary Receipt Divis

    ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 12: Check for DR Ho

    me Page","The Required Links and the User Details are displayed Successfully"Else

    Reporter.ReportEvent micFail,"Step 12: Check for DR HomePage","The Required Links and the User Details are NOT displayed Successfully"

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

    End IfEnd Function

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

    Public Function CAProfileUnderlyingNotification_TC12()

    ' Step 1Call click_WebElement("CorporateActions","Depositary Receipt Division's"

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

    ("MenuPath", "UnderlyingNotification"))

    If Browser("CorporateActions").Page("Profile - Underlying Notification Search").Exist(5) Then

    Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"

    ElseReporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi

    le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is NOT displayed successfully"

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

    End If

    ' Step 2Call click_Image("CorporateActions", "Profile - Underlying Notification

    Search", "CorporateActionType")

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    31/97

    Call pageCheck_Frame("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame", "CorporateActionType", "Go;Clear", "CorporateActionType")

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

    ElseblnFlag = "False"

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

    strDataValue = ""intDataRowCount = DataTable.GetSheet("ReportHeader").GetRowCountFor intCounter = 1 to intDataRowCount

    DataTable.GetSheet("ReportHeader").SetCurrentRow(intCounter)

    strDataValues = Trim(DataTable.Value("UploadNotification","ReportHeader"))

    strDataValue = strDataValue & strDataValues & ";"Next

    strDataValue = Replace(strDataValue," ","")intRowCount = Browser("CorporateActions").Page("Profile - Underlying Notification Search").Frame("lookupFrame").WebTable("ISIN").RowCount

    strAppValue = ""blnTestFlag = "True"For intRowCounter = 2 to intRowCount

    strAppValue = Browser("CorporateActions").Page("Profile- Underlying Notification Search").Frame("lookupFrame").WebTable("ISIN").GetCellData(intRowCounter,1)

    strAppValue = Replace(strAppValue," ","")If Instr(1,strDataValue,strAppValue) = 0 Then

    blnTestFlag = "False"Exit For

    End IfNext

    If blnTestFlag = "True" AND blnFlag = "True" ThenReporter.ReportEvent micPass,"Step 2: Verifying if the r

    equired Items are Present in the Table and the Required Fields are Present in the Frame","The Required Items are Present in the Table are " & strAppValue & " and the Required Fields are Present in the Frame"

    ElseReporter.ReportEvent micFail,"Step 2: Verifying if the r

    equired Items are Present in the Table","The Required Items are NOT Present in the Table or the Required Fields are Present in the Frame"

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

    End If

    ' Step 3Browser("CorporateActions").Page("Profile - Underlying Notification Sear

    ch").Frame("lookupFrame").WebEdit("CorporateActionType").Set DataTable.Value("SelectCAType", "UnderlyingNotification")

    Call operation_on_FrameObjects_WithName("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame", "Image", "Go", "")

    Call ReportLoadWaitinFrame("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame", "ISIN", "Corporate Action Type")

    Call chkResultinFrame("CorporateActions", "Profile - Underlying Notifica

    tion Search", "lookupFrame","ISIN","Corporate Action Type", DataTable.Value("SelectCAType", "UnderlyingNotification"))

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    32/97

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass, "Step 3: Verifying if the Results are

    displayed or NOT", "The Value in the Corporate Action Type Column is " & DataTable.Value("SelectCAType", "UnderlyingNotification")

    ElseReporter.ReportEvent micFail, "Step 3: Verifying if the Results are

    displayed or NOT", "The Value in the Corporate Action Type Column is NOT " & Dat

    aTable.Value("SelectCAType", "UnderlyingNotification")Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"

    End If

    Browser("CorporateActions").Page("Profile - Underlying Notification Search").WebElement("html tag:=TD", "innertext:=" & DataTable.Value("CorporateActionType", "UnderlyingNotification")).Click

    ' Step 4strCATypeValue = get_WebEdit_Value("CorporateActions", "Profile - Underl

    ying Notification Search", "CorporateActionType")

    If UCase(strCATypeValue) = UCase(DataTable.Value("CorporateActionType","UnderlyingNotification")) ThenReporter.ReportEvent micPass, "Step 4: Verifying the Corporate Actio

    n Type Value", "The Corporate Action Type Value is " & strCATypeValueElse

    Reporter.ReportEvent micFail, "Step 4: Verifying the Corporate Action Type Value", "The Corporate Action Type Value is NOT " & strCATypeValue

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

    End If

    ' Step 5Call click_Image("CorporateActions", "Profile - Underlying Notification

    Search", "Search")Wait (5)Call chkResultinTable("CorporateActions", "Profile - Underlying Notifica

    tion Search", "UnderlyingNotification", "Corporate Action Type", DataTable.Value("CorporateActionType", "UnderlyingNotification"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass, "Step 5:Verifying if the Result are di

    splayed with Corporate Action Type Value as = " & DataTable.Value("SelectCAType", "UnderlyingNotification") & "or NOT ", "The Results are Displayed with SearchCriteria as Corporate Action Tyep: " & DataTable.Value("SelectCAType", "UnderlyingNotification")

    ElseReporter.ReportEvent micFail, "Step 5:Verifying if the Result are di

    splayed with Corporate Action Type value as = " & DataTable.Value("SelectCAType", "UnderlyingNotification") & "or NOT ", "The Results are NOT Displayed with Corporate Action Type = " & DataTable.Value("SelectCAType", "UnderlyingNotification")

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

    End If

    ' Step 6, 7intRowCounts = Browser("CorporateActions").Page("Profile - Underlying No

    tification Search").WebTable("UnderlyingNotification").RowCountIf intRowCounts > 2 Then

    Call SelectElementValueinTable("CorporateActions", "Profile - Underlying Notification Search", "UnderlyingNotification", "Received Date")

    Wait (10)

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    33/97

    If Browser("CorporateActions").Page("Underlying Notification").Exist(2) Then

    If Browser("CorporateActions").Dialog("File Download").Exist(5) Then

    Browser("CorporateActions").Dialog("File Download").WinButton("Cancel").Click

    End If

    strCorporateActionTypeValue = get_WebEdit_Value("CorporateActions", "Underlying Notification", "CorporateActionType")

    If UCase(Trim(strCorporateActionTypeValue)) = UCase(Trim(DataTable.Value("CorporateActionType", "UnderlyingNotification"))) Then

    Reporter.ReportEvent micPass, "Step 6: Verifying the Value displayed in the ' CorporateActionType ' Field", "The Value displayed in the'CorporateActionType' Field is " & strCorporateActionTypeValue

    ElseReporter.ReportEvent micFail, "Step 6: Verifying the Val

    ue displayed in the ' CorporateActionType ' Field", "The " & strCorporateActionTypeValue & " is Not the Value displayed in the 'CorporateActionType' Field "

    Call captureScreenShot()

    Environment.Value("Execution_Log") = "False"End IfCall click_WebElement("CorporateActions", "Underlying Notifi

    cation", "UnderlyingNotificationSearch")Wait(2)If Browser("CorporateActions").Dialog("M

    icrosoft Internet Explorer").Exist(5) ThenBrowser("CorporateActions").Dial

    og("Microsoft Internet Explorer").WinButton("Cancel").ClickEnd If

    strCATypeValue = get_WebEdit_Value("CorporateActions", "Profile - Underlying Notification Search", "CorporateActionType")

    If UCase(strCATypeValue) = UCase(DataTab

    le.Value("CorporateActionType", "UnderlyingNotification")) ThenReporter.ReportEvent micPass, "S

    tep 7: Verifying the Corporate Action Type Value", "The Corporate Action Type Value is " & strCATypeValue

    ElseReporter.ReportEvent micFail, "S

    tep 7: Verifying the Corporate Action Type Value", "The Corporate Action Type Value is NOT " & strCATypeValue

    Call captureScreenShot()Environment.Value("Execution_Log

    ") = "False"End If

    ElseReporter.ReportEvent micFail, "Step 6: Verifying if the Page

    'Underlying Notification' is displayed or NOT", "The Page 'Underlying Notification' is Not displayed"

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

    End IfElse

    Reporter.ReportEvent micFail, "Step 5: Verifying the Search Result", "No Results are displayed for the Search Criteria :'CorporateActionType - "& DataTable.Value("SelectCAType", "UnderlyingNotification")

    Call captureScreenShot()

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

    End If

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    34/97

    Call select_Menu("CorporateActions", "Profile - Underlying Notification

    Search", "Home;DR Home")Call chkADRHomePage("CorporateActions","Depositary Receipt Divis

    ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 8: Check for ADR Ho

    me Page","The Required Links and the User Details are displayed Successfully"Else

    Reporter.ReportEvent micFail,"Step 8: Check for ADR HomePage","The Required Links and the User Details are NOT displayed Successfully"

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

    End IfEnd Function

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

    Public Function CAProfileUnderlyingNotification_TC13()

    ' Step 1Call click_WebElement("CorporateActions","Depositary Receipt Division's"

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

    ("MenuPath", "UnderlyingNotification"))

    If Browser("CorporateActions").Page("Profile - Underlying Notification S

    earch").Exist(5) ThenReporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi

    le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"

    ElseReporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi

    le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is NOT displayed successfully"

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

    End If

    ' Step 2Call click_Image("CorporateActions", "Profile - Underlying Notification

    Search", "Custodian")Call pageCheck_Frame("CorporateActions", "Profile - Underlying Notificat

    ion Search", "lookupFrame", "Custodian", "Go;Clear", "Custodian")If Environment.Value("TestCase_Log") = "True" Then

    Reporter.ReportEvent micPass, "Step 2: Verifying the Fields inside the Frame", "The Required Fields are present in the Frame"

    ElseReporter.ReportEvent micFail, "Step 2: Verifying the Fields inside t

    he Frame", "The Required Fields are NOT present in the Frame"Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"

    End If

    ' Step 3

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    35/97

    Browser("CorporateActions").Page("Profile - Underlying Notification Search").Frame("lookupFrame").WebEdit("Custodian").Set DataTable.Value("Custodian","UnderlyingNotification")

    Call operation_on_FrameObjects_WithName("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame", "Image", "Go", "")

    Call ReportLoadWaitinFrame("CorporateActions", "Profile - Underlying Notification Search","lookupFrame","ISIN","Custodian")

    Call chkResultinFrame("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame", "ISIN", "Custodian", DataTable.Value("Custodian", "UnderlyingNotification"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass, "Step 3: Verifying if the Results are

    displayed or NOT", "The Value in the Custodian Column is " & DataTable.Value("Custodian", "UnderlyingNotification")

    ElseReporter.ReportEvent micFail, "Step 3: Verifying if the Results are

    displayed or NOT", "The Value in the Custodian Column is NOT " & DataTable.Value("Custodian", "UnderlyingNotification")

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

    ' Step 4Call SelectValueinFrame("CorporateActions", "Profile - Underlying Notifi

    cation Search", "lookupFrame", "ISIN")strCustodianValue = get_WebEdit_Value("CorporateActions", "Profile - Und

    erlying Notification Search", "Custodian")If InStr(1, strCustodianValue, DataTable.Value("Custodian", "UnderlyingN

    otification")) 0 ThenReporter.ReportEvent micPass, "Step 4: Verifying the Value in the Cu

    stodian Field", "The Value in the Custodian Field Contains " & DataTable.Value("

    Custodian", "UnderlyingNotification")Else

    Reporter.ReportEvent micPass, "Step 4: Verifying the Value in the Custodian Field", "The Value in the Custodian Field Contains " & DataTable.Value("Custodian", "UnderlyingNotification")

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

    End If

    ' Step 5Call click_Image("CorporateActions", "Profile - Underlying Notification

    Search", "Search")

    RowCount = Browser("CorporateActions").Page("Profile - Underlying Notification Search").WebTable("UnderlyingNotification").RowCount

    If RowCount > 2 ThenReporter.ReportEvent micPass,"Step 5: Verfiying if the R

    esults are displayed or Not","The Results are Displayed Successfully"Else

    Reporter.ReportEvent micFail,"Step 5: Verfiying if the Results are displayed or Not","The Results are NOT Displayed Successfully"

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

    End If

    Call select_Menu("CorporateActions","Profile - Underlying Notification Search","Home;DR Home")

  • 8/7/2019 ADRCA_ProfileUnderlyingNotification

    36/97

    Call chkADRHomePage("CorporateActions","Depositary Receipt Division's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 6: Check for DR Hom

    e Page","The Required Links and the User Details are displayed Successfully"

    ElseReporter.ReportEvent micFail,"Step 6: Check for DR Home

    Page","The Required Links and the User Details are NOT displayed Successfully"Environment.Value("Execution_Log") = "False"Environment.Value("TestCase_Log") = "True"

    End If

    End Function

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

    Public Function CAProfileUnderlyingNotification_TC14()

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

    Call select_Menu("CorporateActions", "CorporateActions", "PROFILE;UploadNotification")

    If Browser("CorporateActions").Page("Profile - Upload Notification