ADRCA_AdministrationCorporateActionsType

download ADRCA_AdministrationCorporateActionsType

of 20

Transcript of ADRCA_AdministrationCorporateActionsType

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    1/20

    '=========================================================================================================' Name of the Script : CAAdminCAType' Scope of the Script : This test script covers10 test cases related to CA Administration CA Type Search' Author : Satish Dupati' Description : CA Administration CA Typ

    e Search' Date and / or Version : 08-12-2008,version 1.0'Note:Change DVCA date to Meeting Date b4 Executing'===========================================================================================================Sub CAAdminCAType()

    '****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 "CAType"

    DataTable.ImportSheet strDataPath & "CorporateActionsAdmin.xls","CAType","CAType"DataTable.AddSheet "HomePageVerification"DataTable.ImportSheet strDataPath & "CorporateActionsAdmin.xls",

    "HomePageVerification","HomePageVerification"Environment.Value("strSheetName") = "CAType"

    ' DataTable.AddSheet "ReportHeader"' DataTable.ImportSheet strDataPath & "MasterFileReports.xls","ReportHeader","ReportHeader"

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

    ", "", "")

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

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    2/20

    ("URL","CALogin"))

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

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

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

    ,"")

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

    Call login("CorporateActions","Login Page","User","CALogin")Call chkADRHomePage("MasterFile","Depositary Receipt Division's"

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

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

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

    For intTCCount = 1 to TC_COUNT

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

    ''If run flag is Y in test data tableReporter.ReportEvent micDone,"######## BEGIN TEST CASE - '" & Da

    taTable("TestCaseID","CAType") & "' ########### ","Execution of Test Case '" & DataTable("TestCaseDesc","CAType") & "' Started"

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

    Environment.Value("TestCase_Log")="True"Execute "Call " & strFuncName

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

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

    ElseCall Execution_log("",Datatable.

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

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

    EST CASE - '" & DataTable("TestCaseID","CAType") & "###########","The Test CaseExecution Completed"

    End IfstrPrevious=Trim(DataTable.Value("TestCaseID","CAType"))''Increment the test data table rowEnvironment.Value("DATATABLE_ROW") = Environment.Value("

    DATATABLE_ROW") + 1

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

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

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    3/20

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

    ("DATATABLE_ROW") + 1DataTable.GetSheet("CAType").SetCurrentRow(Environment

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

    Wend

    Next

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

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

    End Sub

    '**********************************************Test Case 1 to Test Case 10 *****

    *********************************************'=========================================================================================

    Public Function CAAdminCAType_TC1()

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

    ision's","CorporateActions")Call chkMFCAHomePage("CorporateActions","CorporateActions",DataT

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

    Reporter.ReportEvent micPass,"Step 2: Click on C

    orporate Actions ","Corporate Actions Home screen is displayed "Else

    Reporter.ReportEvent micFail,"Step 2: Click on Corporate Actions ","Corporate Actions Home screen is displayed "

    Environment.Value("TestCase_Log")="True"End If'Step 3Call select_Menu("CorporateActions","CorporateActions",Datatable

    .Value("MenuPath","CAType"))Call pageCheck_CAAdminCAType("CorporateActions","Administration

    - Corporate Action Type Search")Call select_Menu("CorporateActions","Administration - Corporate

    Action Type Search","Home;DR Home")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 3: Under ADMINISTRATION menu select Corporate Action Type. ","Administration - Corporate Action Type Search page opened with all required Fields "

    ElseReporter.ReportEvent micFail,"Step 3: Under ADMI

    NISTRATION menu select Corporate Action Type. ","Administration - Corporate Action Type Search page opened with all required Fields "

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

    End Function

    '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Public Function CAAdminCAType_TC2()

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    4/20

    'Step 1

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

    Call click_webElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")Call chkMFCAHomePage("CorporateActions","CorporateActions",DataT

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

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

    Call pageCheck_CAAdminCAType("CorporateActions","Administration- Corporate Action Type Search")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Under 'ADM

    INISTRATION' menu select 'Corporate Action Type'. ","'Administration - CorporateAction Type' Search page opens successfully."

    Else Reporter.ReportEvent micFail,"Step 1: Under 'ADMINISTRATION' menu select 'Corporate Action Type'. ","'Administration - CorporateAction Type' Search page opens successfully."

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

    'Step 2Call CAAdminCATypeSearch("CorporateActions","Administration - Co

    rporate Action Type Search")Call CAAdminCATypeSearchResultVerification("CorporateActions","A

    dministration - Corporate Action Type Search")Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL

    E_ROW") + 1DataTable.GetSheet("CAType").SetCurrentRow(Environment.Value("DA

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

    Reporter.ReportEvent micPass,"Step 2: Enter Corp. Action Type Code and click on Search.","All items with given Corp. Action Type Code listed under Corporate Action Type Search Results table."

    ElseReporter.ReportEvent micFail,"Step 2: Enter Corp

    . Action Type Code and click on Search.","All items with given Corp. Action TypeCode listed under Corporate Action Type Search Results table."

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

    'Step 3Call CAAdminCATypeSearch("CorporateActions","Administration - Co

    rporate Action Type Search")Call CAAdminCATypeSearchResultVerification("CorporateActions","A

    dministration - Corporate Action Type Search")Call select_Menu("CorporateActions","Administration - Corporate

    Action Type Search","Home;DR Home")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 3: Enter partial string of 'Corporate Action Type Code' and click on Search. ","All items with given string as part of 'Corp. Action Type Code' listed under Corporate Acti

    on Type Search Results table. "Else

    Reporter.ReportEvent micFail,"Step 3: Enter part

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    5/20

    ial string of 'Corporate Action Type Code' and click on Search. ","All items with given string as part of 'Corp. Action Type Code' listed under Corporate Action Type Search Results table. "

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

    End Function

    '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Public Function CAAdminCAType_TC3()

    'Step 1Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab

    le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser"))

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

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

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

    Call pageCheck_CAAdminCAType("CorporateActions","Administration- Corporate Action Type Search")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Under 'ADM

    INISTRATION' menu select 'Corporate Action Type'. ","'Administration - CorporateAction Type' Search page opens successfully."

    ElseReporter.ReportEvent micFail,"Step 1: Under 'ADM

    INISTRATION' menu select 'Corporate Action Type'. ","'Administration - CorporateAction Type' Search page opens successfully."

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

    'Step 2Call CAAdminCATypeSearch("CorporateActions","Administration - Co

    rporate Action Type Search")Call CAAdminCATypeSearchResultVerification("CorporateActions","A

    dministration - Corporate Action Type Search")Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL

    E_ROW") + 1DataTable.GetSheet("CAType").SetCurrentRow(Environment.Value("DA

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

    Reporter.ReportEvent micPass,"Step 2:Enter 'Corporate Action Type' and press 'Enter' key.","All items with given Corp. Action Type listed under Corporate Action Type Search Results table."

    ElseReporter.ReportEvent micFail,"Step 2:Enter 'Corp

    orate Action Type' and press 'Enter' key.","All items with given Corp. Action Type listed under Corporate Action Type Search Results table."

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

    'Step 3Call CAAdminCATypeSearch("CorporateActions","Administration - Co

    rporate Action Type Search")Call CAAdminCATypeSearchResultVerification("CorporateActions","A

    dministration - Corporate Action Type Search")

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    6/20

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

    ial string of 'Corporate Action Type' and click on Search. ","All items with given string as part of 'Corp. Action Type' listed under Corporate Action Type Search Results table. "

    ElseReporter.ReportEvent micFail,"Step 3: Enter part

    ial string of 'Corporate Action Type' and click on Search. ","All items with given string as part of 'Corp. Action Type' listed under Corporate Action Type Search Results table. "

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

    'Step 4Call click_Image("CorporateActions","Administration - Corporate

    Action Type Search","Clear")If get_webEdit_Value("CorporateActions","Administration - Corpor

    ate Action Type Search","CATypeCode")="" And get_webEdit_Value("CorporateActions","Administration - Corporate Action Type Search","CAType")="" And get_WebList_V

    alue("CorporateActions","Administration - Corporate Action Type Search","Status")="All" ThenReporter.ReportEvent micPass,"Step 4:Verificatio

    n of Clear Button Function","All Fields are Cleared and Status Value Consists asAll"

    ElseReporter.ReportEvent micFail,"Step 4:Verificatio

    n of Clear Button Function","Clear Button is not functioning"Call captureScreenshot()Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="True"

    End IfCall select_Menu("CorporateActions","Administration - Corporate

    Action Type Search","Home;DR Home")

    End Function'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Public Function CAAdminCAType_TC4()

    'Step 1Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab

    le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser"))

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

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

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

    Call pageCheck_CAAdminCAType("CorporateActions","Administration- Corporate Action Type Search")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Under 'ADM

    INISTRATION' menu select 'Corporate Action Type'. ","'Administration - CorporateAction Type' Search page opens successfully."

    Else

    Reporter.ReportEvent micFail,"Step 1: Under 'ADMINISTRATION' menu select 'Corporate Action Type'. ","'Administration - CorporateAction Type' Search page opens successfully."

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    7/20

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

    'Step 2If Browser("CorporateActions").Page("Administration - Corporate

    Action Type Search").WebList("Status").GetROProperty("value")="All" ThenReporter.ReportEvent micPass,"Step 2:Verification of Def

    ault Value of Status List","Status Field Consists as All"Else

    Reporter.ReportEvent micFail,"Step 2:Verification of Default Value of Status List","Status Field Not Consists as All"

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

    End If

    'Step 3If Browser("CorporateActions").Page("Administration - Corporate

    Action Type Search").WebList("Status").GetROProperty("all items")="All;Active;Inactive" Then

    Reporter.ReportEvent micPass,"Step 3:Verification of allitems of Status List","Status Field Consists All;Active;Inactive"Else

    Reporter.ReportEvent micFail,"Step 3:Verification of allitems of Status List","Status Field Not All;Active;Inactive"

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

    End If

    'Step 4Call CAAdminCATypeSearch("CorporateActions","Administration - Co

    rporate Action Type Search")Call CAAdminCATypeSearchResultVerification("CorporateActions","A

    dministration - Corporate Action Type Search")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 4: Select status based on which Corporate Actions will be searched.","All the items with given status displayed under Corporate Action Type Search Results table."

    ElseReporter.ReportEvent micFail,"Step 4: Select sta

    tus based on which Corporate Actions will be searched.","All the items with given status displayed under Corporate Action Type Search Results table."

    Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Administration - Corporate

    Action Type Search","Home;DR Home")

    End Function'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Public Function CAAdminCAType_TC5()

    'Step 1

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

    Call click_webElement("CorporateActions","Depositary Receipt Div

    ision's","CorporateActions")Call chkMFCAHomePage("CorporateActions","CorporateActions",DataT

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

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    8/20

    Call select_Menu("CorporateActions","CorporateActions",Datatable

    .Value("MenuPath","CAType"))Call pageCheck_CAAdminCAType("CorporateActions","Administration

    - Corporate Action Type Search")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 1: Under 'ADM

    INISTRATION' menu select 'Corporate Action Type'. ","'Administration - CorporateAction Type' Search page opens successfully."

    ElseReporter.ReportEvent micFail,"Step 1: Under 'ADM

    INISTRATION' menu select 'Corporate Action Type'. ","'Administration - CorporateAction Type' Search page opens successfully."

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

    'Step 2If Browser("CorporateActions").Page("Administration - Corporate

    Action Type Search").WebList("AssignedToUserGroups").GetROProperty("all items")=

    "Corporate Actions and Unsponsored;Dividends;Mergers and Acquisitions & HOLDRs;Proxy;Relationship Management" ThenReporter.ReportEvent micPass,"Step 2:Verificatio

    n of all items of AssignedToUserGroups List","AssignedToUserGroups Field Consists Corporate Actions and Unsponsored;Dividends;Mergers and Acquisitions & HOLDRs;Proxy;Relationship Management"

    ElseReporter.ReportEvent micFail,"Step 2:Verificatio

    n of all items of AssignedToUserGroups List","AssignedToUserGroups Field Not Corporate Actions and Unsponsored;Dividends;Mergers and Acquisitions & HOLDRs;Proxy;Relationship Management"

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

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

    'Step 3Call CAAdminCATypeSearch("CorporateActions","Administration - Co

    rporate Action Type Search")Call CAAdminCATypeSearchResultVerification("CorporateActions","A

    dministration - Corporate Action Type Search")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 3: Selectingtwo items under 'Assigned to User Groups' and click on search. ","'All the itemsbelonging to given Assigned to User Groups displayed under Corporate Action Type Search Results table."

    ElseReporter.ReportEvent micFail,"Step 3: Selecting

    two items under 'Assigned to User Groups' and click on search. ","'All the itemsbelonging to given Assigned to User Groups displayed under Corporate Action Type Search Results table."

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

    'Step 4Call deselect_Combo_Value("CorporateActions","Administration - C

    orporate Action Type Search","AssignedToUserGroups","Dividends")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 4: Hold the 'CTRL' key and click on an item.","Item clicked on should get deselected."

    Else

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    9/20

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    10/20

    Call click_Image("CorporateActions","Profile - Upload Notification","CorporateActionType")

    Browser("CorporateActions").Page("Profile - Upload Notification").Frame("lookupFrame").WebElement("html tag:=TD","innertext:=Cash Dividend").click

    Call click_Image("CorporateActions","Profile - Upload Notification","Save")

    If Browser("CorporateActions").Page("Profile - Upload Notification").WebTable("Validation Error").GetCellData(2,2)=Datatable.Value("EventDateUse","CAType") Then

    Reporter.ReportEvent micPass,"Step 3:Verification in Validation Error","Err Msg showing "&Datatable.Value("EventDateUse","CAType")

    Call click_Image("CorporateActions","Profile - Upload Notification","Close")

    ElseReporter.ReportEvent micFail,"Step 3:Verificatio

    n in Validation Error","Err Msg Not "&Datatable.Value("EventDateUse","CAType")&", showing "&Browser("CorporateActions").Page("Profile - Upload Notification").We

    bTable("Validation Error").GetCellData(2,2)Call captureScreenshot()Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="True"

    End If

    'Step 4Call select_Menu("CorporateActions","Profile - Upload Notificati

    on","Home")Call select_Menu("CorporateActions","CorporateActions",Datatable

    .Value("MenuPath","CAType"))Call pageCheck_CAAdminCAType("CorporateActions","Administration

    - Corporate Action Type Search")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 4 : Under 'AD

    MINISTRATION' menu select 'Corporate Action Type'.","'Administration - CorporateAction Type' Search page opens successfully."

    ElseReporter.ReportEvent micFail,"Step 4 : Under 'AD

    MINISTRATION' menu select 'Corporate Action Type'.","'Administration - CorporateAction Type' Search page opens successfully."

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

    'Step 5Call CAAdminCATypeSearch("CorporateActions","Administration - Co

    rporate Action Type Search")Call CAAdminCATypeSearchResultVerification("CorporateActions","A

    dministration - Corporate Action Type Search")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 5: Search forCorporate Action type as 'Cash Dividend'","Result will be populated with corporate action type as 'Cash Dividend'"

    ElseReporter.ReportEvent micFail,"Step 5: Search for

    Corporate Action type as 'Cash Dividend'","Result will be populated with corporate action type as 'Cash Dividend'"

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

    End If

    'Step 6

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    11/20

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    12/20

    Reporter.ReportEvent micFail,"Step 8:Verification that the items present under the 'Event Date Use' drop down","Event Date Use is present with Effective Date;Local Record Date;Meeting Date;N/A;Payment Date"

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

    End If

    'Step 9If Browser("CorporateActions").Page("Corporate Action Type Main

    tenance").WebList("Status").GetROProperty("all items")="Active;Inactive" ThenReporter.ReportEvent micPass,"Step 9:Verificatio

    n that the items present under the 'Status' drop down","Status is present with Active;Inactive"

    ElseReporter.ReportEvent micFail,"Step 9:Verificatio

    n that the items present under the 'Status' drop down","Status is present with Active;Inactive"

    Call captureScreenshot()

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

    'Step 10If Browser("CorporateActions").Page("Corporate Action Type Main

    tenance").WebList("Certified").GetROProperty("all items")="No;Yes" ThenReporter.ReportEvent micPass,"Step 10:Verificati

    on that the items present under the 'Certified' drop down","Certified is presentwith No;Yes"

    ElseReporter.ReportEvent micFail,"Step 10:Verificati

    on that the items present under the 'Certified' drop down","Certified is present

    with No;Yes"Call captureScreenshot()Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="True"

    End If

    'Step 11Call select_Combo_Value("CorporateActions","Corporate Action Typ

    e Maintenance","EventDateUse",Datatable.Value("NewEventDateUse","CAType"))Call click_Image("CorporateActions","Corporate Action Type Maint

    enance","SaveProfile")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 8: Set 'EventDate use' to 'Payment Date' and click on 'Save' button.","Payment Date' shouldbe selected as 'Event Date Use'.."

    ElseReporter.ReportEvent micFail,"Step 8: Set 'Event

    Date use' to 'Payment Date' and click on 'Save' button.","Payment Date' shouldbe selected as 'Event Date Use'.."

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

    'Step 12Call select_Menu("CorporateActions","Corporate Action Type Maint

    enance","PROFILE;Upload Notification")

    Call Select_Combo_Value("CorporateActions","Profile - Upload Notification","TargetDocument","Underlying Corporate Action Notification")

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

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    13/20

    ).WebFile("UploadFile").Set(Datatable.Value("UploadFile","CAType"))Call set_webEdit_Value("CorporateActions","Profile - Upload Noti

    fication","IssuerName","Glaxo")Call click_Image("CorporateActions","Profile - Upload Notificati

    on","UnderlyingSecurity")strUSValue=Browser("CorporateActions").Page("Profile - Upload No

    tification").Frame("lookupFrame").WebTable("FrameTable").GetCellData(2,3)

    Browser("CorporateActions").Page("Profile - Upload Notification").Frame("lookupFrame").WebElement("html tag:=TD","innertext:="&strUSValue).click

    Call click_Image("CorporateActions","Profile - Upload Notification","CorporateActionType")

    Browser("CorporateActions").Page("Profile - Upload Notification").Frame("lookupFrame").WebElement("html tag:=TD","innertext:=Cash Dividend").click

    Call click_Image("CorporateActions","Profile - Upload Notification","Save")

    If Browser("CorporateActions").Page("Profile - Upload Notification").WebTable("Validation Error").GetCellData(2,2)=Datatable.Value("NewEventDateUse","CAType") Then

    Reporter.ReportEvent micPass,"Verification in Validation Error","Err Msg showing" &Datatable.Value("NewEventDateUse","CAType")Call click_Image("CorporateActions","Profile - U

    pload Notification","Close")Else

    Reporter.ReportEvent micFail,"Verification in Validation Error","Err Msg Not showing "&Datatable.Value("NewEventDateUse","CAType")

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

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

    Reporter.ReportEvent micPass,"Step 12: Checkingfor the validation error field","Validation error message pop's up saying 'Payment Date' field should be filled."

    ElseReporter.ReportEvent micFail,"Step 12: Checking

    for the validation error field","Validation error message pop's up saying 'Payment Date' field should be filled."

    Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Profile - Upload Notificati

    on","Home;DR Home")

    End Function'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Public Function CAAdminCAType_TC7()

    'Step 1Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab

    le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser"))

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

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

    Call select_Menu("CorporateActions","CorporateActions",Datatable

    .Value("MenuPath","CAType"))

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    14/20

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    15/20

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    16/20

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    17/20

    'Step 5Call select_Menu("CorporateActions","Corporate Action Type Maint

    enance","PROFILE;Upload Notification")Call Select_Combo_Value("CorporateActions","Profile - Upload Not

    ification","TargetDocument","Underlying Corporate Action Notification")Browser("CorporateActions").Page("Profile - Upload Notification"

    ).WebFile("UploadFile").Set(Datatable.Value("UploadFile","CAType"))

    Call click_Image("CorporateActions","Profile - Upload Notification","CorporateActionType")

    If Browser("CorporateActions").Page("Profile - Upload Notification").Frame("lookupFrame").WebElement("html tag:=TD","innertext:="&Datatable.Value("NewCATypeCode","CAType")).exist Then

    Reporter.ReportEvent micFail,"Verification for New CA Type After changing to Inactive","New CA Type "&Datatable.Value("NewCATypeCode","CAType")&" is Still present in the List"

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

    Else Reporter.ReportEvent micPass,"Verification for New CA Type After changing to Inactive","New CA Type "&Datatable.Value("NewCATypeCode","CAType")&" is Not present in the List"

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

    Reporter.ReportEvent micPass,"Step 5: Navigate to upload notification page and click on '?' corresponding to 'Corporate Action Type'.","'WIPT' should not be displayed under 'Corporate Action Type' list."

    ElseReporter.ReportEvent micFail,"Step 5: Navigate t

    o upload notification page and click on '?' corresponding to 'Corporate Action Type'.","'WIPT' should not be displayed under 'Corporate Action Type' list."

    Environment.Value("TestCase_Log")="True"End IfCall select_Menu("CorporateActions","Profile - Upload Notificati

    on","Home;DR Home")

    End Function'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Public Function CAAdminCAType_TC9()

    'Step 1Call chkADRHomePage("MasterFile","Depositary Receipt Division's"

    ,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser"))

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

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

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

    Call pageCheck_CAAdminCAType("CorporateActions","Administration- Corporate Action Type Search")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Under 'ADM

    INISTRATION' menu select 'Corporate Action Type'. ","'Administration - CorporateAction Type' Search page opens successfully."

    Else

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    18/20

    Reporter.ReportEvent micFail,"Step 1: Under 'ADMINISTRATION' menu select 'Corporate Action Type'. ","'Administration - CorporateAction Type' Search page opens successfully."

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

    'Step 2

    Call CAAdminCATypeSearch("CorporateActions","Administration - Corporate Action Type Search")

    Call CAAdminCATypeSearchResultVerification("CorporateActions","Administration - Corporate Action Type Search")

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

    Corporate Action Type with 'Corporate Action Type Code' as 'WIPT' ","Result populated."

    ElseReporter.ReportEvent micFail,"Step 2: Search for

    Corporate Action Type with 'Corporate Action Type Code' as 'WIPT' ","Result populated."

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

    'Step 3strCATypeCode=Browser("CorporateActions").Page("Administration -

    Corporate Action Type Search").WebTable("CATypeSearchResults").GetCellData(3,2)Browser("CorporateActions").Page("Administration - Corporate Act

    ion Type Search").webElement("html tag:=TD","innertext:="&strCATypeCode).clickCall pageCheck_webEditOR("CorporateActions","Corporate Action Ty

    pe Maintenance","CATypeCode;CAType;CATypeDescription")Call pageCheck_webListOR("CorporateActions","Corporate Action Ty

    pe Maintenance","EventDateUse;Status;Certified")Call pageCheck_webElementinTable("CorporateActions","Corporate A

    ction Type Maintenance","Assigned to User Groups;Department Name","AssignedtoUserGroups")

    Call pageCheck_ImageOR("CorporateActions","Corporate Action TypeMaintenance","SaveProfile;DeleteProfile")

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

    ink 'WIPT'","Corporate Action Type Maintenance page opens successfully'."Else

    Reporter.ReportEvent micFail,"Step 3: Click on link 'WIPT'","Corporate Action Type Maintenance page opens successfully'."

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

    'Step 4Call select_Combo_Value("CorporateActions","Corporate Action Typ

    e Maintenance","Certified",Datatable.Value("NewCertified","CAType"))Call click_Image("CorporateActions","Corporate Action Type Maint

    enance","SaveProfile")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 4: Change 'Certified' from 'Yes' to 'No' and click on 'Save","Certified dropdown for 'WIPT' Corporate Action should be changed to 'No'."

    ElseReporter.ReportEvent micFail,"Step 4: Change 'Ce

    rtified' from 'Yes' to 'No' and click on 'Save","Certified dropdown for 'WIPT' C

    orporate Action should be changed to 'No'."Environment.Value("TestCase_Log")="True"

    End If

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    19/20

    'Step 5Call select_Menu("CorporateActions","Corporate Action Type Maint

    enance","Home;DR Home")

    End Function'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    ++++++++++++++++++++++++++++++++++++++++++++++++++Public Function CAAdminCAType_TC10()

    'Step 1Call chkADRHomePage("MasterFile","Depositary Receipt Division's"

    ,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser"))

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

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

    Call select_Menu("CorporateActions","CorporateActions",Datatable.Value("

    MenuPath","CAType"))Call pageCheck_CAAdminCAType("CorporateActions","Administration- Corporate Action Type Search")

    If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 1: Under 'ADM

    INISTRATION' menu select 'Corporate Action Type'. ","'Administration - CorporateAction Type' Search page opens successfully."

    ElseReporter.ReportEvent micFail,"Step 1: Under 'ADM

    INISTRATION' menu select 'Corporate Action Type'. ","'Administration - CorporateAction Type' Search page opens successfully."

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

    'Step 2Call CAAdminCATypeSearch("CorporateActions","Administration - Co

    rporate Action Type Search")Call CAAdminCATypeSearchResultVerification("CorporateActions","A

    dministration - Corporate Action Type Search")If Environment.Value("TestCase_Log")="True" Then

    Reporter.ReportEvent micPass,"Step 2: Search forCorporate Action Type with 'Corporate Action Type Code' as 'WIPT' ","Result populated."

    ElseReporter.ReportEvent micFail,"Step 2: Search for

    Corporate Action Type with 'Corporate Action Type Code' as 'WIPT' ","Result populated."

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

    'Step 3strCATypeCode=Browser("CorporateActions").Page("Administration -

    Corporate Action Type Search").WebTable("CATypeSearchResults").GetCellData(3,2)Browser("CorporateActions").Page("Administration - Corporate Act

    ion Type Search").webElement("html tag:=TD","innertext:="&strCATypeCode).clickCall pageCheck_webEditOR("CorporateActions","Corporate Action Ty

    pe Maintenance","CATypeCode;CAType;CATypeDescription")Call pageCheck_webListOR("CorporateActions","Corporate Action Ty

    pe Maintenance","EventDateUse;Status;Certified")Call pageCheck_webElementinTable("CorporateActions","Corporate A

    ction Type Maintenance","Assigned to User Groups;Department Name","AssignedtoUse

  • 8/7/2019 ADRCA_AdministrationCorporateActionsType

    20/20