ADRMF_ProfileCUSIP

  • Upload
    imaarha

  • View
    214

  • Download
    0

Embed Size (px)

Citation preview

  • 8/7/2019 ADRMF_ProfileCUSIP

    1/50

    '=========================================================================================================' Name of the Script : Master File Profile CUSIP' Scope of the Script : This test script covers 11 test cases related to the MF Profile --> CUSIP

    ' Author : Shyam H D' Description : Master File Profile CUSIP' Date and / or Version : 05-11-2008,version 1.0'===========================================================================================================

    Sub MFProfileCUSIP()

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

    Environment.Value("strSheetName") = "CUSIP"'''''''''Test case countConst TC_COUNT = 11

    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 & "CAReportsAgingItemsTC.vbs"

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

    DataTable.AddSheet "MFLogin"

    DataTable.ImportSheet strDataPath & "Login.xls","MFLogin","MFLogin"DataTable.AddSheet "CUSIP"DataTable.ImportSheet strDataPath & "MasterFileProfile.xls","CUS

    IP","CUSIP"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 file

    Call Execution_log(DataTable.Value("Scenario_Name", "Master"), "", "", "")

  • 8/7/2019 ADRMF_ProfileCUSIP

    2/50

    '****Invoking IE and navigating to the ADR Login pageDataTable.GetSheet("MFLogin").SetCurrentRow(1)Environment.Value("strAppURL") = DataTable.Value("URL","MFLogin"

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

    '****Checking the username, password and login objects in the login 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("CUSIP").SetCurrentRow(Environment.Value("DAT

    ATABLE_ROW"))

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

    For intTCCount = 1 to TC_COUNT

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

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

    T CASE - '" & DataTable("TestCaseID","CUSIP") & "' ########### ","Execution of T

    est Case '" & DataTable("TestCaseDesc","CUSIP") & "' Started"strFuncName = "MFProfileCUSIP_TC" & intTCCount &

    "()" ''Formation of function nameExecute "Call " & strFuncName

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

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

    ElseCall Execution_log("",Datatable.

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

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

    End If

    strPrevious=Trim(DataTable.Value("TestCaseID","CUSIP"))''Increment the test data table rowEnvironment.Value("DATATABLE_ROW") = Environment.Value("

    DATATABLE_ROW") + 1DataTable.GetSheet("CUSIP").SetCurrentRow(Environment.Va

    lue("DATATABLE_ROW"))

    strNext=Trim(DataTable.Value("TestCaseID","CUSIP"))While strPrevious = strNext

    Environment.Value("DATATABLE_ROW") = Environment

  • 8/7/2019 ADRMF_ProfileCUSIP

    3/50

    .Value("DATATABLE_ROW") + 1DataTable.GetSheet("CUSIP").SetCurrentRow(Enviro

    nment.Value("DATATABLE_ROW"))strNext=Trim(DataTable.Value("TestCaseID","CUSIP

    "))Wend

    Next

    Call logoutfromApp("MasterFile","Depositary Receipt Division's")'***************************************** TC Driver End *******

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

    End Sub

    '**********************************************Test Case 1 to Test Case 11******

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

    Public Function MFProfileCUSIP_TC1()

    Call invoke_URL("MasterFile","Login Page",Environment.Value("strAppURL"))

    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

    Call login("MasterFile","Login Page","User","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"),Environment.Value("NormalUser"))

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

    ome Page","The DR Home Page is displayed successfully with Home Page Links and the User Details"

    ElseReporter.ReportEvent micFail,"Step 2: Verifying the DR H

    ome Page","The DR Home Page is NOT displayed successfully with Home Page Links a

    nd the User Details"Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"

  • 8/7/2019 ADRMF_ProfileCUSIP

    4/50

    End If

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

    Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("MenuName","HomePageVerification"),Environment.Value("NormalUser"))

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

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

    End If

    Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP

    ath","CUSIP"))

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

    nu is Present in the Profile Menu or Not","The CUSIP Menu is Present in the Profile Menu"

    ElseReporter.ReportEvent micPass, "Step 4: Verifying if the CUSIP Me

    nu is Present in the Profile Menu or Not","The CUSIP Menu is NOT Present in theProfile Menu"

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

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

    Call pageCheck_WebEditOR("MasterFile","Profile CUSIP Search","CUSIP;CUSIPName;DRName;DRTicker;UnderlyingISIN")

    Call pageCheck_WebListOR("MasterFile","Profile CUSIP Search","DRExchange;S/U;HomeMarketCountry;Status")

    Call pageCheck_WebElementinTable("MasterFile","Profile CUSIP Search","Name;CUSIP;Type;Active Flag;S/U;DR Exchange;DR Ticker Symbol;DR ISIN;HomeMarket Country;Underlying ISIN","")

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

    If intRC

  • 8/7/2019 ADRMF_ProfileCUSIP

    5/50

    ElseReporter.ReportEvent micFail, "Step 5 : Verifying the Fi

    elds present in the Page Profile CUSIP Search","The Required Fields are NOT Present"

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

    End If

    Call ProfileCUSIPSearch("MasterFile","Profile CUSIP Search")

    Call pageCheck_WebEditOR("MasterFile","Profile CUSIP Search","CUSIP;CUSIPName;DRName;DRTicker;UnderlyingISIN")

    Call pageCheck_WebListOR("MasterFile","Profile CUSIP Search","DRExchange;S/U;HomeMarketCountry;Status")

    Call pageCheck_WebElementinTable("MasterFile","Profile CUSIP Search","Name;CUSIP;Type;Active Flag;S/U;DR Exchange;DR Ticker Symbol;DR ISIN;HomeMarket Country;Underlying ISIN","")

    intRC = Browser("MasterFile").Page("Profile CUSIP Search").WebTa

    ble("CUSIP Search Results").RowCountIf intRC >2 ThenReporter.ReportEvent micPass,"Verifying the Number of Ro

    ws after entering the Search Criteria","The Results are dispalyed based on the Search Criteria"

    ElseReporter.ReportEvent micFail," Verifying the Number of R

    ows after entering the Search Criteria","The No matched results are didpalyed for the entered Search Criteria"

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

    End If

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

    elds present in the Page Profile CUSIP Search","The Required Fields are dispalyed"

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

    lds present in the Page Profile CUSIP Search","The Required Fields are NOT Present"

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

    End If

    blnFlag= "False"intRowCount = Browser("MasterFile").Page("Profile CUSIP Search")

    .WebTable("CUSIP Search Results").RowCountFor intRowCounter = 1 to intRowCountintColumnCount = Browser("MasterFile").Page("Profile CUSIP Searc

    h").WebTable("CUSIP Search Results").ColumnCount(intRowCount)For intColumnCounter = 1 to intColumnCount

    strGetCellData = Browser("MasterFile").Page("Profile CUSIP Search").WebTable("CUSIP Search Results").GetCellData(intRowCounter,intColumnCounter)

    If Trim(UCase(strGetCellData)) = Trim(UCase(DataTable.Value("DRName","CUSIP"))) Then

    blnFlag= "True"

    Exit ForEnd If

    Next

  • 8/7/2019 ADRMF_ProfileCUSIP

    6/50

    If blnFlag= "True" ThenExit For

    End IfNext

    If blnFlag = "True" ThenReporter.ReportEvent micPass,"Verifying if the DR Name "

    & DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table or NOT","The DR " & DataTable.Value("DRName","CUSIP") & " is dispalyed in the ResultTable"

    ElseReporter.ReportEvent micFail,"Verifying if the DR Name "

    & DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table or NOT","The DR " & DataTable.Value("DRName","CUSIP") & " is NOT dispalyed in the Result Table"

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

    End If

    Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Search Results",DataTable.Value("SelectCUSIPName","CUSIP"))blnFlag = "False"intRC = Browser("MasterFile").Page("CUSIP Profile").WebTable("DR

    ").RowCountFor intRow =1 to intRC

    intColCount = Browser("MasterFile").Page("CUSIP Profile").WebTable("DR").ColumnCount(intRow)

    For intCol = 1to intColCountstrCellData = Browser("MasterFile").Page("CUSIP

    Profile").WebTable("DR").GetCellData(intRow,intCol)If Trim(UCase(strCellData)) = UCase(DataTable.Va

    lue("DRName","CUSIP")) Then

    blnFlag = "True"End IF

    NextNext

    If blnFlag = "True" ThenReporter.ReportEvent micPass,"Verifying the DR Name in t

    he CUSIP Profile page","The DR Name dispalyed is " & strCellDataElse

    Reporter.ReportEvent micFail,"Verifying the DR Name in the CUSIP Profile page","The DR Name is NOT displayed as " & strCellData

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

    End If

    Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","CUSIPDetails_Name;CUSIPDetails_BriefName;CUSIPDetails_HomeMarketCountry;CUSIPDetails_RatioDRs;CUSIPDetails_RatioUnderlyingShares;CUSIPDetails_DRTickerSymbol;CUSIPDetails_DRExchange;CUSIPDetails_DRISIN;CUSIPDetails_DRCommonCode;CUSIPDetails_CommonDepository;CUSIPDetails_PricingSEDOL;CUSIPDetails_UnderlyingSecurity;CUSIPDetails_S/U;CUSIPDetails_CommonDepository;CUSIPDetails_Threshold;CUSIPDetails_EffectiveFlag")

    Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","CUSIPDetails_CUSIP;CUSIPDetails_Type;CUSIPDetails_Price;CUSIPDetails_PreReleaseLimit;CUSIPDetails_DRSEDOL;CUSIPDetails_NomineeAccount;CUSIPDetails_ShareBase;CUSIPDetails

    _UnderlyingISIN;CUSIPDetails_UnderlyingSEDOL;CUSIPDetails_MultipleUnderlyingFlag")

    Call pageCheck_WebListOR("MasterFile","CUSIP Profile","CUSIPDeta

  • 8/7/2019 ADRMF_ProfileCUSIP

    7/50

    ils_ActiveFlag")

    If Browser("MasterFile").Page("CUSIP Profile").WebButton("PriorCUSIP").Exist(2) Then

    Call click_WebButton("MasterFile","CUSIP Profile","PriorCUSIP")

    Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","C

    USIPDetails_Name;CUSIPDetails_BriefName;CUSIPDetails_HomeMarketCountry;CUSIPDetails_RatioDRs;CUSIPDetails_RatioUnderlyingShares;CUSIPDetails_DRTickerSymbol;CUSIPDetails_DRExchange;CUSIPDetails_DRISIN;CUSIPDetails_DRCommonCode;CUSIPDetails_CommonDepository;CUSIPDetails_PricingSEDOL;CUSIPDetails_UnderlyingSecurity;CUSIPDetails_S/U;CUSIPDetails_Depository;CUSIPDetails_Threshold;CUSIPDetails_EffeciveFlag")

    Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","CUSIPDetails_CUSIP;CUSIPDetails_Type;CUSIPDetails_Price;CUSIPDetails_PreReleaseLimit;CUSIPDetails_DRSEDOL;CUSIPDetails_NomineeAccount;CUSIPDetails_ShareBase;CUSIPDetails_UnderlyingISIN;CUSIPDetails_UnderlyingSEDOL;CUSIPDetails_MultipleUnderlyingFlag")

    Call pageCheck_WebListOR("MasterFile","CUSIP Profile","C

    USIPDetails_ActiveFlag")End If

    If Browser("MasterFile").Page("CUSIP Profile").WebElement("Management Report").Exist(2) Then

    Browser("MasterFile").Page("CUSIP Profile").WebElement("Management Report").Click

    Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","MgmtReport_ReportStartDate")

    Call pageCheck_WebListOR("MasterFile","CUSIP Profile","MgmtReport_ShowPreRelease;MgmtReport_ShowInstitutionalHolder;MgmtReport_GenerateReport;MgmtReport_CUSIPLinking")

    End If

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

    Reporter.ReportEvent micPass,"Step 7 : Verifying the Fields Present in CUSIP Profile page","The Required Fields are Present in the PageCUSIP Profile"

    ElseReporter.ReportEvent micFail,"Step 7 : Verifying the Fie

    lds Present in CUSIP Profile page","The Required Fields are Present in the PageCUSIP Profile"

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

    End If

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

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

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

    Home Page","The DR Home Page is displayed successfully with Home Page Links andthe User Details"

    Else

    Reporter.ReportEvent micFail,"Step 8 : Verifying the DRHome Page","The DR Home Page is NOT displayed successfully with Home Page Linksand the User Details"

  • 8/7/2019 ADRMF_ProfileCUSIP

    8/50

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

    End If

    End Function

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

    Public Function MFProfileCUSIP_TC2()

    ' Clicking on the Master File Web ElementCall click_WebElement("MasterFile","Depositary Receipt Division's","Mast

    erFile")

    ' Selecting the CUSIP Menu'Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","

    CUSIP"))Call select_Menu("MasterFile","MasterFile","PROFILE;CUSIP")

    If Browser("MasterFile").Page("Profile CUSIP Search").Exist(2) ThenReporter.ReportEvent micPass,"Step 1 to 5: Verifying if the Page

    ' Profile CUSIP Search ' is displayed or NOT","The Page ' Profile CUSIP Search' is Displayed successfully"

    ElseReporter.ReportEvent micFail,"Step 1 to 5: Verifying if the Page

    ' Profile CUSIP Search ' is displayed or NOT","The Page ' Profile CUSIP Search' is NOT Displayed successfully"

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

    End If

    Call click_Image("MasterFile","Profile CUSIP Search","New")

    'Call chkWebEditMandatoryProperty("MasterFile","CUSIP Profile Orphan","Name;BriefName;RatioDRs;RatioUnderlyingShares;DRExchange;EntryReason;CUSIP")

    'Call chkWeblistMandatoryProperty("MasterFile","CUSIP Profile Orphan","HomeMarketCountry;ActiveFlag")

    'Call pageCheck_WebEditOR("MasterFile","CUSIP Profile Orphan","DRExchange;EntryReason;UnderlyingISIN;PricingSEDOL;EffectiveFlag;Type;Price;UnderlyingSEDOL;ShareBase")

    Call chkWebEditMandatoryProperty("MasterFile","CUSIP Profile Orphan","Name;BriefName;RatioDRs;RatioUnderlyingShares;CUSIP")

    Call chkWeblistMandatoryProperty("MasterFile","CUSIP Profile Orphan","HomeMarketCountry;ActiveFlag")

    Call pageCheck_WebEditOR("MasterFile","CUSIP Profile Orphan","DRExchange;EntryReason;UnderlyingISIN;PricingSEDOL;EffectiveFlag;Type;Price;UnderlyingSEDOL;ShareBase")

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

    Mandatory and Non Mandatory Fields in the Page CUSIP Profile Orphan","The Required Mandatory and Non Mandatory Fields are Present in the Page CUSIP Profile Orphan"

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

    Mandatory and Non Mandatory Fields in the Page CUSIP Profile Orphan","The Requi

  • 8/7/2019 ADRMF_ProfileCUSIP

    9/50

    red Fields are NOT Present in the Page CUSIP Profile Orphan"Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"

    End If

    Call pageCheck_DefaultValue("MasterFile","CUSIP Profile Orphan","","WebEdit","INPUT","Yes;Orphan")

    Call pageCheck_DefaultValue("MasterFile","CUSIP Profile Orphan","","WebList","SELECT","Yes")

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

    ault values in the Page CUSIP Profile Orphan","The Field are displayed with theRequired Default Values"

    ElseReporter.ReportEvent micFail,"Step 8 : Verifying the Def

    ault values in the Page CUSIP Profile Orphan","The Field are NOT displayed withthe Required Default Values"

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

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

    blnEFValue = Browser("MasterFile").Page("CUSIP Profile Orphan").WebEdit("EffectiveFlag").GetROProperty("readonly")

    blnTypeValue = Browser("MasterFile").Page("CUSIP Profile Orphan").WebEdit("Type").GetROProperty("readonly")

    If blnEFValue = "1" And blnTypeValue = "1" ThenReporter.ReportEvent micPass," Step 9: Verifying if the Fields

    ' Effecive Flag and Type ' are Greyed out or NOT","The Fields ' Effecive Flag and Type' are Greyed out"

    Else

    Reporter.ReportEvent micFail,"Step 9: Verifying if the Fields 'Effecive Flag and Type ' are Greyed out or NOT","The Fields ' Effecive Flag andType' are NOT Greyed out"

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

    End If

    ' Create a New CUSIPCall CreateNewCUSIP("MasterFile","CUSIP Profile Orphan","Save")

    ' Check for the Flag Next to the Field ModifiedCall chkFlagImage("MasterFile","CUSIP Profile Orphan","Detail",DataTable

    .Value("ModifiedFields","CUSIP"),"Exist")If Environment.Value("TestCase_Log") = "True" Then

    Reporter.ReportEvent micPass,"Step 10: Verifying if the Flag isDispalyed next to the Field Modified","A Flag is Dispalyed next to the Field Modified"

    ElseReporter.ReportEvent micFail,"Step 10: Verifying if the Flag is

    Dispalyed next to the Field Modified"," Flag is NOT Dispalyed next to the FieldModified"

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

    End If

    Call logoutfromApp("MasterFile","CUSIP Profile Orphan")

    If Browser("MasterFile").Exist(5) Then

  • 8/7/2019 ADRMF_ProfileCUSIP

    10/50

    Reporter.ReportEvent micFail,"Step 11: Verifying if the Application is LoggedOuted or NOT","The Application is still Open"

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

    ElseReporter.ReportEvent micPass,"Step 11: Verifying if the Applicat

    ion is LoggedOuted or NOT","The Application is LoggedOut Successfully"

    End If

    Call invoke_URL("MasterFile","Login Page",Environment.Value("strAppURL"))

    Call login("MasterFile","Login Page","Approver","MFLogin")

    Call ApprovalFunction("MasterFile","CUSIP Profile","Name;CUSIP;Last UserUpdated;Last Updated",DataTable.Value("CUSIPName","CUSIP"),DataTable.Value("ApproveComments","CUSIP"),"Approved","Pending Approval")

    Call logoutfromApp("MasterFile","Approval Queue Item Search")

    If Browser("MasterFile").Exist(2) ThenReporter.ReportEvent micFail," Verifying if the Application is LoggedOuted or NOT","The Application is still Open"

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

    ElseReporter.ReportEvent micPass," Verifying if the Applicat

    ion is LoggedOuted or NOT","The Application is LoggedOut Successfully"End If

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 12 to 21 : Verfiying if all t

    he Modified Fields are Approved or NOT","All the Modified Fields are Approved"

    ElseReporter.ReportEvent micFail,"Step 12 to 21 : Verfiying if the A

    pproval functionality","Any of the steps from 12 to 21 might have Failed"Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"

    End If

    Call invoke_URL("MasterFile","Login Page",Environment.Value("strAppURL"))

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

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

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

    blnFlag = Browser("MasterFile").Page("Profile CUSIP Search").Exist(2)

    If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" ThenReporter.ReportEvent micPass,"Step 22 : Verifying if the Page '

    Profile CUSIP Search' is Dispalyed or NOT","The Page ' Profile CUSIP Search ' isdispalyed"

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

    Profile CUSIP Search' is Dispalyed or NOT","The Page ' Profile CUSIP Search ' isNOT dispalyed"

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

  • 8/7/2019 ADRMF_ProfileCUSIP

    11/50

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

    Call set_WebEdit_Value("MasterFile","Profile CUSIP Search","CUSIPName",DataTable.Value("CUSIPName","CUSIP"))

    Call click_Image("MasterFile","Profile CUSIP Search","Search")

    Call chkActiveFlagImage("MasterFile","Profile CUSIP Search","CUSIP Search Results","Active Flag",DataTable.Value("CUSIPName","CUSIP"),"Not Exist")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 23 : Verfiying for the Red Ti

    ck Mark in Active Flag Column","The Red Tick Mark is NOT Present"Else

    Reporter.ReportEvent micFail,"Step 23 : Verfiying for the Red Tick Mark in Active Flag Column","The Red Tick Mark is Present"

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

    End If

    Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Search Results",DataTable.Value("CUSIPName","CUSIP"))

    'Call click_Image("MasterFile","Profile CUSIP Search","Search")Call chkFlagImage("MasterFile","CUSIP Profile Orphan","Detail",DataTable

    .Value("ModifiedFields","CUSIP"),"Not Exist")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 24: Verifying if Yellow FLAGs

    are Present or NOT","The Yellow Flags are NOT displayed"Else

    Reporter.ReportEvent micPass,"Step 24: Verifying if Yellow FLAGs

    are Present or NOT","The Yellow Flags are NOT displayed"Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"

    End If

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

    End Function

    '===================================================================================================================================

    Public Function MFProfileCUSIP_TC3()

    ' Clicking on the Master File Web ElementCall click_WebElement("MasterFile","Depositary Receipt Division's","Mast

    erFile")

    ' Selecting the CUSIP Menu'Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","

    CUSIP"))Call select_Menu("MasterFile","MasterFile","PROFILE;CUSIP")

    blnFlag = Browser("MasterFile").Page("Profile CUSIP Search").Exist(5)

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

  • 8/7/2019 ADRMF_ProfileCUSIP

    12/50

    Reporter.ReportEvent micPass,"Step 1 to 5 : Verifying if the Page ' Profile CUSIP Search' is Dispalyed or NOT","The Page ' Profile CUSIP Search' is dispalyed"

    ElseReporter.ReportEvent micFail,"Step 1 to 5: Verifying if the Page

    ' Profile CUSIP Search' is Dispalyed or NOT","The Page ' Profile CUSIP Search 'is NOT dispalyed"

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

    End If

    Call click_Image("MasterFile","Profile CUSIP Search","New")

    ' Call chkWebEditMandatoryProperty("MasterFile","CUSIP Profile Orphan","Name;BriefName;RatioDRs;RatioUnderlyingShares;DRExchange;EntryReason;CUSIP")' Call chkWeblistMandatoryProperty("MasterFile","CUSIP Profile Orphan","HomeMarketCountry;ActiveFlag")' Call pageCheck_WebEditOR("MasterFile","CUSIP Profile Orphan","UnderlyingISIN;PricingSEDOL;EffectiveFlag;Type;Price;UnderlyingSEDOL;ShareBase")

    Call chkWebEditMandatoryProperty("MasterFile","CUSIP Profile Orphan","Name;BriefName;RatioDRs;RatioUnderlyingShares;CUSIP")

    Call chkWeblistMandatoryProperty("MasterFile","CUSIP Profile Orphan","HomeMarketCountry;ActiveFlag")

    Call pageCheck_WebEditOR("MasterFile","CUSIP Profile Orphan","DRExchange;EntryReason;UnderlyingISIN;PricingSEDOL;EffectiveFlag;Type;Price;UnderlyingSEDOL;ShareBase")

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

    Mandatory and Non Mandatory Fields in the Page CUSIP Profile Orphan","The Requi

    red Mandatory and Non Mandatory Fields are Present in the Page CUSIP Profile Orphan"

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

    Mandatory and Non Mandatory Fields in the Page CUSIP Profile Orphan","The Required Fields are NOT Present in the Page CUSIP Profile Orphan"

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

    End If

    Call pageCheck_DefaultValue("MasterFile","CUSIP Profile Orphan","","WebEdit","INPUT","Yes;Orphan")

    Call pageCheck_DefaultValue("MasterFile","CUSIP Profile Orphan","","WebList","SELECT","Yes")

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

    ault values in the Page CUSIP Profile Orphan","The Field are displayed with theRequired Default Values"

    ElseReporter.ReportEvent micFail,"Step 8 : Verifying the Def

    ault values in the Page CUSIP Profile Orphan","The Field are NOT displayed withthe Required Default Values"

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

    End If

    blnEFValue = Browser("MasterFile").Page("CUSIP Profile Orphan").WebEdit(

  • 8/7/2019 ADRMF_ProfileCUSIP

    13/50

    "EffectiveFlag").GetROProperty("readonly")blnTypeValue = Browser("MasterFile").Page("CUSIP Profile Orphan").WebEdi

    t("Type").GetROProperty("readonly")

    If blnEFValue = "1" And blnTypeValue = "1" ThenReporter.ReportEvent micPass," Step 9: Verifying if the Fields

    ' Effecive Flag and Type ' are Greyed out or NOT","The Fields ' Effecive Flag an

    d Type' are Greyed out"Else

    Reporter.ReportEvent micFail,"Step 9: Verifying if the Fields 'Effecive Flag and Type ' are Greyed out or NOT","The Fields ' Effecive Flag andType' are NOT Greyed out"

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

    End If

    ' Create a New CUSIPCall CreateNewCUSIP("MasterFile","CUSIP Profile Orphan","Save")

    ' Check for the Flag Next to the Field ModifiedCall chkFlagImage("MasterFile","CUSIP Profile Orphan","Detail",DataTable.Value("ModifiedFields","CUSIP"),"Exist")

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

    Dispalyed next to the Field Modified","A Flag is Dispalyed next to the Field Modified"

    ElseReporter.ReportEvent micFail,"Step 10: Verifying if the Flag is

    Dispalyed next to the Field Modified"," Flag is NOT Dispalyed next to the FieldModified"

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

    End If

    Call logoutfromApp("MasterFile","CUSIP Profile Orphan")

    If Browser("MasterFile").Exist(5) ThenReporter.ReportEvent micFail,"Step 11: Verifying if the Applicat

    ion is LoggedOuted or NOT","The Application is still Open"Call captureScreenShot()Environment.Value("Execution_Log") = "False"

    ElseReporter.ReportEvent micPass,"Step 11: Verifying if the Applicat

    ion is LoggedOuted or NOT","The Application is LoggedOut Successfully"End If

    Call invoke_URL("MasterFile","Login Page",Environment.Value("strAppURL"))

    Call login("MasterFile","Login Page","Approver","MFLogin")Call ApprovalFunction("MasterFile","CUSIP Profile","Name;CUSIP;Last User

    Updated;Last Updated",DataTable.Value("CUSIPName","CUSIP"),DataTable.Value("ApproveComments","CUSIP"),"Rejected","Pending Approval")

    Call logoutfromApp("MasterFile","Approval Queue Item Search")

    If Browser("MasterFile").Exist(5) ThenReporter.ReportEvent micFail,"Verifying if the Applicati

    on is LoggedOuted or NOT","The Application is still Open"

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

    Else

  • 8/7/2019 ADRMF_ProfileCUSIP

    14/50

    Reporter.ReportEvent micPass,"Verifying if the Application is LoggedOuted or NOT","The Application is LoggedOut Successfully"

    End If

    Call invoke_URL("MasterFile","Login Page",Environment.Value("strAppURL"))

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

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

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

    Call set_WebEdit_Value("MasterFile","Profile CUSIP Search","CUSIPName",DataTable.Value("CUSIPName","CUSIP"))

    Call click_Image("MasterFile","Profile CUSIP Search","Search")

    Call chkActiveFlagImage("MasterFile","Profile CUSIP Search","CUSIP Search Results","Active Flag",DataTable.Value("CUSIPName","CUSIP"),"Not Exist")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 20 : Verfiying for the Red Ti

    ck Mark in Active Flag Column","The Red Tick Mark is NOT Present"Else

    Reporter.ReportEvent micFail,"Step 20 : Verfiying for the Red Tick Mark in Active Flag Column","The Red Tick Mark is Present"

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

    End If

    Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Search Results",DataTable.Value("CUSIPName","CUSIP"))

    Call chkRejectedFlagImage("MasterFile","CUSIP Profile Orphan","Detail",DataTable.Value("ModifiedFields","CUSIP"),"Exist")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 21: Verifying if RED FLAGS ar

    e Present or NOT","The RED FLAGS are Displayed"Else

    Reporter.ReportEvent micFail,"Step 21: Verifying if RED FLAGS are Present or NOT","The RED FLAGS are NOT Displayed"

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

    End If

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

    End Function

    '===================================================================================================================================

    Public Function MFProfileCUSIP_TC4()

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

  • 8/7/2019 ADRMF_ProfileCUSIP

    15/50

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

    blnFlag = Browser("MasterFile").Page("Profile CUSIP Search").Exist(2)

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

    Reporter.ReportEvent micPass,"Step 1 : Verifying if the Page ' Profile CUSIP Search' is Dispalyed or NOT","The Page ' Profile CUSIP Search ' isdispalyed"

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

    rofile CUSIP Search' is Dispalyed or NOT","The Page ' Profile CUSIP Search ' isNOT dispalyed"

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

    End If

    Call ProfileCUSIPSearch("MasterFile","Profile CUSIP Search")

    Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Search Results",DataTable.Value("SelectCUSIPName","CUSIP"))

    strAppCUSIPName = get_WebEdit_Value("MasterFile","CUSIP Profile","CUSIPDetails_Name")

    If Trim(strAppCUSIPName) = Trim(DataTable.Value("SelectCUSIPName","CUSIP")) Then

    Reporter.ReportEvent micPass,"Step 2: Verifying if the CUSIP Name","The CUSIP Name dispalyed is " & strAppCUSIPName

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

    e","The CUSIP Name is NOT dispalyed as " & DataTable.Value("CUSIPName","CUSIP")

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

    End If

    Call click_Image("MasterFile","CUSIP Profile","Related Profiles")

    If Browser("MasterFile").Page("CUSIP Profile").Frame("lookupFrame").WebElement("Related Profiles").Exist(2) Then

    Reporter.ReportEvent micPass,"Step 3: Verifying if the Related Profile Window is Opened or NOT","The Related Profile Window is Opened"

    ElseReporter.ReportEvent micFail,"Step 3: Verifying if the Related P

    rofile Window is Opened or NOT","The Related Profile Window is Opened"Call captureScreenShot()Environment.Value("Execution_Log") = "False"

    End If

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

    End Function

    '========================================================================================================================

    Public Function MFProfileCUSIP_TC5()

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

  • 8/7/2019 ADRMF_ProfileCUSIP

    16/50

    erFile")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 1, 2: Verifing if the MF Home

    Page is displayed or NOT","The MF Home Page is displayed"Else

    Reporter.ReportEvent micFail,"Step 1, 2: Verifing if the MF Home

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

    End If

    Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","CUSIP"))

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

    nu is Present in the Profile Menu or Not","The CUSIP Menu is Present in the Profile Menu"

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

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

    End If

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

    Call pageCheck_WebEditOR("MasterFile","Profile CUSIP Search","CUSIP;CUSIPName;DRName;DRTicker;UnderlyingISIN")

    Call pageCheck_WebListOR("MasterFile","Profile CUSIP Search","DRExchange;S/U;HomeMarketCountry;Status")

    Call pageCheck_WebElementinTable("MasterFile","Profile CUSIP Search","Name;CUSIP;Type;Active Flag;S/U;DR Exchange;DR Ticker Symbol;DR ISIN;Home Market Country;Underlying ISIN","")

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

    If intRC

  • 8/7/2019 ADRMF_ProfileCUSIP

    17/50

    Call set_WebEdit_Value("MasterFile","Profile CUSIP Search","CUSIPName",Environment.Value("ApprovedCUSIPName"))

    Call click_Image("MasterFile","Profile CUSIP Search","Search")

    Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Search Results",Environment.Value("ApprovedCUSIPName"))

    intOldPriceValue = get_WebEdit_Value("MasterFile", "CUSIP Profile Orphan", "Price")

    intOldActiveFlagValue = get_WebList_Value("MasterFile","CUSIP Profile Orphan","ActiveFlag")

    Wait(2)Call ChangeCUSIPDetails("MasterFile","CUSIP Profile Orphan","Save")Wait(60)Call chkFlagImage("MasterFile","CUSIP Profile Orphan","Detail",DataTable

    .Value("ModifiedFields","CUSIP"),"Exist")If Environment.Value("TestCase_Log") = "True" Then

    Reporter.ReportEvent micPass,"Step 5, 6: Verifying if the Approv

    al Flag is dispalyed Next to the Field Modified or NOT","The Approval Flag is Displayed next to the Field Modified"Else

    Reporter.ReportEvent micFail,"Step 5,6: Verifying if the Approval Flag is dispalyed Next to the Field Modified or NOT","The Approval Flag is NOTDisplayed next to the Field Modified"

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

    End IfWait(2)intNewPriceValue = get_WebEdit_Value("MasterFile", "CUSIP Profile Orphan

    ", "Price")intNewActiveFlagValue = get_WebList_Value("MasterFile","CUSIP Profile Orphan

    ","ActiveFlag")

    Call logoutfromApp("MasterFile","CUSIP Profile Orphan")

    blnAppFlag = "False"blnAppFlag = Browser("MasterFile").Exist(2)

    Call invoke_URL("MasterFile","Login Page",Environment.Value("strAppURL")

    )Call login("MasterFile","Login Page","Approver","MFLogin")Call ApprovalFunction("MasterFile","CUSIP Profile",DataTable.Value("Appr

    ovalHeader","CUSIP"),Environment.Value("ApprovedCUSIPName"),DataTable.Value("ApproveComments","CUSIP"),"Approved","Pending Approval")

    Call logoutfromApp("MasterFile","Approval Queue Item Search")

    If Browser("MasterFile").Exist(2) ThenReporter.ReportEvent micFail,"Verifying if the Applicati

    on is LoggedOuted or NOT","The Application is still Open"Call captureScreenShot()Environment.Value("Execution_Log") = "False"

    ElseReporter.ReportEvent micPass," Verifying if the Applicat

    ion is LoggedOuted or NOT","The Application is LoggedOut Successfully"End If

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

  • 8/7/2019 ADRMF_ProfileCUSIP

    18/50

    dified are Approved or NOT and the Application is Closed","The Fields Modified are Approved and Application is Logged Out"

    ElseReporter.ReportEvent micFail,"Step 7: Verifying if the Fields Mo

    dified are Approved or NOT and the Application is Closed","The Fields Modified are NOT Approved OR Application is Logged Out"

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

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

    Call invoke_URL("MasterFile","Login Page",Environment.Value("strAppURL"))Call login("MasterFile","Login Page","User","MFLogin")

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

    Reporter.ReportEvent micPass,"Step 8: Verify if DR Home page isDisplayed after logging in","The DR Home Page is displayed"

    ElseReporter.ReportEvent micFail,"Step 8: Verify if DR Home page is

    Displayed after logging in","The DR Home Page is NOT Displayed"Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"

    End If

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

    Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","CUSIP"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 10: Verifying if CUSIP Menu i

    s Present or NOT","CUSIP Menu is Present in PROFILE Menu"

    ElseReporter.ReportEvent micFail,"Step 10: Verifying if CUSIP Menu i

    s Present or NOT","CUSIP Menu is NOT Present in PROFILE Menu"Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"

    End If

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

    If Browser("MasterFile").Page("Profile CUSIP Search").Exist(2) ThenReporter.ReportEvent micPass,"Step 11: Verifying if the ' Profil

    e CUSIP Search ' Page isdisplayed or NOT","The ' Profile CUSIP Search' page is displayed"

    ElseReporter.ReportEvent micFail,"Step 11: Verifying if the ' Profil

    e CUSIP Search ' Page isdisplayed or NOT","The ' Profile CUSIP Search' page is NOT displayed"

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

    End If

    Call set_WebEdit_Value("MasterFile","Profile CUSIP Search","CUSIPName",Environment.Value("ApprovedCUSIPName"))

    Call click_Image("MasterFile","Profile CUSIP Search","Search")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 12: Verifying the Search Resu

  • 8/7/2019 ADRMF_ProfileCUSIP

    19/50

    lt based on the CUSIP Name","The Corresponding Results are dispalyed"Else

    Reporter.ReportEvent micFail,"Step 12: Verifying the Search Result based on the CUSIP Name","The Corresponding Results are NOT dispalyed"

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

    End If

    Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Search Results",Environment.Value("ApprovedCUSIPName"))

    If Browser("MasterFile").Page("CUSIP Profile Orphan").Exist(5) ThenReporter.ReportEvent micPass,"Step 13: Verifying if the Page ' C

    USIP Profile' is dispalyed or NOT","The page ' CUSIP Profile' is Displayed successfully"

    ElseReporter.ReportEvent micFail,"Step 13: Verifying if the Page ' C

    USIP Profile' is dispalyed or NOT","The page ' CUSIP Profile' is NOT Displayed successfully"

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

    Call chkFlagImage("MasterFile","CUSIP Profile Orphan","Detail",DataTable.Value("ModifiedFields","CUSIP"),"Not Exist")

    Call click_Image("MasterFile","CUSIP Profile Orphan","Audit Profile")Wait(2)strModifiedFields = DataTable.Value("ModifiedFields","CUSIP")strModifiedField = Split(strModifiedFields,";",-1,1)

    ' For intCount = 0 to UBound(strModifiedField)'

    ' intIndex = intCount + 1' If Browser("MasterFile").Page("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & intIndex).Exist(2) Then' blnFlag = "True"' Else' blnFlag = "False"' Reporter.ReportEvent micFail,"Verify if the Table Existor NOT","The Table does NOT exist"' End If'' If blnFlag = "True" Then' intRowCount = Browser("MasterFile").Page("CUSIP ProfileOrphan").Frame("lookupFrame").WebTable("index:= " & intIndex).RowCount' For intRowCounter = 1 to intRowCount' intColumnCount = Browser("MasterFile").Page("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & intIndex).ColumnCount(intRowCounter)' For intColumnCounter = 1 to intColumnCount' strGetCellData = Browser("MasterFile").Page("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & intIndex).GetCellData(intRowCounter,intColumnCounter)' If strGetCellData = "Field" Then' strValue = Browser("MasterFile").Page("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & intIndex).GetCellData(intRowCounter+1,intColumnCounter)

    ' If strValue = strModifiedField(intCount) Then' Reporter.ReportEvent mic

  • 8/7/2019 ADRMF_ProfileCUSIP

    20/50

    Pass,"Verifying if the Modified Field is Present or NOT","The Modified Field " &strModifiedField(intCount) & " is Present in the table"' Else' Reporter.ReportEvent micFail,"Verifying if the Modified Field is Present or NOT","The Modified Field " &strModifiedField(intCount) & " is NOT Present in the table"' Environment.Value("TestC

    ase_Log") = "False"' Environment.Value("Execution_Log") = "False"' Exit For' End If' End If'' If strGetCellData = "New Value" Then' strValue = Browser("MasterFile").Page("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & intIndex).GetCellData(intRowCounter+1,intColumnCounter)' Reporter.ReportEvent micPass,"Th

    e New Value of the Modified Field " & strModifiedField(intCount),"The New Valueof the Modified Field " & strModifiedField(intCount) & " is " &strValue' End If'' If strGetCellData = "Old Value" Then' strValue = Browser("MasterFile").Page("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & intIndex).GetCellData(intRowCounter+1,intColumnCounter)' Reporter.ReportEvent micPass,"The Old Value of the Modified Field " & strModifiedField(intCount),"The Old Valueof the Modified Field " & strModifiedField(intCount) & " is " &strValue' End If'

    ' If InStr(1,strGetCellData,"Updated By") 0Then' intPos = Instr(1,strGetCellData,"Approved By")' strUpdated = Mid(strGetCellData,1,intPos-1)' strApproved = Mid(strGetCellData,intPos)' Reporter.ReportEvent micPass,"The displayed Updated by and Time Stamp are",":" & strUpdated' Reporter.ReportEvent micPass,"The Approved By details are:",":" & strApproved' End If' Next' Next' End If' Next

    For index = 1 to 2intRowCount = Browser("MasterFile").Page("CUSIP Profile

    Orphan").Frame("lookupFrame").WebTable("index:= " & Index).RowCountFor intRowCounter = 1 To intRowCount

    strFieldName = Browser("MasterFile").Page("CUSIPProfile Orphan").Frame("lookupFrame").WebTable("index:= " & Index).GetCellData(

    intRowCounter, 1)If strFieldName = "Price (USD)" Then

    strNewValue = Browser("MasterFile").Page

  • 8/7/2019 ADRMF_ProfileCUSIP

    21/50

    ("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & Index).GetCellData(intRowCounter, 2)

    strOldValue = Browser("MasterFile").Page("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & Index).GetCellData(intRowCounter, 3)

    If Round(strOldValue,2) = Round(intOldPriceValue,2) And Round(strNewValue,2) = Round(intNewPriceValue,2) Then

    Reporter.ReportEvent micPass, "Verfiying the Old and New Values", "The Old Value is " & intOldPriceValue& " and New Value is " & intNewPriceValue & " in the Field " & strFieldName

    ElseReporter.ReportEvent mic

    Fail, "Verfiying the Old and New Values", "The Old Value is Not " & intOldPriceValue & " Or New Value is Not " & intNewPriceValue & " in the Field " & strFieldName

    Call captureScreenShot()Environment.Value("TestC

    ase_Log") = "False"Environment.Value("Execu

    tion_Log") = "False" End IfEnd If

    If strFieldName = "Active Flag" ThenstrNewValue = Browser("MasterFile").Page

    ("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & Index).GetCellData(intRowCounter, 2)

    strOldValue = Browser("MasterFile").Page("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & Index).GetCellData(intRowCounter, 3)

    If UCase(intOldActiveFlagValue) = "YES"Then

    intOldActiveFlagValue = "Y"Else

    intOldActiveFlagValue = "N"End If

    If UCase(intNewActiveFlagValue) = "YES"Then

    intNewActiveFlagValue = "Y"Else

    intNewActiveFlagValue = "N"End IfIf UCase(strOldValue) = UCase(intOldActi

    veFlagValue) And UCase(strNewValue) = UCase(intNewActiveFlagValue) Then'If Round(strOldValue,2) = Round(intOldActiveFlagValue,2) An

    d Round(strNewValue,2) = Round(intNewActiveFlagValue,2) ThenReporter.ReportEvent mic

    Pass, "Verfiying the Old and New Values", "The Old Value is " & intOldActiveFlagValue & " and New Value is " & intNewActiveFlagValue & " in the Field " & strFieldName

    ElseReporter.ReportEvent mic

    Fail, "Verfiying the Old and New Values", "The Old Value is Not " & intOldActiveFlagValue & " Or New Value is Not " & intNewActiveFlagValue & " in the Field" & strFieldName

    Call captureScreenShot()

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

    Environment.Value("Execu

  • 8/7/2019 ADRMF_ProfileCUSIP

    22/50

    tion_Log") = "False"End If

    End If

    If Instr(1,strFieldName,"Approved By") 0 ThenstrApproverName = Environment.Value("App

    roverUser")

    strCheck = Split(strApproverName," ",-1,1)

    strFinalApproverName = strCheck(1) & " ," & strCheck(0)

    If instr(1,strFieldName,strFinalApproverName) 0 Then

    Reporter.ReportEvent micPass,"Verfiying the Approval Details","The Details are Approved by the User ' " & strFinalApproverName

    ElseReporter.ReportEvent micFail,"Ve

    rifying the Approval Details","The Details are Not Approved by the User ' " & st

    rFinalApproverName Call captureScreenShot()Environment.Value("Execution_Log

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

    ) = "False"End If

    End If

    If Instr(1,strFieldName,"Updated By") 0 ThenstrUserName = Environment.Value("NormalU

    ser")strChecks = Split(strUserName," ",-1,1)

    strFinalUserName = strChecks(1) & " , "& strChecks(0)

    If instr(1,strFieldName,strFinalUserName) 0 Then

    Reporter.ReportEvent micPass,"Verfiying the User Details","The Updated User is " & strFinalUserName

    ElseReporter.ReportEvent micFail,"Ve

    rfiying the User Details","The Updated User is NOT " & strFinalUserNameCall captureScreenShot()Environment.Value("TestCase_Log"

    ) = "False"Environment.Value("Execution_Log

    ") = "False"End If

    End If

    NextNext

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 14 : Verify if the details of

    the Modified Field is displyed when clicked on ' AUDIT Button'","The Modified Fields is displayed with the details of Modification"

    Else

    Reporter.ReportEvent micFail,"Step 14 : Verify if the details ofthe Modified Field is displyed when clicked on ' AUDIT Button'","The Modified Fields are NOT displayed with the details of Modification"

  • 8/7/2019 ADRMF_ProfileCUSIP

    23/50

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

    End If

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

    End Function

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

    Public Function MFProfileCUSIP_TC6()

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

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

    blnFlag = Browser("MasterFile").Page("Profile CUSIP Search").Exist(2)

    If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" ThenReporter.ReportEvent micPass,"Step 1 to 5 : Verifying if the Pag

    e ' Profile CUSIP Search' is Dispalyed or NOT","The Page ' Profile CUSIP Search' is dispalyed"

    ElseReporter.ReportEvent micFail,"Step 1 to 5 : Verifying if the Pag

    e ' Profile CUSIP Search' is Dispalyed or NOT","The Page ' Profile CUSIP Search' is NOT dispalyed"

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

    End If

    Call ProfileCUSIPSearch("MasterFile","Profile CUSIP Search")

    Call pageCheck_WebEditOR("MasterFile","Profile CUSIP Search","CUSIP;CUSIPName;DRName;DRTicker;UnderlyingISIN")

    Call pageCheck_WebListOR("MasterFile","Profile CUSIP Search","DRExchange;S/U;HomeMarketCountry;Status")

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

    If intRC >2 ThenReporter.ReportEvent micPass,"Verifying the Number of Rows after

    entering the Search Criteria","The Results are dispalyed based on the Search Criteria"

    ElseReporter.ReportEvent micFail," Verifying the Number of Rows afte

    r entering the Search Criteria","The No matched results are dispalyed for the entered Search Criteria"

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

    End If

    blnFlag= "False"intRowCount = Browser("MasterFile").Page("Profile CUSIP Search").WebTabl

    e("CUSIP Search Results").RowCount

  • 8/7/2019 ADRMF_ProfileCUSIP

    24/50

    For intRowCounter = 0 to intRowCountintColumnCount = Browser("MasterFile").Page("Profile CUSIP Searc

    h").WebTable("CUSIP Search Results").ColumnCount(intRowCount)For intColumnCounter = 0 to intColumnCount

    strGetCellData = Browser("MasterFile").Page("Profile CUSIP Search").WebTable("CUSIP Search Results").GetCellData(intRowCounter,intColumnCounter)

    If UCase(Trim(strGetCellData)) = UCase(Trim(DataTable.Value("DRName","CUSIP"))) Then

    blnFlag= "True"Exit For

    End IfNextIf blnFlag= "True" Then

    Exit ForEnd If

    Next

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

    Reporter.ReportEvent micPass,"Step 6: Verifying the Fields present in the Page Profile CUSIP Search and if the DR Name " & DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table or NOT","The DR " & DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table and the required Fields are Present"

    ElseReporter.ReportEvent micFail,"Step 6: Verifying the Fields prese

    nt in the Page Profile CUSIP Search and if the DR Name " & DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table or NOT","The DR " & DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table and the required Fields are Present"

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

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

    Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Search Results",DataTable.Value("SelectCUSIPName","CUSIP"))

    Wait 5strIntialAppValue = GetAllFieldValue("MasterFile","CUSIP Profile","WebEd

    it","INPUT")

    Call click_Image("MasterFile","CUSIP Profile","Preview Profile")

    blnReturnImage = Browser("MasterFile").Page("CUSIP Profile").Frame("Frame").Image("Print").Exist(2)

    blnPrintImage = Browser("MasterFile").Page("CUSIP Profile").Frame("Frame").Image("Print").Exist(2)

    If blnReturnImage = "True" AND blnPrintImage = "True" ThenReporter.ReportEvent micPass,"Step 7: Verfiying if the Print and

    Return Button are Present or NOT","The Print and Return Button are Present"Else

    Reporter.ReportEvent micFail,"Step 7: Verfiying if the Print andReturn Button are Present or NOT","The Print OR Return Button is NOT Present"

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

    End If

    If blnPrintImage = "True" Then

  • 8/7/2019 ADRMF_ProfileCUSIP

    25/50

    blnPrintImage = Browser("MasterFile").Page("CUSIP Profile").Frame("Frame").Image("Print").Click

    If Dialog("Print").Exist(2) ThenReporter.ReportEvent micWarning,"Step 8: Verifying if th

    e Print Dialog Exists or NOT","The Print Dialog Exist and Please Check for the Print document Manually"

    Dialog("Print").Close

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

    rint Dialog Exists or NOT","The Print Dialog does NOT Exist"Call captureScreenShot()Environment.Value("Execution_Log") = "False"

    End IfEnd If

    If blnReturnImage = "True" ThenBrowser("MasterFile").Page("CUSIP Profile").Frame("Frame").Image

    ("Return").ClickblnPageFlag = Browser("MasterFile").Page("CUSIP Profile").Exist(

    2) strFinalAppValue = GetAllFieldValue("MasterFile","CUSIP Profile","WebEdit","INPUT")

    If blnPageFlag = "True" AND (Trim(strFinalAppValue) = Trim(strIntialAppValue)) Then

    Reporter.ReportEvent micPass,"Step 9: Verifying if the Page ' CUSIP Profile ' is Displayed with the Details of the CUSIP","The Page ' CUSIP Profile' is dispalyed with the deatils of the CUSIP"

    ElseReporter.ReportEvent micFail,"Step 9: Verifying if the P

    age ' CUSIP Profile ' is Displayed with the Details of the CUSIP","The Page ' CUSIP Profile' is Not dispalyed with the deatils of the CUSIP"

    Call captureScreenShot()

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

    End If

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

    End Function

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

    Public Function MFProfileCUSIP_TC7()

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

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

    blnFlag = Browser("MasterFile").Page("Profile CUSIP Search").Exist(2)

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

    Reporter.ReportEvent micPass,"Step 1 to 5 : Verifying if the Page ' Profile CUSIP Search' is Dispalyed or NOT","The Page ' Profile CUSIP Search' is dispalyed"

  • 8/7/2019 ADRMF_ProfileCUSIP

    26/50

    ElseReporter.ReportEvent micFail,"Step 1 to 5 : Verifying if the Pag

    e ' Profile CUSIP Search' is Dispalyed or NOT","The Page ' Profile CUSIP Search' is NOT dispalyed"

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

    End If

    Call ProfileCUSIPSearch("MasterFile","Profile CUSIP Search")

    blnFlag= "False"intRowCount = Browser("MasterFile").Page("Profile CUSIP Search").WebTabl

    e("CUSIP Search Results").RowCountFor intRowCounter = 0 to intRowCount

    intColumnCount = Browser("MasterFile").Page("Profile CUSIP Search").WebTable("CUSIP Search Results").ColumnCount(intRowCount)

    For intColumnCounter = 0 to intColumnCountstrGetCellData = Browser("MasterFile").Page("Profile CUS

    IP Search").WebTable("CUSIP Search Results").GetCellData(intRowCounter,intColumn

    Counter) If UCase(Trim(strGetCellData)) = UCase(Trim(DataTable.Value("DRName","CUSIP"))) Then

    blnFlag= "True"Exit For

    End IfNextIf blnFlag= "True" Then

    Exit ForEnd If

    Next

    If blnFlag = "True" Then

    Reporter.ReportEvent micPass,"Step 6: Verifying if the DR Name "& DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table or NOT","The DR " & DataTable.Value("DRName","CUSIP") & " is dispalyed in the ResultTable"

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

    & DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table or NOT","The DR " & DataTable.Value("DRName","CUSIP") & " is NOT dispalyed in the Result Table"

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

    Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Search Results",DataTable.Value("SelectCUSIPName","CUSIP"))

    ' Getting the CUSIP Number of the Selected CUSIP from the ApplicationstrCUSIPNumber = get_WebEdit_Value("MasterFile","CUSIP Profile","CUSIPDe

    tails_CUSIP")

    ' Clicking on the Trading Volume optionCall click_WebElement("MasterFile","CUSIP Profile","Trading Volume")

    Call pageCheck_WebEditOR("MasterFile","Trading Volume and Price","SearchByDate;Date;HighPrice;LowPrice;ClosePrice;TradingVolume")

    Call pageCheck_WebEditOR("MasterFile","Trading Volume and Price","MonthEndDate;Month_HighPrice;Month_LowPrice;Month_ClosePrice;Month_AveragePrice;Month_TradingVolume;Month_RegisteredHolders;Month_CEDEPosition")

  • 8/7/2019 ADRMF_ProfileCUSIP

    27/50

    Call pageCheck_WebEditOR("MasterFile","Trading Volume and Price","Year;Year_HighPrice;Year_LowPrice;Year_ClosePrice;Year_AveragePrice;Year_TradingVolume")

    Call pageCheck_WebListOR("MasterFile","Trading Volume and Price","SearchByMonth;SearchByYear")

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

    Reporter.ReportEvent micPass,"Step 7: Verifying the Fields present in the Page ' Trading Volume and Price' Page","The Required Fields are Present in the Page ' Trading Volume and Price'"

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

    nt in the Page ' Trading Volume and Price' Page","The Required Fields are NOT Present in the Page ' Trading Volume and Price'"

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

    End If

    Call GetMultipleValue_WebEdit("MasterFile","Trading Volume and Price","D

    ate;HighPrice;LowPrice;ClosePrice;TradingVolume")Call GetMultipleValue_WebEdit("MasterFile","Trading Volume and Price","MonthEndDate;Month_HighPrice;Month_LowPrice;Month_ClosePrice;Month_AveragePrice;Month_TradingVolume;Month_RegisteredHolders;Month_CEDEPosition")

    Call GetMultipleValue_WebEdit("MasterFile","Trading Volume and Price","Year;Year_HighPrice;Year_LowPrice;Year_ClosePrice;Year_AveragePrice;Year_TradingVolume")

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

    e in Various Field","The Default Value is displayed in the Fields"Else

    Reporter.ReportEvent micFail,"Step 8: Verifying the Default Valu

    e in Various Field","The Default Value is NOT displayed in the Fields"Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"

    End If

    Call chkWebEditReadOnly("MasterFile","Trading Volume and Price","HighPrice;HighPrice;LowPrice;TradingVolume","NOT ReadOnly")

    Call chkWebEditReadOnly("MasterFile","Trading Volume and Price","Month_RegisteredHolders;Month_CEDEPosition","NOT ReadOnly")

    Call pageCheck_WebListOR("MasterFile","Trading Volume and Price","SearchByMonth;SearchByYear;Year_SearchByYear")

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

    fields are Editable or NOT","The Required Fields are Editable"Else

    Reporter.ReportEvent micFail,"Step 9: Verifying if the requiredfields are Editable or NOT","The Required Fields are NOT Editable"

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

    End If

    If DataTable.Value("SelectDate","CUSIP") "" ThenCall click_image("MasterFile","Trading Volume an

    d Price","SearchByDate")

    strDate=split(DataTable.Value("SelectDate","CUSIP"),";")

    strMonth=strDate(1)

  • 8/7/2019 ADRMF_ProfileCUSIP

    28/50

    strYear=strDate(2)strDateValue =strDate(0)Call ClickIcon_SetDate("MasterFile","Trading Vol

    ume and Price",strMonth,strYear,strDateValue)End If

    Call click_Image("MasterFile","Trading Volume and Price","Retrie

    ve")

    strAppCurrentValue = GetMultipleValue_WebEdit("MasterFile","Trading Volume and Price","Date;HighPrice;LowPrice;ClosePrice;TradingVolume")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 10: Checking for the

    Values in the Required Field","The Value Displayed in the required Fields are "& strAppCurrentValue

    ElseReporter.ReportEvent micFail,"Step 10: Checking for the

    Data in the Required Field","The Value Displayed in the required Fields are " &

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

    End If

    ' Selcting the Values Monthly Price/VolumeCall Select_Combo_Value("MasterFile","Trading Volume and Price",

    "SearchByMonth",DataTable.Value("SelectMonth","CUSIP"))Call Select_Combo_Value("MasterFile","Trading Volume and Price",

    "SearchByYear",DataTable.Value("SelectYear","CUSIP"))Call click_Image("MasterFile","Trading Volume and Price","Retrie

    ve_Month")

    strAppCurrentValue = GetMultipleValue_WebEdit("MasterFile","Trading Volume and Price","MonthEndDate;Month_HighPrice;Month_LowPrice;Month_ClosePrice;Month_AveragePrice;Month_TradingVolume;Month_RegisteredHolders;Month_CEDEPosition")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 11: Checking for the

    Values in the Required Field","The Value Displayed in the required Fields are "& strAppCurrentValue

    ElseReporter.ReportEvent micFail,"Step 11: Checking for the

    Data in the Required Field","The Value Displayed in the required Fields are " &strAppCurrentValue

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

    End If

    Call Select_Combo_Value("MasterFile","Trading Volume and Price","Year_SearchByYear",DataTable.Value("Year","CUSIP"))

    Call click_Image("MasterFile","Trading Volume and Price","Retrieve_Year")

    strAppCurrentValue = GetMultipleValue_WebEdit("MasterFile","Trading Volume and Price","Year;Year_HighPrice;Year_LowPrice;Year_ClosePrice;Year_AveragePrice;Year_TradingVolume")

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

    Reporter.ReportEvent micPass,"Step 12: Checking for the

  • 8/7/2019 ADRMF_ProfileCUSIP

    29/50

    Values in the Required Field","The Value Displayed in the required Fields are "& strAppCurrentValue

    ElseReporter.ReportEvent micFail,"Step 12: Checking for the

    Data in the Required Field","The Value Displayed in the required Fields are " &strAppCurrentValue

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

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

    ' Setting the High Price Field in DateCall set_WebEdit_Value("MasterFile","Trading Volume and Price","

    HighPrice",DataTable.Value("DateHighPrice","CUSIP"))' Setting the Low Price Field in Date

    Call set_WebEdit_Value("MasterFile","Trading Volume and Price","LowPrice",DataTable.Value("DateLowPrice","CUSIP"))

    ' Setting the Close Price Field in DateCall set_WebEdit_Value("MasterFile","Trading Volume and Price","

    ClosePrice",DataTable.Value("DateClosePrice","CUSIP"))

    ' Setting the Trading Volume Field in DateCall set_WebEdit_Value("MasterFile","Trading Volume and Price","TradingVolume",DataTable.Value("DateTradingVolume","CUSIP"))

    ' Setting the Registered Holders Field in Month SectionCall set_WebEdit_Value("MasterFile","Trading Volume and Price","

    Month_RegisteredHolders",DataTable.Value("MonthRegisteredHolders","CUSIP"))' Setting the CESE Position Field in Month SectionCall set_WebEdit_Value("MasterFile","Trading Volume and Price","

    Month_CEDEPosition",DataTable.Value("MonthCESEPosition","CUSIP"))

    Call click_Image("MasterFile","Trading Volume and Price","Save")

    Call chkFlagImage("MasterFile","Trading Volume and Price","Daily

    Price Volume","DateHighPrice;DateLowPrice;DateClosePrice;DateTradingVolume","Exist")

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

    Approval Flag is dispalyed next to the Field modified","The Approval Flag is displayed next to the Field modified"

    ElseReporter.ReportEvent micFail,"Step 13: Verifying if the

    Approval Flag is dispalyed next to the Field modified","The Approval Flag is displayed next to the Field modified"

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

    End If

    Call select_Menu("MasterFile","Trading Volume and Price","Home;DR Home")

    End Function

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

    Public Function MFProfileCUSIP_TC8()

    'DataTable.GetSheet("MFLogin").SetCurrentRow(1)Call invoke_URL("MasterFile","Login Page",Environment.Value("strAppURL")

    )

  • 8/7/2019 ADRMF_ProfileCUSIP

    30/50

    Call Login("MasterFile","Login Page","Relationship Manager","MFLogin")

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

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

    If Browser("MasterFile").Page("Profile CUSIP Search").Exist(5) ThenReporter.ReportEvent micPass,"Step 1 to 5: Verfiying if the Page

    ' Profile CUSIP Search ' is dispalyed or NOT","The Page ' Profile CUSIP Search' is displayed successfully"

    ElseReporter.ReportEvent micFail,"Step 1 to 5: Verfiying if the Page

    ' Profile CUSIP Search ' is dispalyed or NOT","The Page ' Profile CUSIP Search' is NOT displayed successfully"

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

    End If

    Call ProfileCUSIPSearch("MasterFile","Profile CUSIP Search")

    blnFlag= "False"intRowCount = Browser("MasterFile").Page("Profile CUSIP Search").WebTabl

    e("CUSIP Search Results").RowCountFor intRowCounter = 1 to intRowCount

    intColumnCount = Browser("MasterFile").Page("Profile CUSIP Search").WebTable("CUSIP Search Results").ColumnCount(intRowCount)

    For intColumnCounter = 1 to intColumnCountstrGetCellData = Browser("MasterFile").Page("Profile CUS

    IP Search").WebTable("CUSIP Search Results").GetCellData(intRowCounter,intColumnCounter)

    If UCase(Trim(strGetCellData)) = UCase(Trim(DataTable.Value("DRName","CUSIP"))) Then

    blnFlag= "True"Exit For

    End IfNextIf blnFlag= "True" Then

    Exit ForEnd If

    Next

    If blnFlag = "True" ThenReporter.ReportEvent micPass,"Step 6: Verifying if the DR Name "

    & DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table or NOT","The DR " & DataTable.Value("DRName","CUSIP") & " is dispalyed in the ResultTable"

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

    & DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table or NOT","The DR " & DataTable.Value("DRName","CUSIP") & " is NOT dispalyed in the Result Table"

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

    End If

    Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Search Results",DataTable.Value("SelectCUSIPName","CUSIP"))

  • 8/7/2019 ADRMF_ProfileCUSIP

    31/50

    If Browser("MasterFile").Page("CUSIP Profile").Exist(2) ThenReporter.ReportEvent micPass,"Step 7: Verfiying if the Page ' Pr

    ofile CUSIP Search ' is dispalyed or NOT","The Page ' Profile CUSIP Search ' isdisplayed successfully"

    ElseReporter.ReportEvent micFail,"Step 7: Verfiying if the Page ' Pr

    ofile CUSIP Search ' is dispalyed or NOT","The Page ' Profile CUSIP Search ' is

    NOT displayed successfully"Call captureScreenShot()Environment.Value("Execution_Log") = "True"

    End If

    CUSIPNumber = get_WebEdit_Value("MasterFile","CUSIP Profile","CUSIPDetails_CUSIP")

    Call click_WebElement("MasterFile","CUSIP Profile","Books Closed")

    Wait 5Call pageCheck_WebElementinTable("MasterFile","Books Closed","Books Clos

    ed/Open;Closed;Close Date;Close Reason;Open Date;Open Reason;DR Issuance;DR Cancellation;DR Pre-Release;Issue/Cancel;DR Apply;Ordinary Apply","")

    strCUSIPValue = Browser("MasterFile").Page("Books Closed").WebTable("CUSIP").GetCellData(1,2)

    If strCUSIPValue = CUSIPNumber ThenReporter.ReportEvent micPass,"Verifying the CUSIP Number display

    ed","The CUSIP Number Displayed is " & strCUSIPValueElse

    Reporter.ReportEvent micFail,"Verifying the CUSIP Number displayed","The CUSIP Number " & strCUSIPValue & " is NOT dispalyed"

    Call captureScreenShot()

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

    End If

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 8: Verifiying the Fields afte

    r clicking on Books Closed","The Required Fields are displayed after clicking onthe Books Closed link"

    ElseReporter.ReportEvent micFail,"Step 8: Verifiying the Fields afte

    r clicking on Books Closed","The Required Fields are NOT displayed after clicking on the Books Closed link"

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

    End If

    Call DeleteRowBooksClose("MasterFile","Books Closed","DR Issuance")Call EnterValueinCUSIPBooksClosePage("MasterFile","Books Closed","DR Iss

    uance",DataTable.Value("DRIssuance_CloseDate","CUSIP"),DataTable.Value("DRIssuance_CloseReason","CUSIP"),DataTable.Value("DRIssuance_OpenDate","CUSIP"),DataTable.Value("DRIssuance_OpenReason","CUSIP"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 9, 10, 11,12, 13: Veriying if

    the Entered Value are Displayed in the Respective Fields or NOT","The Entered V

    alues are displayed in their Respective Fields"Else

    Reporter.ReportEvent micFail,"Step 9, 10, 11,12, 13: Veriying if

  • 8/7/2019 ADRMF_ProfileCUSIP

    32/50

    the Entered Value are Displayed in the Respective Fields or NOT","The Entered Values are NOT displayed in their Respective Fields"

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

    End If

    Call DeleteRowBooksClose("MasterFile","Books Closed","DR Cancellation")

    Call EnterValueinCUSIPBooksClosePage("MasterFile","Books Closed","DR Cancellation",DataTable.Value("DRCancellation_CloseDate","CUSIP"),DataTable.Value("DRCancellation_CloseReason","CUSIP"),DataTable.Value("DRCancellation_OpenDate","CUSIP"),DataTable.Value("DRCancellation_OpenReason","CUSIP"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 14, 15, 16, 17, 18 : Veriying

    if the Entered Value are Displayed in the Respective Fields or NOT","The Entered Values are displayed in their Respective Fields"

    ElseReporter.ReportEvent micFail,"Step 14, 15, 16, 17, 18 : Veriying

    if the Entered Value are Displayed in the Respective Fields or NOT","The Entere

    d Values are NOT displayed in their Respective Fields"Environment.Value("Execution_Log") = "False"Environment.Value("TestCase_Log") = "True"

    End If

    Call DeleteRowBooksClose("MasterFile","Books Closed","DR PreRelease")Call EnterValueinCUSIPBooksClosePage("MasterFile","Books Closed","DR Pre

    Release",DataTable.Value("DRPreRelease_CloseDate","CUSIP"),DataTable.Value("DRPreRelease_CloseReason","CUSIP"),DataTable.Value("DRPreRelease_OpenDate","CUSIP"),DataTable.Value("DRPreRelease_OpenReason","CUSIP"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 19, 20, 21, 22, 23 : Veriying

    if the Entered Value are Displayed in the Respective Fields or NOT","The Entered Values are displayed in their Respective Fields"

    ElseReporter.ReportEvent micFail,"Step 19, 20, 21, 22, 23 : Veriying

    if the Entered Value are Displayed in the Respective Fields or NOT","The Entered Values are NOT displayed in their Respective Fields"

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

    End If

    Call DeleteRowBooksClose("MasterFile","Books Closed","IssueCancel")Call EnterValueinCUSIPBooksClosePage("MasterFile","Books Closed","IssueC

    ancel",DataTable.Value("IssueCancel_CloseDate","CUSIP"),DataTable.Value("IssueCancel_CloseReason","CUSIP"),DataTable.Value("IssueCancel_OpenDate","CUSIP"),DataTable.Value("IssueCancel_OpenReason","CUSIP"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 24, 25, 26, 27, 28 : Veriying

    if the Entered Value are Displayed in the Respective Fields or NOT","The Entered Values are displayed in their Respective Fields"

    ElseReporter.ReportEvent micFail,"Step 24, 25, 26, 27, 28 : Veriying

    if the Entered Value are Displayed in the Respective Fields or NOT","The Entered Values are NOT displayed in their Respective Fields"

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

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

  • 8/7/2019 ADRMF_ProfileCUSIP

    33/50

    Call DeleteRowBooksClose("MasterFile","Books Closed","DR Apply")Call EnterValueinCUSIPBooksClosePage("MasterFile","Books Closed","DR App

    ly",DataTable.Value("DRApply_CloseDate","CUSIP"),DataTable.Value("DRApply_CloseReason","CUSIP"),DataTable.Value("DRApply_OpenDate","CUSIP"),DataTable.Value("DRApply_OpenReason","CUSIP"))

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

    Reporter.ReportEvent micPass,"Step 29, 30, 31, 32, 33 : Veriyingif the Entered Value are Displayed in the Respective Fields or NOT","The Entered Values are displayed in their Respective Fields"

    ElseReporter.ReportEvent micFail,"Step 29, 30, 31, 32, 33 : Veriying

    if the Entered Value are Displayed in the Respective Fields or NOT","The Entered Values are NOT displayed in their Respective Fields"

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

    End If

    Call DeleteRowBooksClose("MasterFile","Books Closed","Ordinary Apply")

    Call EnterValueinCUSIPBooksClosePage("MasterFile","Books Closed","Ordinary Apply",DataTable.Value("OrdinaryApply_CloseDate","CUSIP"),DataTable.Value("OrdinaryApply_CloseReason","CUSIP"),DataTable.Value("OrdinaryApply_OpenDate","CUSIP"),DataTable.Value("OrdinaryApply_OpenReason","CUSIP"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 34, 35, 36, 37, 38 : Veriying

    if the Entered Value are Displayed in the Respective Fields or NOT","The Entered Values are displayed in their Respective Fields"

    ElseReporter.ReportEvent micFail,"Step 34, 35, 36, 37, 38 : Veriying

    if the Entered Value are Displayed in the Respective Fields or NOT","The Entered Values are NOT displayed in their Respective Fields"

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

    End If

    Call EnterValueinCUSIPBooksClosePage("MasterFile","Books Closed","Ordinary Apply",DataTable.Value("OrdinaryApply_CloseDate","CUSIP"),DataTable.Value("OrdinaryApply_CloseReason","CUSIP"),DataTable.Value("OrdinaryApply_OpenDate","CUSIP"),DataTable.Value("OrdinaryApply_OpenReason","CUSIP"))

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 39, 40, 41, 42, 43 : Veriying

    if the Entered Value are Displayed in the Respective Fields or NOT","The Entered Values are displayed in their Respective Fields"

    ElseReporter.ReportEvent micFail,"Step 39, 40, 41, 42, 43 : Veriyin

    g if the Entered Value are Displayed in the Respective Fields or NOT","The Entered Values are NOT displayed in their Respective Fields"

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

    End If

    intRowCount = Browser("MasterFile").Page("Books Closed").WebTable("Ordinary Apply").RowCount

    intColumnCount = Browser("MasterFile").Page("Books Closed").WebTable("Ordinary Apply").ColumnCount(intRowCount)

    For intColumnCounter = 1to intColumnCountintImageCount = Browser("MasterFile").Page("Books Closed").WebTa

    ble("Ordinary Apply").ChildItemCount(intRowCount,intColumnCounter,"Image")

  • 8/7/2019 ADRMF_ProfileCUSIP

    34/50

    If intImageCount > 0 ThenstrFileName = Browser("MasterFile").Page("Books Closed")

    .WebTable("Ordinary Apply").ChildItem(intRowCount,intColumnCounter,"Image",0).GetROProperty("file name")

    If strFileName = "closebutton.jpg" ThenBrowser("MasterFile").Page("Books Closed").WebTa

    ble("Ordinary Apply").ChildItem(intRowCount,intColumnCounter,"Image",0).Click

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

    Browser("MasterFile").Dialog("MicrosoftInternet Explorer").WinButton("OK").Click

    Exit ForEnd If

    End IfEnd If

    Next

    intFinalRowCount = Browser("MasterFile").Page("Books Closed").WebTable("Ordinary Apply").RowCount

    If intFinalRowCount = intRowCount -1 ThenReporter.ReportEvent micPass,"Step 44 :Verifying if the Row is R

    emoved or NOT","The Row is Removed successfully after clicking on Cross Button"Else

    Reporter.ReportEvent micFail,"Step 44 : Verifying if the Row isRemoved or NOT","The Row is NOT Removed successfully after clicking on Cross Button"

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

    End If

    Call click_Image("MasterFile","Books Closed","Save")

    Wait(5)

    Call FlagImageCheck("MasterFile","Books Closed","DR Issuance","Exist")Call FlagImageCheck("MasterFile","Books Closed","DR Cancellation","Exist

    ")Call FlagImageCheck("MasterFile","Books Closed","DR PreRelease","Exist")Call FlagImageCheck("MasterFile","Books Closed","IssueCancel","Exist")Call FlagImageCheck("MasterFile","Books Closed","DR Apply","Exist")Call FlagImageCheck("MasterFile","Books Closed","Ordinary Apply","Exist"

    )

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

    lag Exist or NOT and the Chamges are Saved","The Yellow Flag Exist and the dataentered are Saved"

    ElseReporter.ReportEvent micFail,"Step 45: Verifying if the Yellow F

    lag Exist or NOT.","The Yellow Flag Exist does not exist"Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"

    End If

    Call logoutfromApp("MasterFile","Books Closed")

    Call invoke_URL("MasterFile","Login Page",Environment.Value("strAppURL")

    )Call login("MasterFile","Login Page","Approver","MFLogin")Call ApprovalFunction("MasterFile","Books Closed/Open","CUSIP Name;Last

  • 8/7/2019 ADRMF_ProfileCUSIP

    35/50

    User Updated;Last Updated",DataTable.Value("SelectCUSIPName","CUSIP"),DataTable.Value("ApproveComments","CUSIP"),"Approved","Pending Approval")

    Call logoutfromApp("MasterFile","Approval Queue Item Search")

    If Browser("MasterFile").Exist(2) ThenReporter.ReportEvent micFail,"Verifying if the Applicati

    on is LoggedOuted or NOT","The Application is still Open"Call captureScreenShot()Environment.Value("Execution_Log") = "False"

    ElseReporter.ReportEvent micPass,"Verifying if the Applicati

    on is LoggedOuted or NOT","The Application is LoggedOut Successfully"End If

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass, "Step 46, 47, 48, 49, 50, 51, 52,

    53, 54 : Verifying the Changed details are Approved or NOT","The Changes made tothe CUSIP " & DataTable.Value("SelectCUSIPName","CUSIP") & " is Approved"

    ElseReporter.ReportEvent micFail, "Step 46, 47, 48, 49, 50, 51, 52, 53, 54 :Verifying the Changed details are Approved or NOT","The Changes made to the CUSIP are not Approved"

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

    End If

    Call invoke_URL("MasterFile","Login Page",Environment.Value("strAppURL"))

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

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

    erFile")

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

    Call set_WebEdit_Value("MasterFile","Profile CUSIP Search","CUSIPName",DataTable.Value("SelectCUSIPName","CUSIP"))

    Call click_Image("MasterFile","Profile CUSIP Search","Search")

    Call chkActiveFlagImage("MasterFile","Profile CUSIP Search","CUSIP Search Results","Active Flag",DataTable.Value("SelectCUSIPName","CUSIP"),"Exist")

    If Environment.Value("TestCase_Log") = "True" ThenReporter.ReportEvent micPass,"Step 56 : Verfiying if the Red Tic

    k Image is dispalyed in the Active Flag Column","The Red Tick Image is Present in the Column Active Flag"

    ElseReporter.ReportEvent micFail,"Step 56 : Verfiying if the Red Tic

    k Image is dispalyed in the Active Flag Column","The Red Tick Image is NOT Present in the Column Active Flag"

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

    End If

    Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Search Results",DataTable.Value("SelectCUSIPName","CUSIP"))

    Call click_WebElement("MasterFile","CUSIP Profile","Books Closed")

  • 8/7/2019 ADRMF_ProfileCUSIP

    36/50

    Wait(5)Call FlagImageCheck("MasterFile","Books Closed","DR Issuance","Not Exist

    ")Call FlagImageCheck("MasterFile","Books Closed","DR Cancellation","Not E

    xist")Call FlagImageCheck("MasterFile","Books Closed","DR PreRelease","Not Exi

    st")

    Call FlagImageCheck("MasterFile","Books Closed","IssueCancel","Not Exist")

    Call FlagImageCheck("MasterFile","Books Closed","DR Apply","Not Exist")Call FlagImageCheck("MasterFile","Books Closed","Ordinary Apply","Not Ex

    ist")

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

    lag Exist or NOT","The Yellow Flag does not exist"Else

    Reporter.ReportEvent micFail,"Step 57: Verifying if the Yellow Flag Exist or NOT","The Yellow Flag Exist"

    Environment.Value("TestCase_Log") = "True"Environment.Value("Execution_Log") = "False"End IfWait(2)Call select_Menu("MasterFile","Books Closed","Home;DR Home")

    End Function

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

    Public Function MFProfileCUSIP_TC9()

    Call invoke_URL("MasterFile","Login Page",Environment.Value("strAppURL"))

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

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

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

    If Browser("MasterFile").Page("Profile CUSIP Search").Exist(2) ThenReporter.ReportEvent micPass,"Step 1 to 5: Verfiying if the Page

    ' Profile CUSIP Search ' is dispalyed or NOT","The Page ' Profile CUSIP Search' is displayed successfully"

    ElseReporter.ReportEvent micFail,"Step 1 to 5: Verfiying if the Page

    ' Profile CUSIP Search ' is dispalyed or NOT","The Page ' Profile CUSIP Search' is NOT displayed successfully"

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

    End If

    Call ProfileCUSIPSearch("MasterFile","Profile CUSIP Search")

    blnFlag= "False"intRowCount = Browser("MasterFile").Page("Profile CUSIP Search").WebTabl

    e("CUSIP Search Results").RowCount

  • 8/7/2019 ADRMF_ProfileCUSIP

    37/50

    For intRowCounter = 0 to intRowCountintColumnCount = Browser("MasterFile").Page("Profile CUSIP Searc

    h").WebTable("CUSIP Search Results").ColumnCount(intRowCount)For intColumnCounter = 0 to intColumnCount

    strGetCellData = Browser("MasterFile").Page("Profile CUSIP Search").WebTable("CUSIP Search Results").GetCellData(intRowCounter,intColumnCounter)

    If UCase(Trim(strGetCellData)) = UCase(Trim(DataTable.Value("DRName","CUSIP"))) Then

    blnFlag= "True"Exit For

    End IfNextIf blnFlag= "True" Then

    Exit ForEnd If

    Next

    If blnFlag = "True" Then

    Reporter.ReportEvent micPass,"Step 6: Verifying if the DR Name "& DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table or NOT","The DR " & DataTable.Value("DRName","CUSIP") & " is dispalyed in the ResultTable"

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

    & DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table or NOT","The DR " & DataTable.Value("DRName","CUSIP") & " is NOT dispalyed in the Result Table"

    Call captureScreenS