ADRMF CreateNewDR Modified

  • Upload
    imaarha

  • View
    215

  • Download
    0

Embed Size (px)

Citation preview

  • 8/7/2019 ADRMF CreateNewDR Modified

    1/239

    '=========================================================================================================' Name of the Script : MasterFile Profile DR' Scope of the Script : This test script covers 13 test cases related to the MF Profile --> DR' Author: Ganesh Viswanathan

    ' Description : MasterFile Profile DR' Date and / or Version : 9-12-2008,version 1.0'===========================================================================================================

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

    Sub MFProfileDR()

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

    '''''''''Test case countconst TC_COUNT = 15

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

    For intPathCounter = 0 to strBound - 1strAllPath = strAllPath & strIndVar(intPathCount

    er) &"\"Next

    strPath = Trim(strPath)strDataPath = strAllPath & "DataTables\"strLibPath = strAllPath & "Function_Library\"Call LoadRepository("ObjectRepositoryForADRMFCreateNewDR.tsr;Mas

    terFileReports.tsr")

    Environment.Value("strSheetName")="DR"'****Adding MFLogin sheet to the dataTable and Importing the Inp

    ut DataTableDataTable.AddSheet "MFLogin"DataTable.ImportSheet strDataPath & "Login.xls","MFLogin","MFLog

    in"

    DataTable.AddSheet "DR"DataTable.ImportSheet strDataPath & "MasterFileProfile.xls","DR","DR"

    DataTable.AddSheet "ReportHeader"DataTable.ImportSheet strDataPath & "MasterFileProfile.xls","Rep

    ortHeader","ReportHeader"DataTable.AddSheet "HomePageVerification"DataTable.ImportSheet strDataPath & "MasterFileProfile.xls","Hom

    ePageVerification","HomePageVerification"

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

    ", "", "")

    ' Loading the Repository'Call LoadRepository("ObjectRepositoryForADRMFCreateNewDR.tsr")

  • 8/7/2019 ADRMF CreateNewDR Modified

    2/239

    '****Invoking IE and navigating to the ADR Login pageDataTable.GetSheet("MFLogin").SetCurrentRow(1)'Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL"

    ,"MFLogin"))

    '****Checking the username, password and login objects in the lo

    gin page' Call pageCheck_WebEdit("MasterFile","Login Page","username;j_password","")' Call pageCheck_WebButton("MasterFile","Login Page","Login","")

    '****Entering username and password and login into the masterfile application

    'Call login("MasterFile","Login Page","User","MFLogin")

    Environment.Value("DATATABLE_ROW")=1DataTable.GetSheet("DR").SetCurrentRow(Environment.Value("DATATA

    BLE_ROW"))

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

    Environment.Value("ISSUERNAME")=""For intTCCount = 1 to TC_COUNT

    Environment.Value("TCCURCOUNT")=intTCCountEnvironment.Value("Execution_Log") = "True"If DataTable("TestRunFlag","DR")="Y" Then

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

    T CASE - '" & DataTable("TestCaseID","DR") & "' ########### ","Execution of TestCase '" & DataTable("TestCaseDesc","DR") & "' Started"

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

    ''Call FunctionExecute "Call " & strFuncName

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

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

    ElseCall Execution_log("",Datatable.

    Value("TestCaseID", "DR"), Datatable.Value("TestCaseDesc", "DR"), "FAIL")End IfReporter.ReportEvent micDone,"######### END OF T

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

    End If

    'Checking AND incrementing the datatablestrPrevious=Trim(DataTable.Value("TestCaseID","D

    R"))

    ''Increment the test data table row

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

    DataTable.GetSheet("DR").SetCurrentRow(Environment.Va

  • 8/7/2019 ADRMF CreateNewDR Modified

    3/239

    lue("DATATABLE_ROW"))strNext=Trim(DataTable.Value("TestCaseID","DR"))While strPrevious = strNext And strPrevious ""

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

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

    strNext=Trim(DataTable.Value("TestCaseID","DR"))

    Wend

    Next

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

    'Call UnLoadRepository("ObjectRepositoryForADRMFCreateNewDR.tsr;MasterFileReports.tsr")'***************************************** TC Driver End *******************************************************

    End Sub

    ''**********************************************Test Case 1 to Test Case 15**************************************************

    Public Function MFProfileDR_TC1()Environment.Value("TestCase_Log")="True"

    Environment.Value("CUSIP_NAME")=""Environment.Value("DRNAME")=""Environment.Value("ISSUERNAME")=""

    'Step1'Log into the ADR home page

    Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL","MFLogin"))

    Call pageCheck_WebEdit("MasterFile","Login Page","username;j_password","")

    Call pageCheck_WebButton("MasterFile","Login Page","Login","")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 1: Verfiying if the L

    ogin Page is Dispalyed or NOT","The Login Page is Dispalyed successfully with the Required Field"

    ElseReporter.ReportEvent micFail,"Step 1: Verfiying if the L

    ogin Page is Dispalyed or NOT","The Login Page is NOT Dispalyed successfully with the Required Field"

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

    End If

    'Calling the login functionCall login("MasterFile","Login Page","Relationship Management","

    MFLogin")' Check the MasterFile Application for the 4 links, User Name and the last Login

    DetailsCall chkADRHomePage("MasterFile","Depositary Receipt Division's"

    ,DataTable.Value("HomePageLinks","HomePageVerification"),DataTable.Value("UserFu

  • 8/7/2019 ADRMF CreateNewDR Modified

    4/239

    llName","MFLogin" ))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass," Verifying the DR Home Pag

    e","The DR Home Page is displayed successfully with Home Page Links and the UserDetails"

    Else

    Reporter.ReportEvent micFail," Verifying the DR Home Page","The DR Home Page is NOT displayed successfully with Home Page Links and theUser Details"

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

    End If

    'Step2'Click on the masterFile buttonCall click_WebElement("MasterFile","Depositary Receipt Division'

    s","MasterFile")

    Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","MFLogin" ))

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

    ome Page","The MF Home Page is disaplyed successfully with the required Menu Items and also displays the Current Version"

    Else

    Reporter.ReportEvent micFail,"Step 2: Verfiying the MF Home Page","The MF Home Page is NOT displayed successfully"

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

    End If

    'Step3'Click on the Profile Link

    Call check_Menu("MasterFile","MasterFile","Profile")

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

    is Present in the Profile Menu or Not","The DR Menu is Present in the Profile Menu"

    ElseReporter.ReportEvent micPass, "Step 3: Verifying if the DR Menu

    is Present in the Profile Menu or Not","The DR Menu is NOT Present in the Profile Menu"

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

    'Step4'Click on the DR Link

  • 8/7/2019 ADRMF CreateNewDR Modified

    5/239

    Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","DR"))

    Call pageCheck_WebEditOR("MasterFile","Profile - DR Search","IssuerName;DRName")

    Call pageCheck_WebListOR("MasterFile","Profile - DR Search","CountryOfManagement;DrOrigin;DRType;DRExchange;SorU;Status;SubStatus")

    'Call pageCheck_WebElementinTable("MasterFile","Profile - DR Search","Name;Country of Management;Type;Status;Sub-Status;S/U;Effective Date;Termination Date;Depository;Origin;Structure","")

    intRC = Browser("MasterFile").Page("Profile - DR Search").WebTable("DR Search Results").RowCount

    If intRC

  • 8/7/2019 ADRMF CreateNewDR Modified

    6/239

    Reporter.ReportEvent micPass,"Step6 to 19:Create a New DR and Attach a CUSIP to it","The New DR with name as "& Environment.Value("DRNAME") &" and CUSIP:"& Ucase(Environment.Value("CUSIP_NAME")) &" is created successfully on saving which we get a Yellow Flag"

    ElseReporter.ReportEvent micFail,"Step6 to 19 :Create a New

    DR and attach a CUSIP to it","The New DR is not created successfully"

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

    'Step21Call click_WebElement("MasterFile","DR Profile","Offerings")

    If Browser("MasterFile").Page("DR Profile").WebTable("Offerings").Exist(2) Then

    Reporter.ReportEvent micPass,"Step20: Check for the offerings tab","The details in the offering tab is as required"

    Else

    Reporter.ReportEvent micFail,"Step20: Check for the offerings tab","The Details in the offerings tab is not as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

    End If

    'Step22Call click_WebElement("MasterFile","DR Profile","Additional DR Exchanges

    ")If Browser("MasterFile").Page("DR Profile").WebTable("Additional DR Exch

    ange").Exist(2) and Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step21: Check whether the Addition

    al DR exchange Tab is as required","The Additional DR Exchanges Tab is as Required"

    ElseReporter.ReportEvent micFail,"Step21: Check whether the Addition

    al exchange Tab is as required","The Additional DR exchanges tab is not present"Call captureScreenshot()Environment.Value("Execution_Log")="False"

    End If' Call click_WebButton("MasterFile","DR Profile","Add_DRExchange")' Call click_Image("MasterFile","DR Profile","ExchangeInfo")' Call operation_on_FrameObjects_WithName("MasterFile","DR Profile

    ","lookupFrame","WebEdit","searchString",dataTable.Value("DRExchangeForCUSIP","DR"))

    ' Call operation_on_FrameObjects_WithName("MasterFile","DR Profile","lookupFrame","Image","Go","")

    ' Call SelectValueInsideFrame("MasterFile","DR Profile","lookupFrame",dataTable.Value("DREXchangeForCUSIP","DR"))

    ' Call set_WebEdit_Value("MasterFile","DR Profile","SEDOL",SEDOL)' Call set_WebEdit_Value("MasterFile","DR Profile","Ticker")' Call click_Image("MasterFile","DR Profile","Save")' If Environment.Value("TestCase_Log")=true Then' Reporter.ReportEvent micPass,"Step22:Fill in the Additio

    nal DR Exchanges Tab","The Additional DR exchanges tab gets filled"' Else' Reporter.ReportEvent micFail,"Step22: Fill in the Additi

    onal DR exchanges tab","The additional DR Exchange tab is not filled as required"

    ' Environment.Value("TestCase_Log")=true

  • 8/7/2019 ADRMF CreateNewDR Modified

    7/239

    ' End If'Step23 and 24Call click_WebElement("MasterFile","DR Profile","Other DR Services")If Browser("MasterFile").Page("DR Profile").WebTable("Other DR Services"

    ).Exist(2) ThenReporter.ReportEvent micPass,"Step22 and 23: Check whether the A

    dditional DR exchange Tab is as required","The Additional DR Exchanges Tab is as

    Required"Else

    Reporter.ReportEvent micFail,"Step22 and 23: Check whether the Additional exchange Tab is as required","The Additional DR exchanges tab is not present"

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

    End If

    'Step24

    If Browser("MasterFile").Page("DR Profile").WebElement("DRDocumentation"

    ).Exist(2) ThenReporter.ReportEvent micPass,"Step24: Check whether the DR Docum

    entation link is present or not","The DR Documentation link is present as required"

    ElseReporter.ReportEvent micFail,"Step24: Check whether the DR Docum

    entation link is present or not","The DR Documentation link is not present as required"

    Call captureScreenshot()

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

    'Step26Browser("MasterFile").Page("DR Profile").WebElement("DRDocumentation").c

    lickIf Browser("MasterFile").Page("DR Documentation Detail").Exist(2) Then

    Reporter.ReportEvent micPass,"Step25: Click on the DR Documentation link","The DR Documentation link is clicked as required"

    ElseReporter.ReportEvent micFail,"Step25: Click on the DR Documentat

    ion link","The DR Documentation link is not clicked"Call captureScreenshot()Environment.Value("Execution_Log")="False"

    End If

    'Step27 to 31'Filling in the DR documentation

    call Fill_DR_Documentation("MasterFile","DR Documentation Detail")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step26 to28: Fill the DR Documentation and click on save","The DR documentation is done and saved"

    ElseReporter.ReportEvent micFail,"Step26 to 28: Fill the DR Document

    ation and click on save","The DR documentation is not done properly"Environment.Value("TestCase_Log")="True"End If

  • 8/7/2019 ADRMF CreateNewDR Modified

    8/239

    Call click_WebElement("MasterFile","DR Profile","Detail")If dataTable.Value("Type","DR") "144A" And datatable.Value("Type","D

    R") "RegS" And DataTable.Value("DepositoryName","DR") ="BNY" Then

    Call click_WebElement("MasterFile","DR Profile","SEC Filing")

    Call set_WebEdit_Value("MasterFile","DR Profile","CurrentF6ADS",dataTable.Value("CurrentF6ADS","DR"))

    Call set_WebEdit_Value("MasterFile","DR Profile","CurF6Number",dataTable.Value("CurF6Number","DR"))

    Wait(2)

    If DataTable.Value("F6FileDate","DR") "" ThenstrDataTableValue = DataTable.Value("F6F

    ileDate","DR") strValue = Split(strDataTableValue,";",-1,1)

    strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)Call click_Image("MasterFile","DR Profil

    e","ShowCalendar_F6FileDate")Call ClickIcon_SetDate("MasterFile","DR

    Profile",strMonthValue,strYearValue,strDateValue)End IfCall click_Image("MasterFile","DR Profile","Save")

    End If

    Wait(2)Call click_WebElement("MasterFile","DR Profile","Detail")Wait(2)Call Select_Combo_Value("MasterFile","DR Profile","Status","Effective")Wait(2)Call click_Image("MasterFile","DR Profile","Save")Wait(5)If Browser("MasterFile").Dialog("Microsoft Internet Explorer").Exist(2)

    ThenBrowser("MasterFile").Dialog("Microsoft Internet

    Explorer").WinButton("Cancel").ClickEnd If'Call logoutfromApp("MasterFile","DR Profile")If Browser("MasterFile").Dialog("Microsoft Internet Explorer").Exist(2)

    ThenBrowser("MasterFile").Dialog("Microsoft Internet

    Explorer").WinButton("Cancel").ClickEnd IfCall ClickonDRName("MasterFile","DR Profile",DataTable.Value("IssuerName

    ","DR"),"2")Wait(4)If Browser("MasterFile").Dialog("Microsoft Internet Explorer").Exist(2)

    ThenBrowser("MasterFile").Dialog("Microsoft Internet

    Explorer").WinButton("Cancel").Click

    End IfIf Browser("MasterFile").Dialog("Microsoft Internet Explorer").Exist(2)

    Then

  • 8/7/2019 ADRMF CreateNewDR Modified

    9/239

    Browser("MasterFile").Dialog("Microsoft InternetExplorer").WinButton("Cancel").Click

    End If

    'Step32'Call pageCheck_WebElement("MasterFile","Issuer Profile","Advisers;BNY C

    ontacts;Comments;Custodians;Detail;DR Services;Products;Und. Sec. Markets","")

    If Browser("MasterFile").Page("Issuer Profile").WebElement("Detail").Exist(2) and Browser("MasterFile").Page("Issuer Profile").WebElement("IssuerDocumentation").Exist(2)Then

    Reporter.ReportEvent micPass," Check whether the issuer profilescreen has been loaded or not","The issuer profile screen has been loaded as required"

    ElseReporter.ReportEvent micFail," Check whether the issuer profile

    screen has been loaded or not","The issuer profile screen has not been loaded"Environment.Value("Execution_Log")="False"

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

    'Step33Browser("MasterFile").Page("Issuer Profile").WebElement("Detail").ClickCall pageCheck_CompanyProfile("MasterFile","Issuer Profile","Details")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step32: Check whether the requiredfields are present in the issuer profile screen detail tab","The required fields are present as required"

    ElseReporter.ReportEvent micFail,"Step32: Check whether the required

    fields are present in the issuer profile screen detail tab","The required fields are not present"

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

    'Step34'Checking for the BNY contact tab

    Browser("MasterFile").Page("Issuer Profile").WebElement("BNY Contacts").Click

    Call pageCheck_CompanyProfile("MasterFile","Issuer Profile","BNY Contacts")

    If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Page("Issuer Profile").WebTable("BNY Contacts").Exist(2) Then

    Reporter.ReportEvent micPass,"Step33: Check for the details in the BNY contacts tab","The details under the BNY contact tab is as required"

    ElseReporter.ReportEvent micFail,"Step33: Check for the details in t

    he BNY contacts tab","The details under the BNY contact tab is not as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="True"

    End If

    'Step35

    'Checking for the Underlying security markets tabBrowser("MasterFile").Page("Issuer Profile").WebElement("Und. Sec. Marke

    ts").Click

  • 8/7/2019 ADRMF CreateNewDR Modified

    10/239

    Call pageCheck_CompanyProfile("MasterFile","Issuer Profile","Und. Sec. Markets")

    If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Page("Issuer Profile").WebTable("Underlying Security Market").Exist(2) Then

    Reporter.ReportEvent micPass,"Step34: Check for the Underlying Event Tab","The underlying event tab is as required"

    Else

    Reporter.ReportEvent micFail,"Step34: Check for the underlying Event tab","The details under the underlying event tab is not as required"

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

    End If

    'Step36'Checking for the Custodian Tab

    Browser("MasterFile").Page("Issuer Profile").WebElement("Custodians").Click

    Call pageCheck_CompanyProfile("MasterFile","Issuer Profile","Custodians"

    ) If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Page("Issuer Profile").WebTable("Issuers Preferred Custodian").Exist(2)Then

    Reporter.ReportEvent micPass,"Step35: Check for the Issuer preffered tab","The details in the Issuer preffered tab is as required"

    ElseReporter.ReportEvent micFail,"Step35: Check for the issuer preff

    ered tab","The details in the issuer preffered is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

    End If

    'Step37

    'Checking for the Advisors tabBrowser("MasterFile").Page("Issuer Profile").WebElement("Advisers").Clic

    kCall pageCheck_CompanyProfile("MasterFile","Issuer Profile","Advisers")If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Pa

    ge("Issuer Profile").WebTable("Issuers Advisers").Exist(2)ThenReporter.ReportEvent micPass,"Step36: Check for the Advisors tab

    ","The advisers tab details are as required"Else

    Reporter.ReportEvent micFail,"Step36: Check for the Advisors Tab","The advisors tab details are as required"

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

    End If

    'Step38'Checking for the Products tab

    Browser("MasterFile").Page("Issuer Profile").WebElement("Products").Click

    Call pageCheck_CompanyProfile("MasterFile","Issuer Profile","Products")If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Pa

    ge("Issuer Profile").WebTable("Products").Exist(2)ThenReporter.ReportEvent micPass,"Step37: Check for the presence of

    the products web table","The products web table is present as required"

    ElseReporter.ReportEvent micFail,"Step37: Check for the presence of

    the products web table","The products web table is not present as required"

  • 8/7/2019 ADRMF CreateNewDR Modified

    11/239

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

    End If

    'Step39'Checking for the DR services tab

    Browser("MasterFile").Page("Issuer Profile").WebElement("DR Services").Click

    Call pageCheck_CompanyProfile("MasterFile","Issuer Profile","DR Services")

    If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Page("Issuer Profile").WebTable("DR Services").Exist(2) Then

    Reporter.ReportEvent micPass,"Step38: Check for the presence ofthe DR Services web table","The DR services web table is present as required"

    ElseReporter.ReportEvent micFail,"Step38: Check for the presence of

    the DR Services web table","The DR Services web table is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="True"

    End If

    'Step40'Checking for the Comments tab

    Browser("MasterFile").Page("Issuer Profile").WebElement("Comments").Click

    Call pageCheck_CompanyProfile("MasterFile","Issuer Profile","Comments")If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Pa

    ge("Issuer Profile").WebTable("Comments").Exist(2) ThenReporter.ReportEvent micPass,"Step39: Check for the presence of

    the comments table","The comments table is present as required"Else

    Reporter.ReportEvent micFail,"Step39: Check for the presence ofthe comments table","The comments table is not present"

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

    End If

    Call click_WebElement("MasterFile","Issuer Profile","Detail")Environment.Value("ISSUERNAME")=trim(get_WebEdit_Value("MasterFile","Iss

    uer Profile","Name"))If Environment.Value("TCCURCOUNT")=2 Then

    Browser("MasterFile").Page("Issuer Profile").WebElement("IssuerDocumentation").Click

    Call Fill_Issuer_Documentation("MasterFile","Issuer Documentation","DR")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Fill in the issuer Documen

    tation and click on save","The Issuer documentation is done and saved"Else

    Reporter.ReportEvent micFail,"Fill in the Issuer Documentation and click on save","The Issuer documentation is not filled properly"

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

  • 8/7/2019 ADRMF CreateNewDR Modified

    12/239

    End IfEnd If

    'Call ClickonDRName("MasterFile","Issuer Documentation",ISSUERNAME,"2")

    Call logoutfromApp("MasterFile","Issuer Documentation")

    Reporter.ReportEvent micPass,"Step40: Change the status of the DR as effective","The DR Status has already been changed to effective"

    'Step 42

    Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL","MFLogin"))

    Call login("MasterFile","Login Page","Approver","MFLogin")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step41: Log into application usingApprover ID","We have successfully logged in as an approver"

    Else

    Reporter.ReportEvent micFail,"Step41: Log into the application using Approver ID ","We have not successfully logged in as an approver"Environment.Value("TestCase_Log")="True"

    End If

    'Step42 to 49Environment.Value("TestCase_Log")="True"Call ApprovalFunction_CreateNewDR("MasterFile","CUSIP Profile","CUSIP",E

    nvironment.Value("CUSIP_NAME"),"Approved","Approved","Pending Approval")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step42 to 49:Approve the CUSIP det

    ails","The CUSIP details are approved as required"

    ElseReporter.ReportEvent micFail,"Step42 to 49: Approve the CUSIP de

    tails","The CUSIP details are not approved as required"Environment.Value("TestCase_Log")="True"

    End If

    'Step50 to 54Environment.Value("TestCase_Log")="True"Call ApprovalFunction_CreateNewDR("MasterFile","DR Documentation","DR Na

    me",Environment.Value("DRNAME"),"Approved","Approved","Pending Approval")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step50 to 54: Approve the DR Docum

    entation","The DR Documentation is filled in correctly as required"

    ElseReporter.ReportEvent micFail,"Step50 to 54: Approve the DR Docum

    entation","The DR Documentation is not approved as required"Environment.Value("TestCase_Log")="True"

    End If

    'Step 55 to 60Environment.Value("TestCase_Log")="True"

    If Environment.Value("TCCURCOUNT")=2 ThenCall ApprovalFunction_CreateNewDR("MasterFile","Issuer Documenta

    tion","Issuer",Environment.value("ISSUERNAME"),"Approved","Approved","Pending Ap

  • 8/7/2019 ADRMF CreateNewDR Modified

    13/239

    proval")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step55 to 60Approve the is

    suer documentation","The issuer documentation is approved as required"Else

    Reporter.ReportEvent micFail,"Step 55 to 60 : Approve th

    e issuer documentation","The issuer documentation is not approved as required"Environment.Value("TestCase_Log")="True"

    End IfElse

    Reporter.ReportEvent micPass,"Step55 to 60 : Approve the issuerdocumentation","The issuer documentation already is approved"

    End if

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

    'Step 61 to 66Environment.Value("TestCase_Log")="True"

    'Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL","MFLogin"))'Call login("MasterFile","Login Page","Approver","MFLogin")Call ApprovalFunction_CreateNewDR("MasterFile","DR Profile","Name",Envir

    onment.Value("DRNAME"),"Approved","Approved","Pending Approval")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step61 to 66: Approve and Batch the DR profile","The DR profile gets approved and batched successfully"

    ElseReporter.ReportEvent micFail,"Step61 to 66: Approve and Batch th

    e DR Profile","The DR Profile gets approved and batched successfully"Environment.Value("TestCase_Log")="True"

    End If

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

    'Step67 to 75Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL","MFLogin

    "))Call login("MasterFile","Login Page","Relationship Management","MFLogin"

    )Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast

    erFile")

    Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","DR"))

    Call set_WebEdit_Value("MasterFile","Profile - DR Search","DRName",Environment.Value("DRNAME"))

    Call DRSearchCriteria("MasterFile","Profile - DR Search")

    Browser("MasterFile").Page("Profile - DR Search").WebElement("Innertext:=" & Environment.Value("DRNAME"),"html tag:=TD").Click

    OriginOfDR=Browser("MasterFile").Page("DR Profile").WebEdit("DROrigin").GetROProperty("value")

    StatusOfDR=Browser("MasterFile").Page("DR Profile").WebList("Status").GetROProperty("value")

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

    Call FlagImageCheck("MasterFile","DR Profile","DRTable","Not Exist")

  • 8/7/2019 ADRMF CreateNewDR Modified

    14/239

    If StatusOfDR="Effective" And OriginOfDR="New Program" And Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step67 to 74: Check whether the DRhas been made effective or not","The DR Has been made effective successfully"

    Else

    Reporter.ReportEvent micFail,"Step 67 to 74: Check whether the DR has been made effective or not","The DR has not been made effective"

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

    End If

    'Step 75Browser("MasterFile").Page("DR Profile").WebElement("CUSIP Summary/Add")

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

    Call FlagImageCheck("MasterFile","DR Profile","DRTable","Not Exist")If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step75: Go to CUSIP Summary tab an

    d look for Flag","The Flags are absent as required"Else

    Reporter.ReportEvent micFail,"Step75: Go to CUSIP Summary tab and look for Flag ","The flag is still present"

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

    Call select_Menu("MasterFile","DR Profile","Home;DR Home")

    End Function

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

    Public Function MFProfileDR_TC2()Environment.Value("TestCase_Log")="True"

    Environment.Value("CUSIP_NAME")=""Environment.Value("DRNAME")=""Environment.Value("ISSUERNAME")=""

    'Step1'Log into the ADR home page

    Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL","MFLogin"))

    Call pageCheck_WebEdit("MasterFile","Login Page","username;j_password","")

    Call pageCheck_WebButton("MasterFile","Login Page","Login","")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 1: Verfiying if the L

    ogin Page is Dispalyed or NOT","The Login Page is Dispalyed successfully with the Required Field"

    Else

    Reporter.ReportEvent micFail,"Step 1: Verfiying if the Login Page is Dispalyed or NOT","The Login Page is NOT Dispalyed successfully with the Required Field"

  • 8/7/2019 ADRMF CreateNewDR Modified

    15/239

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

    End If

    'Calling the login functionCall login("MasterFile","Login Page","Relationship Management","

    MFLogin")

    ' Check the MasterFile Application for the 4 links, User Name and the last Login Details

    Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTable.Value("HomePageLinks","HomePageVerification"),DataTable.Value("UserFullName","MFLogin" ))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass," Verifying the DR Home Pag

    e","The DR Home Page is displayed successfully with Home Page Links and the UserDetails"

    ElseReporter.ReportEvent micFail," Verifying the DR Home Pag

    e","The DR Home Page is NOT displayed successfully with Home Page Links and theUser Details"Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"

    End If

    'Step2'Click on the masterFile button

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

    Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","MFLogin" ))

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

    ome Page","The MF Home Page is disaplyed successfully with the required Menu Items and also displays the Current Version"

    ElseReporter.ReportEvent micFail,"Step 2: Verfiying the MF H

    ome Page","The MF Home Page is NOT displayed successfully"Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"

    End If

    'Step3'Click on the Profile Link

    Call check_Menu("MasterFile","MasterFile","Profile")

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

    DR Menu is Present in the Profile Menu or Not","The DR Menu is Present in the Pr

    ofile Menu"Else

    Reporter.ReportEvent micPass, "Step 3: Verifying if the

  • 8/7/2019 ADRMF CreateNewDR Modified

    16/239

    DR Menu is Present in the Profile Menu or Not","The DR Menu is NOT Present in the Profile Menu"

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

    End If

    'Step4'Click on the DR Link

    Call Select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","DR"))

    Call pageCheck_WebEditOR("MasterFile","Profile - DR Search","IssuerName;DRName")

    Call pageCheck_WebListOR("MasterFile","Profile - DR Search","CountryOfManagement;DrOrigin;DRType;DRExchange;SorU;Status;SubStatus")

    'Call pageCheck_WebElementinTable("MasterFile","Profile - DR Sea

    rch","Name;Country of Management;Type;Status;Sub-Status;S/U;Effective Date;Termination Date;Depository;Origin;Structure","")

    intRC = Browser("MasterFile").Page("Profile - DR Search").WebTable("DR Search Results").RowCount

    If intRC

  • 8/7/2019 ADRMF CreateNewDR Modified

    17/239

    Call CreateNewDR("MasterFile","Profile - DR Search","DR Profile","CUSIPProfile","","DR")

    If Environment.Value("Failure")="True" ThenCall select_Menu("MasterFile","Profile - DR Search","Hom

    e;DR Home")Exit Function

    End If

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

    Call FlagImageCheck("MasterFile","DR Profile","DRTable","Exist")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step6 to 25:Create a New DR and At

    tach a CUSIP to it","The New DR with name as "& Environment.Value("DRNAME") &" and CUSIP:"& Ucase(Environment.Value("CUSIP_NAME")) &" is created successfully on saving which we get a Yellow Flag"

    ElseReporter.ReportEvent micFail,"Step6 to 25 :Create a New DR and a

    ttach a CUSIP to it","The New DR is not created successfully"

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

    'Step26Call click_WebElement("MasterFile","DR Profile","Offerings")

    If Browser("MasterFile").Page("DR Profile").WebTable("Offerings").Exist(2) Then

    Reporter.ReportEvent micPass,"Step26: Check for the offerings tab","The details in the offering tab is as required"

    ElseReporter.ReportEvent micFail,"Step26: Check for the offerings ta

    b","The Details in the offerings tab is not as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

    End If

    'Step27Call click_WebElement("MasterFile","DR Profile","Additional DR Exchanges

    ")If Browser("MasterFile").Page("DR Profile").WebTable("Additional DR Exch

    ange").Exist(2) ThenReporter.ReportEvent micPass,"Step27: Check whether the Addition

    al DR exchange Tab is as required","The Additional DR Exchanges Tab is as Required"

    ElseReporter.ReportEvent micFail,"Step27: Check whether the Addition

    al exchange Tab is as required","The Additional DR exchanges tab is not present"Call captureScreenshot()Environment.Value("Execution_Log")="False"

    End If' Call click_WebButton("MasterFile","DR Profile","Add_DRExchange")' Call click_Image("MasterFile","DR Profile","ExchangeInfo")' Call operation_on_FrameObjects_WithName("MasterFile","DR Profile

    ","lookupFrame","WebEdit","searchString",dataTable.Value("DRExchangeForCUSIP","DR"))

    ' Call operation_on_FrameObjects_WithName("MasterFile","DR Profile","lookupFrame","Image","Go","")

    ' Call SelectValueInsideFrame("MasterFile","DR Profile","lookupFra

  • 8/7/2019 ADRMF CreateNewDR Modified

    18/239

    me",dataTable.Value("DREXchangeForCUSIP","DR"))' Call set_WebEdit_Value("MasterFile","DR Profile","SEDOL",SEDOL)' Call set_WebEdit_Value("MasterFile","DR Profile","Ticker")' Call click_Image("MasterFile","DR Profile","Save")' If Environment.Value("TestCase_Log")=true Then' Reporter.ReportEvent micPass,"Step22:Fill in the Additio

    nal DR Exchanges Tab","The Additional DR exchanges tab gets filled"

    ' Else' Reporter.ReportEvent micFail,"Step22: Fill in the Additi

    onal DR exchanges tab","The additional DR Exchange tab is not filled as required"

    ' Environment.Value("TestCase_Log")=true' End If''Step28

    ' Call click_WebElement("MasterFile","DR Profile","Other DR Services")' If Browser("MasterFile").Page("DR Profile").WebTable("Other DR Services").Exist(2) Then' Reporter.ReportEvent micPass,"Step28: Check whether the Additional DR exchange Tab is as required","The Additional DR Exchanges Tab is as Requir

    ed"' Else' Reporter.ReportEvent micFail,"Step28: Check whether the Additional exchange Tab is as required","The Additional DR exchanges tab is not present"' End If

    If (dataTable.Value("Type","DR") "144A" Or datatable.Value("Type","DR") "RegS") And DataTable.Value("DepositoryName","DR") ="BNY" Then

    Call click_WebElement("MasterFile","DR Profile","SEC Filing")

    Call set_WebEdit_Value("MasterFile","DR Profile","CurrentF6ADS",dataTabl

    e.Value("CurrentF6ADS","DR"))

    Call set_WebEdit_Value("MasterFile","DR Profile","CurF6Number",dataTable.Value("CurF6Number","DR"))

    Wait(2)

    If DataTable.Value("F6FileDate","DR") "" ThenstrDataTableValue = DataTable.Value("F6FileDate"

    ,"DR")strValue = Split(strDataTableValue,";",-1,1)strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)Call click_Image("MasterFile","DR Profile","Show

    Calendar_F6FileDate")Call ClickIcon_SetDate("MasterFile","DR Profile"

    ,strMonthValue,strYearValue,strDateValue)End If

    Call click_Image("MasterFile","DR Profile","Save")

    End If

    Call click_WebElement("MasterFile","DR Profile","Detail")Call Select_Combo_Value("MasterFile","DR Profile","Status","Effective")Call click_Image("MasterFile","DR Profile","Save")

  • 8/7/2019 ADRMF CreateNewDR Modified

    19/239

    Wait(3)If Browser("MasterFile").Dialog("Microsoft Internet Explorer").Exist(2)

    ThenBrowser("MasterFile").Dialog("Microsoft Internet Explore

    r").WinButton("Cancel").ClickEnd If

    'Step29Call ClickonDRName("MasterFile","DR Profile",DataTable.Value("IssuerName

    ","DR"),"2")wait(2)

    'Step30If Browser("MasterFile").Dialog("Microsoft Internet Explorer").Exist(2)

    ThenBrowser("MasterFile").Dialog("Microsoft Internet Explore

    r").WinButton("Cancel").ClickEnd If

    'Step31

    If Browser("MasterFile").Page("Issuer Profile").Exist(2) ThenReporter.ReportEvent micPass," Check whether the Issuer profilelink is available and works as required","The Issuer profile link is available and works as required"

    ElseReporter.ReportEvent micFail," Check whether the Issuer profile

    link is available and works as required","The Issuer profile link is not available"

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

    End If

    'Step31

    Environment.Value("TestCase_Log")="True"If Browser("MasterFile").Page("Issuer Profile").WebElement("Detail").Ex

    ist(2) and Browser("MasterFile").Page("Issuer Profile").WebElement("IssuerDocumentation").Exist(2)Then

    Reporter.ReportEvent micPass,"Step31: Check whether the issuer profile screen has been loaded or not","The issuer profile screen has been loadedas required"

    ElseReporter.ReportEvent micFail,"Step31: Check whether the issuer p

    rofile screen has been loaded or not","The issuer profile screen has not been loaded"

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

    'Step32Browser("MasterFile").Page("Issuer Profile").WebElement("Detail").ClickCall pageCheck_CompanyProfile("MasterFile","Issuer Profile","Details")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step32: Check whether the requiredfields are present in the issuer profile screen detail tab","The required fields are present as required"

    ElseReporter.ReportEvent micFail,"Step32: Check whether the required

    fields are present in the issuer profile screen detail tab","The required fields are not present"

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

  • 8/7/2019 ADRMF CreateNewDR Modified

    20/239

    'Step33'Checking for the BNY contact tab

    Browser("MasterFile").Page("Issuer Profile").WebElement("BNY Contacts").Click

    Call pageCheck_CompanyProfile("MasterFile","Issuer Profile","BNY Contacts")

    If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Page("Issuer Profile").WebTable("BNY Contacts").Exist(2) Then

    Reporter.ReportEvent micPass,"Step33: Check for the details in the BNY contacts tab","The details under the BNY contact tab is as required"

    ElseReporter.ReportEvent micFail,"Step33: Check for the details in t

    he BNY contacts tab","The details under the BNY contact tab is not as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="True"

    End If

    'Step34'Checking for the Underlying security markets tabBrowser("MasterFile").Page("Issuer Profile").WebElement("Und. Sec. Marke

    ts").ClickCall pageCheck_CompanyProfile("MasterFile","Issuer Profile","Und. Sec. M

    arkets")If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Pa

    ge("Issuer Profile").WebTable("Underlying Security Market").Exist(2) ThenReporter.ReportEvent micPass,"Step34: Check for the Underlying E

    vent Tab","The underlying event tab is as required"Else

    Reporter.ReportEvent micFail,"Step34: Check for the underlying Event tab","The details under the underlying event tab is not as required"

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

    End If

    'Step35'Checking for the Custodian Tab

    Browser("MasterFile").Page("Issuer Profile").WebElement("Custodians").Click

    Call pageCheck_CompanyProfile("MasterFile","Issuer Profile","Custodians")

    If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Page("Issuer Profile").WebTable("Issuers Preferred Custodian").Exist(2)Then

    Reporter.ReportEvent micPass,"Step35: Check for the Issuer preffered tab","The details in the Issuer preffered tab is as required"

    ElseReporter.ReportEvent micFail,"Step35: Check for the issuer preff

    ered tab","The details in the issuer preffered is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="True"

    End If

    'Step36'Checking for the Advisors tab

    Browser("MasterFile").Page("Issuer Profile").WebElement("Advisers").Click

    Call pageCheck_CompanyProfile("MasterFile","Issuer Profile","Advisers")

  • 8/7/2019 ADRMF CreateNewDR Modified

    21/239

    If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Page("Issuer Profile").WebTable("Issuers Advisers").Exist(2)Then

    Reporter.ReportEvent micPass,"Step36: Check for the Advisors tab","The advisers tab details are as required"

    ElseReporter.ReportEvent micFail,"Step36: Check for the Advisors Tab

    ","The advisors tab details are as required"

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

    End If

    'Step37'Checking for the Products tab

    Browser("MasterFile").Page("Issuer Profile").WebElement("Products").Click

    Call pageCheck_CompanyProfile("MasterFile","Issuer Profile","Products")If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Pa

    ge("Issuer Profile").WebTable("Products").Exist(2)Then

    Reporter.ReportEvent micPass,"Step37: Check for the presence ofthe products web table","The products web table is present as required"Else

    Reporter.ReportEvent micFail,"Step37: Check for the presence ofthe products web table","The products web table is not present as required"

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

    End If

    'Step38

    'Checking for the DR services tabBrowser("MasterFile").Page("Issuer Profile").WebElement("DR Services").C

    lickCall pageCheck_CompanyProfile("MasterFile","Issuer Profile","DR Services

    ")If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Pa

    ge("Issuer Profile").WebTable("DR Services").Exist(2) ThenReporter.ReportEvent micPass,"Step38: Check for the presence of

    the DR Services web table","The DR services web table is present as required"Else

    Reporter.ReportEvent micFail,"Step38: Check for the presence ofthe DR Services web table","The DR Services web table is not present as required"

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

    End If

    'Step39'Checking for the Comments tab

    Browser("MasterFile").Page("Issuer Profile").WebElement("Comments").Click

    Call pageCheck_CompanyProfile("MasterFile","Issuer Profile","Comments")If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Pa

    ge("Issuer Profile").WebTable("Comments").Exist(2) Then

    Reporter.ReportEvent micPass,"Step39: Check for the presence ofthe comments table","The comments table is present as required"

    Else

  • 8/7/2019 ADRMF CreateNewDR Modified

    22/239

    Reporter.ReportEvent micFail,"Step39: Check for the presence ofthe comments table","The comments table is not present"

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

    End If

    Call click_WebElement("MasterFile","Issuer Profile","Detail")

    Environment.Value("ISSUERNAME")=trim(get_WebEdit_Value("MasterFile","Issuer Profile","Name"))

    If Environment.Value("TCCURCOUNT")=1 ThenBrowser("MasterFile").Page("Issuer Profile").WebElement("IssuerD

    ocumentation").ClickCall Fill_Issuer_Documentation("MasterFile","Issuer Documentatio

    n","DR")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Fill in the issuer Documen

    tation and click on save","The Issuer documentation is done and saved"ElseReporter.ReportEvent micFail,"Fill in the Issuer Documen

    tation and click on save","The Issuer documentation is not filled properly"Environment.Value("TestCase_Log")="True"

    End IfEnd If

    'Call ClickonDRName("MasterFile","Issuer Documentation",ISSUERNAME,"2")

    Call logoutfromApp("MasterFile","Issuer Profile")

    'Step40

    Reporter.ReportEvent micDone,"Step40:Set the DR as effective","The DR has already been set as effective"'Step 41

    Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL","MFLogin"))

    Call login("MasterFile","Login Page","Approver","MFLogin")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step41: Log into application usingApprover ID","We have successfully logged in as an approver"

    ElseReporter.ReportEvent micFail,"Step41: Log into the application u

    sing Approver ID ","We have not successfully logged in as an approver"Environment.Value("TestCase_Log")="True"

    End If

    'Step42 to 49Environment.Value("TestCase_Log")="True"Call ApprovalFunction_CreateNewDR("MasterFile","CUSIP Profile","CUSIP",E

    nvironment.Value("CUSIP_NAME"),"Approved","Approved","Pending Approval")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step42 to 49:Approve the CUSIP det

    ails","The CUSIP details are approved as required"Else

    Reporter.ReportEvent micFail,"Step42 to 49: Approve the CUSIP de

    tails","The CUSIP details are not approved as required"Environment.Value("TestCase_Log")="True"

    End If

  • 8/7/2019 ADRMF CreateNewDR Modified

    23/239

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

    Call ApprovalFunction_CreateNewDR("MasterFile","Issuer Documentation","Issuer",Environment.value("ISSUERNAME"),"Approved","Approved","Pending Approval")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step50 to 55Approv

    e the issuer documentation","The issuer documentation is approved as required"Else

    Reporter.ReportEvent micFail," Step50 to 55: Approve theissuer documentation","The issuer documentation is not approved as required"

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

    ElseReporter.ReportEvent micPass," : Step50 to 55: Approve the issue

    r documentation","The issuer documentation already is approved"End if

    Call ApprovalFunction_CreateNewDR("MasterFile","DR Profile","Name",Environment.Value("DRNAME"),"Approved","Approved","Pending Approval")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step56 to 60: Approve and Batch th

    e DR profile","The DR profile gets approved and batched successfully"Else

    Reporter.ReportEvent micFail,"Step56 to 60: Approve and Batch the DR Profile","The DR Profile gets approved and batched successfully"

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

    'Step61Call logoutfromApp("MasterFile","Issuer Documentation")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step61:Logout from the approver ID","The Approver logs out successfully"

    ElseReporter.ReportEvent micFail,"Step61: Logout from the approver I

    D","The approver does not log out successfully"Environment.Value("TestCase_Log")="True"

    End If

    Wait(3)'Step61 to 69

    Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL","MFLogin"))

    Call login("MasterFile","Login Page","Relationship Management","MFLogin")

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

    Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","DR"))

    Call set_WebEdit_Value("MasterFile","Profile - DR Search","DRName",Environment.Value("DRNAME"))

    Call DRSearchCriteria("MasterFile","Profile - DR Search")

    Browser("MasterFile").Page("Profile - DR Search").WebElement("Innertext:

  • 8/7/2019 ADRMF CreateNewDR Modified

    24/239

    =" & Environment.Value("DRNAME"),"html tag:=TD").ClickOriginOfDR=Browser("MasterFile").Page("DR Profile").WebEdit("DROrigin").

    GetROProperty("value")StatusOfDR=Browser("MasterFile").Page("DR Profile").WebList("Status").Ge

    tROProperty("value")

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

    Call FlagImageCheck("MasterFile","DR Profile","DRTable","Not Exist")

    If StatusOfDR="Effective" and OriginOfDR="New Program" and Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step61 to 69: Check whether the DRhas been made effective or not","The DR Has been made effective successfully"

    ElseReporter.ReportEvent micFail,"Step61 to 69: Check whether the DR

    has been made effective or not","The DR has not been made effective"Call captureScreenshot()Environment.Value("Execution_Log")="False"

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

    'Step 70Browser("MasterFile").Page("DR Profile").WebElement("CUSIP Summary/Add")

    .ClickEnvironment.Value("TestCase_Log")="True"Call FlagImageCheck("MasterFile","DR Profile","DRTable","Not Exist")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step70: Go to CUSIP Summary tab and look for Flag","The Flags are absent as required"

    ElseReporter.ReportEvent micFail,"Step70: Go to CUSIP Summary tab an

    d look for Flag ","The flag is still present"Environment.Value("TestCase_Log")="True"

    End If

    Call select_Menu("MasterFile","DR Profile","Home;DR Home")

    End Function

    '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Public Function MFProfileDR_TC3()

    Environment.Value("TestCase_Log")="True"Environment.Value("CUSIP_NAME")=""Environment.Value("DRNAME")=""Environment.Value("ISSUERNAME")=""

    'Step1'Log into the ADR home page

    Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL","MFLogin"))

    Call pageCheck_WebEdit("MasterFile","Login Page","username;j_password","")

    Call pageCheck_WebButton("MasterFile","Login Page","Login","")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 1: Verfiying if the L

    ogin Page is Dispalyed or NOT","The Login Page is Dispalyed successfully with th

  • 8/7/2019 ADRMF CreateNewDR Modified

    25/239

    e Required Field"Else

    Reporter.ReportEvent micFail,"Step 1: Verfiying if the Login Page is Dispalyed or NOT","The Login Page is NOT Dispalyed successfully with the Required Field"

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

    End If

    'Calling the login functionCall login("MasterFile","Login Page","Relationship Management","

    MFLogin")

    ' Check the MasterFile Application for the 4 links, User Name and the last Login Details

    Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTable.Value("HomePageLinks","HomePageVerification"),DataTable.Value("UserFullName","MFLogin" ))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass," Verifying the DR Home Page","The DR Home Page is displayed successfully with Home Page Links and the UserDetails"

    ElseReporter.ReportEvent micFail," Verifying the DR Home Pag

    e","The DR Home Page is NOT displayed successfully with Home Page Links and theUser Details"

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

    End If

    ' Check the MasterFile Application for the 4 links, User Name and the last Login

    Details

    'Step2'Click on the masterFile button

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

    Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","MFLogin" ))

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

    ome Page","The MF Home Page is disaplyed successfully with the required Menu Items and also displays the Current Version"

    ElseReporter.ReportEvent micFail,"Step 2: Verfiying the MF H

    ome Page","The MF Home Page is NOT displayed successfully"Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"

    End If

    'Step3'Click on the Profile Link

  • 8/7/2019 ADRMF CreateNewDR Modified

    26/239

    Call check_Menu("MasterFile","MasterFile","Profile")

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

    DR Menu is Present in the Profile Menu or Not","The DR Menu is Present in the Profile Menu"

    Else

    Reporter.ReportEvent micPass, "Step 3: Verifying if theDR Menu is Present in the Profile Menu or Not","The DR Menu is NOT Present in the Profile Menu"

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

    End If

    'Step4'Click on the DR Link

    Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","DR"))

    Call pageCheck_WebEditOR("MasterFile","Profile - DR Search","IssuerName;DRName")

    Call pageCheck_WebListOR("MasterFile","Profile - DR Search","CountryOfManagement;DrOrigin;DRType;DRExchange;SorU;Status;SubStatus")

    'Call pageCheck_WebElementinTable("MasterFile","Profile - DR Search","Name;Country of Management;Type;Status;Sub-Status;S/U;Effective Date;Termination Date;Depository;Origin;Structure","")

    intRC = Browser("MasterFile").Page("Profile - DR Search").WebTable("DR Search Results").RowCount

    If intRC

  • 8/7/2019 ADRMF CreateNewDR Modified

    27/239

    Reporter.ReportEvent micPass, "Step 5 :Click on search with alldefault values","The Required Results are displayed"

    ElseReporter.ReportEvent micFail, "Step 5 :Click on search with all

    default values","The required search results do not appear"Environment.Value("TestCase_Log") = "True"

    End If

    'Step6 to 18Call CreateNewDR("MasterFile","Profile - DR Search","DR Profile","CUSIP

    Profile","","DR")If Environment.Value("Failure")="True" Then

    Call select_Menu("MasterFile","Profile - DR Search","Home;DR Home")

    Exit FunctionEnd If

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

    Call FlagImageCheck("MasterFile","DR Profile","DRTable","Exist")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step6 to 18:Create a New DR and At

    tach a CUSIP to it","The New DR with name as "& Environment.Value("DRNAME") &" and CUSIP:"& Ucase(Environment.Value("CUSIP_NAME")) &" is created successfully on saving which we get a Yellow Flag"

    ElseReporter.ReportEvent micFail,"Step6 to 18 :Create a New DR and a

    ttach a CUSIP to it","The New DR is not created successfully"Environment.Value("TestCase_Log")="True"Call captureScreenshot()Environment.Value("Execution_Log")="False"

    End If

    'StepCall click_WebElement("MasterFile","DR Profile","Offerings")

    If Browser("MasterFile").Page("DR Profile").WebTable("Offerings").Exist(2) Then

    Reporter.ReportEvent micPass,"Check for the offerings tab","Thedetails in the offering tab is as required"

    ElseReporter.ReportEvent micFail,"Check for the offerings tab","The

    Details in the offerings tab is not as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

    End If

    ''Step19Call click_WebElement("MasterFile","DR Profile","Additional DR Exchanges

    ")If Browser("MasterFile").Page("DR Profile").WebTable("Additional DR Exch

    ange").Exist(2) ThenReporter.ReportEvent micPass,"Step19: Check whether the Addition

    al DR exchange Tab is as required","The Additional DR Exchanges Tab is as Required"

    ElseReporter.ReportEvent micFail,"Step19: Check whether the Addition

    al exchange Tab is as required","The Additional DR exchanges tab is not present"

  • 8/7/2019 ADRMF CreateNewDR Modified

    28/239

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

    End If' Call click_WebButton("MasterFile","DR Profile","Add_DRExchange")' Call click_Image("MasterFile","DR Profile","ExchangeInfo")' Call operation_on_FrameObjects_WithName("MasterFile","DR Profile

    ","lookupFrame","WebEdit","searchString",dataTable.Value("DRExchangeForCUSIP","DR"))

    ' Call operation_on_FrameObjects_WithName("MasterFile","DR Profile","lookupFrame","Image","Go","")

    ' Call SelectValueInsideFrame("MasterFile","DR Profile","lookupFrame",dataTable.Value("DREXchangeForCUSIP","DR"))

    ' Call set_WebEdit_Value("MasterFile","DR Profile","SEDOL",SEDOL)' Call set_WebEdit_Value("MasterFile","DR Profile","Ticker")' Call click_Image("MasterFile","DR Profile","Save")' If Environment.Value("TestCase_Log")=true Then' Reporter.ReportEvent micPass,"Step22:Fill in the Additio

    nal DR Exchanges Tab","The Additional DR exchanges tab gets filled"

    ' Else' Reporter.ReportEvent micFail,"Step22: Fill in the Additional DR exchanges tab","The additional DR Exchange tab is not filled as required"

    ' Environment.Value("TestCase_Log")=true' End If'Step23 and 24'Call click_WebElement("MasterFile","DR Profile","Other DR Services")'If Browser("MasterFile").Page("DR Profile").WebTable("Other DR Services

    ").Exist(2) Then' Reporter.ReportEvent micPass,"Step23 and 24: Check whether the A

    dditional DR exchange Tab is as required","The Additional DR Exchanges Tab is asRequired"

    'Else' Reporter.ReportEvent micFail,"Step23 and 24: Check whether the A

    dditional exchange Tab is as required","The Additional DR exchanges tab is not present"

    'End If

    'Step20

    If Browser("MasterFile").Page("DR Profile").WebElement("DRDocumentation"

    ).Exist(2) ThenReporter.ReportEvent micPass,"Step20: Check whether the DR Docum

    entation link is present or not","The DR Documentation link is present as required"

    ElseReporter.ReportEvent micFail,"Step20: Check whether the DR Docum

    entation link is present or not","The DR Documentation link is not present as required"

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

    End If

    'Step21Browser("MasterFile").Page("DR Profile").WebElement("DRDocumentation").c

  • 8/7/2019 ADRMF CreateNewDR Modified

    29/239

    lickIf Browser("MasterFile").Page("DR Documentation Detail").Exist(2) Then

    Reporter.ReportEvent micPass,"Step21: Click on the DR Documentation link","The DR Documentation link is clicked as required"

    ElseReporter.ReportEvent micFail,"Step21: Click on the DR Documentat

    ion link","The DR Documentation link is not clicked"

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

    End If

    'Step22 to 24'Filling in the DR documentation

    Call Fill_DR_Documentation("MasterFile","DR Documentation Detail")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step22 to 24: Fill the DR Documentation and click on save","The DR documentation is done and saved andDR link is also clicked"

    Else

    Reporter.ReportEvent micFail,"Step22 to 24: Fill the DR Documentation and click on save","The DR documentation is not done properly"Environment.Value("TestCase_Log")="True"

    End If

    Call click_WebElement("MasterFile","DR Profile","Detail")

    If (dataTable.Value("Type","DR") "144A" And datatable.Value("Type","DR")

    "RegS") And DataTable.Value("DepositoryName","DR") ="BNY" ThenCall click_WebElement("MasterFile","DR Profile","SEC Filing")Call set_WebEdit_Value("MasterFile","DR Profile","CurrentF6ADS",

    dataTable.Value("CurrentF6ADS","DR"))

    Call set_WebEdit_Value("MasterFile","DR Profile","CurF6Number",dataTable.Value("CurF6Number","DR"))

    Wait(2)

    If DataTable.Value("F6FileDate","DR") "" ThenstrDataTableValue = DataTable.Value("F6FileDate"

    ,"DR")strValue = Split(strDataTableValue,";",-1,1)strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)Call click_Image("MasterFile","DR Profile","Show

    Calendar_F6FileDate")Call ClickIcon_SetDate("MasterFile","DR Profile"

    ,strMonthValue,strYearValue,strDateValue)End If

    Call click_Image("MasterFile","DR Profile","Save")End If

    Call click_WebElement("MasterFile","DR Profile","Detail")Call Select_Combo_Value("MasterFile","DR Profile","Status","Effective")Call click_Image("MasterFile","DR Profile","Save")Wait(3)

    If Browser("MasterFile").Dialog("Microsoft Internet Explorer").Exist(2)Then

    Browser("MasterFile").Dialog("Microsoft Internet

  • 8/7/2019 ADRMF CreateNewDR Modified

    30/239

    Explorer").WinButton("Cancel").ClickEnd If

    If Browser("MasterFile").Dialog("Microsoft Internet Explorer").Exist(2)Then

    Browser("MasterFile").Dialog("Microsoft Internet

    Explorer").WinButton("Cancel").ClickEnd IfCall ClickonDRName("MasterFile","DR Profile",DataTable.Value("IssuerName

    ","DR"),"2")Reporter.ReportEvent micDone,"Check whether the Issuer name has

    been clicked or not","The Issuer name has been clicked as required"Wait(4)If Browser("MasterFile").Dialog("Microsoft Internet Explorer").Exist(2)

    ThenBrowser("MasterFile").Dialog("Microsoft Internet

    Explorer").WinButton("Cancel").ClickEnd If

    If Browser("MasterFile").Dialog("Microsoft Internet Explorer").Exist(2)ThenBrowser("MasterFile").Dialog("Microsoft Internet

    Explorer").WinButton("Cancel").ClickEnd If

    'Step26If Browser("MasterFile").Page("Issuer Profile").WebElement("Detail").Exist(

    2) and Browser("MasterFile").Page("Issuer Profile").WebElement("IssuerDocumentation").Exist(2)Then

    Reporter.ReportEvent micPass,"Step26: Check whether the issuer profile screen has been loaded or not","The issuer profile screen has been loadedas required"

    ElseReporter.ReportEvent micFail,"Step26: Check whether the issuer p

    rofile screen has been loaded or not","The issuer profile screen has not been loaded"

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

    End If

    'Step27Browser("MasterFile").Page("Issuer Profile").WebElement("Detail").ClickCall pageCheck_CompanyProfile("MasterFile","Issuer Profile","Details")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step27: Check whether the requiredfields are present in the issuer profile screen detail tab","The required fields are present as required"

    ElseReporter.ReportEvent micFail,"Step27: Check whether the required

    fields are present in the issuer profile screen detail tab","The required fields are not present"

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

    'Step28'Checking for the BNY contact tab

    Browser("MasterFile").Page("Issuer Profile").WebElement("BNY Contacts").Click

    Call pageCheck_CompanyProfile("MasterFile","Issuer Profile","BNY Contact

  • 8/7/2019 ADRMF CreateNewDR Modified

    31/239

    s")

    If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Page("Issuer Profile").WebTable("BNY Contacts").Exist(2) Then

    Reporter.ReportEvent micPass,"Step28: Check for the details in the BNY contacts tab","The details under the BNY contact tab is as required"

    Else

    Reporter.ReportEvent micFail,"Step28: Check for the details in the BNY contacts tab","The details under the BNY contact tab is not as required"

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

    End If

    'Step29'Checking for the Underlying security markets tab

    Browser("MasterFile").Page("Issuer Profile").WebElement("Und. Sec. Markets").Click

    Call pageCheck_CompanyProfile("MasterFile","Issuer Profile","Und. Sec. M

    arkets")If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Page("Issuer Profile").WebTable("Underlying Security Market").Exist(2) Then

    Reporter.ReportEvent micPass,"Step29: Check for the Underlying Event Tab","The underlying event tab is as required"

    ElseReporter.ReportEvent micFail,"Step29: Check for the underlying E

    vent tab","The details under the underlying event tab is not as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="True"

    End If

    'Step30'Checking for the Custodian Tab

    Browser("MasterFile").Page("Issuer Profile").WebElement("Custodians").Click

    Call pageCheck_CompanyProfile("MasterFile","Issuer Profile","Custodians")

    If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Page("Issuer Profile").WebTable("Issuers Preferred Custodian").Exist(2)Then

    Reporter.ReportEvent micPass,"Step30: Check for the Issuer preffered tab","The details in the Issuer preffered tab is as required"

    ElseReporter.ReportEvent micFail,"Step30: Check for the issuer preff

    ered tab","The details in the issuer preffered is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="True"

    End If

    'Step31'Checking for the Advisors tab

    Browser("MasterFile").Page("Issuer Profile").WebElement("Advisers").Click

    Call pageCheck_CompanyProfile("MasterFile","Issuer Profile","Advisers")If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Pa

    ge("Issuer Profile").WebTable("Issuers Advisers").Exist(2)Then

    Reporter.ReportEvent micPass,"Step31: Check for the Advisors tab","The advisers tab details are as required"

    Else

  • 8/7/2019 ADRMF CreateNewDR Modified

    32/239

    Reporter.ReportEvent micFail,"Step31: Check for the Advisors Tab","The advisors tab details are as required"

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

    End If

    'Step32'Checking for the Products tab

    Browser("MasterFile").Page("Issuer Profile").WebElement("Products").Click

    Call pageCheck_CompanyProfile("MasterFile","Issuer Profile","Products")If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Pa

    ge("Issuer Profile").WebTable("Products").Exist(2)ThenReporter.ReportEvent micPass,"Step32: Check for the presence of

    the products web table","The products web table is present as required"Else

    Reporter.ReportEvent micFail,"Step32: Check for the presence ofthe products web table","The products web table is not present as required"

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

    End If

    'Step33'Checking for the DR services tab

    Browser("MasterFile").Page("Issuer Profile").WebElement("DR Services").Click

    Call pageCheck_CompanyProfile("MasterFile","Issuer Profile","DR Services")

    If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Page("Issuer Profile").WebTable("DR Services").Exist(2) Then

    Reporter.ReportEvent micPass,"Step33: Check for the presence ofthe DR Services web table","The DR services web table is present as required"

    ElseReporter.ReportEvent micFail,"Step33: Check for the presence of

    the DR Services web table","The DR Services web table is not present as required"

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

    End If

    'Step34'Checking for the Comments tab

    Browser("MasterFile").Page("Issuer Profile").WebElement("Comments").Click

    Call pageCheck_CompanyProfile("MasterFile","Issuer Profile","Comments")If Environment.Value("TestCase_Log")="True" and Browser("MasterFile").Pa

    ge("Issuer Profile").WebTable("Comments").Exist(2) ThenReporter.ReportEvent micPass,"Step34: Check for the presence of

    the comments table","The comments table is present as required"Else

    Reporter.ReportEvent micFail,"Step34: Check for the presence ofthe comments table","The comments table is not present"

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

  • 8/7/2019 ADRMF CreateNewDR Modified

    33/239

    End If

    Call click_WebElement("MasterFile","Issuer Profile","Detail")

    Environment.Value("ISSUERNAME")=trim(get_WebEdit_Value("MasterFile","Issuer Profile","Name"))

    If Environment.Value("TCCURCOUNT")=1 ThenBrowser("MasterFile").Page("Issuer Profile").WebElement("IssuerD

    ocumentation").ClickCall Fill_Issuer_Documentation("MasterFile","Issuer Documentatio

    n","DR")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Fill in the issuer Documentation and click on save","The Issuer documentation is done and saved"

    ElseReporter.ReportEvent micFail,"Fill in the Issuer Documen

    tation and click on save","The Issuer documentation is not filled properly"Environment.Value("TestCase_Log")="True"

    End IfEnd If

    'Call ClickonDRName("MasterFile","Issuer Documentation",ISSUERNAME,"2")

    Call logoutfromApp("MasterFile","Issuer Profile")

    'Step 36

    Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL","MFLogin"))

    Call login("MasterFile","Login Page","Approver","MFLogin")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step36: Log into application usingApprover ID","We have successfully logged in as an approver"

    ElseReporter.ReportEvent micFail,"Step36: Log into the application u

    sing Approver ID ","We have not successfully logged in as an approver"Environment.Value("TestCase_Log")="True"

    End If

    'Step37 to 44Environment.Value("TestCase_Log")="True"Call ApprovalFunction_CreateNewDR("MasterFile","CUSIP Profile","CUSIP",E

    nvironment.Value("CUSIP_NAME"),"Approved","Approved","Pending Approval")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step37 to 44:Approve the CUSIP det

    ails","The CUSIP details are approved as required"

    ElseReporter.ReportEvent micFail,"Step37 to 44: Approve the CUSIP de

    tails","The CUSIP details are not approved as required"Environment.Value("TestCase_Log")="True"

    End If

    'Step45 to 49

    Environment.Value("TestCase_Log")="True"Call ApprovalFunction_CreateNewDR("MasterFile","DR Documentation","DR Na

    me",Environment.Value("DRNAME"),"Approved","Approved","Pending Approval")

  • 8/7/2019 ADRMF CreateNewDR Modified

    34/239

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step45to 49: Approve the DR Docume

    ntation","The DR Documentation is filled in correctly as required"

    ElseReporter.ReportEvent micFail,"Step45 to 49: Approve the DR Docum

    entation","The DR Documentation is not approved as required"Environment.Value("TestCase_Log")="True"

    End If

    'Step 50 to 55Environment.Value("TestCase_Log")="True"If Environment.Value("TCCURCOUNT")=1 Then

    Call ApprovalFunction_CreateNewDR("MasterFile","Issuer Documentation","Issuer",Environment.value("ISSUERNAME"),"Approved","Approved","Pending Approval")

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

    Reporter.ReportEvent micPass,"Step50 to 55: Approve theissuer documentation","The issuer documentation is approved as required"Else

    Reporter.ReportEvent micFail,"Step 50 to 55 : Approve the issuer documentation","The issuer documentation is not approved as required"

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

    ElseReporter.ReportEvent micPass,"Step50 to 55 : Approve the issuer

    documentation","The issuer documentation already is approved"End if

    'Step 56 to 60Environment.Value("TestCase_Log")="True"

    Call ApprovalFunction_CreateNewDR("MasterFile","DR Profile","Name",Environment.Value("DRNAME"),"Approved","Approved","Pending Approval")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step56 to 60: Approve and Batch th

    e DR profile","The DR profile gets approved and batched successfully"Else

    Reporter.ReportEvent micFail,"Step56 to 60: Approve and Batch the DR Profile","The DR Profile gets approved and batched successfully"

    Environment.Value("TestCase_Log")="True"End IfCall logoutfromApp("MasterFile","Depositary Receipt Division's")Reporter.ReportEvent micDone,"Click on the log out button","The approv

    er logs out"'Step62 to 69

    Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL","MFLogin"))

    Call login("MasterFile","Login Page","Relationship Management","MFLogin")

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

    Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","DR"))

    Call set_WebEdit_Value("MasterFile","Profile - DR Search","DRName",Environment.Value("DRNAME"))

  • 8/7/2019 ADRMF CreateNewDR Modified

    35/239

    Call DRSearchCriteria("MasterFile","Profile - DR Search")

    Browser("MasterFile").Page("Profile - DR Search").WebElement("Innertext:=" & Environment.Value("DRNAME"),"html tag:=TD").Click

    OriginOfDR=Browser("MasterFile").Page("DR Profile").WebEdit("DROrigin").GetROProperty("value")

    StatusOfDR=Browser("MasterFile").Page("DR Profile").WebList("Status").Ge

    tROProperty("value")Environment.Value("TestCase_Log")="True"Call FlagImageCheck("MasterFile","DR Profile","DRTable","Not Exist")

    If StatusOfDR="Effective" and OriginOfDR="New Program" and Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step62 to 69: Check whether the DRhas been made effective or not","The DR Has been made effective successfully"

    ElseReporter.ReportEvent micFail,"Step 62 to 69: Check whether the D

    R has been made effective or not","The DR has not been made effective"Call captureScreenshot()

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

    'Step 70Browser("MasterFile").Page("DR Profile").WebElement("CUSIP Summary/Add")

    .ClickEnvironment.Value("TestCase_Log")="True"Call FlagImageCheck("MasterFile","DR Profile","DRTable","Not Exist")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step70: Go to CUSIP Summary tab and look for Flag","The Flags are absent as required"

    Else

    Reporter.ReportEvent micFail,"Step70: Go to CUSIP Summary tab and look for Flag ","The flag is still present"

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

    Call select_Menu("MasterFile","DR Profile","Home;DR Home")

    End Function

    '++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Public Function MFProfileDR_TC4()

    Environment.Value("TestCase_Log")="True"Environment.Value("CUSIP_NAME")=""Environment.Value("DRNAME")=""Environment.Value("ISSUERNAME")=""

    'Step1'Log into the ADR home page

    Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",

    "MFLogin"))

    Call pageCheck_WebEdit("MasterFile","Login Page","username;j_pas

  • 8/7/2019 ADRMF CreateNewDR Modified

    36/239

    sword","")Call pageCheck_WebButton("MasterFile","Login Page","Login","")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 1: Verfiying if the L

    ogin Page is Dispalyed or NOT","The Login Page is Dispalyed successfully with the Required Field"

    ElseReporter.ReportEvent micFail,"Step 1: Verfiying if the L

    ogin Page is Dispalyed or NOT","The Login Page is NOT Dispalyed successfully with the Required Field"

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

    'Calling the login functionCall login("MasterFile","Login Page","Relationship Management","

    MFLogin")

    ' Check the MasterFile Application for the 4 links, User Name an

    d the last Login DetailsCall chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTable.Value("HomePageLinks","HomePageVerification"),DataTable.Value("UserFullName","MFLogin" ))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass," Verifying the DR Home Pag

    e","The DR Home Page is displayed successfully with Home Page Links and the UserDetails"

    ElseReporter.ReportEvent micFail," Verifying the DR Home Pag

    e","The DR Home Page is NOT displayed successfully with Home Page Links and theUser Details"

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

    'Step2'Click on the masterFile button

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

    Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","MFLogin" ))

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

    ome Page","The MF Home Page is disaplyed successfully with the required Menu Items and also displays the Current Version"

    ElseReporter.ReportEvent micFail,"Step 2: Verfiying the MF H

    ome Page","The MF Home Page is NOT displayed successfully"Environment.Value("TestCase_Log") = "True"

    End If

    'Step3'Click on the Profile Link

    Call check_Menu("MasterFile","MasterFile","Profile")

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

  • 8/7/2019 ADRMF CreateNewDR Modified

    37/239

    DR Menu is Present in the Profile Menu or Not","The DR Menu is Present in the Profile Menu"

    ElseReporter.ReportEvent micPass, "Step 3: Verifying if the

    DR Menu is Present in the Profile Menu or Not","The DR Menu is NOT Present in the Profile Menu"

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

    End If

    'Step4'Click on the DR Link

    Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","DR"))

    Call pageCheck_WebEditOR("MasterFile","Profile - DR Search","IssuerName;DRName")

    Call pageCheck_WebListOR("MasterFile","Profile - DR Search","CountryOfManagement;DrOrigin;DRType;DRExchange;SorU;Status;SubStatus")'Call pageCheck_WebElementinTable("MasterFile","Profile - DR Sea

    rch","Name;Country of Management;Type;Status;Sub-Status;S/U;Effective Date;Termination Date;Depository;Origin;Structure","")

    intRC = Browser("MasterFile").Page("Profile - DR Search").WebTable("DR Search Results").RowCount

    If intRC

  • 8/7/2019 ADRMF CreateNewDR Modified

    38/239

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

    'Step6 to 20Call CreateNewDR("MasterFile","Profile - DR Search","DR Profile"

    ,"CUSIP Profile","","DR")If Environment.Value("Failure")="True" Then

    Call select_Menu("MasterFile","Profile - DR Search","Home;DR Home")

    Exit FunctionEnd IfEnvironment.Value("TestCase_Log")="True"

    Call FlagImageCheck("MasterFile","DR Profile","DRTable","Exist")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step6 to 20:Create a New D

    R and Attach a CUSIP to it","The New DR with name as "& Environment.Value("DRNAME") &" and CUSIP:"& Ucase(Environment.Value("CUSIP_NAME")) &" is created succes

    sfully on saving which we get a Yellow Flag"ElseReporter.ReportEvent micFail,"Step6 to 20 :Create a New

    DR and attach a CUSIP to it","The New DR is not created successfully"Environment.Value("TestCase_Log")="True"

    End If

    'Step21Call click_WebElement("MasterFile","DR Profile","Offerings")

    Call click_WebButton("MasterFile","DR Profile","Add_Offering")

    If dataTable.Value("Type","DR")="Level I" Then

    If Browser("MasterFile").Page("Offering Detail").Image("Save").Exist(4) Then

    Reporter.ReportEvent micFail,"Check whether the Level IDR Offering details can be filled","The offering details for level I DR Can be filled"

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

    ElseReporter.ReportEvent micPass,"Check whether the Level I

    DR Offering details can be filled","The offering details for level I DR Cannotbe filled as required"

    End IfEnd If

    Wait(4)Call ClickonDRName("MasterFile","Offering Detail",Environment.Value("DRNAME"

    ),"2")Wait(4)

    If Browser("MasterFile").Page("DR Profile").WebTable("Offerings").Exist(2) Then

    Reporter.ReportEvent micPass,"Step21: Check for the offe

    rings tab","The details in the offering tab is as required"Else

    Reporter.ReportEvent micFail,"Step21: Check for the offe

  • 8/7/2019 ADRMF CreateNewDR Modified

    39/239

    rings tab","The Details in the offerings tab is not as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

    End If

    'Step22

    Call click_WebElement("MasterFile","DR Profile","Additional DR Exchanges")

    If Browser("MasterFile").Page("DR Profile").WebTable("Additional DR Exchange").Exist(2) Then

    Reporter.ReportEvent micPass,"Step22: Check whether the Additional DR exchange Tab is as required","The Additional DR Exchanges Tab is as Required"

    ElseReporter.ReportEvent micFail,"Step22: Check whether the Addition

    al exchange Tab is as required","The Additional DR exchanges tab is not present"Call captureScreenshot()Environment.Value("Execution_Log")="False"

    End If' Call click_WebButton("MasterFile","DR Profile","Add_DRExchange")' Call click_Image("MasterFile","DR Profile","ExchangeInfo")' Call operation_on_FrameObjects_WithName("MasterFile","DR Profile

    ","lookupFrame","WebEdit","searchString",dataTable.Value("DRExchangeForCUSIP","DR"))

    ' Call operation_on_FrameObjects_WithName("MasterFile","DR Profile","lookupFrame","Image","Go","")

    ' Call SelectValueInsideFrame("MasterFile","DR Profile","lookupFrame",dataTable.Value("DREXchangeForCUSIP","DR"))

    ' Call set_WebEdit_Value("MasterFile","DR Profile","SEDOL",SEDOL)' Call set_WebEdit_Value("MasterFile","DR Profile","Ticker")' Call click_Image("MasterFile","DR Profile","Save")

    ' If Environment.Value("TestCase_Log")=true Then' Reporter.ReportEvent micPass,"Step22:Fill in the Additio

    nal DR Exchanges Tab","The Additional DR exchanges tab gets filled"' Else' Reporter.ReportEvent micFail,"Step22: Fill in the Additi

    onal DR exchanges tab","The additional DR Exchange tab is not filled as required"

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

    'Step23 and 24Call click_WebElement("MasterFile","DR Profile","Other DR Servic

    es")If Browser("MasterFile").Page("DR Profile").WebTable("Other DR Services"

    ).Exist(2) ThenReporter.ReportEvent micPass,"Step 23 and 24: Check whether the

    Other DR Services Tab is as required","The Additional DR Exchanges Tab is as Required"

    ElseReporter.ReportEvent micFail,"Step23 and 24: Check whether theOt

    her DR Services Tab is as required","The Additional DR exchanges tab is not present"

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

    End If

    'Step25

    If Browser("MasterFile").Page("DR Profile").WebElement("DRDocumentation"

  • 8/7/2019 ADRMF CreateNewDR Modified

    40/239

    ).Exist(2) ThenReporter.ReportEvent micPass,"Step25: Check whether the DR Docum

    entation link is present or not","The DR Documentation link is present as required"

    ElseReporter.ReportEvent micFail,"Step25: Check whether the DR Docum

    entation link is present or not","The DR Documentation link is not present as re

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

    End If

    'Step26Browser("MasterFile").Page("DR Profile").WebElement("DRDocumentation").c

    lickIf Browser("MasterFile").Page("DR Documentation Detail").Exist(2) Then

    Reporter.ReportEvent micPass,"Step26: Click on the DR Documentation link","The DR Documentation link is clicked as required"

    Else Reporter.ReportEvent micFail,"Step26: Click on the DR Documentation link","The DR Documentation link is not clicked"

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

    End If

    'Step27 to 29'Filling in the DR documentation

    Call Fill_DR_Documentation("MasterFile","DR Documentation Detail")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step27 to 29: Fill the DR Documentation and click on save","The DR documentation is done and saved and we navigate

    d to the Issuer profile screen"Else

    Reporter.ReportEvent micFail,"Step27 to 29: Fill the DR Documentation and click on save","The DR documentation is not done properly"

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

    Wait(3)

    Call click_WebElement("MasterFile","DR Profile","Detail")If (dataTable.Value("Type","DR") "144A" Or datatable.Value("Type","D

    R") "RegS") And DataTable.Value("DepositoryName","DR") ="BNY" Then

    Call click_WebElement("MasterFile","DR Profile","SEC Filing")Call set_WebEdit_Value("MasterFile","DR Profile","CurrentF6ADS",

    dataTable.Value("CurrentF6ADS","DR"))Call set_WebEdit_Value("MasterFile","DR Profile","CurF6Number",d

    ataTable.Value("CurF6Number","DR"))Wait(2)If DataTable.Value("DepositoryName","DR")="BNY" And Datatable.Va

    lue("Type","DR") "144A" And DataTable.Value("Type","DR") "Reg. S" ThenIf DataTable.Value("F6FileDate","DR") "" Then

    strDataTableValue = DataTable.Value("F6FileDate","DR")

    strValue = Split(strDataTableValue,";",-

    1,1)strDateValue = strValue(0)strMonthValue = strValue(1)

  • 8/7/2019 ADRMF CreateNewDR Modified

    41/239

    strYearValue = strValue(2)Call click_Image("MasterFile","DR Profil

    e","ShowCalenderF6FileDateBNY")Call ClickIcon_SetDate("MasterFile","DR

    Profile",strMonthValue,strYearValue,strDateValue)End If

    Else

    If DataTable.Value("F6FileDate","DR") "" ThenstrDataTableValue = DataTable.Value("F6F

    ileDate","DR")strValue = Split(strDataTableValue,";",-

    1,1)strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)Call click_Image("MasterFile","DR Profil

    e","ShowCalendar_F6FileDate")Call ClickIcon_SetDate("MasterFile","DR

    Profile",strMonthValue,strYearValue,strDateValue)

    End IfEnd IfCall click_Image("MasterFile","DR Profile","