ADRCA_ProfileIndexNotificationSearch

  • Upload
    imaarha

  • View
    224

  • Download
    0

Embed Size (px)

Citation preview

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    1/27

    '=========================================================================================================' Name of the Script : CAProfileIndexNotification' Scope of the Script : This test script covers 10 test cases related to CA Profile Index Notification' Author :Satish Dupati

    ' Description : CAProfileIndexNotification' Date and / or Version : 01-12-2008,version 1.0'===========================================================================================================Sub CAProfileIndexNotification()

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

    '''''''''Test case count

    Const TC_COUNT =10

    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 CALogin sheet to the dataTable and Importing the Input DataTable

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

    in"DataTable.AddSheet "IndexNotification"

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

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

    ","ReportHeader","ReportHeader"' Logs the Scenario name Execution in a .csv file

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

    DataTable.GetSheet("CALogin").SetCurrentRow(1)

    Call invoke_URL("CorporateActions","Login Page",DataTable.Value("URL","CALogin"))

    Call pageCheck_WebEdit("CorporateActions","Login Page","username;j_passw

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    2/27

    ord","")Call pageCheck_WebButton("CorporateActions","Login Page","Login"

    ,"")Call login("CorporateActions","Login Page","User","CALogin")Call chkCAHomePage("CorporateActions","Depositary Receipt Divisi

    on's",DataTable.Value("HomePageLinks","HomePageVerification"),DataTable.Value("UserName","HomePageVerification"))

    Environment.Value("DATATABLE_ROW")=1DataTable.GetSheet("IndexNotification").SetCurrentRow(Environmen

    t.Value("DATATABLE_ROW"))

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

    For intTCCount =1 to TC_COUNT

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

    en ''If run flag is Y in test data tableReporter.ReportEvent micDone,"######## BEGIN TEST CASE - '" & DataTable("TestCaseID","IndexNotification") & "' ########### ","Execution of TestCase '" & DataTable("TestCaseDesc","IndexNotification") & "' Started"

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

    ''Call Function'msgbox strFuncNameExecute "Call " & strFuncName

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

    Call Execution_log("",Datatable.

    Value("TestCaseID", "IndexNotification"), Datatable.Value("TestCaseDesc", "IndexNotification"), "PASS")

    ElseCall Execution_log("",Datatable.

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

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

    EST CASE - '" & DataTable("TestCaseID","IndexNotification") & "###########","TheTest Case Execution Completed"

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

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

    DATATABLE_ROW") + 1DataTable.GetSheet("IndexNotification").SetCurrentRow(En

    vironment.Value("DATATABLE_ROW"))strNext=Trim(DataTable.Value("TestCaseID","IndexNotifica

    tion"))While strPrevious = strNextEnvironment.Value("DATATABLE_ROW") = Environment.Value

    ("DATATABLE_ROW") + 1DataTable.GetSheet("IndexNotification").SetCurrentRow(

    Environment.Value("DATATABLE_ROW"))

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

    Wend

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    3/27

    Next

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

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

    End Sub

    '**********************************************Test Case 1 to Test Case 10**************************************************'=========================================================================================Public Function CAProfileIndexNotification_TC1()

    'Step 2Call click_webElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")

    Call chkCAPage("CorporateActions","CorporateActions",Datatable.Value("MenuName","HomePageVerification"))'Step 3Call select_Menu("CorporateActions","CorporateActions",Datatable

    .Value("MenuPath","IndexNotification"))Call pageCheck_ProfileIndexNotificationSearch("CorporateActions"

    ,"ProfileIndexNotificationSearch")'Step 4,5Call CAIndexNotificationSearch("CorporateActions","ProfileIndexN

    otificationSearch")Call CAIndexNotificationSearchResultVerification("CorporateActio

    ns","ProfileIndexNotificationSearch")'Step 6

    Call select_Menu("CorporateActions","ProfileIndexNotificationSearch","Home;DR Home")End FunctionPublic Function CAProfileIndexNotification_TC2()

    'Step 1Call click_webElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")Call select_Menu("CorporateActions","CorporateActions",Datatable

    .Value("MenuPath","IndexNotification"))Call pageCheck_ProfileIndexNotificationSearch("CorporateActions"

    ,"ProfileIndexNotificationSearch")'Step 2Call ReadallValuesWebList("CorporateActions","ProfileIndexNotifi

    cationSearch","Status","AllItems","IndexNotification")'Step 3Call chk_defaultValue("CorporateActions","ProfileIndexNotificati

    onSearch","webList","Status","All")'Step 4,5,6Call CAIndexNotificationSearch("CorporateActions","ProfileIndexN

    otificationSearch")Call CAIndexNotificationSearchResultVerification("CorporateActio

    ns","ProfileIndexNotificationSearch")'Step 7Call clickOnReceivedDateLink_IndexNotificationResult("CorporateA

    ctions","ProfileIndexNotificationSearch","IndexNotification")

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

    DataTable.GetSheet("IndexNotification").SetCurrentRow(Environmen

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    4/27

    t.Value("DATATABLE_ROW"))'Step 8Call select_Menu("CorporateActions","IndexNotification",Datatabl

    e.Value("MenuPath","IndexNotification"))Call pageCheck_ProfileIndexNotificationSearch("CorporateActions"

    ,"ProfileIndexNotificationSearch")'Step 9,10

    Call CAIndexNotificationSearch("CorporateActions","ProfileIndexNotificationSearch")

    Call CAIndexNotificationSearchResultVerification("CorporateActions","ProfileIndexNotificationSearch")

    'Step 11Call clickOnReceivedDateLink_IndexNotificationResult("CorporateA

    ctions","ProfileIndexNotificationSearch","IndexNotification")Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL

    E_ROW") + 1DataTable.GetSheet("IndexNotification").SetCurrentRow(Environmen

    t.Value("DATATABLE_ROW"))'Step 12

    Call select_Menu("CorporateActions","IndexNotification",Datatable.Value("MenuPath","IndexNotification"))Call pageCheck_ProfileIndexNotificationSearch("CorporateActions"

    ,"ProfileIndexNotificationSearch")'Step 13,14Call CAIndexNotificationSearch("CorporateActions","ProfileIndexN

    otificationSearch")Call CAIndexNotificationSearchResultVerification("CorporateActio

    ns","ProfileIndexNotificationSearch")'Step 15Call clickOnReceivedDateLink_IndexNotificationResult("CorporateA

    ctions","ProfileIndexNotificationSearch","IndexNotification")Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL

    E_ROW") + 1DataTable.GetSheet("IndexNotification").SetCurrentRow(Environmen

    t.Value("DATATABLE_ROW"))'Step 16Call select_Menu("CorporateActions","IndexNotification",Datatabl

    e.Value("MenuPath","IndexNotification"))Call pageCheck_ProfileIndexNotificationSearch("CorporateActions"

    ,"ProfileIndexNotificationSearch")'Step 17,18Call CAIndexNotificationSearch("CorporateActions","ProfileIndexN

    otificationSearch")Call CAIndexNotificationSearchResultVerification("CorporateActio

    ns","ProfileIndexNotificationSearch")'Step 19Call clickOnReceivedDateLink_IndexNotificationResult("CorporateA

    ctions","ProfileIndexNotificationSearch","IndexNotification")'Step 20Call select_Menu("CorporateActions","ProfileIndexNotificationSea

    rch","Home;DR Home")End FunctionPublic Function CAProfileIndexNotification_TC3()

    'Step 1Call click_webElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")Call select_Menu("CorporateActions","CorporateActions",Datatable

    .Value("MenuPath","IndexNotification"))Call pageCheck_ProfileIndexNotificationSearch("CorporateActions"

    ,"ProfileIndexNotificationSearch")

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    5/27

    'Step 2Call chk_defaultValue("CorporateActions","ProfileIndexNotificati

    onSearch","webEdit","fromDate",Datatable.Value("ProjectFromDate","IndexNotification"))

    If Cdate(get_webEdit_Value("CorporateActions","ProfileIndexNotificationSearch","toDate"))=Date then

    Reporter.ReportEvent micPass,"Verification of To

    date field in Received Date","To date is populated with Current date"Else

    Reporter.ReportEvent micFail,"Verification of To datefield in Received Date","To date is Not populated with Current date, populatedwith"&get_webEdit_Value("CorporateActions","ProfileIndexNotificationSearch","toDate")

    'captureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 3Browser("CorporateActions").Page("ProfileIndexNotificationSearch

    ").WebTable("Status").ChildItem(2,2,"Image",0).clickBrowser("CorporateActions").Page("ProfileIndexNotificationSearch").Frame("popCalFrame").WebElement("html tag:=FONT","innertext:=Today:.*").Click

    If Cdate(get_webEdit_Value("CorporateActions","ProfileIndexNotificationSearch","fromDate"))=Date then

    Reporter.ReportEvent micPass,"Verification of From date field in Received Date After click on Today button","From date is populated with Current date"

    ElseReporter.ReportEvent micFail,"Verification of From da

    te field in Received Date After click on Today button","From date is Not populated with Current date, populated with"&get_webEdit_Value("CorporateActions","ProfileIndexNotificationSearch","fromDate")

    'captureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 4Browser("CorporateActions").Page("ProfileIndexNotificationSearch

    ").Frame("popCalFrame").Image("name:=Image","html tag:=IMG").ClickIf get_webEdit_Value("CorporateActions","ProfileIndexNotificatio

    nSearch","fromDate")="" thenReporter.ReportEvent micPass,"Verification of Fr

    om date field in Received Date After click on Clear button","From date is Cleared"

    ElseReporter.ReportEvent micFail,"Verification of From da

    te field in Received Date After click on Today button","From date is Not Cleared, populated with"&get_webEdit_Value("CorporateActions","ProfileIndexNotificationSearch","fromDate")

    'captureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 5Browser("CorporateActions").Page("ProfileIndexNotificationSearch

    ").WebTable("Status").ChildItem(2,3,"Image",0).clickBrowser("CorporateActions").Page("ProfileIndexNotificationSearch

    ").Frame("popCalFrame").WebElement("html tag:=FONT","innertext:=Today:.*").ClickIf Cdate(get_webEdit_Value("CorporateActions","ProfileIndexNotif

    icationSearch","toDate"))=Date then

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    6/27

    Reporter.ReportEvent micPass,"Verification of Todate field in Received Date After click on Today button","To date is populatedwith Current date"

    ElseReporter.ReportEvent micFail,"Verification of To date

    field in Received Date After click on Today button","To date is Not populated with Current date, populated with"&get_webEdit_Value("CorporateActions","ProfileI

    ndexNotificationSearch","toDate")'captureScreenshot

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

    End If'Step 6Browser("CorporateActions").Page("ProfileIndexNotificationSearch

    ").Frame("popCalFrame").Image("name:=Image","html tag:=IMG").ClickIf get_webEdit_Value("CorporateActions","ProfileIndexNotificatio

    nSearch","toDate")="" thenReporter.ReportEvent micPass,"Verification of To

    date field in Received Date After click on Clear button","To date is Cleared"

    Else Reporter.ReportEvent micFail,"Verification of To datefield in Received Date After click on Today button","To date is Not Cleared, populated with"&get_webEdit_Value("CorporateActions","ProfileIndexNotificationSearch","toDate")

    'captureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 7Call CAIndexNotificationSearch("CorporateActions","ProfileIndexN

    otificationSearch")Call CAIndexNotificationSearchResultVerification("CorporateActio

    ns","ProfileIndexNotificationSearch")'Step 8Call clickOnReceivedDateLink_IndexNotificationResult("CorporateA

    ctions","ProfileIndexNotificationSearch","IndexNotification")'Step 9Call select_Menu("CorporateActions","IndexNotification","Home;DR

    Home")End FunctionPublic Function CAProfileIndexNotification_TC4()

    'Step 1Call click_webElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")Call select_Menu("CorporateActions","CorporateActions",Datatable

    .Value("MenuPath","IndexNotification"))Call pageCheck_ProfileIndexNotificationSearch("CorporateActions"

    ,"ProfileIndexNotificationSearch")'Step 2Call chk_defaultValue("CorporateActions","ProfileIndexNotificati

    onSearch","webList","Source","All")'Step 3Call ReadallValuesWebList("CorporateActions","ProfileIndexNotifi

    cationSearch","Source","AllItems","IndexNotification")'Step 4,5,6,7Call CAIndexNotificationSearch("CorporateActions","ProfileIndexN

    otificationSearch")

    Call CAIndexNotificationSearchResultVerification("CorporateActions","ProfileIndexNotificationSearch")

    'Step 8

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    7/27

    Call clickOnReceivedDateLink_IndexNotificationResult("CorporateActions","ProfileIndexNotificationSearch","IndexNotification")

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

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

    'Step 9

    Call select_Menu("CorporateActions","IndexNotification",Datatable.Value("MenuPath","IndexNotification"))

    Call pageCheck_ProfileIndexNotificationSearch("CorporateActions","ProfileIndexNotificationSearch")

    'Step 10,11Call CAIndexNotificationSearch("CorporateActions","ProfileIndexN

    otificationSearch")Call CAIndexNotificationSearchResultVerification("CorporateActio

    ns","ProfileIndexNotificationSearch")'Step 12Call clickOnReceivedDateLink_IndexNotificationResult("CorporateA

    ctions","ProfileIndexNotificationSearch","IndexNotification")

    'Step 13Call select_Menu("CorporateActions","ProfileIndexNotificationSearch","Home;DR Home")End FunctionPublic Function CAProfileIndexNotification_TC5()

    'Step 1Call click_webElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")Call select_Menu("CorporateActions","CorporateActions",Datatable

    .Value("MenuPath","IndexNotification"))Call pageCheck_ProfileIndexNotificationSearch("CorporateActions"

    ,"ProfileIndexNotificationSearch")'Step 2

    Call ReadallValuesWebList("CorporateActions","ProfileIndexNotificationSearch","AssignedtoUserGroups","AllItems","IndexNotification")

    'Step 3Call chk_defaultValue("CorporateActions","ProfileIndexNotificati

    onSearch","webList","AssignedtoUserGroups","All")'Step 4,5,6Call CAIndexNotificationSearch("CorporateActions","ProfileIndexN

    otificationSearch")Call CAIndexNotificationSearchResultVerification("CorporateActio

    ns","ProfileIndexNotificationSearch")'Step 7Call clickOnReceivedDateLink_IndexNotificationResult("CorporateA

    ctions","ProfileIndexNotificationSearch","IndexNotification")Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL

    E_ROW") + 1DataTable.GetSheet("IndexNotification").SetCurrentRow(Environmen

    t.Value("DATATABLE_ROW"))'Step 8Call select_Menu("CorporateActions","IndexNotification",Datatabl

    e.Value("MenuPath","IndexNotification"))Call pageCheck_ProfileIndexNotificationSearch("CorporateActions"

    ,"ProfileIndexNotificationSearch")'Step 9,10Call CAIndexNotificationSearch("CorporateActions","ProfileIndexN

    otificationSearch")

    Call CAIndexNotificationSearchResultVerification("CorporateActions","ProfileIndexNotificationSearch")

    'Step 11

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    8/27

    Call clickOnReceivedDateLink_IndexNotificationResult("CorporateActions","ProfileIndexNotificationSearch","IndexNotification")

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

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

    'Step 12

    Call select_Menu("CorporateActions","IndexNotification",Datatable.Value("MenuPath","IndexNotification"))

    Call pageCheck_ProfileIndexNotificationSearch("CorporateActions","ProfileIndexNotificationSearch")

    'Step 13,14Call CAIndexNotificationSearch("CorporateActions","ProfileIndexN

    otificationSearch")Call CAIndexNotificationSearchResultVerification("CorporateActio

    ns","ProfileIndexNotificationSearch")'Step 15Call clickOnReceivedDateLink_IndexNotificationResult("CorporateA

    ctions","ProfileIndexNotificationSearch","IndexNotification")

    Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW") + 1DataTable.GetSheet("IndexNotification").SetCurrentRow(Environmen

    t.Value("DATATABLE_ROW"))'Step 16Call select_Menu("CorporateActions","IndexNotification",Datatabl

    e.Value("MenuPath","IndexNotification"))Call pageCheck_ProfileIndexNotificationSearch("CorporateActions"

    ,"ProfileIndexNotificationSearch")'Step 17,18Call CAIndexNotificationSearch("CorporateActions","ProfileIndexN

    otificationSearch")Call CAIndexNotificationSearchResultVerification("CorporateActio

    ns","ProfileIndexNotificationSearch")'Step 19Call clickOnReceivedDateLink_IndexNotificationResult("CorporateA

    ctions","ProfileIndexNotificationSearch","IndexNotification")Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL

    E_ROW") + 1DataTable.GetSheet("IndexNotification").SetCurrentRow(Environmen

    t.Value("DATATABLE_ROW"))'Step 20Call select_Menu("CorporateActions","IndexNotification",Datatabl

    e.Value("MenuPath","IndexNotification"))Call pageCheck_ProfileIndexNotificationSearch("CorporateActions"

    ,"ProfileIndexNotificationSearch")'Step 21,22Call CAIndexNotificationSearch("CorporateActions","ProfileIndexN

    otificationSearch")Call CAIndexNotificationSearchResultVerification("CorporateActio

    ns","ProfileIndexNotificationSearch")'Step 23Call clickOnReceivedDateLink_IndexNotificationResult("CorporateA

    ctions","ProfileIndexNotificationSearch","IndexNotification")'Step 24Call select_Menu("CorporateActions","ProfileIndexNotificationSea

    rch","Home;DR Home")End Function

    Public Function CAProfileIndexNotification_TC6()'Step 1Call click_webElement("CorporateActions","Depositary Receipt Div

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    9/27

    ision's","CorporateActions")Call select_Menu("CorporateActions","CorporateActions",Datatable

    .Value("MenuPath","IndexNotification"))Call pageCheck_ProfileIndexNotificationSearch("CorporateActions"

    ,"ProfileIndexNotificationSearch")'Step 2,3Call CAIndexNotificationSearch("CorporateActions","ProfileIndexN

    otificationSearch")Call CAIndexNotificationSearchResultVerification("CorporateActio

    ns","ProfileIndexNotificationSearch")'Step 4Call clickOnReceivedDateLink_IndexNotificationResult("CorporateA

    ctions","ProfileIndexNotificationSearch","IndexNotification")Call pageCheck_WebEditOR("CorporateActions","IndexNotification",

    "ReceivedDateIndexNotification;Sender;Source;TrackingNumber;UpdateDate;UpdateUser;UserComments;UserGroup")

    Call pageCheck_WebListOR("CorporateActions","IndexNotification","Status")

    Call pageCheck_WebEditinFrame("CorporateActions","IndexNotificat

    ion","search","msgFrame")Call pageCheck_WebButtoninFrame("CorporateActions","IndexNotification","Find =>;Print","msgFrame")

    'Step 5Call Select_Combo_Value("CorporateActions","IndexNotification","

    Status",Datatable.Value("StatusIndex","IndexNotification"))Call pageCheck_WebListOR("CorporateActions","IndexNotification",

    "SelectTargetForDocument")Call Select_Combo_Value("CorporateActions","IndexNotification","

    SelectTargetForDocument",Datatable.Value("SelectTargetForDocument","IndexNotification"))

    Call click_Image("CorporateActions","IndexNotification","Save Message")

    'Step 6Call chkValidationErrorDetailsPrompt("CorporateActions","IndexNo

    tification","Validation Error","ISIN;Sender Name;Corporate Action Type","ISIN;SenderName;CorporateActionType","New Notification")

    'Step 7Call set_WebEdit_Value("CorporateActions","IndexNotification","I

    ssuerName",DataTable.Value("IssuerName","IndexNotification"))Browser("CorporateActions").Page("IndexNotification").WebTable("

    Issuer Name (for search)").ChildItem(3,2,"Image",0).clickBrowser("CorporateActions").Page("IndexNotification").Frame("loo

    kupFrame").Image("Go!").ClickBrowser("CorporateActions").Page("IndexNotification").Frame("loo

    kupFrame").WebElement("html tag:=TD","outertext:="&Datatable.Value("IssuerName","IndexNotification")&".*").click

    Call select_Combo_Value("CorporateActions","IndexNotification","Comparison",DataTable.Value("Comparison","IndexNotification"))

    Browser("CorporateActions").Page("IndexNotification").WebTable("Issuer Name (for search)").ChildItem(7,1,"Image",0).click

    Browser("CorporateActions").Page("IndexNotification").Frame("CorporateActionType").WebElement("html tag:=TD","innertext:="&Datatable.Value("CorporateActionType","IndexNotification")&".*").Click

    Call click_Image("CorporateActions","IndexNotification","Save Message")

    'Step 8Call select_Menu("CorporateActions","IndexNotification","Home;DR

    Home")End FunctionPublic Function CAProfileIndexNotification_TC7()

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    10/27

    'Step 1Call click_webElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")Call select_Menu("CorporateActions","CorporateActions",Datatable

    .Value("MenuPath","IndexNotification"))Call pageCheck_ProfileIndexNotificationSearch("CorporateActions"

    ,"ProfileIndexNotificationSearch")

    'Step 2,3Call CAIndexNotificationSearch("CorporateActions","ProfileIndexN

    otificationSearch")Call CAIndexNotificationSearchResultVerification("CorporateActio

    ns","ProfileIndexNotificationSearch")'Step 4Call clickOnReceivedDateLink_IndexNotificationResult("CorporateA

    ctions","ProfileIndexNotificationSearch","IndexNotification")Call pageCheck_WebEditOR("CorporateActions","IndexNotification",

    "ReceivedDateIndexNotification;Sender;Source;TrackingNumber;UpdateDate;UpdateUser;UserComments;UserGroup")

    Call pageCheck_WebListOR("CorporateActions","IndexNotification",

    "Status") Call pageCheck_WebEditinFrame("CorporateActions","IndexNotification","search","msgFrame")

    Call pageCheck_WebButtoninFrame("CorporateActions","IndexNotification","Find =>;Print","msgFrame")

    'Step 5Call Select_Combo_Value("CorporateActions","IndexNotification","

    Status",Datatable.Value("StatusIndex","IndexNotification"))Call pageCheck_WebListOR("CorporateActions","IndexNotification",

    "SelectTargetForDocument")'Step 6Call Select_Combo_Value("CorporateActions","IndexNotification","

    SelectTargetForDocument",Datatable.Value("SelectTargetForDocument","IndexNotific

    ation"))'Step 7Call set_WebEdit_Value("CorporateActions","IndexNotification","I

    ssuerName",DataTable.Value("IssuerName","IndexNotification"))'Step 8Browser("CorporateActions").Page("IndexNotification").WebTable("

    Issuer Name (for search)").ChildItem(3,2,"Image",0).click'Browser("CorporateActions").Page("IndexNotification").Frame("lo

    okupFrame").Image("Go!").ClickFor intColNo=1 to 5

    strTableHeaders=strTableHeaders&Browser("CorporateActions").Page("IndexNotification").Frame("lookupFrame").WebTable("ISIN").GetCellData(1,intColNo)&";"

    NextIf strTableHeaders="ISIN;SEDOL;Und. Security Name;Type;Class;"

    ThenReporter.ReportEvent micPass,"Verification of th

    e fields present in the popup","Displaying- "&strTableHeaders&" Headers"Else

    Reporter.ReportEvent micFail,"Verification of the fields present in the popup","Displaying- "&strTableHeaders&" Headers"

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If

    If Browser("CorporateActions").Page("IndexNotification").Frame("lookupFrame").WebEdit("divNm").GetROProperty("value")= DataTable.Value("IssuerName","IndexNotification") Then

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    11/27

    Reporter.ReportEvent micPass,"Verification of Underlying Security name in popup","Name is prompted properly"

    ElseReporter.ReportEvent micFail,"Verification of Underly

    ing Security name in popup","Name is prompted with"&Browser("CorporateActions").Page("IndexNotification").Frame("lookupFrame").WebEdit("divNm").GetROProperty("value")

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 9Browser("CorporateActions").Page("IndexNotification").Frame("loo

    kupFrame").WebElement("html tag:=TD","outertext:="&Datatable.Value("IssuerName","IndexNotification")&".*").click

    strISIN=get_WebEdit_Value("CorporateActions","IndexNotification","ISIN")

    strUnderlyingSecurity=get_WebEdit_Value("CorporateActions","IndexNotification","UnderlyingSecurity")

    strSEDOL=get_WebEdit_Value("CorporateActions","IndexNotification","SEDOL")If get_WebEdit_Value("CorporateActions","IndexNotification","ISI

    N")"" And get_WebEdit_Value("CorporateActions","IndexNotification","UnderlyingSecurity")"" And get_WebEdit_Value("CorporateActions","IndexNotification","SenderName")"" And get_WebEdit_Value("CorporateActions","IndexNotification","SEDOL")"" Then

    Reporter.ReportEvent micPass,"Verification for Auto populating","Underlying Security is populating with "&get_WebEdit_Value("CorporateActions","IndexNotification","UnderlyingSecurity")&"ISIN is populating with-"&get_WebEdit_Value("CorporateActions","IndexNotification","ISIN")&"SEDOL is populating with -"&get_WebEdit_Value("CorporateActions","IndexNotification","SEDOL")&",Sender Name is populating with -"&get_WebEdit_Value("CorporateActions","In

    dexNotification","SenderName")Else

    Reporter.ReportEvent micFail,"Verification of Underlying Security name in popup","Name is prompted with"&Browser("CorporateActions").Page("IndexNotification").Frame("lookupFrame").WebEdit("divNm").GetROProperty("value")

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 10Call select_Combo_Value("CorporateActions","IndexNotification","

    Comparison",DataTable.Value("Comparison","IndexNotification"))Call select_Combo_Value("CorporateActions","IndexNotification","

    SenderType",DataTable.Value("SenderType","IndexNotification"))'Step 11Call chk_defaultValue("CorporateActions","IndexNotification","we

    bEdit","SourceNew","MT599")'Step 12Browser("CorporateActions").Page("IndexNotification").WebTable("

    Issuer Name (for search)").ChildItem(7,1,"Image",0).click'Step 13Browser("CorporateActions").Page("IndexNotification").Frame("Cor

    porateActionType").WebElement("html tag:=TD","innertext:="&Datatable.Value("CorporateActionType","IndexNotification")&".*").Click

    'Step 14Browser("CorporateActions").Page("IndexNotification").WebTable("

    Issuer Name (for search)").ChildItem(7,3,"Image",0).click

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    12/27

    totaldate=split(DataTable.Value("MeetingDate","IndexNotification"),";")

    Call ClickIcon_SetDate("CorporateActions","IndexNotification",totaldate(1),totaldate(2),totaldate(0))

    'Step 15Call set_WebEdit_Value("CorporateActions","IndexNotification","C

    omments",DataTable.Value("Comments","IndexNotification"))

    Call click_Image("CorporateActions","IndexNotification","Save Message")

    'Step 16Call pageCheck_WebRadioGroupOR("CorporateActions","IndexNotifica

    tion","selectCAEvent")If Instr(1,Browser("CorporateActions").Page("IndexNotification")

    .WebTable("Corporate Action Events").ChildItem(3,2,"WebEdit",0).getROproperty("value"),Datatable.Value("CorporateActionType","IndexNotification")) Then

    strCAType=Browser("CorporateActions").Page("IndexNotification").WebTable("Corporate Action Events").ChildItem(3,2,"WebEdit",0).getROproperty("value")

    Reporter.ReportEvent micPass,"Verification of 'C

    orporate Action Events this Underlying Notification is Assigned to' values.","Values are same as selected previously"Else

    Reporter.ReportEvent micFail,"Verification of 'Corporate Action Events this Underlying Notification is Assigned to' values.","Valuesare not same as selected previously"

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 17Call chk_defaultValue("CorporateActions","IndexNotification","we

    bEdit","CorporateActionTypechk",strCAType)

    Call chk_defaultValue("CorporateActions","IndexNotification","webEdit","ISINchk2",strISIN)

    Call chk_defaultValue("CorporateActions","IndexNotification","webEdit","SEDOLchk",strSEDOL)

    Call chk_defaultValue("CorporateActions","IndexNotification","webList","Comparisonchk",DataTable.Value("Comparison","IndexNotification"))

    Call chk_defaultValue("CorporateActions","IndexNotification","webEdit","ProcessingStatuschk","Pending")

    Call chk_defaultValue("CorporateActions","IndexNotification","webEdit","Typechk","Existing Event")

    'Step 18Call click_WebButton("CorporateActions","IndexNotification","Add

    ")If Browser("CorporateActions").Page("IndexNotification").WebTabl

    e("Corporate Action Events").RowCount=4 ThenReporter.ReportEvent micPass,"Verification of 'r

    ow is added with 'Corporate Action Event Details' section","Blank Row is Added "Else

    Reporter.ReportEvent micFail,"Verification of 'row isadded with 'Corporate Action Event Details' section"," Row is Not Added "

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 19

    Browser("CorporateActions").Page("IndexNotification").WebTable("Corporate Action Events").ChildItem(4,8,"Image",0).click

    If Browser("CorporateActions").Dialog("Microsoft Internet Explo

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    13/27

    rer").Exist ThenReporter.ReportEvent micPass,"Verification wheth

    er user is prompted with a message 'Are you sure you want to delete this record?'..","Message is prompted"

    ElseReporter.ReportEvent micFail,"Verification whether us

    er is prompted with a message 'Are you sure you want to delete this record?'..",

    "Message is Not prompted"'CaptureScreenshot

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

    End If'Step 20Browser("CorporateActions").Dialog("Microsoft Internet Explorer"

    ).WinButton("OK").ClickIf Browser("CorporateActions").Page("IndexNotification").WebTabl

    e("Corporate Action Events").RowCount=3 ThenReporter.ReportEvent micPass,"Verification of 'r

    ow is Deleted with 'Corporate Action Event Details' section","Row is Deleted "

    Else Reporter.ReportEvent micFail,"Verification of 'row isDeleted with 'Corporate Action Event Details' section","Row is Not Deleted "

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 21Browser("CorporateActions").Page("IndexNotification").WebTable("

    Corporate Action Events").ChildItem(3,2,"WebEdit",0).clickIf Browser("CorporateActions").Dialog("Microsoft Internet Explo

    rer").Exist ThenReporter.ReportEvent micPass,"Verification wheth

    er dialog is displaying with message 'Data has been modified. Please save your changes or click Cancel to discard changes.","Dailog is prompted"

    ElseReporter.ReportEvent micFail,"Verification whether di

    alog is displaying with message 'Data has been modified. Please save your changes or click Cancel to discard changes.","Dailog is not prompted"

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 22Browser("CorporateActions").Dialog("Microsoft Internet Explorer"

    ).WinButton("text:=Cancel").Click

    'strISINSEDOL=get_WebEdit_Value("CorporateActions","IndexNotification","ISIN/SEDOL")

    valISINSEDOL=split(get_WebEdit_Value("CorporateActions","UnderlyingEvent","ISIN/SEDOL"),"/")

    If Trim(valISINSEDOL(0))=strISIN And Trim(valISINSEDOL(1))=strSEDOL Then

    Reporter.ReportEvent micPass,"In Underlying Event Screen Verification of ISIN and SEDOL values","Present with old selected values "

    ElseReporter.ReportEvent micFail,"In Underlying Event Scr

    een Verification of ISIN and SEDOL values","Not Present with old selected values"

    'CaptureScreenshot

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    14/27

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

    End IfCall chk_defaultValue("CorporateActions","UnderlyingEvent","webE

    dit","Company",strUnderlyingSecurity)Call chk_defaultValue("CorporateActions","UnderlyingEvent","webE

    dit","EventName",strUnderlyingSecurity)

    'Step 23If Browser("CorporateActions").Page("UnderlyingEvent").WebTable(

    "Narrative").GetCellData(4,3)="MT599" And Browser("CorporateActions").Page("UnderlyingEvent").WebTable("Narrative").GetCellData(4,5)=strUnderlyingSecurity Then

    Reporter.ReportEvent micPass,"In Underlying Event Screen Verification of Source, und.Sec Name, Comparison, CaType, ISIN and Meetind Date values","Present with old selected values "

    ElseReporter.ReportEvent micFail,"In Underlying Event Scr

    een Verification of Source, und.Sec Name, Comparison, CaType, ISIN and Meetind Date values","Not Present with old selected values "

    'CaptureScreenshot

    Environment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=FalseEnd If'Step 24Call select_Menu("CorporateActions","UnderlyingEvent","Home;DR H

    ome")End FunctionPublic Function CAProfileIndexNotification_TC8

    'Step 1Call click_webElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")Call select_Menu("CorporateActions","CorporateActions",Datatable

    .Value("MenuPath","IndexNotification"))

    Call pageCheck_ProfileIndexNotificationSearch("CorporateActions","ProfileIndexNotificationSearch")

    'Step 2,3Call CAIndexNotificationSearch("CorporateActions","ProfileIndexN

    otificationSearch")Call CAIndexNotificationSearchResultVerification("CorporateActio

    ns","ProfileIndexNotificationSearch")'Step 4Call clickOnReceivedDateLink_IndexNotificationResult("CorporateA

    ctions","ProfileIndexNotificationSearch","IndexNotification")Call pageCheck_WebEditOR("CorporateActions","IndexNotification",

    "ReceivedDateIndexNotification;Sender;Source;TrackingNumber;UpdateDate;UpdateUser;UserComments;UserGroup")

    Call pageCheck_WebListOR("CorporateActions","IndexNotification","Status")

    Call pageCheck_WebEditinFrame("CorporateActions","IndexNotification","search","msgFrame")

    Call pageCheck_WebButtoninFrame("CorporateActions","IndexNotification","Find =>;Print","msgFrame")

    'Step 5Call Select_Combo_Value("CorporateActions","IndexNotification","

    Status",Datatable.Value("StatusIndex","IndexNotification"))Call pageCheck_WebListOR("CorporateActions","IndexNotification",

    "SelectTargetForDocument")'Step 6

    Call Select_Combo_Value("CorporateActions","IndexNotification","SelectTargetForDocument",Datatable.Value("SelectTargetForDocument","IndexNotification"))

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    15/27

    'Step 7Call set_WebEdit_Value("CorporateActions","IndexNotification","I

    ssuerName",DataTable.Value("IssuerName","IndexNotification"))'Step 8Browser("CorporateActions").Page("IndexNotification").WebTable("

    Issuer Name (for search)").ChildItem(3,2,"Image",0).click'Browser("CorporateActions").Page("IndexNotification").Frame("lo

    okupFrame").Image("Go!").ClickFor intColNo=1 to 5

    strTableHeaders=strTableHeaders&Browser("CorporateActions").Page("IndexNotification").Frame("lookupFrame").WebTable("ISIN").GetCellData(1,intColNo)&";"

    NextIf strTableHeaders="ISIN;SEDOL;Und. Security Name;Type;Class;"

    ThenReporter.ReportEvent micPass,"Verification of th

    e fields present in the popup","Displaying- "&strTableHeaders&" Headers"Else

    Reporter.ReportEvent micFail,"Verification of t

    he fields present in the popup","Displaying- "&strTableHeaders&" Headers"'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End IfIf Browser("CorporateActions").Page("IndexNotification").Frame("

    lookupFrame").WebEdit("divNm").GetROProperty("value")= DataTable.Value("IssuerName","IndexNotification") Then

    Reporter.ReportEvent micPass,"Verification of Underlying Security name in popup","Name is prompted properly"

    ElseReporter.ReportEvent micFail,"Verification of Underly

    ing Security name in popup","Name is prompted with"&Browser("CorporateActions").

    Page("IndexNotification").Frame("lookupFrame").WebEdit("divNm").GetROProperty("value")

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 9Browser("CorporateActions").Page("IndexNotification").Frame("loo

    kupFrame").WebElement("html tag:=TD","outertext:="&Datatable.Value("IssuerName","IndexNotification")&".*").click

    strISIN=get_WebEdit_Value("CorporateActions","IndexNotification","ISIN")

    strUnderlyingSecurity=get_WebEdit_Value("CorporateActions","IndexNotification","UnderlyingSecurity")

    strSEDOL=get_WebEdit_Value("CorporateActions","IndexNotification","SEDOL")

    If get_WebEdit_Value("CorporateActions","IndexNotification","ISIN")"" And get_WebEdit_Value("CorporateActions","IndexNotification","UnderlyingSecurity")"" And get_WebEdit_Value("CorporateActions","IndexNotification","SenderName")"" And get_WebEdit_Value("CorporateActions","IndexNotification","SEDOL")"" Then

    Reporter.ReportEvent micPass,"Verification for Auto populating","Underlying Security is populating with "&get_WebEdit_Value("CorporateActions","IndexNotification","UnderlyingSecurity")&"ISIN is populating with-"&get_WebEdit_Value("CorporateActions","IndexNotification","ISIN")&"SEDOL is p

    opulating with -"&get_WebEdit_Value("CorporateActions","IndexNotification","SEDOL")&",Sender Name is populating with -"&get_WebEdit_Value("CorporateActions","IndexNotification","SenderName")

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    16/27

    ElseReporter.ReportEvent micFail,"Verification of Underly

    ing Security name in popup","Name is prompted with"&Browser("CorporateActions").Page("IndexNotification").Frame("lookupFrame").WebEdit("divNm").GetROProperty("value")

    'CaptureScreenshotEnvironment.Value("Execution_Log")=False

    Environment.Value("TestCase_Log")=FalseEnd If'Step 10Call select_Combo_Value("CorporateActions","IndexNotification","

    Comparison",DataTable.Value("Comparison","IndexNotification"))Call select_Combo_Value("CorporateActions","IndexNotification","

    SenderType",DataTable.Value("SenderType","IndexNotification"))'Step 11Call chk_defaultValue("CorporateActions","IndexNotification","we

    bEdit","SourceNew","MT599")'Step 12Browser("CorporateActions").Page("IndexNotification").WebTable("

    Issuer Name (for search)").ChildItem(7,1,"Image",0).click'Step 13Browser("CorporateActions").Page("IndexNotification").Frame("Cor

    porateActionType").WebElement("html tag:=TD","innertext:="&Datatable.Value("CorporateActionType","IndexNotification")&".*").Click

    'Step 14Browser("CorporateActions").Page("IndexNotification").WebTable("

    Issuer Name (for search)").ChildItem(7,3,"Image",0).clicktotaldate=split(DataTable.Value("MeetingDate","IndexNotification

    "),";")Call ClickIcon_SetDate("CorporateActions","IndexNotification",to

    taldate(1),totaldate(2),totaldate(0))'Step 15

    Call set_WebEdit_Value("CorporateActions","IndexNotification","Comments",DataTable.Value("Comments","IndexNotification"))

    Call click_Image("CorporateActions","IndexNotification","Save Message")

    'Step 16Call pageCheck_WebRadioGroupOR("CorporateActions","IndexNotifica

    tion","selectCAEvent")If Instr(1,Browser("CorporateActions").Page("IndexNotification")

    .WebTable("Corporate Action Events").ChildItem(3,2,"WebEdit",0).getROproperty("value"),Datatable.Value("CorporateActionType","IndexNotification")) Then

    strCAType=Browser("CorporateActions").Page("IndexNotification").WebTable("Corporate Action Events").ChildItem(3,2,"WebEdit",0).getROproperty("value")

    Reporter.ReportEvent micPass,"Verification of 'Corporate Action Events this Underlying Notification is Assigned to' values.","Values are same as selected previously"

    ElseReporter.ReportEvent micFail,"Verification of 'Corpor

    ate Action Events this Underlying Notification is Assigned to' values.","Valuesare not same as selected previously"

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 17

    Call chk_defaultValue("CorporateActions","IndexNotification","webEdit","CorporateActionTypechk",strCAType)

    Call chk_defaultValue("CorporateActions","IndexNotification","we

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    17/27

    bEdit","ISINchk2",strISIN)Call chk_defaultValue("CorporateActions","IndexNotification","we

    bEdit","SEDOLchk",strSEDOL)Call chk_defaultValue("CorporateActions","IndexNotification","we

    bList","Comparisonchk",DataTable.Value("Comparison","IndexNotification"))Call chk_defaultValue("CorporateActions","IndexNotification","we

    bEdit","ProcessingStatuschk","Pending")

    Call chk_defaultValue("CorporateActions","IndexNotification","webEdit","Typechk","Existing Event")

    'Step 18Call click_WebButton("CorporateActions","IndexNotification","Add

    ")If Browser("CorporateActions").Page("IndexNotification").WebTabl

    e("Corporate Action Events").RowCount=4 ThenReporter.ReportEvent micPass,"Verification of 'r

    ow is added with 'Corporate Action Event Details' section","Blank Row is Added "Else

    Reporter.ReportEvent micFail,"Verification of 'row isadded with 'Corporate Action Event Details' section"," Row is Not Added "

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 19Call select_Combo_Value("CorporateActions","UnderlyingNotificati

    on","Type",DataTable.Value("EventType","IndexNotification"))'Step 20Browser("CorporateActions").Page("UnderlyingNotification").WebTa

    ble("Corporate Action Event").ChildItem(2,4,"Image",0).clickIf Browser("CorporateActions").Page("UnderlyingNotification").F

    rame("CorporateActionEventType").Exist ThenReporter.ReportEvent micPass,"Verification of Po

    pup after click on ? Image after CA Event Type","CorporateActionEventType popupappeared with CA types"

    ElseReporter.ReportEvent micFail,"Verification of Popup a

    fter click on ? Image after CA Event Type","CorporateActionEventType popup Not appeared "

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 21Browser("CorporateActions").Page("UnderlyingNotification").Frame

    ("CorporateActionEventType").webelement("html tag:=TD","innertext:=Cash Dividend").Click

    'Step 22Browser("CorporateActions").Page("UnderlyingNotification").WebTa

    ble("Corporate Action Event").ChildItem(2,6,"Image",0).clickIf Browser("CorporateActions").Page("UnderlyingNotification").F

    rame("ISINFrame").Exist ThenReporter.ReportEvent micPass,"Verification of Po

    pup after click on ? Image after ISIN ","ISIN popup is appeared with all the fields and Buttons"

    Call pageCheck_WebEditinFrame("CorporateActions","UnderlyingNotification","isin;divNm;sedol","ISINFrame")

    Else

    Reporter.ReportEvent micFail,"Verification of Popup after click on ? Image after ISIN","ISIN popup is Not appeared "

    'CaptureScreenshot

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    18/27

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

    End If'Step 23Browser("CorporateActions").Page("UnderlyingNotification").Frame

    ("ISINFrame").WebEdit("isin").Set("BRBRHAACNPR9")Browser("CorporateActions").Page("UnderlyingNotification").Frame

    ("ISINFrame").Image("Go!").ClickIf Browser("CorporateActions").Page("UnderlyingNotification").F

    rame("ISINFrame").WebTable("ISIN").RowCount=2 ThenReporter.ReportEvent micPass,"Verification of Se

    arch result in ISIN Frame","Result is Displayed"Else

    Reporter.ReportEvent micFail,"Verification of Searchresult in ISIN Frame","Result is Not Displayed"

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If

    'Step 24Browser("CorporateActions").Page("UnderlyingNotification").Frame("ISINFrame").webElement("innertext:=AmBev","html tag:=TD").click

    If get_WebEdit_Value("CorporateActions","UnderlyingNotification","ISIN")"" And get_WebEdit_Value("CorporateActions","UnderlyingNotification","SEDOL")"" Then

    Reporter.ReportEvent micPass,"Verification of ISIN and SEDOL values are populating or not","ISIN and SEDOL values are populating"

    ElseReporter.ReportEvent micFail,"Verification of ISIN an

    d SEDOL values are populating or not","ISIN and SEDOL values are not populating"'CaptureScreenshot

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

    End If'Step 25Browser("CorporateActions").Page("UnderlyingNotification").WebTa

    ble("Corporate Action Event").ChildItem(3,4,"Image",0).clickIf Browser("CorporateActions").Page("UnderlyingNotification").F

    rame("EventNameFrame").Exist ThenReporter.ReportEvent micPass,"Verification of Po

    pup after click on ? Image after Event Name ","Event Name popup is appeared with all the fields and Buttons"

    Call pageCheck_WebEditinFrame("CorporateActions","UnderlyingNotification","cactnEvntDt;cactnEvntNm;cactnTypeNm;isinNo","EventNameFrame")

    ElseReporter.ReportEvent micFail,"Verification of Po

    pup after click on ? Image after Event Name ","Event Name popup is Not appeared"

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 26If Browser("CorporateActions").Page("UnderlyingNotification").Fr

    ame("EventNameFrame").WebEdit("isinNo").GetROProperty("value")"" And Browser("

    CorporateActions").Page("UnderlyingNotification").Frame("EventNameFrame").WebEdit("cactnTypeNm").GetROProperty("value")"" Then

    Reporter.ReportEvent micPass,"Verification of IS

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    19/27

    IN and Corporate Action Type values are prefilled in Frame or not","ISIN and Corporate Action Type values are prefilled in Frame and Result is displaying"

    Browser("CorporateActions").Page("UnderlyingNotification").Frame("EventNameFrame").webElement("innertext:=Cash Dividend","class:=tabSelected").click

    ElseReporter.ReportEvent micFail,"Verification of ISIN an

    d Corporate Action Type values are prefilled in Frame or not","ISIN and Corporate Action Type values are Not prefilled in Frame and Result is Not displaying"

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End IfIf get_WebEdit_Value("CorporateActions","UnderlyingNotification"

    ,"EventName")"" And get_WebEdit_Value("CorporateActions","UnderlyingNotification","EventDate")"" And get_WebEdit_Value("CorporateActions","UnderlyingNotification","StatusChangedDate")"" And get_WebEdit_Value("CorporateActions","UnderlyingNotification","ProcessingStatus")"" Then

    Reporter.ReportEvent micPass,"Verification of Ev

    entName, ProcessingStatus, StatusChangedDate and EventDate values are populatingor not","ISIN,StatusChangedDate, ProcessingStatus and EventDate values are populating"

    ElseReporter.ReportEvent micFail,"Verification of EventNa

    me, ProcessingStatus, StatusChangedDate and EventDate values are populating or not","ISIN, StatusChangedDate, ProcessingStatus and EventDate values are Not populating"

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 27

    Call select_Combo_Value("CorporateActions","UnderlyingNotification","Comparison","No")

    'Step 28Call click_Image("CorporateActions","UnderlyingNotification","Sa

    ve CA Event Details")If Browser("CorporateActions").Page("IndexNotificationAfterSave"

    ).WebTable("Corporate Action Events").ChildItem(3,2,"WebEdit",0).getroproperty("value")="Cash Dividend" Then

    Reporter.ReportEvent micPass,"Verification of The 'Corporate Action Events this Underlying Notification is Assigned to' sectionis displaying the newly added CA with the radio button.","The 'Corporate ActionEvents this Underlying Notification is Assigned to' section is displaying thenewly added CA with the radio button"

    ElseReporter.ReportEvent micFail,"Verification of The 'Co

    rporate Action Events this Underlying Notification is Assigned to' section is displaying the newly added CA with the radio button.","The 'Corporate Action Events this Underlying Notification is Assigned to' section is NOT displaying the newly added CA with the radio button"

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 29Call select_Menu("CorporateActions","IndexNotificationAfterSave"

    ,"Home;DR Home")End FunctionPublic Function CAProfileIndexNotification_TC9()

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    20/27

    'Step 1Call click_webElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")Call select_Menu("CorporateActions","CorporateActions",Datatable

    .Value("MenuPath","IndexNotification"))Call pageCheck_ProfileIndexNotificationSearch("CorporateActions"

    ,"ProfileIndexNotificationSearch")

    'Step 2,3Call CAIndexNotificationSearch("CorporateActions","ProfileIndexN

    otificationSearch")Call CAIndexNotificationSearchResultVerification("CorporateActio

    ns","ProfileIndexNotificationSearch")'Step 4Call clickOnReceivedDateLink_IndexNotificationResult("CorporateA

    ctions","ProfileIndexNotificationSearch","IndexNotification")Call pageCheck_WebEditOR("CorporateActions","IndexNotification",

    "ReceivedDateIndexNotification;Sender;Source;TrackingNumber;UpdateDate;UpdateUser;UserComments;UserGroup")

    Call pageCheck_WebListOR("CorporateActions","IndexNotification",

    "Status") Call pageCheck_WebEditinFrame("CorporateActions","IndexNotification","search","msgFrame")

    Call pageCheck_WebButtoninFrame("CorporateActions","IndexNotification","Find =>;Print","msgFrame")

    'Step 5Call Select_Combo_Value("CorporateActions","IndexNotification","

    Status",Datatable.Value("StatusIndex","IndexNotification"))Call pageCheck_WebListOR("CorporateActions","IndexNotification",

    "SelectTargetForDocument")'Step 6Call Select_Combo_Value("CorporateActions","IndexNotification","

    SelectTargetForDocument",Datatable.Value("SelectTargetForDocument","IndexNotific

    ation"))'Step 7Call set_WebEdit_Value("CorporateActions","IndexNotification","I

    ssuerName",DataTable.Value("IssuerName","IndexNotification"))'Step 8Browser("CorporateActions").Page("IndexNotification").WebTable("

    Issuer Name (for search)").ChildItem(3,2,"Image",0).click'Browser("CorporateActions").Page("IndexNotification").Frame("lo

    okupFrame").Image("Go!").ClickFor intColNo=1 to 5

    strTableHeaders=strTableHeaders&Browser("CorporateActions").Page("IndexNotification").Frame("lookupFrame").WebTable("ISIN").GetCellData(1,intColNo)&";"

    NextIf strTableHeaders="ISIN;SEDOL;Und. Security Name;Type;Class;"

    ThenReporter.ReportEvent micPass,"Verification of th

    e fields present in the popup","Displaying- "&strTableHeaders&" Headers"Else

    Reporter.ReportEvent micFail,"Verification of the fields present in the popup","Displaying- "&strTableHeaders&" Headers"

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If

    If Browser("CorporateActions").Page("IndexNotification").Frame("lookupFrame").WebEdit("divNm").GetROProperty("value")= DataTable.Value("IssuerName","IndexNotification") Then

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    21/27

    Reporter.ReportEvent micPass,"Verification of Underlying Security name in popup","Name is prompted properly"

    ElseReporter.ReportEvent micFail,"Verification of Underly

    ing Security name in popup","Name is prompted with"&Browser("CorporateActions").Page("IndexNotification").Frame("lookupFrame").WebEdit("divNm").GetROProperty("value")

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 9Browser("CorporateActions").Page("IndexNotification").Frame("loo

    kupFrame").WebElement("html tag:=TD","outertext:="&Datatable.Value("IssuerName","IndexNotification")&".*").click

    strISIN=get_WebEdit_Value("CorporateActions","IndexNotification","ISIN")

    strUnderlyingSecurity=get_WebEdit_Value("CorporateActions","IndexNotification","UnderlyingSecurity")

    strSEDOL=get_WebEdit_Value("CorporateActions","IndexNotification","SEDOL")If get_WebEdit_Value("CorporateActions","IndexNotification","ISI

    N")"" And get_WebEdit_Value("CorporateActions","IndexNotification","UnderlyingSecurity")"" And get_WebEdit_Value("CorporateActions","IndexNotification","SenderName")"" And get_WebEdit_Value("CorporateActions","IndexNotification","SEDOL")"" Then

    Reporter.ReportEvent micPass,"Verification for Auto populating","Underlying Security is populating with "&get_WebEdit_Value("CorporateActions","IndexNotification","UnderlyingSecurity")&"ISIN is populating with-"&get_WebEdit_Value("CorporateActions","IndexNotification","ISIN")&"SEDOL is populating with -"&get_WebEdit_Value("CorporateActions","IndexNotification","SEDOL")&",Sender Name is populating with -"&get_WebEdit_Value("CorporateActions","In

    dexNotification","SenderName")Else

    Reporter.ReportEvent micFail,"Verification of Underlying Security name in popup","Name is prompted with"&Browser("CorporateActions").Page("IndexNotification").Frame("lookupFrame").WebEdit("divNm").GetROProperty("value")

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 10Call select_Combo_Value("CorporateActions","IndexNotification","

    Comparison",DataTable.Value("Comparison","IndexNotification"))Call select_Combo_Value("CorporateActions","IndexNotification","

    SenderType",DataTable.Value("SenderType","IndexNotification"))'Step 11Call chk_defaultValue("CorporateActions","IndexNotification","we

    bEdit","SourceNew","MT599")'Step 12Browser("CorporateActions").Page("IndexNotification").WebTable("

    Issuer Name (for search)").ChildItem(7,1,"Image",0).click'Step 13Browser("CorporateActions").Page("IndexNotification").Frame("Cor

    porateActionType").WebElement("html tag:=TD","innertext:="&Datatable.Value("CorporateActionType","IndexNotification")&".*").Click

    'Step 14Browser("CorporateActions").Page("IndexNotification").WebTable("

    Issuer Name (for search)").ChildItem(7,3,"Image",0).click

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    22/27

    totaldate=split(DataTable.Value("MeetingDate","IndexNotification"),";")

    Call ClickIcon_SetDate("CorporateActions","IndexNotification",totaldate(1),totaldate(2),totaldate(0))

    'Step 15Call set_WebEdit_Value("CorporateActions","IndexNotification","C

    omments",DataTable.Value("Comments","IndexNotification"))

    Call click_Image("CorporateActions","IndexNotification","Save Message")

    'Step 16Call pageCheck_WebRadioGroupOR("CorporateActions","IndexNotifica

    tion","selectCAEvent")If Instr(1,Browser("CorporateActions").Page("IndexNotification")

    .WebTable("Corporate Action Events").ChildItem(3,2,"WebEdit",0).getROproperty("value"),Datatable.Value("CorporateActionType","IndexNotification")) Then

    strCAType=Browser("CorporateActions").Page("IndexNotification").WebTable("Corporate Action Events").ChildItem(3,2,"WebEdit",0).getROproperty("value")

    Reporter.ReportEvent micPass,"Verification of 'C

    orporate Action Events this Underlying Notification is Assigned to' values.","Values are same as selected previously"Else

    Reporter.ReportEvent micFail,"Verification of 'Corporate Action Events this Underlying Notification is Assigned to' values.","Valuesare not same as selected previously"

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 17Call chk_defaultValue("CorporateActions","IndexNotification","we

    bEdit","CorporateActionTypechk",strCAType)

    Call chk_defaultValue("CorporateActions","IndexNotification","webEdit","ISINchk2",strISIN)

    Call chk_defaultValue("CorporateActions","IndexNotification","webEdit","SEDOLchk",strSEDOL)

    Call chk_defaultValue("CorporateActions","IndexNotification","webList","Comparisonchk",DataTable.Value("Comparison","IndexNotification"))

    Call chk_defaultValue("CorporateActions","IndexNotification","webEdit","ProcessingStatuschk","Pending")

    Call chk_defaultValue("CorporateActions","IndexNotification","webEdit","Typechk","Existing Event")

    'Step 18Call click_WebButton("CorporateActions","IndexNotification","Add

    ")If Browser("CorporateActions").Page("IndexNotification").WebTabl

    e("Corporate Action Events").RowCount=4 ThenReporter.ReportEvent micPass,"Verification of 'r

    ow is added with 'Corporate Action Event Details' section","Blank Row is Added "Else

    Reporter.ReportEvent micFail,"Verification of 'row isadded with 'Corporate Action Event Details' section"," Row is Not Added "

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 19

    Call select_Combo_Value("CorporateActions","UnderlyingNotification","Type",DataTable.Value("EventType","IndexNotification"))

    'Step 20

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    23/27

    Browser("CorporateActions").Page("UnderlyingNotification").WebTable("Corporate Action Event").ChildItem(2,4,"Image",0).click

    If Browser("CorporateActions").Page("UnderlyingNotification").Frame("CorporateActionEventType").Exist Then

    Reporter.ReportEvent micPass,"Verification of Popup after click on ? Image after CA Event Type","CorporateActionEventType popupappeared with CA types"

    ElseReporter.ReportEvent micFail,"Verification of Popup a

    fter click on ? Image after CA Event Type","CorporateActionEventType popup Not appeared "

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 21Browser("CorporateActions").Page("UnderlyingNotification").Frame

    ("CorporateActionEventType").webelement("html tag:=TD","innertext:=Cash Dividend").Click

    'Step 22Browser("CorporateActions").Page("UnderlyingNotification").WebTable("Corporate Action Event").ChildItem(2,6,"Image",0).click

    If Browser("CorporateActions").Page("UnderlyingNotification").Frame("ISINFrame").Exist Then

    Reporter.ReportEvent micPass,"Verification of Popup after click on ? Image after ISIN ","ISIN popup is appeared with all the fields and Buttons"

    Call pageCheck_WebEditinFrame("CorporateActions","UnderlyingNotification","isin;divNm;sedol","ISINFrame")

    ElseReporter.ReportEvent micFail,"Verification of Po

    pup after click on ? Image after ISIN","ISIN popup is Not appeared "

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 23Browser("CorporateActions").Page("UnderlyingNotification").Frame

    ("ISINFrame").WebEdit("isin").Set("BRBRHAACNPR9")Browser("CorporateActions").Page("UnderlyingNotification").Frame

    ("ISINFrame").Image("Go!").ClickIf Browser("CorporateActions").Page("UnderlyingNotification").F

    rame("ISINFrame").WebTable("ISIN").RowCount=2 ThenReporter.ReportEvent micPass,"Verification of Se

    arch result in ISIN Frame","Result is Displayed"Else

    Reporter.ReportEvent micFail,"Verification of Searchresult in ISIN Frame","Result is Not Displayed"

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 24Browser("CorporateActions").Page("UnderlyingNotification").Frame

    ("ISINFrame").webElement("innertext:=AmBev","html tag:=TD").clickIf get_WebEdit_Value("CorporateActions","UnderlyingNotification"

    ,"ISIN")"" And get_WebEdit_Value("CorporateActions","UnderlyingNotification","

    SEDOL")"" ThenReporter.ReportEvent micPass,"Verification of IS

    IN and SEDOL values are populating or not","ISIN and SEDOL values are populating

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    24/27

    "Else

    Reporter.ReportEvent micFail,"Verification of ISIN and SEDOL values are populating or not","ISIN and SEDOL values are not populating"

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 25Browser("CorporateActions").Page("UnderlyingNotification").WebTa

    ble("Corporate Action Event").ChildItem(3,4,"Image",0).clickIf Browser("CorporateActions").Page("UnderlyingNotification").F

    rame("EventNameFrame").Exist ThenReporter.ReportEvent micPass,"Verification of Po

    pup after click on ? Image after Event Name ","Event Name popup is appeared with all the fields and Buttons"

    Call pageCheck_WebEditinFrame("CorporateActions","UnderlyingNotification","cactnEvntDt;cactnEvntNm;cactnTypeNm;isinNo","EventNameFrame")

    Else Reporter.ReportEvent micFail,"Verification of Popup after click on ? Image after Event Name ","Event Name popup is Not appeared"

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 26If Browser("CorporateActions").Page("UnderlyingNotification").Fr

    ame("EventNameFrame").WebEdit("isinNo").GetROProperty("value")"" And Browser("CorporateActions").Page("UnderlyingNotification").Frame("EventNameFrame").WebEdit("cactnTypeNm").GetROProperty("value")"" Then

    Reporter.ReportEvent micPass,"Verification of ISIN and Corporate Action Type values are prefilled in Frame or not","ISIN and Corporate Action Type values are prefilled in Frame and Result is displaying"

    Browser("CorporateActions").Page("UnderlyingNotification").Frame("EventNameFrame").webElement("innertext:=Cash Dividend","class:=tabSelected").click

    ElseReporter.ReportEvent micFail,"Verification of ISIN an

    d Corporate Action Type values are prefilled in Frame or not","ISIN and Corporate Action Type values are Not prefilled in Frame and Result is Not displaying"

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End IfIf get_WebEdit_Value("CorporateActions","UnderlyingNotification"

    ,"EventName")"" And get_WebEdit_Value("CorporateActions","UnderlyingNotification","EventDate")"" And get_WebEdit_Value("CorporateActions","UnderlyingNotification","StatusChangedDate")"" And get_WebEdit_Value("CorporateActions","UnderlyingNotification","ProcessingStatus")"" Then

    Reporter.ReportEvent micPass,"Verification of EventName, ProcessingStatus, StatusChangedDate and EventDate values are populatingor not","ISIN,StatusChangedDate, ProcessingStatus and EventDate values are populating"

    ElseReporter.ReportEvent micFail,"Verification of EventNa

    me, ProcessingStatus, StatusChangedDate and EventDate values are populating or not","ISIN, StatusChangedDate, ProcessingStatus and EventDate values are Not populating"

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    25/27

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 27Call select_Combo_Value("CorporateActions","UnderlyingNotificati

    on","Comparison","No")

    'Step 28Call click_Image("CorporateActions","UnderlyingNotification","Sa

    ve CA Event Details")If Browser("CorporateActions").Page("IndexNotificationAfterSave"

    ).WebTable("Corporate Action Events").ChildItem(3,2,"WebEdit",0).getroproperty("value")="Cash Dividend" Then

    Reporter.ReportEvent micPass,"Verification of The 'Corporate Action Events this Underlying Notification is Assigned to' sectionis displaying the newly added CA with the radio button.","The 'Corporate ActionEvents this Underlying Notification is Assigned to' section is displaying thenewly added CA with the radio button"

    Else

    Reporter.ReportEvent micFail,"Verification of The 'Corporate Action Events this Underlying Notification is Assigned to' section is displaying the newly added CA with the radio button.","The 'Corporate Action Events this Underlying Notification is Assigned to' section is NOT displaying thenewly added CA with the radio button"

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 29Browser("CorporateActions").Page("IndexNotificationAfterSave").W

    ebTable("Corporate Action Events").ChildItem(3,8,"Image",0).clickIf Browser("CorporateActions").Dialog("Microsoft Internet Explo

    rer").Exist ThenReporter.ReportEvent micPass,"Verification wheth

    er user is prompted with a message 'Are you sure you want to delete this record?'..","Message is prompted"

    ElseReporter.ReportEvent micFail,"Verification whether us

    er is prompted with a message 'Are you sure you want to delete this record?'..","Message is Not prompted"

    'CaptureScreenshotEnvironment.Value("Execution_Log")=FalseEnvironment.Value("TestCase_Log")=False

    End If'Step 30Browser("CorporateActions").Dialog("Microsoft Internet Explorer"

    ).WinButton("OK").Click'Wait(3)'msgbox Browser("CorporateActions").Page("IndexNotification").We

    bTable("Corporate Action Events").RowCount'If Browser("CorporateActions").Page("IndexNotification").WebTab

    le("Corporate Action Events").RowCount = 3 Then' Reporter.ReportEvent micPass,"Verification of 'r

    ow is Deleted with 'Corporate Action Event Details' section","Row is Deleted "'Else' Reporter.ReportEvent micFail,"Verification of 'row is

    Deleted with 'Corporate Action Event Details' section","Row is Not Deleted "

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

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    26/27

    'End If'Step 31Call click_Image("CorporateActions","IndexNotificationAfterSave"

    ,"Save CA Event Details")Call chk_defaultValue("CorporateActions","IndexNotificationAfter

    Save","webEdit","CorporateActionTypechk",strCAType)Call chk_defaultValue("CorporateActions","IndexNotificationAfter

    Save","webEdit","ISINchk2",strISIN)Call chk_defaultValue("CorporateActions","IndexNotificationAfter

    Save","webEdit","SEDOLchk",strSEDOL)Call chk_defaultValue("CorporateActions","IndexNotificationAfter

    Save","webList","Comparisonchk",DataTable.Value("Comparison","IndexNotification"))

    'Step 32Call select_Menu("CorporateActions","IndexNotificationAfterSave"

    ,"Home;DR Home")End FunctionPublic Function CAProfileIndexNotification_TC10()

    'Step 1

    Call click_webElement("CorporateActions","Depositary Receipt Division's","CorporateActions")Call select_Menu("CorporateActions","CorporateActions",Datatable

    .Value("MenuPath","IndexNotification"))Call pageCheck_ProfileIndexNotificationSearch("CorporateActions"

    ,"ProfileIndexNotificationSearch")'Step 2,3Call CAIndexNotificationSearch("CorporateActions","ProfileIndexN

    otificationSearch")Call CAIndexNotificationSearchResultVerification("CorporateActio

    ns","ProfileIndexNotificationSearch")'Step 4Call clickOnReceivedDateLink_IndexNotificationResult("CorporateA

    ctions","ProfileIndexNotificationSearch","IndexNotification")Call pageCheck_WebEditOR("CorporateActions","IndexNotification",

    "ReceivedDateIndexNotification;Sender;Source;TrackingNumber;UpdateDate;UpdateUser;UserComments;UserGroup")

    Call pageCheck_WebListOR("CorporateActions","IndexNotification","Status")

    Call pageCheck_WebEditinFrame("CorporateActions","IndexNotification","search","msgFrame")

    Call pageCheck_WebButtoninFrame("CorporateActions","IndexNotification","Find =>;Print","msgFrame")

    'Step 5Call Select_Combo_Value("CorporateActions","IndexNotification","

    Status",Datatable.Value("StatusIndex","IndexNotification"))Call click_Image("CorporateActions","IndexNotification","Save Me

    ssage")'Step 6Call click_WebElement("CorporateActions","IndexNotification","In

    dexNotificationSearch")If Browser("CorporateActions").Dialog("Microsoft Internet Explor

    er").Exist ThenReporter.ReportEvent micPass,"Verification wheth

    er user is prompted with a message 'Data has been modified. Please save your changes or click Cancel to discard changes.","Message is prompted"

    ElseReporter.ReportEvent micFail,"Verification whether us

    er is prompted with a message 'Data has been modified. Please save your changesor click Cancel to discard changes.","Message is NOT prompted"

    'CaptureScreenshot

  • 8/7/2019 ADRCA_ProfileIndexNotificationSearch

    27/27

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

    End If'Step 7Browser("CorporateActions").Dialog("Microsoft Internet Explorer"

    ).WinButton("text:=Cancel").ClickCall pageCheck_ProfileIndexNotificationSearch("CorporateActions"

    ,"ProfileIndexNotificationSearch")'Step 8Call select_Menu("CorporateActions","ProfileIndexNotificationSea

    rch","Home;DR Home")End Function