144
'=============================================================================== ========================== ' Name of the Script : Corporate Actions Profile Und erlying Event ' Scope of the Script : This test script covers 18 te st cases related to the CA Profile --> Underlying event ' Author : Ganesh Viswanathan ' Description : Corporate Actions Profile Und erlying Event ' Date and / or Version : 21-11-2008,version 1.0 '=============================================================================== ============================ Sub CAProfileUnderlyingEvent() '****Declaration of Environmental Variable Environment.Value("Execution_Log")="True" '''''''''Test case count Const TC_COUNT = 27 strVar = Environment("TestDir") strIndVar = Split(strVar,"\",-1,1) strBound = UBound(strIndVar) strAllPath ="" For intPathCounter = 0 to strBound - 1 strAllPath = strAllPath & strIndVar(intPathCount er) &"\" Next strPath = Trim(strPath) strDataPath = strAllPath & "DataTables\" strLibPath = strAllPath & "Function_Library\" '****Adding MFLogin sheet to the DataTable and Importing the Inp ut DataTable DataTable.AddSheet "CALogin" DataTable.ImportSheet strDataPath & "Login.xls","CALogin","CALog in" DataTable.AddSheet "UnderlyingEvent" DataTable.ImportSheet strDataPath & "CorporateActionsProfile.xls ","UnderlyingEvent","UnderlyingEvent" DataTable.AddSheet "ReportHeader" DataTable.ImportSheet strDataPath & "CorporateActionsProfile.xls ","ReportHeader","ReportHeader" DataTable.AddSheet "HomePageVerification" DataTable.ImportSheet strDataPath & "CorporateActionsProfile.xls ","HomePageVerification","HomePageVerification" Environment.Value("strSheetName")="UnderlyingEvent" ' Logs the Scenario name Execution in a .csv file Call Execution_log(DataTable.Value("Scenario_Name", "Master"), " ", "", "") '****Invoking IE and navigating to the ADR Login page DataTable.GetSheet("CALogin").SetCurrentRow(1) Call invoke_URL("CorporateActions","Login Page",DataTable.Value( "URL","CALogin")) '****Checking the username, password and login objects in the lo gin page Call pageCheck_WebEdit("CorporateActions","Login Page","username ;j_password","") Call pageCheck_WebButton("CorporateActions","Login Page","Login"

ADRCA_ProfileUnderlyingEvent

  • Upload
    imaarha

  • View
    217

  • Download
    0

Embed Size (px)

Citation preview

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 1/144

'=========================================================================================================' Name of the Script : Corporate Actions Profile Underlying Event' Scope of the Script : This test script covers 18 test cases related to the CA Profile --> Underlying event' Author

: Ganesh Viswanathan' Description : Corporate Actions Profile Underlying Event' Date and / or Version : 21-11-2008,version 1.0'===========================================================================================================Sub CAProfileUnderlyingEvent()

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

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

Const TC_COUNT = 27strVar = Environment("TestDir")strIndVar = Split(strVar,"\",-1,1)strBound = UBound(strIndVar)strAllPath =""For intPathCounter = 0 to strBound - 1

strAllPath = strAllPath & strIndVar(intPathCounter) &"\"

NextstrPath = Trim(strPath)strDataPath = strAllPath & "DataTables\"strLibPath = strAllPath & "Function_Library\"'****Adding MFLogin sheet to the DataTable and Importing the Inp

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

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

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

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

","HomePageVerification","HomePageVerification"Environment.Value("strSheetName")="UnderlyingEvent"' 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(

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 2/144

,"")

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

Call login("CorporateActions","Login Page","User","CALogin")

Environment.Value("DataTable_ROW")=1DataTable.GetSheet("UnderlyingEvent").SetCurrentRow(Environment.

Value("DataTable_ROW"))

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

For intTCCount = 1 to TC_COUNT

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

''If run flag is Y in test data table

Reporter.ReportEvent micDone,"######## BEGIN TEST CASE - '" & DataTable("TestCaseID","UnderlyingEvent") & "' ########### ","Execution of Test Case '" & DataTable("TestCaseDesc","UnderlyingEvent") & "' Started"

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

''Call FunctionExecute "Call " & strFuncName

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

Call Execution_log("",DataTable.Value("TestCaseID", "UnderlyingEvent"), DataTable.Value("TestCaseDesc", "Underly

ingEvent"), "PASS")Else

Call Execution_log("",DataTable.Value("TestCaseID", "UnderlyingEvent"), DataTable.Value("TestCaseDesc", "UnderlyingEvent"), "FAIL")

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

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

End If

'Checking AND incrementing the DataTablestrPrevious=Trim(DataTable.Value("TestCaseID","Underlyin

gEvent"))

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

("DataTable_ROW") + 1DataTable.GetSheet("UnderlyingEvent").SetCurrentRow(E

nvironment.Value("DataTable_ROW"))strNext=Trim(DataTable.Value("TestCaseID","Underlying

Event"))While strPrevious = strNext And strPrevious<> ""

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

DataTable.GetSheet("UnderlyingEvent").SetCurrentRow(Environment.Value("DataTable_ROW"))

strNext=Trim(DataTable.Value("TestCaseID

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 3/144

","UnderlyingEvent"))Wend

Next

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

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

'**********************************************Test Case 1 to Test Case 27**************************************************Public Function CAProfileUnderlyingEvent_TC1()

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

'#Step1

'Navigate to DR Home page after successful login.Call chkADRHomePage("CorporateActions","Depositary Receipt Division's",DataTable.Value("HomePageLinks","HomePageVerification"),DataTable.Value ("UserFullName","CALogin"))

If Environment.Value("TestCase_Log") = "True"ThenReporter.ReportEvent micPass,"St

ep 1: Check for DR Home Page","The Required Links and the User Details are displayed Successfully"

ElseReporter.ReportEvent micFail,"St

ep 1: Check for DR Home Page","The Required Links and the User Details are NOT displayed Successfully"

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

End If

'#Step2'Click on Corporate Actions in DR Home page.Call click_WebElement("CorporateActions","Depositary Receipt Division's

","CorporateActions")Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Val

ue("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))

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

Actions in DR Home page.","Successfully verified the home page menus - " & DataTable.Value("MenuName","HomePageVerification")

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

Actions in DR Home page.","The menus - '" & DataTable.Value("MenuName","HomePageVerification") & "' are not displayed"

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

'#Step3'Under Profile menu select 'Underlying Event'.

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 4/144

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 5/144

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

'Step4'Keep the default values of all fields and press 'Enter' key.

Browser("CorporateActions").Page("Profile - Underlying Event Sea

rch").Image("Search").ClickCall chkEventSearchReportHeader("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent")If Browser("CorporateActions").Page("Profile - Underlying Event

Search").WebTable("Item").RowCount>=3 thenReporter.ReportEvent micPass,"Check whether the search r

esults have populated","The search results have populated as required"Else

Reporter.ReportEvent micFail,"Check whether the search results have populated","The search Results have not populated as required"

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

End ifIf Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 4: Keep the d

efault values of all fields and press 'Enter' key.","Underlying Event Search page is refreshed and Underlying Event Search Results is having all the values "

ElseReporter.ReportEvent micFail,"Step 4: Keep the

default values of all fields and press 'Enter' key..","Underlying Event Search Results is not having all the required values "

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

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

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step5: Click on the Home DR home

link","The DR Home page should be displayed"Else

Reporter.ReportEvent micFail,"Step5: Click on the Home DR homelink","The DR home page is displayed as required"

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

End Function

'***************************************************************************************************************************************************

Public Function CAProfileUnderlyingEvent_TC2()

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

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click'#Step1'Under Profile menu select 'Underlying Event'.

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 6/144

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance ofthe search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the existance of

the search by table","The search by table is not present as required"

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

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - Underlyin

g Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Underlying Event Search","Clear;Search","")

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").Image("CorporateActionInfo").exist(2) then

Reporter.ReportEvent micPass,"Check for the ? icon nextto the Corporate action type Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the Corporate action type Edit box","The ? Mark icon does not exist as required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event

Search").Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? ic

on next to the ISIN Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? icon next

to the ISIN Edit box","The ? Mark icon does not exist as required"Call captureScreenshot()

Environment.Value("Execution_Log")="False"End ifIf Browser("CorporateActions").Page("Profile - Underlying Event

Search").Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? ic

on next to the Underlying security Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? icon next

to the Underlying security Edit box","The ? Mark icon does not exist as required"

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent")

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

rts menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: Under Rep

orts menu select Underlying Event..","Expected fields are not displayed in searc

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 7/144

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

End If

'Step2'Verifying the items under Processing status

 Call ReadallValuesWebListUnderlyingEvent("CorporateActions","Profile - U

nderlying Event Search","ProcessingStatus","AllItemsInProcessingStatus","UnderlyingEvent")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step2:Checking for the values unde

r the Processing status list box", "The value present in the Processing status weblist is found to be correct"

ElseReporter.ReportEvent micFail,"Step2:Checking for the values unde

r the Processing status list box", "The value present in the Processing status w

eblist is not found to be correct"Environment.Value("TestCase_Log")="True"End If

'Step3'Checking for the default value of the Processing status list box

Temp=get_WebList_Value("CorporateActions","Profile - Underlying Event Search","ProcessingStatus")

If instr(1,Temp,"All") ThenReporter.ReportEvent micPass,"St

ep3:Default Value of Processing Status is Displayed Correctly","As- All"

ElseReporter.ReportEvent micFail,"St

ep3:Default Value of Processing Status is Not Displayed Correctly","As - "&get_WebList_Value("CorporateActions","Profile - Underlying Event Search","ProcessingStatus")

Call captureScreenshot()Environment.Value("Execution_Log

")="False"End If

'Step4'Select an underlying search criteria and search then open one of the results to check if its correct as expected

Call chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Underlying Event Search","")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Check for the fields of the sear

ch criteria","The search criteria is as required"Else

Reporter.ReportEvent micFail,"Check for the fields of the search criteria","The search criteria is not as required"

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

'Click on searchBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 8/144

age("Search").Click

'Checking if the required values are present in search results or notCall chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","Processing Status")

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

Reporter.ReportEvent micPass,"Step5:Select 'Processing Status-Approved' based on which Underlying Event has to be searched and click on search", "All the notifications with 'Processing status' as 'Approved' are listed under the 'Underlying Event Search Results' table in 'Profile - Underlying Event Search' page."

ElseReporter.ReportEvent micFail,"Step5:Select 'Processing Status-A

pproved' based on which Underlying Event has to be searched and click on search", "All the notifications with 'Processing status' as 'Approved' are not listed under the 'Underlying Event Search Results' table in 'Profile - Underlying EventSearch' page."

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

End If

'Step6'Clicking on any result value

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

NextEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)

Browser("CorporateActions").Page("Profile - Underlying Event Search").WebElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The Underlying event page appears as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The Underlying event page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=Browser("CorporateActions").Page("UnderlyingEvent").WebList("ProcessingStatus").GetROProperty("selection")

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) And Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Approved" Then

Reporter.ReportEvent micPass,"Step 6:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step6:Click on any link under 'Eve

nt Name' and verify whether the Underlying event page opens or not","The underlying event page does not opens up"

Call captureScreenshot()

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 9/144

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

'Incrementing the DataTableEnvironment.Value("DataTable_ROW") = Environment.Value("DataTable_ROW")

+ 1

DataTable.GetSheet("UnderlyingEvent").SetCurrentRow(Environment.Value("DataTable_ROW"))

'Step7'Click on the Underlying events from profile underlying events

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

If Environment.Value("TestCase_Log")="True" thenReporter.ReportEvent micPass,"Step7: Click on the Profile->Under

lying Events","Profile underlying event search profile opens up"

Else Reporter.ReportEvent micFail,"Step7:Click on the Profile->Underlying Events","Profile underlying event search profile does not open up"

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

'Step8'Select an underlying search criteria and search then open one of the results to check if its correct as expected

Call chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Underlying Event Search","")

'Click on searchBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Search").Click

'Checking if the required values are present in search results or notCall chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","Processing Status")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step8:Select 'Processing Status-C

ancelled' based on which Underlying Event has to be searched and click on search", "All the notifications with 'Processing status' as 'Cancelled' are listed under the 'Underlying Event Search Results' table in 'Profile - Underlying Event Search' page."

ElseReporter.ReportEvent micFail,"Step8:Select 'Processing Status-C

ancelled' based on which Underlying Event has to be searched and click on search", "All the notifications with 'Processing status' as 'Cancelled' are not listedunder the 'Underlying Event Search Results' table in 'Profile - Underlying Event Search' page."

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

'Step9'Clicking on any result value

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 10/144

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").RowCount<=2Then

Reporter.ReportEvent micPass,"Step8: View the results after clicking on search and opening a search result"," No Records are displayed for thissearch criteria, so the event cannot be selected"

Boolean_flag_Result=FalseCall select_Menu("CorporateActions","Profile - Underlying Event

Search",DataTable.Value("MenuPath","UnderlyingEvent"))Else

boolean_flag_Result=trueFor colcounter1=1 to Browser("CorporateActions").Page("Profile -

Underlying Event Search").WebTable("Item").ColumnCount(2)If Browser("CorporateActions").Page("Profile - Underlying Event

Search").WebTable("Item").GetCellData(2,colcounter1)="Event Name" ThenExit for

End IfNext

EventName=Browser("CorporateActions").Page("Profile - Underlying

Event Search").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").WebElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2)

ThenReporter.ReportEvent micPass," Under Event Name click on

any link","The UnderlyingEvent page opens as required"Else

Reporter.ReportEvent micFail," Under Event Name click onany link","The UnderlyingEvent page does not open up as required"

Call captureScreenshot()

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

PageProcessingStatus=Browser("CorporateActions").Page("UnderlyingEvent").WebList("ProcessingStatus").GetROProperty("selection")

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2)and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Cancelled" Then

Reporter.ReportEvent micPass,"Step 9:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step9:Click on any link un

der 'Event Name' and verify whether the Underlying event page opens or not","Theunderlying event page does not opens up"

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

End IfEnd If

'Incrementing the DataTableEnvironment.Value("DataTable_ROW") = Environment.Value("DataTable_ROW")

+ 1

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 11/144

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 12/144

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

NextEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)

Browser("CorporateActions").Page("Profile - Underlying Event Search").WebElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=Browser("CorporateActions").Page("UnderlyingEvent").WebList("ProcessingStatus").GetROProperty("selection")

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="No Action Needed" Then

Reporter.ReportEvent micPass,"Step 12:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step 12:Click on any link under 'E

vent Name' and verify whether the Underlying event page opens or not","The underlying event page does not opens up"

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

End If

'Incrementing the DataTableEnvironment.Value("DataTable_ROW") = Environment.Value("DataTable_ROW")

+ 1DataTable.GetSheet("UnderlyingEvent").SetCurrentRow(Environment.Value("D

ataTable_ROW"))

'Step13'Click on the Underlying events from profile underlying events

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

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

Reporter.ReportEvent micPass,"Step13: Click on the Profile->Underlying Events","Profile underlying event search profile opens up"

Else

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 13/144

Reporter.ReportEvent micFail,"Step13: Click on the Profile->Underlying Events","Profile underlying event search profile does not open up"

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

'Step14'Select an underlying search criteria and search then open one of the results to check if its correct as expected

Call chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Underlying Event Search","")

'Click on searchBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Search").Click

'Checking if the required values are present in search results or notCall chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","Processing Status")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step14:Select 'Processing Status-

Pending' based on which Underlying Event has to be searched and click on search", "All the notifications with 'Processing status' as 'Pending' are listed underthe 'Underlying Event Search Results' table in 'Profile - Underlying Event Search' page."

Else

Reporter.ReportEvent micFail,"Step14:Select 'Processing Status-Pending' based on which Underlying Event has to be searched and click on search", "All the notifications with 'Processing status' as 'Pending' are not listed under the 'Underlying Event Search Results' table in 'Profile - Underlying Event Search' page."

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

'Step15'Clicking on any result value

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

NextEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any lin

k","The UnderlyingEvent page opens as required"Else

Reporter.ReportEvent micFail," Under Event Name click on any lin

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 14/144

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 15/144

'Checking if the required values are present in search results or notCall chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","Own")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step17:Select 'Processing Status-

Rejected' based on which Underlying Event has to be searched and click on search

", "All the notifications with 'Processing status' as 'Rejected' are listed under the 'Underlying Event Search Results' table in 'Profile - Underlying Event Search' page."

ElseReporter.ReportEvent micFail,"Step17:Select 'Processing Status-

Rejected' based on which Underlying Event has to be searched and click on search", "All the notifications with 'Processing status' as 'Rejected' are not listedunder the 'Underlying Event Search Results' table in 'Profile - Underlying EventSearch' page."

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

'Step18'Clicking on any result valueIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).WebTable("Item").RowCount<=2ThenReporter.ReportEvent micPass,"Step18: View the results after cli

cking on search and opening a search result"," No Records are displayed for thissearch criteria, so the event cannot be selected"

Boolean_flag_Result=FalseCall select_Menu("CorporateActions","Profile - Underlying Event

Search",DataTable.Value("MenuPath","UnderlyingEvent"))Else

Boolean_flag_Result=trueFor colcounter1=1 to Browser("CorporateActions").Page("Profile - Underly

ing Event Search").WebTable("Item").ColumnCount(2)If Browser("CorporateActions").Page("Profile - Underlying Event

Search").WebTable("Item").GetCellData(2,colcounter1)="Event Name" ThenExit for

End IfNext

EventName=Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").GetCellData(3,colcounter1)

Browser("CorporateActions").Page("Profile - Underlying Event Search").WebElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=Browser("CorporateActions").Page("UnderlyingEvent").WebList("ProcessingStatus").GetROProperty("selection")

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEvent

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 16/144

Details").Exist(2) and PageProcessingStatus="Rejected" ThenReporter.ReportEvent micPass,"Step 18:Click on any link under 'E

vent Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step18:Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underl

ying event page does not opens up"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End IfEnd If

'Incrementing the DataTableEnvironment.Value("DataTable_ROW") = Environment.Value("DataTable_ROW")

+ 1DataTable.GetSheet("UnderlyingEvent").SetCurrentRow(Environment.Value("D

ataTable_ROW"))

'Step19'Click on the Underlying events from profile underlying events

'Click on the Underlying events from profile underlying eventsIf Boolean_flag_Result Then

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

ElseCall select_Menu("CorporateActions","Profile - Underlying Event

Search",DataTable.Value("MenuPath","UnderlyingEvent"))End If

If Environment.Value("TestCase_Log")="True" thenReporter.ReportEvent micPass,"Step19: Click on the Profile->Unde

rlying Events","Profile underlying event search profile opens up"Else

Reporter.ReportEvent micFail,"Step19: Click on the Profile->Underlying Events","Profile underlying event search profile does not open up"

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

'Step20'Select an underlying search criteria and search then open one of the results to check if its correct as expected

Call chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Underlying Event Search","")

'Click on searchBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Search").Click

'Checking if the required values are present in search results or notCall chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","Processing Status")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step20:Select 'Processing Status-

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 17/144

Unapproved' based on which Underlying Event has to be searched and click on search", "All the notifications with 'Processing status' as 'Unapproved' are listedunder the 'Underlying Event Search Results' table in 'Profile - Underlying Event Search' page."

ElseReporter.ReportEvent micFail,"Step20:Select 'Processing Status-

Unapproved' based on which Underlying Event has to be searched and click on sear

ch", "All the notifications with 'Processing status' as 'Unapproved' are not listed under the 'Underlying Event Search Results' table in 'Profile - Underlying Event Search' page."

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

'Step21'Clicking on any result valueBoolean_flag_Result ="True"If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").RowCount < 3 Then

Reporter.ReportEvent micPass,"Check for the Underlying Notification sear

ch results","There are no results available for this search criteria"Boolean_flag_Result ="False"Else

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

NextEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").ClickEnd If

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=Browser("CorporateActions").Page("UnderlyingEvent").WebList("ProcessingStatus").GetROProperty("selection")

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Unapproved" Then

Reporter.ReportEvent micPass,"Step 21:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step 21:Click on any link under 'E

vent Name' and verify whether the Underlying event page opens or not","The under

lying event page does not opens up"Call captureScreenshot()Environment.Value("Execution_Log")="False"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 18/144

End If

If Boolean_flag_Result ="True" ThenCall select_Menu("CorporateActions","UnderlyingEvent",DataTable.

Value("MenuPath","UnderlyingEvent"))Else

Call select_Menu("CorporateActions","Profile - Underlying EventSearch",DataTable.Value("MenuPath","UnderlyingEvent"))

End If

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step22: Click on the Home DR hom

e link","The DR Home page should be displayed"Else

Reporter.ReportEvent micFail,"Step22: Click on the Home DR homelink","The DR home page is displayed as required"

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

End function

'**********************************************************************************************************************************************************Public Function CAProfileUnderlyingEvent_TC3()

Environment.Value ("TestCase_Log")="True"Call logoutfromApp("CorporateActions","Depositary Receipt Division's")

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

Call login("CorporateActions","Login Page","Developer","CALogin")'

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

'#Step1'Under Profile menu select 'Underlying Event'.Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("

MenuPath","UnderlyingEvent"))

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Underlying Event Search","Clear;Search","")

If Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("CorporateActionInfo").exist(2) thenReporter.ReportEvent micPass,"Check for the ? ic

on next to the Corporate action type Edit box","The ? Mark icon exists as requir

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 19/144

ed"Else

Reporter.ReportEvent micFail,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the ISIN Edit box","The ? Mark icon does not exist as required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon nextto the Underlying security Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? icon next

to the Underlying security Edit box","The ? Mark icon does not exist as required"

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

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

der Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: U

nder Reports menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

'Step2Browser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").ClickCall chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Und

erlying Event Search","")Browser("CorporateActions").Page("Profile - Underlying Event Search").Image(

"Search").Click'Check the header for the reports

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step2: Enter the required search

criteria and click on search","The search results are displayed correctly"

ElseReporter.ReportEvent micFail ,"Step2: Enter the required search

criteria and click on search","The search results are not displayed correctly"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 20/144

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

'Step3'Clicking on any result value

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").RowCount < 3 Then

Reporter.ReportEvent micPass,"Check for the Underlying Notification search results","There are no results available for this search criteria"

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

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

Next

EventName=Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").ClickEnd If

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()

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

PageProcessingStatus=Browser("CorporateActions").Page("UnderlyingEvent").WebList("ProcessingStatus").GetROProperty("selection")

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Approved" Then

Reporter.ReportEvent micPass,"Step3: Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step3: Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underlying event page does not opens up"

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

End If

'Step4Call chkWebEditReadOnly("CorporateActions","Underlying Event","Corporate

ActionEvent;ISIN","ReadOnly")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step4: Check whether the corpora

te action event and ISIN fields are grayed out in the application","The Fields a

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 21/144

re grayed out as necessary"Else

Reporter.ReportEvent micFail ,"Step4: Check whether the corporate action event and ISIN fields are grayed out in the application","The fields are not grayed out as required"

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

'Step5Call select_Menu("CorporateActions","Profile - Underlying Event Search",

"Home;DR Home")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step5: Click on the DR Home link","The DR home page is displayed"

ElseReporter.ReportEvent micFail ,"Step5 : Click on the DR Home lin

k","The DR home page is not displayed"Environment.Value("TestCase_Log")="True"

End If

End Function

'*************************************************************************************************************************************************************************

Public Function CAProfileUnderlyingEvent_TC4()

Environment.Value ("TestCase_Log")="True"Call logoutfromApp("CorporateActions","Depositary Receipt Division's")

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

ALogin"))Call login("CorporateActions","Login Page","Inquiry","CALogin")

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

'#Step1'Under Profile menu select 'Underlying Event'.Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("

MenuPath","UnderlyingEvent"))

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Underlying Event Search","Clear;Search","")

If Browser("CorporateActions").Page("Profile - Underlying Event Search"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 22/144

).Image("CorporateActionInfo").exist(2) thenReporter.ReportEvent micPass,"Check for the ? ic

on next to the Corporate action type Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Corporate action type Edit box","The ? Mark icon does not exist

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the ISIN Edit box","The ? Mark icon does not exist as required"

Call captureScreenshot()

Environment.Value("Execution_Log")="False"End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the Underlying security Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the Underlying security Edit box","The ? Mark icon does not exist as required"

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

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

der Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: U

nder Reports menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

'Step2Browser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").ClickCall chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Und

erlying Event Search","")Browser("CorporateActions").Page("Profile - Underlying Event Search").Image(

"Search").Click'Check the header for the reports

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step2: Enter the required search

criteria and click on search","The search results are displayed correctly"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 23/144

ElseReporter.ReportEvent micFail ,"Step2: Enter the required search

criteria and click on search","The search results are not displayed correctly"Environment.Value("TestCase_Log")="True"

End If

'Step3

'Clicking on any result valueIf Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").RowCount < 3 Then

Reporter.ReportEvent micPass,"Check for the Underlying Notification search results","There are no results available for this search criteria"

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

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd IfNextEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").ClickEnd If

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

Else

Reporter.ReportEvent micFail," Under Event Name click on any link","The UnderlyingEvent page does not open up as required"

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

End If

PageProcessingStatus=Browser("CorporateActions").Page("UnderlyingEvent").WebList("ProcessingStatus").GetROProperty("selection")

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Approved" Then

Reporter.ReportEvent micPass,"Step3: Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step3: Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underlying event page does not opens up"

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

End If

'Step4

Call chkWebEditReadOnly("CorporateActions","Underlying Event","CorporateActionEvent;ISIN","ReadOnly")

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 24/144

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step4: Check whether the corpora

te action event and ISIN fields are grayed out in the application","The Fields are grayed out as necessary"

ElseReporter.ReportEvent micFail ,"Step4: Check whether the corpora

te action event and ISIN fields are grayed out in the application","The fields a

re not grayed out as required"Environment.Value("TestCase_Log")="True"

End If

'Step5Call select_Menu("CorporateActions","Profile - Underlying Event Search",

"Home;DR Home")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step5: Click on the DR Home link","The DR home page is displayed"

ElseReporter.ReportEvent micFail ,"Step5 : Click on the DR Home lin

k","The DR home page is not displayed"Environment.Value("TestCase_Log")="True"End If

End Function'***************************************************************************************************************************************************************Public Function CAProfileUnderlyingEvent_TC5()

Environment.Value ("TestCase_Log")="True"Call logoutfromApp("CorporateActions","Depositary Receipt Division's")

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

ALogin"))Call login("CorporateActions","Login Page","Admin","CALogin")

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))

If Environment.Value ("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Check the CA Home page","The CA

Home page had loaded as required"Else

Reporter.ReportEvent micFail ,"Check the CA Home page","The CA Home page has not loaded as required"

Environment.Value ("TestCase_Log")="True"End If'#Step1'Under Profile menu select 'Underlying Event'.Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("

MenuPath","UnderlyingEvent"))

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the exis

tance of the search by table","The search by table is present as required"Else

Reporter.ReportEvent micFail,"Check fot the exis

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 25/144

tance of the search by table","The search by table is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End if

Call pageCheck_WebEditOR("CorporateActions","Profile - Underlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;Recieved

DateRangeTo;UnderlyingSecurityName;EventName")Call pageCheck_WebListOR("CorporateActions","Profile - U

nderlying Event Search","ProcessingStatus;Owner")Call pageCheck_Image("CorporateActions","Profile - Under

lying Event Search","Clear;Search","")If Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("CorporateActionInfo").exist(2) thenReporter.ReportEvent micPass,"Check for the ? ic

on next to the Corporate action type Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Corporate action type Edit box","The ? Mark icon does not existas required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the ISIN Edit box","The ? Mark icon does not exist as required"

Call captureScreenshot()

Environment.Value("Execution_Log")="False"End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the Underlying security Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the Underlying security Edit box","The ? Mark icon does not exist as required"

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

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

der Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: U

nder Reports menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

End If

'Step2

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 26/144

Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("Clear").Click

Call chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Underlying Event Search","")

Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("Search").Click

'Check the header for the reports

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step2: Enter the required search

criteria and click on search","The search results are displayed correctly"Else

Reporter.ReportEvent micFail ,"Step2: Enter the required searchcriteria and click on search","The search results are not displayed correctly"

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

'Step3'Clicking on any result valueIf Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").RowCount < 3 Then

Reporter.ReportEvent micPass,"Check for the Underlying Notification search results","There are no results available for this search criteria"

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

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

NextEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").ClickEnd If

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=Browser("CorporateActions").Page("UnderlyingEvent").WebList("ProcessingStatus").GetROProperty("selection")

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Approved" Then

Reporter.ReportEvent micPass,"Step3: Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 27/144

ElseReporter.ReportEvent micFail,"Step3: Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underlying event page does not opens up"

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

End If

'Step4Call chkWebEditReadOnly("CorporateActions","Underlying Event","Corporate

ActionEvent;ISIN","ReadOnly")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step4: Check whether the corpora

te action event and ISIN fields are grayed out in the application","The Fields are grayed out as necessary"

ElseReporter.ReportEvent micFail ,"Step4: Check whether the corpora

te action event and ISIN fields are grayed out in the application","The fields are not grayed out as required"Environment.Value("TestCase_Log")="True"

End If

'Step5Call select_Menu("CorporateActions","Profile - Underlying Event Search",

"Home;DR Home")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step5: Click on the DR Home link","The DR home page is displayed"

ElseReporter.ReportEvent micFail ,"Step5 : Click on the DR Home lin

k","The DR home page is not displayed"Environment.Value("TestCase_Log")="True"

End If

End Function'***********************************************************************************************************************************************************

Public Function CAProfileUnderlyingEvent_TC6()

Environment.Value ("TestCase_Log")="True"Call logoutfromApp("CorporateActions","Depositary Receipt Division's")

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

Call login("CorporateActions","Login Page","ControlGroup","CALogin")

 

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin"))

If Environment.Value ("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Check the CA Home page","The CA

Home page had loaded as required"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 28/144

ElseReporter.ReportEvent micFail ,"Check the CA Home page","The CA H

ome page has not loaded as required"Environment.Value ("TestCase_Log")="True"

End If

'#Step1

'Under Profile menu select 'Underlying Event'.Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("

MenuPath","UnderlyingEvent"))

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"Call captureScreenshot()

Environment.Value("Execution_Log")="False"End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Underlying Event Search","Clear;Search","")

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("CorporateActionInfo").exist(2) then

Reporter.ReportEvent micPass,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon exists as requir

ed"Else

Reporter.ReportEvent micFail,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the ISIN Edit box","The ? Mark icon does not exist as required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the Underlying security Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the Underlying security Edit box","The ? Mark icon does not exist as require

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 29/144

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

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

der Reports menu select Underlying Event.","Expected fields are displayed in sea

rch criteria"Else

Reporter.ReportEvent micFail,"Step 1: Under Reports menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

'Step2Browser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").ClickCall chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Und

erlying Event Search","")Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("Search").Click

'Check the header for the reportsCall chkEventSearchReportHeader("CorporateActions","Profile - Underlying

Event Search","UnderlyingEvent")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step2: Enter the required search

criteria and click on search","The search results are displayed correctly"Else

Reporter.ReportEvent micFail ,"Step2: Enter the required searchcriteria and click on search","The search results are not displayed correctly"

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

'Step3'Clicking on any result value

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").RowCount < 3 Then

Reporter.ReportEvent micPass,"Check for the Underlying Notification search results","There are no results available for this search criteria"

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

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

NextEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").ClickEnd If

Wait(1)

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) ThenReporter.ReportEvent micPass," Under Event Name click on any lin

k","The UnderlyingEvent page opens as required"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 30/144

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=Browser("CorporateActions").Page("UnderlyingEvent").WebList("ProcessingStatus").GetROProperty("selection")

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) And Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) And PageProcessingStatus="Approved" Then

Reporter.ReportEvent micPass,"Step3: Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step3: Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underl

ying event page does not opens up"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

'Step4Call chkWebEditReadOnly("CorporateActions","Underlying Event","Corporate

ActionEvent;ISIN","ReadOnly")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step4: Check whether the corporate action event and ISIN fields are grayed out in the application","The Fields are grayed out as necessary"

ElseReporter.ReportEvent micFail ,"Step4: Check whether the corpora

te action event and ISIN fields are grayed out in the application","The fields are not grayed out as required"

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

'Step5Call select_Menu("CorporateActions","Profile - Underlying Event Search",

"Home;DR Home")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step5: Click on the DR Home link","The DR home page is displayed"

ElseReporter.ReportEvent micFail ,"Step5 : Click on the DR Home lin

k","The DR home page is not displayed"Environment.Value("TestCase_Log")="True"

End If

End Function

'******************************************************************************************************************************************************

Public Function CAProfileUnderlyingEvent_TC7()

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 31/144

Call logoutfromApp("CorporateActions","Depositary Receipt Division's")Call invoke_URL("CorporateActions","Login Page",DataTable.Value("URL","C

ALogin"))Call login("CorporateActions","Login Page","User","CALogin")

Browser("CorporateActions").Page("Depositary Receipt Division's").WebEle

ment("CorporateActions").clickWait(3)Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Val

ue("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))

If Environment.Value ("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Check the CA Home page","The CA

Home page had loaded as required"Else

Reporter.ReportEvent micFail ,"Check the CA Home page","The CA Home page has not loaded as required"

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

End If'#Step1'Under Profile menu select 'Underlying Event'.Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("

MenuPath","UnderlyingEvent"))

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"

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

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Underlying Event Search","Clear;Search","")

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("CorporateActionInfo").exist(2) then

Reporter.ReportEvent micPass,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon next

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 32/144

to the ISIN Edit box","The ? Mark icon does not exist as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the Underlying security Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the Underlying security Edit box","The ? Mark icon does not exist as required"

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

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

Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: U

nder Reports menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

'Step2'Clicking on the clear buttonBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").ClickEnvironment.Value("TestCase_Log")="True"'Verifying whether all the items have been cleared or notCall chkCAProfileUnderlyingEventClear("CorporateActions","Profile - Unde

rlying Event Search")If Environment.Value("TestCase_Log")="True"ThenReporter.ReportEvent micPass,"Step2: The clear button is to be clicked",

"The clear button is clicked successfully and the fields other than the defaultones present are cleared out as required"

ElseReporter.ReportEvent micFail,"Step2: The clear button is to be clicked",

"The clear button is clicked but some of the non default fields are not clearedas expected"

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

'step3'Clicking on the today button in the From date fieldCall click_Image("CorporateActions","Profile - Underlying Event Search",

"ShowCalendar")

Set objDesc1 = Description.CreateobjDesc1("micclass").Value = "WebElement"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 33/144

objDesc1("html tag").Value = "FONT"Set strObject = Browser("CorporateActions").Page("Profile - Underlying E

vent Search").frame("popCalFrame").ChildObjects(objDesc1)For i= 0 to strObject.Count-1temp = strObject(i).GetROProperty("innertext")If instr(1,temp,"Today:") ThenstrObject(i).click

End Ifnext'verifying whether the fromdate value is today's date

FromDatevalue=Browser("CorporateActions").Page("Profile - Underlying Event Search").WebEdit("RecievedDateRangeFrom").GetROProperty("value")

newFromDatevalue=cdate(FromDatevalue)If newFromDatevalue=date Then

Reporter.ReportEvent micPass,"Step3:The Today button is to be clicked in from date and checked if the current date appears","The date gets filled properly"

Else Reporter.ReportEvent micFail,"Step3:The Today button is to be clicked in from date and checked if the current date appears","The current date does not appear"

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

End If

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

'step4'Clicking on the clear button in the From date field

Call click_Image("CorporateActions","Profile - Underlying Event Search","ShowCalendar")

Set objDesc1 = Description.CreateobjDesc1("micclass").Value = "Image"objDesc1("html tag").Value = "IMG"Set strObject = Browser("CorporateActions").Page("Profile - Underlying E

vent Search").frame("popCalFrame").ChildObjects(objDesc1)For i= 0 to strObject.Count-1temp = strObject(i).GetROProperty("alt")If instr(1,temp,"Clear Field Value") ThenstrObject(i).clickEnd IfNext

'step4'checking if the field has been cleared

newFromDatevalue=Browser("CorporateActions").Page("Profile - UnderlyingEvent Search").WebEdit("RecievedDateRangeFrom").GetROProperty("value")

If newFromDatevalue="" ThenReporter.ReportEvent micPass,"Step4:The clear button is to be c

licked in from date and checked if the current date dis-appears","The date getscleared properly"

Else

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 34/144

Reporter.ReportEvent micFail,"Step4:The clear button is to be clicked in from date and checked if the current date dis-appears","The date doesnot get cleared properly"

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

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

'step5'checking whether the today button in To date works properly

Call click_Image("CorporateActions","Profile - Underlying Event Search","ShowCalendar_2")

Set objDesc1 = Description.CreateobjDesc1("micclass").Value = "WebElement"objDesc1("html tag").Value = "FONT"

Set strObject = Browser("CorporateActions").Page("Profile - Underlying Event Search").frame("popCalFrame").ChildObjects(objDesc1)For i= 0 to strObject.Count-1temp = strObject(i).GetROProperty("innertext")If instr(1,temp,"Today:") ThenstrObject(i).clickEnd Ifnext'verifying whether the todate value is today's date

ToDatevalue=Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebEdit("RecievedDateRangeTo").GetROProperty("value")

newToDatevalue=cdate(ToDatevalue)If newToDatevalue=date Then

Reporter.ReportEvent micPass,"Step5:The Today button is to be clicked in To date and checked if the current date appears","The date gets filledproperly"

ElseReporter.ReportEvent micFail,"Step5:The Today button is to be cl

icked in To date and checked if the current date appears","The current date doesnot appear"

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

End If

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

'step6'Clicking on the clear button in the To date fieldCall click_Image("CorporateActions","Profile - Underlyin

g Event Search","ShowCalendar_2")

Set objDesc1 = Description.CreateobjDesc1("micclass").Value = "Image"objDesc1("html tag").Value = "IMG"Set strObject = Browser("CorporateActions").Page("Profile - Underlying E

vent Search").frame("popCalFrame").ChildObjects(objDesc1)For i= 0 to strObject.Count-1temp = strObject(i).GetROProperty("alt")

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 35/144

If instr(1,temp,"Clear Field Value") ThenstrObject(i).clickEnd IfNext

'step6'checking if the field has been cleared

newToDatevalue=Browser("CorporateActions").Page("Profile - Underlying Event Search").WebEdit("RecievedDateRangeTo").GetROProperty("value")

If newToDatevalue="" ThenReporter.ReportEvent micPass,"Step6:The clear button is to be clicked i

n To date and checked if the current date dis-appears","The date gets cleared properly"

ElseReporter.ReportEvent micFail,"Step6:The clear button is to be c

licked in To date and checked if the current date dis-appears","The date does not get cleared properly"

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

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

'Step7'Select an underlying search criteria and search then open one of the r

esults to check if its correct as expectedCall chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Und

erlying Event Search","")

'Click on searchBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Search").Click

'Check the header for the reportsCall chkEventSearchReportHeader("CorporateActions","Profile - Underlying

Event Search","UnderlyingEvent")If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step7: Give a date range and click on sear

ch","The search results appears as required"ElseReporter.ReportEvent micFail,"Step7: Give a date range and click on sear

ch","The Search Results does not appear as required"Environment.Value("TestCase_Log")="True"End If

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

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step8: Click on the DR Home link

","The DR home page is displayed"Else

Reporter.ReportEvent micFail ,"Step8: Click on the DR Home link","The DR home page is not displayed"

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 36/144

End IfEnd function

'*******************************************************************************************************************************************************************

Public Function CAProfileUnderlyingEvent_TC8()

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

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))

If Environment.Value ("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Check the CA Home page","The CA

Home page had loaded as required"

Else Reporter.ReportEvent micFail ,"Check the CA Home page","The CA Home page has not loaded as required"

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

'#Step1'Under Profile menu select 'Underlying Event'.Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("

MenuPath","UnderlyingEvent"))

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Underlying Event Search","Clear;Search","")

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("CorporateActionInfo").exist(2) then

Reporter.ReportEvent micPass,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Corporate action type Edit box","The ? Mark icon does not existas required"

Call captureScreenshot()

Environment.Value("Execution_Log")="False"End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 37/144

).Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon next to the ISIN Edit box","The ? Mark icon does not exist as required"

Call captureScreenshot()

Environment.Value("Execution_Log")="False"End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the Underlying security Edit box","The ? Mark icon exists asrequired"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Underlying security Edit box","The ? Mark icon does not exist asrequired"

Call captureScreenshot()

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

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

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

der Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: U

nder Reports menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

 

'Step2'Clicking on the clear buttonBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").Click'Checking if all the fields have been cleared and whether the default v

alues of the fields alone are presentCall chkCAProfileUnderlyingEventClear("CorporateActions","Profile - Unde

rlying Event Search")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 2: Click on the clear button and check if the fields have been cleared.","The fieldsare cleared as expected"

ElseReporter.ReportEvent micFail,"Step 2: C

lick on the clear button and check if the fields have been cleared..","The fields have not been cleared as expected"

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

'Step3

'Checking for the Items present under owner field Call ReadallValuesWebList("CorporateActions","Profile - Underlying Event

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 38/144

Search","Owner","AllItemsInOwner","UnderlyingEvent")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step3:Checking for the values unde

r the Owner list box", "The value present in the Owner weblist is found to be correct"

Else

Reporter.ReportEvent micFail,"Step3:Checking for the values under the Owner list box", "The value present in the Owner weblist is not found to be correct"

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

'Step4'Checking for the default value of the Owner list boxTemp=get_WebList_Value("CorporateActions","Profile - Underlying Event Se

arch","Owner")

If instr(1,Temp,"All") ThenReporter.ReportEvent micPass,"Step4:Default Value of Processing Status is Displayed Correctly","As- All"

ElseReporter.ReportEvent micFail,"Step4:Default Valu

e of Processing Status is Not Displayed Correctly","As - "&get_WebList_Value("CorporateActions","Profile - Underlying Event Search","ProcessingStatus")

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

End If

'Step5'Select an underlying search criteria and search then open one of the r

esults to check if its correct as expectedCall chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Und

erlying Event Search","") 

'Click on searchBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Search").Click

'Checking if the required values are present in search results or notCall chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","Owner")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step5:Select 'Owner-Not Owned' ba

sed on which Underlying Event has to be searched and click on search", "All thenotifications with Owner-Not Owned' are listed under the 'Underlying Event Search Results' table in 'Profile - Underlying Event Search' page."

ElseReporter.ReportEvent micFail,"Step5:Select 'Owner-Not Owned' ba

sed on which Underlying Event has to be searched and click on search", "All thenotifications with 'Owner-Not Owned are not listed as required."

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

'Step6

'Clicking on any result valueFor colcounter1=1 to Browser("CorporateActions").Page("Profile - Underly

ing Event Search").WebTable("Item").ColumnCount(2)

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 39/144

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

NextEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)

Browser("CorporateActions").Page("Profile - Underlying Event Search").WebElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The Underlying event page appears as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The Underlying event page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=Browser("CorporateActions").Page("UnderlyingEvent").WebList("Owner").GetROProperty("selection")

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Not Owned" Then

Reporter.ReportEvent micPass,"Step 6:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step6:Click on any link under 'Eve

nt Name' and verify whether the Underlying event page opens or not","The underlying event page does not opens up"

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

End If 

'Incrementing the DataTableEnvironment.Value("DataTable_ROW") = Environment.Value("DataTable_ROW")

+ 1DataTable.GetSheet("UnderlyingEvent").SetCurrentRow(Environment.Value("D

ataTable_ROW"))

'Step7'Click on the Underlying events from profile underlying events

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

If Environment.Value("TestCase_Log")="True" thenReporter.ReportEvent micPass,"Step7: Click on the Profile->Under

lying Events","Profile underlying event search profile opens up"Else

Reporter.ReportEvent micFail,"Step7: Click on the Profile->Underlying Events","Profile underlying event search profile does not open up"

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

 

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 40/144

'Step8 and 9'Select an underlying search criteria and search then open one of the r

esults to check if its correct as expectedCall chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Und

erlying Event Search","")

'Click on searchBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Search").Click

'Checking if the required values are present in search results or notCall chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","Owner")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step8 and 9:Select 'Owner: Corpor

ate Actions and Unsponsored'' based on which Underlying Event has to be searched

and click on search", "All the notifications with 'Owner: 'Corporate Actions and Unsponsored'' are listed under the 'Underlying Event Search Results' table in'Profile - Underlying Event Search' page."

ElseReporter.ReportEvent micFail,"Step8 and 9:Select 'Owner: 'Corpo

rate Actions and Unsponsored'' based on which Underlying Event has to be searched and click on search", "All the notifications with 'Owner: 'Corporate Actions and Unsponsored'' are not listed under the 'Underlying Event Search Results' table in 'Profile - Underlying Event Search' page."

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

'Step10

'Clicking on any result valueFor colcounter1=1 to Browser("CorporateActions").Page("Profile - Underly

ing Event Search").WebTable("Item").ColumnCount(2)If Browser("CorporateActions").Page("Profile - Underlying Event

Search").WebTable("Item").GetCellData(2,colcounter1)="Event Name" ThenExit for

End IfNextEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEv

ent").WebList("Owner").GetROProperty("selection"))

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Brow

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 41/144

ser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Corporate Actions and Unsponsored"Then

Reporter.ReportEvent micPass,"Step 10:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

Else

Reporter.ReportEvent micFail,"Step 10:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page does not open up"

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

End If 

'Incrementing the DataTableEnvironment.Value("DataTable_ROW") = Environment.Value("DataTable_ROW")

+ 1DataTable.GetSheet("UnderlyingEvent").SetCurrentRow(Environment.Value("D

ataTable_ROW"))

'Step11'Click on the Underlying events from profile underlying events

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

If Environment.Value("TestCase_Log")="True" thenReporter.ReportEvent micPass,"Step11: Click on the Profile->Unde

rlying Events","Profile underlying event search profile opens up"Else

Reporter.ReportEvent micFail,"Step11: Click on the Profile->Underlying Events","Profile underlying event search profile does not open up"

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

'Step12 and 13'Select an underlying search criteria and search then open one of the r

esults to check if its correct as expectedCall chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Und

erlying Event Search","")

'Click on searchBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Search").Click

'Checking if the required values are present in search results or notCall chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","Owner")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step12 and 13:Select 'Owner: Divi

dents'' based on which Underlying Event has to be searched and click on search","All the notifications with 'Owner: 'Dividents'' are listed under the 'Underlying Event Search Results' table in 'Profile - Underlying Event Search' page."

ElseReporter.ReportEvent micFail,"Step12 and 13:Select 'Owner: 'Div

idents'' based on which Underlying Event has to be searched and click on search"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 42/144

, "All the notifications with 'Owner: 'Dividents'' are not listed under the 'Underlying Event Search Results' table in 'Profile - Underlying Event Search' page."

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

'Step14

'Clicking on any result valueFor colcounter1=1 to Browser("CorporateActions").Page("Profile - Underly

ing Event Search").WebTable("Item").ColumnCount(2)If Browser("CorporateActions").Page("Profile - Underlying Event

Search").WebTable("Item").GetCellData(2,colcounter1)="Event Name" ThenExit for

End IfNextEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEv

ent").WebList("Owner").GetROProperty("selection"))

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Dividends" Then

Reporter.ReportEvent micPass,"Step 14:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step 14:Click on any link under 'E

vent Name' and verify whether the Underlying event page opens or not","The underlying event page does not open up"

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

End If

'Incrementing the DataTableEnvironment.Value("DataTable_ROW") = Environment.Value("DataTable_ROW")

+ 1DataTable.GetSheet("UnderlyingEvent").SetCurrentRow(Environment.Value("D

ataTable_ROW"))

'Step15

'Click on the Underlying events from profile underlying events

Call select_Menu("CorporateActions","UnderlyingEvent",DataTable.Value("M

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 43/144

enuPath","UnderlyingEvent"))

If Environment.Value("TestCase_Log")="True" thenReporter.ReportEvent micPass,"Step15: Click on the Profile->Unde

rlying Events","Profile underlying event search profile opens up"Else

Reporter.ReportEvent micFail,"Step15: Click on the Profile->Unde

rlying Events","Profile underlying event search profile does not open up"Environment.Value("TestCase_Log")="True"

End If

 'Step16 and 17'Select an underlying search criteria and search then open one of the r

esults to check if its correct as expectedCall chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Und

erlying Event Search","")

'Click on searchBrowser("CorporateActions").Page("Profile - Underlying Event Search").Image("Search").Click

'Checking if the required values are present in search results or notCall chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","Owner")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step16 and 17:Select 'Owner: 'Mer

gers and Acquisitions & HOLDRs'' based on which Underlying Event has to be searched and click on search", "All the notifications with 'Owner: ''Mergers and Acquisitions & HOLDRs'' are listed under the 'Underlying Event Search Results' tabl

e in 'Profile - Underlying Event Search' page."Else

Reporter.ReportEvent micFail,"Step16 and 17:Select 'Owner: ''Mergers and Acquisitions & HOLDRs'' based on which Underlying Event has to be searched and click on search", "All the notifications with 'Owner: ''Mergers and Acquisitions & HOLDRs'' are not listed under the 'Underlying Event Search Results'table in 'Profile - Underlying Event Search' page."

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

'Step18'Clicking on any result valueFor colcounter1=1 to Browser("CorporateActions").Page("Profile - Underly

ing Event Search").WebTable("Item").ColumnCount(2)If Browser("CorporateActions").Page("Profile - Underlying Event

Search").WebTable("Item").GetCellData(2,colcounter1)="Event Name" ThenExit for

End IfNextEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) ThenReporter.ReportEvent micPass," Under Event Name click on any lin

k","The UnderlyingEvent page opens as required"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 44/144

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEvent").WebList("Owner").GetROProperty("selection"))

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Mergers and Acquisitions & HOLDRs"Then

Reporter.ReportEvent micPass,"Step 18:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step 18:Click on any link under 'E

vent Name' and verify whether the Underlying event page opens or not","The underlying event page does not open up"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

'Incrementing the DataTableEnvironment.Value("DataTable_ROW") = Environment.Value("DataTable_ROW")

+ 1DataTable.GetSheet("UnderlyingEvent").SetCurrentRow(Environment.Value("D

ataTable_ROW"))

'************'Step19'Click on the Underlying events from profile underlying events

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

If Environment.Value("TestCase_Log")="True" thenReporter.ReportEvent micPass,"Step19: Click on the Profile->Unde

rlying Events","Profile underlying event search profile opens up"Else

Reporter.ReportEvent micFail,"Step19: Click on the Profile->Underlying Events","Profile underlying event search profile does not open up"

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

 

'Step20 and 21'Select an underlying search criteria and search then open one of the r

esults to check if its correct as expected

Call chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Underlying Event Search","")

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 45/144

'Click on searchBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Search").Click

'Checking if the required values are present in search results or notCall chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","Owner")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step20 and 21:Select 'Owner: Prox

y'' based on which Underlying Event has to be searched and click on search", "All the notifications with 'Owner: 'Proxy'' are listed under the 'Underlying Event Search Results' table in 'Profile - Underlying Event Search' page."

ElseReporter.ReportEvent micFail,"Step20 and 21:Select 'Owner: 'Pro

xy'' based on which Underlying Event has to be searched and click on search", "All the notifications with 'Owner: 'Proxy'' are not listed under the 'UnderlyingEvent Search Results' table in 'Profile - Underlying Event Search' page."

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

'Step22'Clicking on any result valueFor colcounter1=1 to Browser("CorporateActions").Page("Profile - Underly

ing Event Search").WebTable("Item").ColumnCount(2)If Browser("CorporateActions").Page("Profile - Underlying Event

Search").WebTable("Item").GetCellData(2,colcounter1)="Event Name" ThenExit for

End IfNextEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End IfWait(2)PageProcessingStatus=Browser("CorporateActions").Page("UnderlyingEvent")

.WebList("Owner").GetROProperty("selection")If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Brow

ser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Proxy" Then

Reporter.ReportEvent micPass,"Step 22:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step 22:Click on any link under 'E

vent Name' and verify whether the Underlying event page opens or not","The underlying event page does not open up"

Call captureScreenshot()

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 46/144

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

 'Incrementing the DataTableEnvironment.Value("DataTable_ROW") = Environment.Value("DataTable_ROW")

+ 1

DataTable.GetSheet("UnderlyingEvent").SetCurrentRow(Environment.Value("DataTable_ROW"))

'**************'Click on the Underlying events from profile underlying events'Step23

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

If Environment.Value("TestCase_Log")="True" thenReporter.ReportEvent micPass,"Step23: Click on the Profile->Unde

rlying Events","Profile underlying event search profile opens up"ElseReporter.ReportEvent micFail,"Step23: Click on the Profile->Unde

rlying Events","Profile underlying event search profile does not open up"Environment.Value("TestCase_Log")="True"

End If

'Step24 and 25'Select an underlying search criteria and search then open one of the r

esults to check if its correct as expectedCall chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Und

erlying Event Search","")

'Click on searchBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Search").Click

'Checking if the required values are present in search results or notCall chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","Owner")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step24 and 25:Select 'Owner: Rela

tionship Management'' based on which Underlying Event has to be searched and click on search", "All the notifications with 'Owner: 'Relationship Management'' are listed under the 'Underlying Event Search Results' table in 'Profile - Underlying Event Search' page."

ElseReporter.ReportEvent micFail,"Step24 and 25:Select 'Owner: 'Rel

ationship Management'' based on which Underlying Event has to be searched and click on search", "All the notifications with 'Owner: 'Relationship Management'' are not listed under the 'Underlying Event Search Results' table in 'Profile - Underlying Event Search' page."

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

'Step26

'Clicking on any result value

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 47/144

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

Next

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").RowCount >2 Then

Page_Flag=trueEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

Else Reporter.ReportEvent micFail," Under Event Name click on any link","The UnderlyingEvent page does not open up as required"

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

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEvent").WebList("Owner").GetROProperty("selection"))

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Relationship Management" Then

Reporter.ReportEvent micPass,"Step 26:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step 26:Click on any link under 'E

vent Name' and verify whether the Underlying event page opens or not","The underlying event page does not open up"

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

End IfElse

Reporter.ReportEvent micPass,"Step26: Click on the link under event name","There are no events present for this search criteria"

Call captureScreenshot()Page_Flag=false

End If

If Page_Flag ThenCall select_Menu("CorporateActions","UnderlyingEvent","Home;DR H

ome")Else

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

End If

End Function

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 48/144

'*************************************************************************************************************************************************************************************Public Function CAProfileUnderlyingEvent_TC9()

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

Call logoutfromApp("CorporateActions","Depositary Receipt Division's")Call invoke_URL("CorporateActions","Login Page",DataTable.Value("URL","C

ALogin"))Call login("CorporateActions","Login Page","User","CALogin")

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))

If Environment.Value ("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Check the CA Home page","The CA

Home page had loaded as required"ElseReporter.ReportEvent micFail ,"Check the CA Home page","The CA H

ome page has not loaded as required"Environment.Value ("TestCase_Log")="True"

End If

'#Step1'Under Profile menu select 'Underlying Event'.Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("

MenuPath","UnderlyingEvent"))

If Browser("CorporateActions").Page("Profile - Underlyin

g Event Search").WebTable("Search By:").Exist(2) thenReporter.ReportEvent micPass,"Check fot the exis

tance of the search by table","The search by table is present as required"Else

Reporter.ReportEvent micFail,"Check fot the existance of the search by table","The search by table is not present as required"

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

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Underlying Event Search","Clear;Search","")

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("CorporateActionInfo").exist(2) then

Reporter.ReportEvent micPass,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End if

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 49/144

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("ISINInfo").exist(2)Then

Reporter.ReportEvent micPass,"Check forthe ? icon next to the ISIN Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the ISIN Edit box","The ? Mark icon does not exist as required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the Underlying security Edit box","The ? Mark icon exists asrequired"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Underlying security Edit box","The ? Mark icon does not exist asrequired"

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

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

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

select Underlying Event.","Expected fields are displayed in search criteria"Else

Reporter.ReportEvent micFail,"Step 1: Under Reports menu select Underlying Event..","Expected fields are not displayed in search criteria"

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

 

'Step2'Clicking on the clear buttonBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").Click'Checking if all the fields have been cleared and whether the default v

alues of the fields alone are presentCall chkCAProfileUnderlyingEventClear("CorporateActions","Profile - Unde

rlying Event Search")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 2: Click on the clear button and check if the fields have been cleared.","The fieldsare cleared as expected"

ElseReporter.ReportEvent micFail,"Step 2: C

lick on the clear button and check if the fields have been cleared..","The fields have not been cleared as expected"

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

'Step3 to Step6

'Giving the required search criteria and click on searchCall chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Underly

ing Event Search","")

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 50/144

'Click on searchBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Search").ClickIf Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step3 to Step6: Giving the required search criteria and click on search","The search results are displayed"

Else

Reporter.ReportEvent micFail ,"Step3 to Step6: Giving the required search criteria and click on search","The search results are not displayed"

Environment.Value("TestCase_Log")="True"End If'Checking if the required values are present in search results or notCall chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","Owner")

'Step7'Click on any event name

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)If Browser("CorporateActions").Page("Profile - Underlying Event

Search").WebTable("Item").GetCellData(2,colcounter1)="Event Name" ThenExit for

End IfNextIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).WebTable("Item").RowCount >2 ThenPage_Flag=trueEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEvent").WebList("Owner").GetROProperty("selection"))

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Corporate Actions and Unsponsored"Then

Reporter.ReportEvent micPass,"Step 7:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step 7:Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underlying event page does not open up"

Call captureScreenshot()

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 51/144

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

Reporter.ReportEvent micPass,"Step7: Click on the link under event name","There are no events present for this search criteria"

Page_Flag=falseEnd If

'Step8'Select a different owner for this event

SelectedEventName= get_WebEdit_Value ("CorporateActions","UnderlyingEvent","EventName")

Wait(2)Call Select_Combo_Value("CorporateActions","UnderlyingEvent","Owner","Di

vidends")Call click_Image("CorporateActions","UnderlyingEvent","Save")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step 8: Select a different Ownername from the list box and click on save","The event gets saved successfully"

Else Reporter.ReportEvent micFail ,"Step8: Select a different Ownerfrom the list box and click on save","The Event does not get saved successfully"

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

Wait(3)

'Incrementing the DataTableEnvironment.Value("DataTable_ROW") = Environment.Value("DataTable_ROW")

+ 1DataTable.GetSheet("UnderlyingEvent").SetCurrentRow(Environment.Value("D

ataTable_ROW"))

'Step9'Select underlying event from the Profile menu

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

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step9: Under profile menu select

underlying events","The menu item is selected as required"Else

Reporter.ReportEvent micFail ,"Step9: Under profile menu selectunderlying events","The menu item is not selected as required"

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

'Step10' Giving the required search criteria and click on search

 Call chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Underly

ing Event Search","")'Click on search

Call set_WebEdit_Value ("CorporateActions","Profile - Underlying Event Search","EventName",SelectedEventName)

Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("Search").Click

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

Reporter.ReportEvent micPass,"Step10: Search for the event those owner has been changed","The required search criteria is entered and searched"

Else

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 52/144

Reporter.ReportEvent micFail ,"Step10: Search for the event those owner has been changed","The required search criteria is not entered and searched"

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

'Step11

'Opening the reuqired search resultFor colcounter1=1 to Browser("CorporateActions").Page("Profile - Underl

ying Event Search").WebTable("Item").ColumnCount(2)If Browser("CorporateActions").Page("Profile - Underlying Event

Search").WebTable("Item").GetCellData(2,colcounter1)="Event Name" ThenExit for

End IfNextIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).WebTable("Item").RowCount >2 ThenPage_Flag=trueEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").WebElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEvent").WebList("Owner").GetROProperty("selection"))

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Dividends" Then

Reporter.ReportEvent micPass,"Step 11:Check whether the event ispresent in the search results","The required event is present in the search results"

ElseReporter.ReportEvent micFail,"Step 11:Check whether the event is

present in the search results","The required event is not present in the searchresults"

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

End IfElse

Reporter.ReportEvent micFail,"Step11:Check whether the event ispresent in the search results","The required event is not present in the searchresults"

Page_Flag=falseEnd If

If Page_Flag ThenCall select_Menu("CorporateActions","UnderlyingEvent","Home;DR H

ome")

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 53/144

ElseCall select_Menu("CorporateActions","Profile - Underlying Event

Search","Home;DR Home")

End IfEnd Function

'***********************************************************************************************************************************************************************

Public Function CAProfileUnderlyingEvent_TC10()

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

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Val

ue("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))If Environment.Value ("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Check the CA Home page","The CAHome page had loaded as required"

ElseReporter.ReportEvent micFail ,"Check the CA Home page","The CA H

ome page has not loaded as required"Environment.Value ("TestCase_Log")="True"

End If'#Step1'Under Profile menu select 'Underlying Event'.Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("

MenuPath","UnderlyingEvent"))

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Underlying Event Search","Clear;Search","")

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("CorporateActionInfo").exist(2) then

Reporter.ReportEvent micPass,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon exists as required"

Else

Reporter.ReportEvent micFail,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon does not existas required"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 54/144

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

End ifIf Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the ISIN Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the ISIN Edit box","The ? Mark icon does not exist as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifIf Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the Underlying security Edit box","The ? Mark icon exists asrequired"

Else

Reporter.ReportEvent micFail,"Check for the ? icon next to the Underlying security Edit box","The ? Mark icon does not exist asrequired"

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent")

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

der Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: U

nder Reports menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

'Step2'Clicking on the clear buttonBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").Click'Checking if all the fields have been cleared and whether the default v

alues of the fields alone are presentCall chkCAProfileUnderlyingEventClear("CorporateActions","Profile - Unde

rlying Event Search")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 2: Click on the clear button and check if the fields have been cleared.","The fieldsare cleared as expected"

ElseReporter.ReportEvent micFail,"Step 2: C

lick on the clear button and check if the fields have been cleared..","The fields have not been cleared as expected"

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

'step3,4,5

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 55/144

Call chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Underlying Event Search","an")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 3,4 and 5: Selecting any corp

orate action type","The corporate action type is selected successfully"Else

Reporter.ReportEvent micFail,"Step 3,4 and 5: Selecting any corp

orate action type","The corporate action type is not selected successfully"Environment.Value("TestCase_Log")="True"

End If

'Step6'Clicking on the search buttonBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Search").ClickReporter.ReportEvent micPass,"Clicking on the search button","The search

button is cliked successfully"

'Step6

  Call chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent","CorporateActionType")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step6:Click on Search button","All

the notifications with Corporate Action Type as Annual General Meeting should be listed under Underlying Event Search Resultstable in Profile - Underlying Event Search page."

ElseReporter.ReportEvent micFail,"Step6:Click on Search button", "Th

e results do not show up as required"Environment.Value("TestCase_Log")="True"

End If

'Step7'Clicking on any result value

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

NextIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).WebTable("Item").RowCount >2 ThenPage_Flag=trueEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 56/144

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

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEvent").WebEdit("CorporateActionType").GetROProperty("value"))

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) And Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) And PageProcessingStatus="Annual General Meeting (AGM)" Then

Reporter.ReportEvent micPass,"Step 7:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step 7:Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underlying event page does not open up"

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

End IfElseReporter.ReportEvent micPass,"Click on the link under event name","There

are no events present for this search criteria"Page_Flag=falseEnd If

'Step8If Page_Flag Then

Call select_Menu("CorporateActions","UnderlyingEvent","Home;DR Home")

ElseCall select_Menu("CorporateActions","Profile - Underlying Event

Search","Home;DR Home")End IfIf Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step8: Click on the Home DR Homelink","The DR home page is displayed"

ElseReporter.ReportEvent micFail ,"Step8: Click on the Home DR home

link","The DR Home page does not appear as required"Environment.Value("TestCase_Log")="True"

End IfEnd Function

''***********************************************************************************************************************************************************************

Public Function CAProfileUnderlyingEvent_TC11()

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

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" )

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

Reporter.ReportEvent micPass ,"Check the CA Home page","The CA

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 57/144

Home page had loaded as required"Else

Reporter.ReportEvent micFail ,"Check the CA Home page","The CA Home page has not loaded as required"

Environment.Value ("TestCase_Log")="True"End If'#Step1

'Under Profile menu select 'Underlying Event'.Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("

MenuPath","UnderlyingEvent"))

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"Call captureScreenshot()

Environment.Value("Execution_Log")="False"End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Underlying Event Search","Clear;Search","")

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("CorporateActionInfo").exist(2) then

Reporter.ReportEvent micPass,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon exists as requir

ed"Else

Reporter.ReportEvent micFail,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon next to theISIN Edit box","The ? Mark icon does not exist as required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? ic

on next to the Underlying security Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Underlying security Edit box","The ? Mark icon does not exist asrequired"

Call captureScreenshot()

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 58/144

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

Call chkEventSearchReportHeader("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent")

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

der Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: U

nder Reports menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

'Step2'Clicking on the clear buttonBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").Click'Checking if all the fields have been cleared and whether the default values of the fields alone are present

Call chkCAProfileUnderlyingEventClear("CorporateActions","Profile - Underlying Event Search")

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

ick on the clear button and check if the fields have been cleared.","The fieldsare cleared as expected"

ElseReporter.ReportEvent micFail,"Step 2: C

lick on the clear button and check if the fields have been cleared..","The fields have not been cleared as expected"

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

 

'Step3,4 and 5'Selecting the required ISIN valueCall chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Und

erlying Event Search","")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 3,4 and 5: Selecting any ISINvalue","The ISIN value is selected successfully"

ElseReporter.ReportEvent micFail,"Step 3,4 and 5: Selecting any ISI

N value","The ISIN value is not selected successfully"Environment.Value("TestCase_Log")="True"

End If 

'Step6'Clicking on the search buttonBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Search").ClickReporter.ReportEvent micPass,"Clicking on the search button","The search

button is cliked successfully"

'Step6

Call chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent","ISIN")

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 59/144

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step6:Click on Search button","All

the notifications with ISIN as AT0000903851 should be listed under Underlying Event Search Resultstable in Profile - Underlying Event Search page."

ElseReporter.ReportEvent micFail,"Step6:Click on Search button", "Th

e results do not show up as required"Environment.Value("TestCase_Log")="True"

End If

'Step7'Clicking on any result value

For colcounter1=1 to Browser("CorporateActions").Page("Profile - UnderlyingEvent Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

NextIf Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").RowCount >2 Then

Page_Flag=trueEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEvent").WebEdit("ISIN").GetROProperty("value"))

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and instr(1,PageProcessingStatus,trim(DataTable.Value("ISIN","UnderlyingEvent"))) Then

Reporter.ReportEvent micPass,"Step 7:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step 7:Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underlying event page does not open up"

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

End IfElse

Reporter.ReportEvent micPass,"Step7: Click on the link under event name","There are no events present for this search criteria"

Page_Flag=false

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 60/144

End If

'Step8If Page_Flag ThenCall select_Menu("CorporateActions","UnderlyingEvent","Home;DR Home")ElseCall select_Menu("CorporateActions","Profile - Underlying Event Search",

"Home;DR Home")

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

Reporter.ReportEvent micPass ,"Step8: Select the Home DR home link","The DR Home page is displayed"

ElseReporter.ReportEvent micFail ,"Step8: Select the home DR home l

ink","The DR Home page is not displayed as required"Environment.Value("TestCase_Log")="True"

End IfEnd Function

'*******************************************************************************************************************************************************************************Public Function CAProfileUnderlyingEvent_TC12()

Environment.Value("TestCase_Log") ="True"Browser("CorporateActions").Page("Depositary Receipt Division's").WebEle

ment("CorporateActions").clickCall chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Val

ue("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))

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

Reporter.ReportEvent micPass ,"Check the CA Home page","The CAHome page had loaded as required"

ElseReporter.ReportEvent micFail ,"Check the CA Home page","The CA H

ome page has not loaded as required"Environment.Value ("TestCase_Log")="True"

End If'#Step1'Under Profile menu select 'Underlying Event'.

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

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Under

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 61/144

lying Event Search","Clear;Search","")If Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("CorporateActionInfo").exist(2) thenReporter.ReportEvent micPass,"Check for the ? ic

on next to the Corporate action type Edit box","The ? Mark icon exists as required"

Else

Reporter.ReportEvent micFail,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? i

con next to the ISIN Edit box","The ? Mark icon does not exist as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifIf Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the Underlying security Edit box","The ? Mark icon exists asrequired"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Underlying security Edit box","The ? Mark icon does not exist asrequired"

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent")

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

der Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: U

nder Reports menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

 'Step2'Clicking on the clear buttonBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").Click'Checking if all the fields have been cleared and whether the default v

alues of the fields alone are presentCall chkCAProfileUnderlyingEventClear("CorporateActions","Profile - Unde

rlying Event Search")

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

ick on the clear button and check if the fields have been cleared.","The fields

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 62/144

are cleared as expected"Else

Reporter.ReportEvent micFail,"Step 2: Click on the clear button and check if the fields have been cleared..","The fields have not been cleared as expected"

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

'Step3,4 and 5'Selecting the required ISIN valueCall chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Und

erlying Event Search","")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 3,4 and 5: Selecting any Underlying Security Name","The Underlying Security Name is selected successfully"

ElseReporter.ReportEvent micFail,"Step 3,4 and 5: Selecting any Underlying

Security Name","The Underlying Security Name is not selected successfully"Environment.Value("TestCase_Log")="True"

End If

'Step6'Clicking on the search buttonBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Search").ClickReporter.ReportEvent micPass,"Clicking on the search button","The search

button is cliked successfully"

'Step6'Checking for ISINCall chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","UnderlyingSecurityName")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step6:Click on Search button","All the not

ifications with Underlying Security Name as wipro should be listed under Underlying Event Search Resultstable in Profile - Underlying Event Search page."

ElseReporter.ReportEvent micFail,"Step6:Click on Search button", "The result

s do not show up as required"Environment.Value("TestCase_Log")="True"End If

'Step7'Clicking on any result value

For colcounter1=1 to Browser("CorporateActions").Page("Profile - UnderlyingEvent Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

NextIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).WebTable("Item").RowCount >2 ThenPage_Flag=trueEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 63/144

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEvent").WebEdit("ISIN").GetROProperty("value"))

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and instr(1,PageProcessingStatus,trim(DataTable.Value("Related_ISIN","UnderlyingEvent"))) Then

Reporter.ReportEvent micPass,"Step 7:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step 7:Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underlying event page does not open up"

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

End IfElseReporter.ReportEvent micPass,"Click on the link under event name","There

are no events present for this search criteria"

Page_Flag=falseEnd If

If Page_Flag ThenCall select_Menu("CorporateActions","UnderlyingEvent","Home;DR H

ome")Else

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

End If

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step8: Click on the Home DR home

link","The DR Home page is displayed"

ElseReporter.ReportEvent micFail ,"Step8: Click on the Home DR Home

link","The DR Home page is not displayed as required"Environment.Value("TestCase_Log")="True"

End IfEnd Function

'**************************************************************************************************************************************************************

Public Function CAProfileUnderlyingEvent_TC13()

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 64/144

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))

If Environment.Value ("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Check the CA Home page","The CA

Home page had loaded as required"Else

Reporter.ReportEvent micFail ,"Check the CA Home page","The CA Home page has not loaded as required"

Environment.Value ("TestCase_Log")="True"End If'#Step1'Under Profile menu select 'Underlying Event'.Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("

MenuPath","UnderlyingEvent"))

If Browser("CorporateActions").Page("Profile - Underlyin

g Event Search").WebTable("Search By:").Exist(2) thenReporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - U

nderlying Event Search","ProcessingStatus;Owner")Call pageCheck_Image("CorporateActions","Profile - Under

lying Event Search","Clear;Search","")If Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("CorporateActionInfo").exist(2) thenReporter.ReportEvent micPass,"Check for the ? ic

on next to the Corporate action type Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon next to the ISIN Edit box","The ? Mark icon does not exist as required"

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

End if

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("UnderlyingSecurityInfo").exist(2)Then

Reporter.ReportEvent micPass,"Check for

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 65/144

the ? icon next to the Underlying security Edit box","The ? Mark icon exists asrequired"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Underlying security Edit box","The ? Mark icon does not exist asrequired"

Call captureScreenshot()

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

Call chkEventSearchReportHeader("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent")

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

der Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: U

nder Reports menu select Underlying Event..","Expected fields are not displayed

in search criteria" Environment.Value("TestCase_Log")="True"End If

 'Step2'Clicking on the clear buttonBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").Click'Checking if all the fields have been cleared and whether the default v

alues of the fields alone are presentCall chkCAProfileUnderlyingEventClear("CorporateActions","Profile - Unde

rlying Event Search")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 2: Click on the clear button and check if the fields have been cleared.","The fieldsare cleared as expected"

ElseReporter.ReportEvent micFail,"Step 2: C

lick on the clear button and check if the fields have been cleared..","The fields have not been cleared as expected"

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

'Step3'Enter event name to searchCall chkUnderlyingEventsSearchCriteria ("CorporateActions","Profile - Un

derlying Event Search","")Call click_Image("CorporateActions","Profile - Underlying Event Search",

"Search")Call chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","EventName")

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

ter Event Name to search.","The event name has been entered and the results appear as expected"

Else

Reporter.ReportEvent micFail,"Step 3: Enter Event Name to search.","The event name has been entered but the results donot appear as expected"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 66/144

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

'Incrementing the DataTableEnvironment.Value("DataTable_ROW") = Environment.Value("DataTable_ROW")

+ 1

DataTable.GetSheet("UnderlyingEvent").SetCurrentRow(Environment.Value("DataTable_ROW"))

'Step4'Enter a partial string and check whether the results appearCall chkUnderlyingEventsSearchCriteria ("CorporateActions","Profile - Un

derlying Event Search","")Call click_Image("CorporateActions","Profile - Underlying Event Search",

"Search")Call chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","EventName")

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

ter partial Event Name to search.","The event name has been entered and the results appear as expected"

ElseReporter.ReportEvent micFail,"Step 4: En

ter partial Event Name to search.","The event name has been entered but the results do not appear as expected"

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

'Step5'Clicking on any result value

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

NextIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).WebTable("Item").RowCount >2 ThenPage_Flag=trueEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) ThenReporter.ReportEvent micPass," Under Event Name click on any link","The

UnderlyingEvent page opens as required"ElseReporter.ReportEvent micFail," Under Event Name click on any link","The

UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 67/144

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEvent").WebEdit("EventName").GetROProperty("value"))

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEvent

Details").Exist(2) and instr(1,PageProcessingStatus,trim(DataTable.Value("EventName","UnderlyingEvent"))) Then

Reporter.ReportEvent micPass,"Step 5:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step 5:Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underlying event page does not open up"

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

End If

ElseReporter.ReportEvent micPass,"Step5: Click on the link under event name","There are no events present for this search criteria"

Page_Flag=falseEnd If

'Step6'Clicking on the Underlying event linkCall click_WebElement("CorporateActions","UnderlyingEvent","UnderlyingEv

entSearch")

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

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

ick on the underlying event search link","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 6: C

lick on the underlying event search link","Expected fields are not displayed insearch criteria"

Call select_Menu("CorporateActions","UnderlyingEvent","Home;DR Home")

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

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

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step7: Click on the Home DR home

link","The DR Home page appears as required"Else

Reporter.ReportEvent micFail ,"Step7: Click on the Home DR Homelink","The DR Home page does not appear as required"

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

End Function'*******************************************************************************

*****************************************************************************************************Public Function CAProfileUnderlyingEvent_TC14()

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 68/144

Environment.Value("TestCase_Log") ="True"Browser("CorporateActions").Page("Depositary Receipt Division's").WebEle

ment("CorporateActions").clickCall chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Val

ue("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" )

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

Reporter.ReportEvent micPass ,"Check the CA Home page","The CAHome page had loaded as required"

ElseReporter.ReportEvent micFail ,"Check the CA Home page","The CA H

ome page has not loaded as required"Environment.Value ("TestCase_Log")="True"

End If

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

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;Recieved

DateRangeTo;UnderlyingSecurityName;EventName")Call pageCheck_WebListOR("CorporateActions","Profile - U

nderlying Event Search","ProcessingStatus;Owner")Call pageCheck_Image("CorporateActions","Profile - Under

lying Event Search","Clear;Search","")If Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("CorporateActionInfo").exist(2) thenReporter.ReportEvent micPass,"Check for the ? ic

on next to the Corporate action type Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon next to the ISIN Edit box","The ? Mark icon does not exist as required"

Call captureScreenshot()

Environment.Value("Execution_Log")="False"End ifIf Browser("CorporateActions").Page("Profile - Underlyi

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 69/144

ng Event Search").Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the Underlying security Edit box","The ? Mark icon exists asrequired"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Underlying security Edit box","The ? Mark icon does not exist as

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Under Repo

rts menu select Underlying Event.","Expected fields are displayed in search criteria"

Else Reporter.ReportEvent micFail," Under Reports menu select Underlying Event..","Expected fields are not displayed in search criteria"

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

 Browser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").Click'Checking if all the fields have been cleared and whether the default v

alues of the fields alone are presentCall chkCAProfileUnderlyingEventClear("CorporateActions","Profile - Unde

rlying Event Search")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Click on t

he clear button and check if the fields have been cleared.","The fields are cleared as expected"

ElseReporter.ReportEvent micFail,"Click on t

he clear button and check if the fields have been cleared..","The fields have not been cleared as expected"

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

Call chkUnderlyingEventsSearchCriteria ("CorporateActions","Profile - Underlying Event Search","")

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

Call chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent","EventName")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Enter Even

t Name to search.","The event name has been entered and the results appear as expected"

ElseReporter.ReportEvent micFail,"Enter Even

t Name to search.","The event name has been entered but the results do not appear as expected"

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 70/144

End If

'Step1'Clicking on any result value

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underly

ing Event Search").WebTable("Item").ColumnCount(2)If Browser("CorporateActions").Page("Profile - Underlying Event

Search").WebTable("Item").GetCellData(2,colcounter1)="Event Name" ThenExit for

End IfNextIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).WebTable("Item").RowCount >2 ThenPage_Flag=trueEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) ThenReporter.ReportEvent micPass," Under Event Name click on any link","The

UnderlyingEvent page opens as required"ElseReporter.ReportEvent micFail," Under Event Name click on any link","The

UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEvent").WebEdit("EventName").GetROProperty("value"))

If Browser("CorporateActions").Page("UnderlyingEvent").WebTable("Corporate Action Event").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebTable("CorporateActionEventDetails").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebTable("Notifications Assigned").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the Required tables","The required tables are present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the Required tables","The required tables are not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End if

TempCorporateActionEventData=trim(Browser("CorporateActions").Page("UnderlyingEvent").WebTable("Corporate Action Event").GetROProperty("outertext"))

If Instr(1,TempCorporateActionEventData,"Corporate Action Event Creation DateSourcesCorporate Action TypeISIN / SEDOLCompanyEvent Date") Or Instr(1,"Corporate Action Event Creation DateSourcesCorporate Action TypeISIN / SEDOLCompanyEvent Date",TempCorporateActionEventData) Then

Reporter.ReportEvent micPass,"Check whether the Corporate action event table contains the required details","The table contains the details as required"

Else

Reporter.ReportEvent micFail,"Check whether the corporate actionevent table contains the required details","The table does not contain the correct details"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 71/144

Reporter.ReportEvent micFail,"Expected Result" &TempCorporateActionEventData,"Actual Result -Corporate Action EventCreation DateSourcesCorporateAction TypeISIN / SEDOLCompanyEvent Date Last Approved DateStatus Changed DateOwnerProcessing StatusEvent Name Proxy PendingUnapproved"

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

End If

 

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and instr(1,PageProcessingStatus,trim(DataTable.Value("EventName","UnderlyingEvent"))) Then

Reporter.ReportEvent micPass,"Step 1:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step 1:Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underl

ying event page does not open up"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End IfElseReporter.ReportEvent micPass,"Step1: Click on the link under event name"

,"There are no events present for this search criteria"Page_Flag=falseEnd If

Call select_Menu("CorporateActions","UnderlyingEvent","Home;DR Home")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step2: From the Home menu select

DR home","The DR home page appears as required"Else

Reporter.ReportEvent micFail ,"Step2: From the home Menu selectDR home","The DR Home page does not appear as required"

Environment.Value("TestCase_Log")="True"End IfEnd Function

'**********************************************************************************************************************************************************************************Public Function CAProfileUnderlyingEvent_TC15()

Environment.Value("TestCase_Log") ="True"Browser("CorporateActions").Page("Depositary Receipt Division's").WebEle

ment("CorporateActions").clickCall chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Val

ue("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))

If Environment.Value ("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Check the CA Home page","The CA

Home page had loaded as required"Else

Reporter.ReportEvent micFail ,"Check the CA Home page","The CA Home page has not loaded as required"

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 72/144

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

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Under

lying Event Search","Clear;Search","")If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("CorporateActionInfo").exist(2) then

Reporter.ReportEvent micPass,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End if

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("ISINInfo").exist(2)Then

Reporter.ReportEvent micPass,"Check forthe ? icon next to the ISIN Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the ISIN Edit box","The ? Mark icon does not exist as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifIf Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the Underlying security Edit box","The ? Mark icon exists asrequired"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Underlying security Edit box","The ? Mark icon does not exist asrequired"

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Under Repo

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 73/144

rts menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail," Under Rep

orts menu select Underlying Event..","Expected fields are not displayed in search criteria"

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

End If 

Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("Clear").Click

'Checking if all the fields have been cleared and whether the default values of the fields alone are present

Call chkCAProfileUnderlyingEventClear("CorporateActions","Profile - Underlying Event Search")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Click on t

he clear button and check if the fields have been cleared.","The fields are cleared as expected"

Else Reporter.ReportEvent micFail,"Click on the clear button and check if the fields have been cleared..","The fields have not been cleared as expected"

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

Call chkUnderlyingEventsSearchCriteria ("CorporateActions","Profile - Underlying Event Search","")

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

Call chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent","EventName")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Enter Even

t Name to search.","The event name has been entered and the results appear as expected"

ElseReporter.ReportEvent micFail,"Enter Even

t Name to search.","The event name has been entered but the results do not appear as expected"

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

'Step1'Clicking on any result value

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

NextIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).WebTable("Item").RowCount >2 ThenPage_Flag=trueEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 74/144

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) ThenReporter.ReportEvent micPass," Under Event Name click on any link","The

UnderlyingEvent page opens as required"ElseReporter.ReportEvent micFail," Under Event Name click on any link","The

UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEvent").WebEdit("EventName").GetROProperty("value"))

If Browser("CorporateActions").Page("UnderlyingEvent").WebTable("Corpor

ate Action Event").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebTable("CorporateActionEventDetails").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebTable("Notifications Assigned").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the Required tables","The required tables are present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the Required tables","The required tables are not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End if

TempCorporateActionEventData=trim(Browser("CorporateActions").Page("Unde

rlyingEvent").WebTable("Corporate Action Event").GetROProperty("outertext"))TempNotificationsAssignedData=trim(Browser("CorporateActions").Page("Underly

ingEvent").WebTable("Notifications Assigned").GetROProperty("outertext"))

If Instr(1,TempNotificationsAssignedData,"PrefillReceived DateSourceSender BICUnderlying SecurityComparisonCorporate Action TypeISINMeeting Date") Or Instr(1,"PrefillReceived DateSourceSender BICUnderlying SecurityComparisonCorporate Action TypeISINMeeting Date",TempNotificationsAssignedData) Then

Reporter.ReportEvent micPass,"Check whether the Notification assigned table acontains the required fields","The notification assigned field contains the required fields"

ElseReporter.ReportEvent micFail,"Check whether the Notification ass

igned table acontains the required fields","The notification assigned field doesnot contain the required fields"

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

End If

If instr(1,TempCorporateActionEventData,"Corporate Action Event Creation DateSourcesCorporate Action TypeISIN / SEDOLCompanyEvent Date LastApproved DateStatus Changed DateOwnerProcessing StatusEvent Name") Or instr(1,"Corporate Action Event Creation DateSourcesCorporate Action TypeISIN / SEDOLCompanyEvent Date Last Approved DateStatus Changed DateOwnerProcessingStatusEvent Name",TempCorporateActionEventData)Then

Reporter.ReportEvent micPass,"Check whether the Corporate action event table contains the required details","The table contains the details as required"

Else

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 75/144

Reporter.ReportEvent micFail,"Check whether the corporate actionevent table contains the required details","The table does not contain the correct details"

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

End If 

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and instr(1,PageProcessingStatus,trim(DataTable.Value("EventName","UnderlyingEvent"))) Then

Reporter.ReportEvent micPass,"Step 1:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step 1:Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underlying event page does not open up"

Call captureScreenshot()Environment.Value("Execution_Log")="False"End IfElseReporter.ReportEvent micPass,"Step1: Click on the link under event name"

,"There are no events present for this search criteria"Page_Flag=falseEnd If

Call select_Menu("CorporateActions","UnderlyingEvent","Home;DR Home")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step2: From the Home menu selectDR home","The DR home page appears as required"

ElseReporter.ReportEvent micFail ,"Step2: From the home Menu select

DR home","The DR Home page does not appear as required"Environment.Value("TestCase_Log")="True"

End IfEnd Function

'**************************************************************************************************************************************************************************

Public Function CAProfileUnderlyingEvent_TC16()

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

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))

If Environment.Value ("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Check the CA Home page","The CA

Home page had loaded as required"Else

Reporter.ReportEvent micFail ,"Check the CA Home page","The CA Home page has not loaded as required"

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 76/144

End If'#Step1'Under Profile menu select 'Underlying Event'.Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("

MenuPath","UnderlyingEvent"))

If Browser("CorporateActions").Page("Profile - Underlying Event Search")

.WebTable("Search By:").Exist(2) thenReporter.ReportEvent micPass,"Check fot the exis

tance of the search by table","The search by table is present as required"Else

Reporter.ReportEvent micFail,"Check fot the existance of the search by table","The search by table is not present as required"

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

End if

Call pageCheck_WebEditOR("CorporateActions","Profile - Underlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;Recieved

DateRangeTo;UnderlyingSecurityName;EventName")Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Underlying Event Search","Clear;Search","")

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("CorporateActionInfo").exist(2) then

Reporter.ReportEvent micPass,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Corporate action type Edit box","The ? Mark icon does not exist

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the ISIN Edit box","The ? Mark icon does not exist as required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the Underlying security Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the Underlying security Edit box","The ? Mark icon does not exist as required"

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 77/144

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

der Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: U

nder Reports menu select Underlying Event..","Expected fields are not displayed

in search criteria"Environment.Value("TestCase_Log")="True"

End If

'Step2Browser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").ClickCall chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Und

erlying Event Search","")Browser("CorporateActions").Page("Profile - Underlying Event Search").Image(

"Search").Click'Check the header for the reports

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step2: Enter the required search

criteria and click on search","The search results are displayed correctly"Else

Reporter.ReportEvent micFail ,"Step2: Enter the required searchcriteria and click on search","The search results are not displayed correctly"

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

'Step3

'Clicking on any result valueIf Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").RowCount < 3 Then

Reporter.ReportEvent micPass,"Check for the Underlying Notification search results","There are no results available for this search criteria"

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

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

NextEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").ClickEnd If

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

Else

Reporter.ReportEvent micFail," Under Event Name click on any link","The UnderlyingEvent page does not open up as required"

Call captureScreenshot()

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 78/144

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

PageProcessingStatus=Browser("CorporateActions").Page("UnderlyingEvent").WebList("ProcessingStatus").GetROProperty("selection")

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Brow

ser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Approved" Then

Reporter.ReportEvent micPass,"Step3: Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step3: Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underlying event page does not opens up"

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

End If

'Step4'Click on any of the given notifications

Call SelectNotificationRecieveDate("CorporateActions","Underlying Event")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Check whether the Notification button has been clicked or not","The notification is clicked"

ElseReporter.ReportEvent micFail ,"Check whether the notification b

utton has been clicked or not","The notification is not clicked as required"Environment.Value("TestCase_Log")="True"

End If

If Browser("CorporateActions").Page("Underlying Notification").Exist (2) ThenReporter.ReportEvent micPass ,"Step4: Check whether the underlying no

tification screen opens up as required","The underlying notification screen opens up as required"

Flag=trueElse

Reporter.ReportEvent micFail ,"Step4: Check whether the underlying notification screen opens up as required","The underlying notification screen does not open up as required"

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

End If

If Flag ThenCall select_Menu("CorporateActions","Underlying Notification","Home;D

R Home")Else

Call select_Menu("CorporateActions","Underlying Event","Home;DRHome")

End If

'Step5If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"From Home menu Select DR Home","The DR Home page is displayed"

ElseReporter.ReportEvent micFail ,"From the Home Menu Select Dr Hom

e","The DR Home page is not displayed as required"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 79/144

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

End Function

'*********************************************************************************************************************************************************************************************

Public Function CAProfileUnderlyingEvent_TC17()

Environment.Value ("TestCase_Log")="True"Call logoutfromApp("CorporateActions","Depositary Receipt Division's")

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

Call login("CorporateActions","Login Page","Product Management","CALogin")

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Val

ue("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))If Environment.Value ("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Check the CA Home page","The CAHome page had loaded as required"

ElseReporter.ReportEvent micFail ,"Check the CA Home page","The CA H

ome page has not loaded as required"Environment.Value ("TestCase_Log")="True"

End If'#Step1'Under Profile menu select 'Underlying Event'.Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("

MenuPath","UnderlyingEvent"))

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End if

Call pageCheck_WebEditOR("CorporateActions","Profile - Underlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Underlying Event Search","Clear;Search","")

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("CorporateActionInfo").exist(2) then

Reporter.ReportEvent micPass,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Corporate action type Edit box","The ? Mark icon does not exist

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 80/144

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the ISIN Edit box","The ? Mark icon does not exist as required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the Underlying security Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the Underlying security Edit box","The ? Mark icon does not exist as required"

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

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

der Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: U

nder Reports menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

'Step2Browser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").ClickCall chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Und

erlying Event Search","")Browser("CorporateActions").Page("Profile - Underlying Event Search").Image(

"Search").Click'Check the header for the reports

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step2: Enter the required search

criteria and click on search","The search results are displayed correctly"Else

Reporter.ReportEvent micFail ,"Step2: Enter the required searchcriteria and click on search","The search results are not displayed correctly"

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

End If

'Step3

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 81/144

'Clicking on any result valueIf Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").RowCount < 3 Then

Reporter.ReportEvent micPass,"Check for the Underlying Notification search results","There are no results available for this search criteria"

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

ElseFor colcounter1=1 to Browser("CorporateActions").Page("Profile - Underly

ing Event Search").WebTable("Item").ColumnCount(2)If Browser("CorporateActions").Page("Profile - Underlying Event

Search").WebTable("Item").GetCellData(2,colcounter1)="Event Name" ThenExit for

End IfNextEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

End If Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=Browser("CorporateActions").Page("UnderlyingEvent")

.WebList("ProcessingStatus").GetROProperty("selection")

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Pending" Then

Reporter.ReportEvent micPass,"Step3: Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step3: Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underlying event page does not opens up"

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

End If

'Click on the prefill buttonStrAppValue=ClickonPrefilbutton("CorporateActions","Underlying Event")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step 4:Click on the Prefill butt

on","The prefill pop-up opens up"Else

Reporter.ReportEvent micFail ,"Step4: Click on the prefill button","The prefill pop-up does not open up"

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 82/144

intColumnCount = Browser("CorporateActions").Page("Underlying Event").WebTable("NotificationsAssigned").ColumnCount(3)

For intColCounter = 2 to intColumnCountstrValue = Brow

ser("CorporateActions").Page("Underlying Event").WebTable("NotificationsAssigned").GetCellData(3,intColCounter)

strAppValue1 = strAppValue & strValue & ";"

Next 

Call operation_on_FrameObjects_WithName("CorporateActions","Underlying Event","lookupFramePrefill","WebButton","Close","")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step5: Click on the Close button

in the pop-up","The pop-up closes as required"Else

Reporter.ReportEvent micFail ,"Step5: Click on the Close buttonin the pop-up","The pop-up does not close as required"

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

StrAppValue=ClickonPrefilbutton("CorporateActions","Underlying Event")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step 6:Click on the Prefill button","The prefill pop-up opens up"

ElseReporter.ReportEvent micFail ,"Step6: Click on the prefill butt

on","The prefill pop-up does not open up"Environment.Value("TestCase_Log")="True"

End If

'Check whether the values in the pop-up match with the required valuesIf Instr(1,strAppValue1,strAppValue) Then

Reporter.ReportEvent micPass ,"Step7: Check whether thevalues in the pop-up and the underlying event screen matches","The values are matching"

ElseReporter.ReportEvent micFail ,"Step7: Check whether the

values in the pop-up and the underlying event screen matches","The values doesnot match"

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

End If

'Store all the webEdit value from the Pop-up buttonFlag=falseintRowCount = Browser("CorporateActions").Page("Underlying Event").Fram

e("lookupFramePrefill").WebTable("Corporate Action Event").RowCountFor intRowCounter = 1 to intRowCount

intWebEditCount = Browser("CorporateActions").Page("Underlying Event").Frame("lookupFramePrefill").WebTable("Corporate Action Event").ChildItemCount(intRowCounter,2,"WebEdit")

If intWebEditCount >0 ThenFor intWebEditCounter = 0 to intWebEditCount-1

strImageName = Browser("CorporateActions").Page("Underlying Event").Frame("lookupFramePrefill").WebTable("Corpor

ate Action Event").ChildItem(intRowCounter,2,"WebEdit",intWebEditCounter).GetROProperty("value")

If strImageName<> " " Then

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 83/144

strAppValue = strAppValue & strImageName & ";"

Flag=trueEnd If

NextEnd If

Next

If Flag ThenReporter.ReportEvent micPass ,"Step8: The values in the webedit

should be captured and stored","The values in the webedits are captured and stored"

ElseReporter.ReportEvent micFail ,"Step 8: The values in the webedi

t should be captured and stored","The values are not captured"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

'Step9

Call operation_on_FrameObjects_WithName("CorporateActions","Underlying Event","lookupFramePrefill","WebButton","Prefill","")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Click on the Prefill button in the pop-up","The Prefill button is clicked as required"

ElseReporter.ReportEvent micFail ,"Click on the Prefill button in

the pop-up","The Prefill button is clicked as required"Environment.Value("TestCase_Log")="True"

End If

intRowCount = Browser("CorporateActions").Page("UnderlyingEvent").WebTable("CorporateActionEventDetails").RowCount

For intRowCounter = 1 to intRowCountintWebEditCount = Browser("CorporateActions").Page("UnderlyingEvent").We

bTable("CorporateActionEventDetails").ChildItemCount(intRowCounter,2,"WebEdit")If intWebEditCount >0 Then

For intWebEditCounter = 0 to intWebEditCount-1strImageName = Browser("Corporat

eActions").Page("UnderlyingEvent").WebTable("CorporateActionEventDetails").ChildItem(intRowCounter,2,"WebEdit",intWebEditCounter).GetROProperty("value")

If strImageName<> " " ThenstrAppValue1 = s

trAppValue1 & strImageName & ";"Flag=true

End IfNext

End IfNextIf Flag Then

Reporter.ReportEvent micPass ," The values in the webedit should be captured and stored","The values in the webedits are captured and stored"

ElseReporter.ReportEvent micFail ," The values in the webedit shoul

d be captured and stored","The values are not captured"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

strAppValue1 = strAppValue1 & Browser("CorporateActions").Page("Underlying Event").WebEdit("narrative").GetROProperty ("value") & ";"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 84/144

If Instr(1,strAppValue1,strAppValue1) ThenReporter.ReportEvent micPass ,"Step9:Check whether the values f

rom the prefill pop-up and the application are matching","The values are matching as required"

ElseReporter.ReportEvent micFail ,"Step9:Check whether the values f

rom the prefill pop-up and the application are matching","The values are not mat

ching as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

'Step10Call click_Image("CorporateActions","Underlying Event","Save")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Click on the save button","The save button is clicked as required"

ElseReporter.ReportEvent micFail ,"Click on the save button","The s

ave button is not clicked as required"Environment.Value("TestCase_Log")="True"End If

Wait(5)

'Step11Call select_Menu("CorporateActions","UnderlyingEvent","Home;DR Home")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step11: From Home menu Select DR Home","The DR Home page is displayed"

ElseReporter.ReportEvent micFail ,"Step11: From the Home Menu Selec

t Dr Home","The DR Home page is not displayed as required"Environment.Value("TestCase_Log")="True"

End If

End Function

'********************************************************************************************************************************************************************************************Public Function CAProfileUnderlyingEvent_TC18()

Environment.Value("TestCase_Log") ="True"Call logoutfromApp("CorporateActions","Depositary Receipt Division's"

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

ALogin"))Call login("CorporateActions","Login Page","Product Management","CALogin

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

's","CorporateActions")Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.

Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))

If Environment.Value ("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Check the CA Home page","The CA

Home page had loaded as required"Else

Reporter.ReportEvent micFail ,"Check the CA Home page","The CA H

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 85/144

ome page has not loaded as required"Environment.Value ("TestCase_Log")="True"

End IfCall select_Menu("CorporateActions","CorporateActions",DataTable

.Value("MenuPathForNotification","UnderlyingEvent"))

blnFlag = Browser("CorporateActions").Page("Profile - Upload Not

ification").Exist(5)

If blnFlag = true ThenReporter.ReportEvent micPass,"Step 1: Verfiying if the P

age ' Profile Upload Notification ' is displayed or NOT","The Page ' Profile Upload Notification ' is displayed successfully"

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

age ' Profile Upload Notification ' is displayed or NOT","The Page ' Profile Upload Notification ' is NOT displayed successfully"

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

End If

Call CreateNewFolder("UploadFiles")

strFilePath = CreateFile("UploadFiles",DataTable.Value("TestCaseID","UnderlyingEvent"),".doc")

Call Select_Combo_Value("CorporateActions","Profile - Upload Notification","TagetDocument",DataTable.Value("TargetDocument","UnderlyingEvent"))

' Entering the path of the File and clicking on SaveBrowser("CorporateActions").Page("Profile - Upload Notification"

).WebFile("UploadFile").Click

Browser("CorporateActions").Dialog("Choose file").WinEdit("Filename:").Set strFilePath

Browser("CorporateActions").Dialog("Choose file").WinButton("Open").Click

Wait(3)

If DataTable.Value("CorporateActionType","UnderlyingEvent")<>"" Then

Browser("CorporateActions").Page("Profile - Upload Notification").Image("CorporateActionTypeInfo").Click

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

tion").Frame("lookupFrame").Exist(2) And Browser("CorporateActions").Page("Profile - Upload Notification").Frame("lookupFrame").WebTable("Corporate Action Event").Exist(2) Then

Reporter.ReportEvent micDone,"Check whether the frame pops-up with the required details","The frame pops-up as required"

Call operation_on_FrameObjects_WithName("CorporateActions","Profile - Upload Notification","lookupFrame","WebEdit","cactnTypeTx",trim(DataTable.Value("CorporateActionType","UnderlyingEvent")))

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

Call SelectValueInsideFrame("Corporate

Actions","Profile - Upload Notification","lookupFrame",trim(DataTable.Value("CorporateActionType","UnderlyingEvent")))

Else

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 86/144

Reporter.ReportEvent micFail," Check whether the Frame has pop-up with the required details","The frame is not found"

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

e"

End If

End If

If DataTable.Value("Comparison","UnderlyingEvent") <> "" ThenCall Select_Combo_Value("CorporateActions","Profile - Upload Not

ification","Comparison",DataTable.Value("Comparison","UnderlyingEvent"))End If

If DataTable.Value("LocalRecordDate","UnderlyingEvent") <> "" ThenstrDataTableValue = DataTable.Value("Loc

alRecordDate","UnderlyingEvent")strValue = Split(strDataTableValue,";",-

1,1) strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)Call click_Image("CorporateActions","Pro

file - Upload Notification","LocalRecordDate")Call ClickIcon_SetDate("CorporateActions

","Profile - Upload Notification",strMonthValue,strYearValue,strDateValue)End If

If DataTable.Value("PaymentDate","UnderlyingEvent") <> "" ThenstrDataTableValue = DataTable.Value("Pay

mentDate","UnderlyingEvent")

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

strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)Call click_Image("CorporateActions","Pro

file - Upload Notification","PaymentDate")Call ClickIcon_SetDate("CorporateActions

","Profile - Upload Notification",strMonthValue,strYearValue,strDateValue)End If

 

'Entering the Underlying SecurityCall click_Image("CorporateActions","Profile - Upload Notificati

on","UnderlyingSecurityinfo")Call operation_on_FrameObjects_WithName("CorporateActions","Prof

ile - Upload Notification","lookupFrame","WebEdit","divNm",DataTable.Value("UnderlyingSecurityName","UnderlyingEvent"))

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

Call chkResultinFrame("CorporateActions","Profile - Upload Notification","lookupFrame","ISIN","Und. Security Name",DataTable.Value("UnderlyingSe

curityName","UnderlyingEvent"))Call SelectValueinFrame("CorporateActions","Profile - Upload Not

ification","lookupFrame","ISIN")

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 87/144

' Verifiyng the Filled of ISN , SEDOL and Sender NamestrISINValue = get_WebEdit_Value("CorporateActions","Profile - U

pload Notification","ISIN")strSEDOLValue = get_WebEdit_Value("CorporateActions","Profile -

Upload Notification","SEDOL")strSenderName = get_WebEdit_Value("CorporateActions","Profile -

Upload Notification","SenderName") 

If Environment.Value("TestCase_Log") ="True" AND strISINValue <>"" AND strSEDOLValue <> "" AND strSenderName <> "" Then

Reporter.ReportEvent micPass," Verifiyng if the Values in the Fields are filled or NOT","The Values in the Fields ' ISIN, SEDOL and Sender Name' are automatiCally filled after entering the Underlying Security"

ElseReporter.ReportEvent micFail," Verifiyng if the Values i

n the Fields are filled or NOT","The Values in the Fields ' ISIN , SEDOL and Sender Name' are NOT filled automatiCally after entering the Underlying Security"

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

End IfCall click_Image("CorporateActions","Profile - Upload Notification","Sav

e")Wait(4)Wait(4)

If Browser("CorporateActions").Page("UnderlyingNotification").Exist(2) Then

Reporter.ReportEvent micPass,"Click on the save button","The notification has been uploaded successfully"

ElseReporter.ReportEvent micFail,"Upload a notification","The notifi

cation has not been uploaded successfully"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

Call Browser("CorporateActions").Dialog("File Download").WaitProperty("enabled","True",5)

If Browser("CorporateActions").Dialog("File Download").Exist(2) ThenBrowser("CorporateActions").Dialog("File Download").WinButton("C

ancel").ClickEnd IfIf Browser("CorporateActions").Page("UnderlyingNotification").WebList("P

rocessingStatus").GetROProperty("selection")="Assigned" ThenReporter.ReportEvent micPass,"Check for the Processing Status","

The Processing status is Assigned as required"Else

Reporter.ReportEvent micFail,"Check for the processing status","The processing status is not assigned"

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

End If

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 88/144

Call click_Image("CorporateActions","UnderlyingNotification","Save")

If Environment.Value("TestCase_Log") = "True" thenReporter.ReportEvent micPass,"Step2:Assign Uploaded document wit

h notification details to a corporate action event","Document is assigned to a corporate action event successfully"

ElseReporter.ReportEvent micFail,"Step2: Assign Uploaded document wi

th notification details to a corporate action event","Document is not assigned successfully"

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

End If

Call Browser("CorporateActions").Dialog("File Download").WaitProperty("enabled","True",5)

If Browser("CorporateActions").Dialog("File Download").Exist(2) ThenBrowser("CorporateActions").Dialog("File Download").WinButton("Cancel").Click

End IfWait(4)Wait(4)Wait(10)

Call select_Menu("CorporateActions","UnderlyingNotification","Profile;Underlying Event")

Wait(4)Browser("CorporateActions").RefreshBrowser("CorporateActions").Refresh

Browser("CorporateActions").RefreshBrowser("CorporateActions").RefreshWait(4)

'Step3If Browser("CorporateActions").Page("Profile - Underlyin

g Event Search").WebTable("Search By:").Exist(2) thenReporter.ReportEvent micPass,"Check fot the exis

tance of the search by table","The search by table is present as required"Else

Reporter.ReportEvent micFail,"Check fot the existance of the search by table","The search by table is not present as required"

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

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Underlying Event Search","Clear;Search","")

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("CorporateActionInfo").exist(2) then

Reporter.ReportEvent micPass,"Check for the ? ic

on next to the Corporate action type Edit box","The ? Mark icon exists as required"

Else

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 89/144

Reporter.ReportEvent micFail,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon next to the ISIN Edit box","The ? Mark icon does not exist as required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? ic

on next to the Underlying security Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon next to the Underlying security Edit box","The ? Mark icon does not exist asrequired"

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

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

Reporter.ReportEvent micPass,"Step 3: Under Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 3: Under Rep

orts menu select Underlying Event..","Expected fields are not displayed in search criteria"

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

 

'Step4'Clicking on the clear buttonBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").Click'Checking if all the fields have been cleared and whether the default v

alues of the fields alone are presentCall chkCAProfileUnderlyingEventClear("CorporateActions","Profile - Unde

rlying Event Search")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 4: Click on the clear button and check if the fields have been cleared.","The fields are cleared as expected"

ElseReporter.ReportEvent micFail,"Step 4: Click on

the clear button and check if the fields have been cleared..","The fields have not been cleared as expected"

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 90/144

End If

'Step5'Enter event name to searchCall chkUnderlyingEventsSearchCriteria ("CorporateActions","Profile - Un

derlying Event Search","")

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

Call chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent","EventName")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: En

ter Event Name to search.","The event name has been entered and the results appear as expected"

ElseReporter.ReportEvent micFail,"Step 5: En

ter Event Name to search.","The event name has been entered but the results donot appear as expected"Environment.Value("TestCase_Log")="True"

End If

'Step6'Clicking on any result value

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

NextIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).WebTable("Item").RowCount >2 ThenPage_Flag=trueEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEv

ent").WebEdit("EventName").GetROProperty("value"))

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Brow

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 91/144

ser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and instr(1,PageProcessingStatus,trim(DataTable.Value("EventName","UnderlyingEvent"))) Then

Reporter.ReportEvent micPass,"Step 6:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

Else

Reporter.ReportEvent micFail,"Step 6:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page does not open up"

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

End IfElseReporter.ReportEvent micPass,"Click on the link under event name","There

are no events present for this search criteria"Page_Flag=falseEnd If

Wait(2)'Step7'Change the processing status to unapproved and cklicking on saveCall Select_Combo_Value("CorporateActions","UnderlyingEvent","Processing

Status","Unapproved")Call Browser("CorporateActions").Page("UnderlyingEvent").Image("Save").W

aitProperty("visible","True",5)Browser("CorporateActions").Page("UnderlyingEvent").Image("Save").ClickIf Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Change the processing status to Unapproved and save","The processing status is changed to unapproved and save is clicked"

Else

Reporter.ReportEvent micFail,"Change the processing status to Unapproved and save","The processing status is not changed to unapproved and saved"

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

Wait(5)Wait(4)'Call verify_WebTable_ValidationMessage("CorporateActions","UnderlyingEv

ent","Validation Error","Corporate Action Event is required")'Call verify_WebTable_ValidationMessage("CorporateActions","UnderlyingEv

ent","Validation Error","Payment Date is required")'Call verify_WebTable_ValidationMessage("CorporateActions","UnderlyingEv

ent","Validation Error","Mandatory/Voluntary Indicator is required")Call clkValidationErrorElement("CorporateActions","UnderlyingEvent","Val

idation Error","Field: Corporate Action Event is required;Field: ISIN is required;Field: Record Date is required","CorporateActionEvent;ISIN_Edit;RecordDate")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step7: Check for the validation er

ror message on save","The validation error message is as required"Else

Reporter.ReportEvent micFail,"Step7: Check for the validation error message on save","The validation error message does not appear as required"

Environment.Value("TestCase_Log")="True"End IfBrowser("CorporateActions").Page("UnderlyingEvent").Image("Close").Click

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 92/144

Call set_WebEdit_Value ("CorporateActions","UnderlyingEvent","Mandatoryand Voluntary Indicator",Datatable.Value("MandatoryVoluntaryIndicator","UnderlyingEvent"))

If DataTable.Value("LocalRecordDate","UnderlyingEvent") <> "" ThenstrDataTableValue = DataTable.Value("Loc

alRecordDate","UnderlyingEvent")strValue = Split(strDataTableValue,";",-

1,1)strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)Call click_Image("CorporateActions","Und

erlyingEvent","ShowCalendar")Call ClickIcon_SetDate("CorporateActions

","UnderlyingEvent",strMonthValue,strYearValue,strDateValue)End If

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Enter the Record Date","The Reco

rd date is entered as required"Else

Reporter.ReportEvent micFail ,"Enter the Record date","The Record date is entered as required"

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

strCorporateActionEventValue = get_WebEdit_Value("CorporateActions","UnderlyingEvent","CorporateActionEvent")

strSEDOLValue = get_WebEdit_Value("CorporateActions","UnderlyingEvent","ISIN_Edit")

If strCorporateActionEventValue<> "" And strSEDOLValue<>"" Then

Reporter.ReportEvent micPass,"Step8:Verify whether theCorporate action event and ISIN are autopopulated","These fields are autopopul

ated as required"Else

Reporter.ReportEvent micFail ,"Step8:Verify whether the Corporate action event and ISIN are autopopulated","These fields are not autopopulated as required"

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

'Clicking on saveBrowser("CorporateActions").Page("UnderlyingEvent").Image("Save").ClickIf Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Click on the save button","The required error message is generated "

ElseReporter.ReportEvent micFail,"Click on the save button","The req

uired error message is not generated"

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 93/144

Call select_Menu("CorporateActions","UnderlyingEvent","Home;DR Home")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step10:Navigate to the DR home page","The DR home page opens up as required"

ElseReporter.ReportEvent micFail ,"Step10:Navigate to the DR Home p

age","The DR Home page does not oopen up as required"Environment.Value("TestCase_Log")="True"

End If

End Function

'**********************************************************************************************************************************************************************************************Public Function CAProfileUnderlyingEvent_TC19()

Environment.Value("TestCase_Log") ="True"Call logoutfromApp("CorporateActions","Depositary Receipt Division's")Call invoke_URL("CorporateActions","Login Page",DataTable.Value("URL","C

ALogin"))Call login("CorporateActions","Login Page","Product Management","CALogin

")

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

Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))

If Environment.Value ("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Check the CA Home page","The CA

Home page had loaded as required"Else

Reporter.ReportEvent micFail ,"Check the CA Home page","The CA Home page has not loaded as required"

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

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

blnFlag = Browser("CorporateActions").Page("Profile - Upload Notification").Exist(5)

If blnFlag = true ThenReporter.ReportEvent micPass,"Step 1: Verfiying if the P

age ' Profile Upload Notification ' is displayed or NOT","The Page ' Profile Upload Notification ' is displayed successfully"

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

age ' Profile Upload Notification ' is displayed or NOT","The Page ' Profile Upload Notification ' is NOT displayed successfully"

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

End If

Call CreateNewFolder("UploadFiles")

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 94/144

strFilePath = CreateFile("UploadFiles",DataTable.Value("TestCaseID","UnderlyingEvent"),".doc")

Call Select_Combo_Value("CorporateActions","Profile - Upload Notification","TagetDocument",DataTable.Value("TargetDocument","UnderlyingEvent"))

' Entering the path of the File and clicking on Save

Browser("CorporateActions").Page("Profile - Upload Notification").WebFile("UploadFile").Click

Browser("CorporateActions").Dialog("Choose file").WinEdit("Filename:").Set strFilePath

Browser("CorporateActions").Dialog("Choose file").WinButton("Open").Click

Wait(3)

If DataTable.Value("CorporateActionType","UnderlyingEvent")<>"" Then

Browser("CorporateActions").Page("Profile - Upload Notification").Image("CorporateActionTypeInfo").Click

 If Browser("CorporateActions").Page("Profile - Upload Notification").Frame("lookupFrame").Exist(2) And Browser("CorporateActions").Page("Profile - Upload Notification").Frame("lookupFrame").WebTable("Corporate Action Event").Exist(2) Then

Reporter.ReportEvent micDone,"Check whether the frame pops-up with the required details","The frame pops-up as required"

Call operation_on_FrameObjects_WithName("CorporateActions","Profile - Upload Notification","lookupFrame","WebEdit","cactnTypeTx",trim(DataTable.Value("CorporateActionType","UnderlyingEvent")))

Call operation_on_FrameObjects_WithName("CorporateActions","Profile - Upload Notification","lookupFrame","Image","Go",

"")Call SelectValueInsideFrame("Corporate

Actions","Profile - Upload Notification","lookupFrame",trim(DataTable.Value("CorporateActionType","UnderlyingEvent")))

ElseReporter.ReportEvent micFail," Check whe

ther the Frame has pop-up with the required details","The frame is not found"Call captureScreenshot()Environment.Value("Execution_Log")="Fals

e"

End IfEnd If

If DataTable.Value("Comparison","UnderlyingEvent") <> "" ThenCall Select_Combo_Value("CorporateActions","Profile - Upload Not

ification","Comparison",DataTable.Value("Comparison","UnderlyingEvent"))End If

If DataTable.Value("LocalRecordDate","UnderlyingEvent") <> "" ThenstrDataTableValue = DataTable.Value("Loc

alRecordDate","UnderlyingEvent")strValue = Split(strDataTableValue,";",-

1,1)

strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 95/144

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

Call ClickIcon_SetDate("CorporateActions","Profile - Upload Notification",strMonthValue,strYearValue,strDateValue)

End If

If DataTable.Value("PaymentDate","UnderlyingEvent") <> "" Then

strDataTableValue = DataTable.Value("PaymentDate","UnderlyingEvent")

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

strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)Call click_Image("CorporateActions","Pro

file - Upload Notification","PaymentDate")Call ClickIcon_SetDate("CorporateActions

","Profile - Upload Notification",strMonthValue,strYearValue,strDateValue)End If

 

'Entering the Underlying SecurityCall click_Image("CorporateActions","Profile - Upload Notificati

on","UnderlyingSecurityinfo")Call operation_on_FrameObjects_WithName("CorporateActions","Prof

ile - Upload Notification","lookupFrame","WebEdit","divNm",DataTable.Value("UnderlyingSecurityName","UnderlyingEvent"))

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

Call chkResultinFrame("CorporateActions","Profile - Upload Notification","lookupFrame","ISIN","Und. Security Name",DataTable.Value("UnderlyingSecurityName","UnderlyingEvent"))

Call SelectValueinFrame("CorporateActions","Profile - Upload Notification","lookupFrame","ISIN")

' Verifiyng the Filled of ISN , SEDOL and Sender NamestrISINValue = get_WebEdit_Value("CorporateActions","Profile - U

pload Notification","ISIN")strSEDOLValue = get_WebEdit_Value("CorporateActions","Profile -

Upload Notification","SEDOL")strSenderName = get_WebEdit_Value("CorporateActions","Profile -

Upload Notification","SenderName") 

If Environment.Value("TestCase_Log") ="True" AND strISINValue <>"" AND strSEDOLValue <> "" AND strSenderName <> "" Then

Reporter.ReportEvent micPass," Verifiyng if the Values in the Fields are filled or NOT","The Values in the Fields ' ISIN, SEDOL and Sender Name' are automatiCally filled after entering the Underlying Security"

ElseReporter.ReportEvent micFail," Verifiyng if the Values i

n the Fields are filled or NOT","The Values in the Fields ' ISIN , SEDOL and Sender Name' are NOT filled automatiCally after entering the Underlying Security"

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

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

End If

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 96/144

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

Wait(4)Wait(4)

If Browser("CorporateActions").Page("UnderlyingNotification").Exist(2) Then

Reporter.ReportEvent micPass,"Click on the save button","The notification has been uploaded successfully"

ElseReporter.ReportEvent micFail,"Upload a notification","The notifi

cation has not been uploaded successfully"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

Wait(4)Wait(4)

Call Browser("CorporateActions").Dialog("File Download").WaitProperty("enable

d","True",25)

If Browser("CorporateActions").Dialog("File Download").Exist(2) ThenBrowser("CorporateActions").Dialog("File Download").WinButton("C

ancel").ClickEnd IfIf Browser("CorporateActions").Page("UnderlyingNotification").WebList("P

rocessingStatus").GetROProperty("selection")="Assigned" ThenReporter.ReportEvent micPass,"Check for the Processing Status","

The Processing status is Assigned as required"Else

Reporter.ReportEvent micFail,"Check for the processing status","The processing status is not assigned"

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

End If

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

Call click_Image("CorporateActions","UnderlyingNotification","Save")

If Environment.Value("TestCase_Log") = "True" thenReporter.ReportEvent micPass,"Step2:Assign Uploaded document wit

h notification details to a corporate action event","Document is assigned to a corporate action event successfully"

ElseReporter.ReportEvent micFail,"Step2: Assign Uploaded document wi

th notification details to a corporate action event","Document is not assigned successfully"

Environment.Value("Execution_Log") = "False"End IfWait(4)Wait(4) Call Browser("CorporateActions").Dialog("File Download").WaitProperty("e

nabled","True",25)

If Browser("CorporateActions").Dialog("File Download").Exist(2) ThenBrowser("CorporateActions").Dialog("File Download").WinButton("C

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 97/144

ancel").ClickEnd IfWait(4)Wait(4)Wait(8)

Call select_Menu("CorporateActions","UnderlyingNotification","Profile;Un

derlying Event")Wait(4)Wait(4)Browser("CorporateActions").RefreshBrowser("CorporateActions").RefreshBrowser("CorporateActions").RefreshBrowser("CorporateActions").RefreshWait(4)

'Step3If Browser("CorporateActions").Page("Profile - Underlyin

g Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"Else

Reporter.ReportEvent micFail,"Check fot the existance of the search by table","The search by table is not present as required"

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

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Underlying Event Search","Clear;Search","")

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("CorporateActionInfo").exist(2) then

Reporter.ReportEvent micPass,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon next to the ISIN Edit box","The ? Mark icon does not exist as required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? ic

on next to the Underlying security Edit box","The ? Mark icon exists as required

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 98/144

"Else

Reporter.ReportEvent micFail,"Check for the ? icon next to the Underlying security Edit box","The ? Mark icon does not exist asrequired"

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

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

rts menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 3: Under Rep

orts menu select Underlying Event..","Expected fields are not displayed in search criteria"

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

'Step4'Clicking on the clear buttonBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").Click'Checking if all the fields have been cleared and whether the default v

alues of the fields alone are presentCall chkCAProfileUnderlyingEventClear("CorporateActions","Profile - Unde

rlying Event Search")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 4: Click on the clear button and check if the fields have been cleared.","The fields are cleared as expected"

ElseReporter.ReportEvent micFail,"Step 4: Click on

the clear button and check if the fields have been cleared..","The fields have not been cleared as expected"

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

'Step5'Enter event name to searchCall chkUnderlyingEventsSearchCriteria ("CorporateActions","Profile - Un

derlying Event Search","")Call click_Image("CorporateActions","Profile - Underlying Event Search",

"Search")Call chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","EventName")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: En

ter Event Name to search.","The event name has been entered and the results appear as expected"

ElseReporter.ReportEvent micFail,"Step 5: En

ter Event Name to search.","The event name has been entered but the results do

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 99/144

not appear as expected"Environment.Value("TestCase_Log")="True"

End If

'Step6

'Clicking on any result value

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

NextIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).WebTable("Item").RowCount >2 Then

Page_Flag=trueEventName=Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").GetCellData(3,colcounter1)

Browser("CorporateActions").Page("Profile - Underlying Event Search").WebElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"

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

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEvent").WebEdit("EventName").GetROProperty("value"))

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and instr(1,PageProcessingStatus,trim(DataTable.Value("EventName","UnderlyingEvent"))) Then

Reporter.ReportEvent micPass,"Step 6:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step 6:Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underlying event page does not open up"

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

End IfElseReporter.ReportEvent micPass,"Click on the link under event name","There

are no events present for this search criteria"Page_Flag=false

End If

Wait(2)

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 100/144

'Step7'Change the processing status to unapproved and cklicking on saveCall Select_Combo_Value("CorporateActions","UnderlyingEvent","Processing

Status","Unapproved")Call Browser("CorporateActions").Page("UnderlyingEvent").Image("Save").W

aitProperty("visible","True",5)Browser("CorporateActions").Page("UnderlyingEvent").Image("Save").Click

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Change the processing status to Un

approved and save","The processing status is changed to unapproved and save is clicked"

ElseReporter.ReportEvent micFail,"Change the processing status to Un

approved and save","The processing status is not changed to unapproved and saved"

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

Wait(5)

Wait(4)'Call verify_WebTable_ValidationMessage("CorporateActions","UnderlyingEvent","Validation Error","Corporate Action Event is required")

'Call verify_WebTable_ValidationMessage("CorporateActions","UnderlyingEvent","Validation Error","Payment Date is required")

'Call verify_WebTable_ValidationMessage("CorporateActions","UnderlyingEvent","Validation Error","Mandatory/Voluntary Indicator is required")

Call clkValidationErrorElement("CorporateActions","UnderlyingEvent","Validation Error","Field: Corporate Action Event is required;Field: ISIN is required;Field: Payment Date is required;Field: Mandatory/Voluntary indicator is required","CorporateActionEvent_Repurchase;ISIN_Repurchase;PaymentDate;Mandatory/Voluntary Indicator_Repurchase")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step7 and 8: Check for the validat

ion error message on save","The validation error message is as required"Else

Reporter.ReportEvent micFail,"Step7 and 8: Check for the validation error message on save","The validation error message does not appear as required"

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

If DataTable.Value("LocalRecordDate","UnderlyingEvent") <> "" ThenstrDataTableValue = DataTable.Value("Loc

alRecordDate","UnderlyingEvent")strValue = Split(strDataTableValue,";",-

1,1)strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)Call click_Image("CorporateActions","Und

erlyingEvent","ShowCalendar")Call ClickIcon_SetDate("CorporateActions

","UnderlyingEvent",strMonthValue,strYearValue,strDateValue)End If

If DataTable.Value("PaymentDate","UnderlyingEvent") <> "" Then

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 101/144

strDataTableValue = DataTable.Value("PaymentDate","UnderlyingEvent")

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

strDateValue = strValue(0)strMonthValue = strValue(1)strYearValue = strValue(2)

Call click_Image("CorporateActions","UnderlyingEvent","ShowCalendar")

Call ClickIcon_SetDate("CorporateActions","UnderlyingEvent",strMonthValue,strYearValue,strDateValue)

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

Reporter.ReportEvent micPass,"Step9:Enter the payment Date","The Payment date is entered as required"

ElseReporter.ReportEvent micFail ,"Step9:Enter the payment date","T

he payment date is entered as required"Environment.Value("TestCase_Log")="True"

End If

strCorporateActionEventValue = get_WebEdit_Value("CorporateActions","UnderlyingEvent","CorporateActionEvent_Repurchase")

strSEDOLValue = get_WebEdit_Value("CorporateActions","UnderlyingEvent","ISIN_Repurchase")

If strCorporateActionEventValue<> "" And strSEDOLValue<>"" Then

Reporter.ReportEvent micPass,"Step10:Verify whether the Corporate action event and ISIN are autopopulated","These fields are autopopulated as required"

ElseReporter.ReportEvent micFail ,"Step10:Verify whether t

he Corporate action event and ISIN are autopopulated","These fields are not autopopulated as required"

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

'Clicking on saveBrowser("CorporateActions").Page("UnderlyingEvent").Image("Save").ClickIf Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step11:Click on the save button","The required error message is generated "

ElseReporter.ReportEvent micFail,"Step11: Click on the save button",

"The required error message is not generated"Environment.Value("TestCase_Log")="True"

End If

Call clkValidationErrorElement("CorporateActions","UnderlyingEvent","Validation Error","Field: Mandatory/Voluntary indicator is required","Mandatory/Voluntary Indicator_Repurchase")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step12:Click on the error messag

e","The required field is highlighted as required"Else

Reporter.ReportEvent micFail ,"Step12:Click on the error messag

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 102/144

e ","The required field is not highlighted"Environment.Value("TestCase_Log")="True"

End If

Call set_WebEdit_Value ("CorporateActions","UnderlyingEvent","Mandatory/Voluntary Indicator_Repurchase",Datatable.Value("MandatoryVoluntaryIndicator","UnderlyingEvent"))

'Clicking on saveBrowser("CorporateActions").Page("UnderlyingEvent").Image("Save").ClickIf Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Click on the save button","The required error message is generated "

ElseReporter.ReportEvent micFail,"Click on the save button","The req

uired error message is not generated"Environment.Value("TestCase_Log")="True"

End If

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

Reporter.ReportEvent micPass ,"Step13:Fill the indicator fieldand click on save","The Event gets saved as unapproved"Else

Reporter.ReportEvent micFail ,"Step13:Fill the indicator fieldand click on save","The Event does not get saved as unapproved"

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

Call select_Menu("CorporateActions","UnderlyingEvent","Home;DR Home")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step14:Navigate to the DR home page","The DR home page opens up as required"

ElseReporter.ReportEvent micFail ,"Step14:Navigate to the DR Home p

age","The DR Home page does not oopen up as required"Environment.Value("TestCase_Log")="True"

End If

End Function'********************************************************************************************************************************************************************************************Public Function CAProfileUnderlyingEvent_TC20()

Environment.Value ("TestCase_Log")="True"Call logoutfromApp("CorporateActions","Depositary Receipt Division's")

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

Call login("CorporateActions","Login Page","Approver","CALogin")

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))

If Environment.Value ("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Check the CA Home page","The CA

Home page had loaded as required"Else

Reporter.ReportEvent micFail ,"Check the CA Home page","The CA H

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 103/144

ome page has not loaded as required"Environment.Value ("TestCase_Log")="True"

End If'#Step1'Under Profile menu select 'Underlying Event'.Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("

MenuPath","UnderlyingEvent"))

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")Call pageCheck_WebListOR("CorporateActions","Profile - U

nderlying Event Search","ProcessingStatus;Owner")Call pageCheck_Image("CorporateActions","Profile - Under

lying Event Search","Clear;Search","")If Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("CorporateActionInfo").exist(2) thenReporter.ReportEvent micPass,"Check for the ? ic

on next to the Corporate action type Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the ISIN Edit box","The ? Mark icon does not exist as required"

Environment.Value("Execution_Log")="False"End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the Underlying security Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the Underlying security Edit box","The ? Mark icon does not exist as required"

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

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 104/144

Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: U

nder Reports menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

'Step2Browser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").ClickReporter.ReportEvent micDone ,"Step2: Click on the clear button","The c

lear button is cliked as required"Call chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Und

erlying Event Search","")Browser("CorporateActions").Page("Profile - Underlying Event Search").Image(

"Search").Click

'Check the header for the reportsCall chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step3: Enter the required search

criteria and click on search","The search results are displayed correctly"Else

Reporter.ReportEvent micFail ,"Step3: Enter the required searchcriteria and click on search","The search results are not displayed correctly"

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

'Step4'Clicking on any result value

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").RowCount < 3 Then

Reporter.ReportEvent micPass,"Check for the Underlying Notification search results","There are no results available for this search criteria"

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

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

NextEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").ClickEnd If

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 105/144

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

End If

PageProcessingStatus=Browser("CorporateActions").Page("UnderlyingEvent").WebList("ProcessingStatus").GetROProperty("selection")

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Unapproved" Then

Reporter.ReportEvent micPass,"Step4: Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step4: Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underlying event page does not opens up"

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

End If

'Step5Call Select_Combo_Value("CorporateActions","UnderlyingEvent","Processing

Status","Approved")Call click_Image("CorporateActions","UnderlyingEvent","Save")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step5:Change the status to approve and click on save","The event is approved and saved as required"

ElseReporter.ReportEvent micFail ,"Step5: Change the status to appr

ove and click on save","The event is not approved"Environment.Value("TestCase_Log")="True"

End If

'Step6Call select_Menu("CorporateActions","UnderlyingEvent","Home;DR Home")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step6:Click on the Home DR Homelink","The DR Home page opens up"

ElseReporter.ReportEvent micFail ,"Step6:Click on the Home DR Home

link","The DR Home page does not open up as required"Environment.Value("TestCase_Log")="True"

End IfEnd Function'************************************************************************************************************************************************************************************Public Function CAProfileUnderlyingEvent_TC21()

Environment.Value ("TestCase_Log")="True"Call logoutfromApp("CorporateActions","Depositary Receipt Division's")

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

Call login("CorporateActions","Login Page","Approver","CALogin")

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Val

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 106/144

ue("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))

If Environment.Value ("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Check the CA Home page","The CA

Home page had loaded as required"Else

Reporter.ReportEvent micFail ,"Check the CA Home page","The CA H

ome page has not loaded as required"Environment.Value ("TestCase_Log")="True"

End If'#Step1'Under Profile menu select 'Underlying Event'.Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("

MenuPath","UnderlyingEvent"))

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

Else Reporter.ReportEvent micFail,"Check fot the existance of the search by table","The search by table is not present as required"

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

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Underlying Event Search","Clear;Search","")

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("CorporateActionInfo").exist(2) then

Reporter.ReportEvent micPass,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the ISIN Edit box","The ? Mark icon does not exist as required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the Underlying security Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon next

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 107/144

to the Underlying security Edit box","The ? Mark icon does not exist as required"

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - Underlying

Event Search","UnderlyingEvent")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 1: Under Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: U

nder Reports menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

'Step2Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("Clear").Click

Reporter.ReportEvent micDone ,"Step2: Click on the clear button","The clear button is cliked as required"

Call chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Underlying Event Search","")

Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("Search").Click

'Check the header for the reportsCall chkEventSearchReportHeader("CorporateActions","Profile - Underlying

Event Search","UnderlyingEvent")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ," Enter the required search crite

ria and click on search","The search results are displayed correctly"Else

Reporter.ReportEvent micFail ," Enter the required search criteria and click on search","The search results are not displayed correctly"

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

'Step3'Clicking on any result value

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").RowCount < 3 Then

Reporter.ReportEvent micPass,"Check for the Underlying Notification search results","There are no results available for this search criteria"

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

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

Next

EventName=Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").GetCellData(3,colcounter1)

Browser("CorporateActions").Page("Profile - Underlying Event Search").We

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 108/144

bElement("html tag:=TD","innertext:="&EventName,"index:=0").ClickEnd If

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

Else

Reporter.ReportEvent micFail," Under Event Name click on any link","The UnderlyingEvent page does not open up as required"

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

End If

PageProcessingStatus=Browser("CorporateActions").Page("UnderlyingEvent").WebList("ProcessingStatus").GetROProperty("selection")

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Approved" Then

Reporter.ReportEvent micPass,"Step3: Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step3: Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underlying event page does not opens up"

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

End If

Wait(4)temp=Browser("CorporateActions").Page("UnderlyingEvent").Image("Save CA

Event Details").GetROProperty("visible")If temp Then

Reporter.ReportEvent micPass ,"Step4:Check whether there is a save button below","There is a save button as required"

ElseReporter.ReportEvent micFail ,"Step4: Check whether there is a

save button below","There is no save button"Call captureScreenshot()Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="True"

End If

'Step5Call Select_Combo_Value("CorporateActions","UnderlyingEvent","Processing

Status","Cancelled")Call click_Image("CorporateActions","UnderlyingEvent","Save")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step5:Change the status to approve and click on save","The event is approved and saved as required"

ElseReporter.ReportEvent micFail ,"Step5: Change the status to appr

ove and click on save","The event is not approved"Environment.Value("TestCase_Log")="True"

End If

'Step6

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 109/144

Call select_Menu("CorporateActions","UnderlyingEvent","Home;DR Home")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step6:Click on the Home DR Homelink","The DR Home page opens up"

ElseReporter.ReportEvent micFail ,"Step6:Click on the Home DR Home

link","The DR Home page does not open up as required"

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

End Function'*******************************************************************************************************************************************************************************************Public Function CAProfileUnderlyingEvent_TC22()

Environment.Value ("TestCase_Log")="True"Call logoutfromApp("CorporateActions","Depositary Receipt Division's")

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

Call login("CorporateActions","Login Page","Approver","CALogin")

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))

If Environment.Value ("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Check the CA Home page","The CA

Home page had loaded as required"Else

Reporter.ReportEvent micFail ,"Check the CA Home page","The CA Home page has not loaded as required"

Environment.Value ("TestCase_Log")="True"End If'#Step1'Under Profile menu select 'Underlying Event'.Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("

MenuPath","UnderlyingEvent"))

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Underlying Event Search","Clear;Search","")

If Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("CorporateActionInfo").exist(2) thenReporter.ReportEvent micPass,"Check for the ? ic

on next to the Corporate action type Edit box","The ? Mark icon exists as requir

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 110/144

ed"Else

Reporter.ReportEvent micFail,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the ISIN Edit box","The ? Mark icon does not exist as required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon nextto the Underlying security Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? icon next

to the Underlying security Edit box","The ? Mark icon does not exist as required"

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

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

der Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: U

nder Reports menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

'Step2Browser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").ClickReporter.ReportEvent micDone ,"Step2: Click on the clear button","The c

lear button is cliked as required"Call chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Und

erlying Event Search","")Browser("CorporateActions").Page("Profile - Underlying Event Search").Image(

"Search").Click'Check the header for the reports

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

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

Reporter.ReportEvent micPass ," Enter the required search criteria and click on search","The search results are displayed correctly"

Else

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 111/144

Reporter.ReportEvent micFail ," Enter the required search criteria and click on search","The search results are not displayed correctly"

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

'Step3'Clicking on any result value

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").RowCount < 3 Then

Reporter.ReportEvent micPass,"Check for the Underlying Notification search results","There are no results available for this search criteria"

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

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit for

End IfNextEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").ClickEnd If

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=Browser("CorporateActions").Page("UnderlyingEvent").WebList("ProcessingStatus").GetROProperty("selection")

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Unapproved" Then

Reporter.ReportEvent micPass,"Step3: Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step3: Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underlying event page does not opens up"

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

End If

 'Step4

Call Select_Combo_Value("CorporateActions","UnderlyingEvent","Processing

Status","Rejected")Call click_Image("CorporateActions","UnderlyingEvent","Save")If Environment.Value("TestCase_Log")="True" Then

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 112/144

Reporter.ReportEvent micPass,"Step4:Change the status to approve and click on save","The event is approved and saved as required"

ElseReporter.ReportEvent micFail ,"Step4: Change the status to appr

ove and click on save","The event is not approved"Environment.Value("TestCase_Log")="True"

End If

'Step5Call select_Menu("CorporateActions","UnderlyingEvent","Home;DR Home")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step5:Click on the Home DR Homelink","The DR Home page opens up"

ElseReporter.ReportEvent micFail ,"Step5:Click on the Home DR Home

link","The DR Home page does not open up as required"Environment.Value("TestCase_Log")="True"

End If

End Function

'**************************************************************************************************************************************************************************************Public Function CAProfileUnderlyingEvent_TC23()

Environment.Value ("TestCase_Log")="True"Call logoutfromApp("CorporateActions","Depositary Receipt Division's")

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

Call login("CorporateActions","Login Page","Approver","CALogin")

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))

If Environment.Value ("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Check the CA Home page","The CA

Home page had loaded as required"Else

Reporter.ReportEvent micFail ,"Check the CA Home page","The CA Home page has not loaded as required"

Environment.Value ("TestCase_Log")="True"End If'#Step1'Under Profile menu select 'Underlying Event'.Call select_Menu("CorporateActions","CorporateActions",DataTable.Value("

MenuPath","UnderlyingEvent"))

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"

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

End if

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 113/144

Call pageCheck_WebEditOR("CorporateActions","Profile - Underlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Underlying Event Search","Clear;Search","")

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("CorporateActionInfo").exist(2) then

Reporter.ReportEvent micPass,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End if

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the ISIN Edit box","The ? Mark icon does not exist as required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for the ? icon next

to the Underlying security Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon nextto the Underlying security Edit box","The ? Mark icon does not exist as required"

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

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

der Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: U

nder Reports menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

'Step2Browser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").Click

Reporter.ReportEvent micDone ,"Step2: Click on the clear button","The clear button is cliked as required"

Call chkUnderlyingEventsSearchCriteria("CorporateActions","Profile - Und

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 114/144

erlying Event Search","")Browser("CorporateActions").Page("Profile - Underlying Event Search").Image(

"Search").Click'Check the header for the reports

Call chkEventSearchReportHeader("CorporateActions","Profile - UnderlyingEvent Search","UnderlyingEvent")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ," Enter the required search crite

ria and click on search","The search results are displayed correctly"Else

Reporter.ReportEvent micFail ," Enter the required search criteria and click on search","The search results are not displayed correctly"

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

'Step3'Clicking on any result value

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTabl

e("Item").RowCount < 3 ThenReporter.ReportEvent micPass,"Check for the Underlying Notification search results","There are no results available for this search criteria"

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

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

Next

EventName=Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").GetCellData(3,colcounter1)

Browser("CorporateActions").Page("Profile - Underlying Event Search").WebElement("html tag:=TD","innertext:="&EventName,"index:=0").ClickEnd If

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()

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

PageProcessingStatus=Browser("CorporateActions").Page("UnderlyingEvent").WebList("ProcessingStatus").GetROProperty("selection")

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and PageProcessingStatus="Pending" Then

Reporter.ReportEvent micPass,"Step3: Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step3: Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underl

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 115/144

ying event page does not opens up"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

 'Step4

Call Select_Combo_Value("CorporateActions","UnderlyingEvent","ProcessingStatus","No Action Needed")

Call click_Image("CorporateActions","UnderlyingEvent","Save")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step4:Change the status to approv

e and click on save","The event is approved and saved as required"Else

Reporter.ReportEvent micFail ,"Step4: Change the status to approve and click on save","The event is not approved"

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

Wait(4)Call verify_WebTable_ValidationMessage("CorporateActions","UnderlyingEvent","Validation Error","Enter a Comment for the No Action Needed request, or select another Processing Status.")

Wait(4)Browser("CorporateActions").Page("UnderlyingEvent").Image("Close").ClickWait(2)Browser("CorporateActions").Page("UnderlyingEvent").WebEdit("Comments").

Set(DataTable.Value("Comment","UnderlyingEvent"))'Call setWebEdit_Value("CorporateActions","UnderlyingEvent","Comments",D

ataTable.Value("Comment","UnderlyingEvent"))If Browser("CorporateActions").Page("UnderlyingEvent").WebEdit("Comments

").Exist(2) Then

Reporter.ReportEvent micPass ,"Step5:Enter the comments in thecomments section","The comments are entered as required"

ElseReporter.ReportEvent micFail ,"Step5:Enter the comments in the

comments section as required","The comments are not entered as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End IfCall click_Image("CorporateActions","UnderlyingEvent","Save")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step6: Click on the save button","The event gets saved as required"

ElseReporter.ReportEvent micFail ,"Step6:Click on the save button",

"The event does not get saved as required"Environment.Value("TestCase")="True"

End If

'Step5Call select_Menu("CorporateActions","UnderlyingEvent","Home;DR Home")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step7:Click on the Home DR Homelink","The DR Home page opens up"

ElseReporter.ReportEvent micFail ,"Step7:Click on the Home DR Home

link","The DR Home page does not open up as required"Environment.Value("TestCase_Log")="True"

End If

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 116/144

End Function'*****************************************************************************************************************************************************************************************

Public function CAProfileUnderlyingEvent_TC24()Environment.Value("TestCase_Log") = "True"

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

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

Call login("CorporateActions","Login Page","Product Management","CALogin")

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))

If Environment.Value ("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Check the CA Home page","The CAHome page had loaded as required"

ElseReporter.ReportEvent micFail ,"Check the CA Home page","The CA H

ome page has not loaded as required"Environment.Value ("TestCase_Log")="True"

End If'#Step1'Under Profile menu select 'Underlying Event'.

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

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Underlying Event Search","Clear;Search","")

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("CorporateActionInfo").exist(2) then

Reporter.ReportEvent micPass,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Corporate action type Edit box","The ? Mark icon does not exist

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 117/144

End ifIf Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? i

con next to the ISIN Edit box","The ? Mark icon does not exist as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifIf Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the Underlying security Edit box","The ? Mark icon exists asrequired"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Underlying security Edit box","The ? Mark icon does not exist as

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent")

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

der Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: U

nder Reports menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

 

'Clicking on the clear buttonBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").Click'Checking if all the fields have been cleared and whether the default v

alues of the fields alone are presentCall chkCAProfileUnderlyingEventClear("CorporateActions","Profile - Unde

rlying Event Search")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Click on the clear button and check if the fields have been cleared.","The fields are cleared as expected"

ElseReporter.ReportEvent micFail," Click on

the clear button and check if the fields have been cleared..","The fields have not been cleared as expected"

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

'Step2

'Search for any Unapproved eventCall chkUnderlyingEventsSearchCriteria ("CorporateActions","Profile - Un

derlying Event Search","")

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 118/144

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

Call chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent","ProcessingStatus")

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

Reporter.ReportEvent micPass," Step2:Search for an unapproved event.","All the records matching the search criteria appear as required"

ElseReporter.ReportEvent micFail," Step2:Sea

rch for an unapproved event.","Records matching the search criteria does not appear as required"

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

'Step3'Clicking on any result value

For colcounter1=1 to Browser("CorporateActions").Page("Profile - UnderlyingEvent Search").WebTable("Item").ColumnCount(2)If Browser("CorporateActions").Page("Profile - Underlying Event

Search").WebTable("Item").GetCellData(2,colcounter1)="Event Name" ThenExit for

End IfNextIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).WebTable("Item").RowCount >2 ThenPage_Flag=trueEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEvent").WebEdit("EventName").GetROProperty("value"))

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and instr(1,PageProcessingStatus,trim(DataTable.Value("EventName","UnderlyingEvent"))) Then

Reporter.ReportEvent micPass,"Step3:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step3:Click on any link under 'Eve

nt Name' and verify whether the Underlying event page opens or not","The underlying event page does not open up"

Call captureScreenshot()

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 119/144

Environment.Value("Execution_Log")="False"End IfElseReporter.ReportEvent micFail,"Step3: Click on the link under event name"

,"There are no events present for this search criteria"Page_Flag=falseEnd If

Wait(2)

'Checking whether the event has any notificationIf Browser("CorporateActions").Page("UnderlyingEvent").WebTable("Notifi

cations Assigned").RowCount>3 Then

Call click_Image("CorporateActions","UnderlyingEvent","Delete")Wait(4)Wait(4)

If Browser("CorporateActions").Dialog("Microsoft Internet Explorer").Exist(2) then

Reporter.ReportEvent micPass,"Step4::Click on the Delete buttonin the Underlying Event screen","The Delete button is clicked successfully "Else

Reporter.ReportEvent micFail,"Step4: Click on the Delete buttonin the Underlying Event screen","The Delete button is not clicked successfully

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

End IfWait(4)Browser("CorporateActions").Dialog("Microsoft Internet Explorer").WinBut

ton("OK").ClickIf Browser("CorporateActions").Page("Profile - Underlying Event Search")

.Exist(2) Then

Reporter.ReportEvent micPass," The OK button is to be clicked inthe pop-up that appears","The button is clicked as expected"

ElseReporter.ReportEvent micFail," The OK button is clicked in the p

op-up that appears","The Event is not deleted as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End IfCall verify_WebTable_ValidationMessage("CorporateActions","UnderlyingEve

nt","Validation Error","This Event has Underlying Notifications still attached to it, hence it cannot be deleted.")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step5: Check for the error messag

e","The required error message appears"Else

Reporter.ReportEvent micFail ,"Step5:Check for the error message","The error message does not appear as required"

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

'Step6'Clicking on the Bulk move button

If Browser("CorporateActions").Page("UnderlyingEvent").WebButton("BulkMove").Exist(2) then

Browser("CorporateActions").Page("UnderlyingEvent").WebButton("B

ulk Move").ClickReporter.ReportEvent micPass,"Step6:Click on the Bulk Move butto

n","The Bulk Move button was clicked successfully"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 120/144

ElseReporter.ReportEvent micFail,"Step6: Click on the Bulk Move butt

on","The Bulk Move button was not clicked successfully"Call captureScreenshot()Environment.Value("TestCase_Log")="True"

End If

'Step7'Clicking on the select all notification checkbox

Browser("CorporateActions").Page("Bulk Move Event Notification").WebCheckBox("selectall").Set("ON")

If Browser("CorporateActions").Page("Bulk Move Event Notification").WebCheckBox("selectall").Exist(2)Then

Reporter.ReportEvent micPass,"Step7:Select the Select all checkbox","The Select all check box has been selected successfully"

ElseReporter.ReportEvent micFail,"Step7: Select the Select all check

box","The Select all check box has not been selected successfully"Call captureScreenshot()Environment.Value("TestCase_Log")="True"

End If

'Step8'Clickon the question mark next to the Event Name and select the eventBrowser("CorporateActions").Page("Bulk Move Event Notification").Image("

EventNameInfo").Click

If Browser("CorporateActions").Page("Bulk Move Event Notification").Frame("lookupFrame").Exist(2) Then

Reporter.ReportEvent micPass,"Step8:Click on the Question mark icon next to the Event Name Selection edit box","The Question mark icon is clicked as required"

ElseReporter.ReportEvent micFail,"Step8:Click on the Question mark i

con next to the Event Name selection edit box","The Question mark icon is not clicked"

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

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

' Call pageCheck_Frame("CorporateActions","Bulk Move Event Notification","lookupFrame","cactnEvntNm;cactnEvntDt;cactnTypeNm;isinNo","ClearFieldValue;Go","")'' If Environment.Value("TestCase_Log")="true" Then' Reporter.ReportEvent micPass,"Click on the Question mark icon next to the Event Name Selection edit box","The Frame opens with the required elements in it"' Else' Reporter.ReportEvent micFail,"Click on the Question mark icon next to the Event Name selection edit box","The frame does not contain all the required elements in it"

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 121/144

'Step7'Entering the value in the Event name fieldCall operation_on_FrameObjects_WithName("CorporateActions","Bulk Move Ev

ent Notification","lookupFrame","WebEdit","cactnEvntNm",DataTable.Value("MoveToEventName","UnderlyingEvent"))

Call operation_on_FrameObjects_WithName("CorporateActions","Bulk Move Ev

ent Notification","lookupFrame","Image","Go","")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step9: Enter an Move To event nameand click on GO!","The corresponding result values get displayed as required"

ElseReporter.ReportEvent micFail,"Step9: Enter an Move To event name

and click on GO!","The corresponding result values does not get displayed"Environment.Value("TestCase_Log")="True"

End If

'Step8

'Click on a result linkCall SelectValueinFrame("CorporateActions","Bulk Move Event Notification","lookupFrame","Event Name")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step10: Click on the required even

t name link in the pop-up","The Pop-up gets populated with the required values"Else

Reporter.ReportEvent micFail,"Step10: Click on the required event name link in the pop-up","The value does not get filled in the required collumns"

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

'Step11'Clicking on saveCall click_Image("CorporateActions","Bulk Move Event Notification","Save

")tempElementName=Browser("CorporateActions").Page("UnderlyingEvent").WebE

lement("Source Comparison Report").GetROProperty("innertext")

If Environment.Value("TestCase_Log")="True" And instr(1,tempElementName,"Notifications Assigned to this Corporate Action Event : 0 Records Found")And Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass,"Step11:Click on the save button inthe Bulk move screen","The save button is clicked successfully and we have navigated to the Underlying events page"

ElseReporter.ReportEvent micFail,"Step11 :Click on the save button

in the Bulk move screen","The save button is not clicked successfully"Call captureScreenshot()Environment.Value("Execution_log")="False"Environment.Value("TestCase_log")="True"

End If

' 'Step11' Call click_Image("CorporateActions","UnderlyingEvent","Save")

' If Environment.Value("TestCase_Log")="True" then' Reporter.ReportEvent micPass,"Step11:Click on the save button inthe Underlying Event screen","The save button is clicked successfully "

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 122/144

' Else' Reporter.ReportEvent micFail,"Step11: Click on the save buttonin the Underlying Event screen","The save button is not clicked successfully"' Environment.Value("TestCase_Log")="True"' End If

ElseReporter.ReportEvent micWarning,"Step11:Check if the event has any notif

ications attached to it","The event does not have any notifications attached toit so we directly go to step 12 where we try to delete the event"

End if

'Step12'Clicking the delete buttonCall click_Image("CorporateActions","UnderlyingEvent","Delete")If Browser("CorporateActions").Dialog("Microsoft Internet Explorer").Ex

ist(2) thenReporter.ReportEvent micPass,"Step12:Click on the Delete button

in the Underlying Event screen","The Delete button is clicked successfully "Else

Reporter.ReportEvent micFail,"Step12: Click on the Delete buttonin the Underlying Event screen","The Delete button is not clicked successfully"

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

End If

'Step13'Click on the OK button in the pop-up that appearsBrowser("CorporateActions").Dialog("Microsoft Internet Explorer").WinBut

ton("OK").Click

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Exist(2) Then

Reporter.ReportEvent micPass,"Step13: The OK button is to be clicked in the pop-up that appears","The button is clicked as expected"

ElseReporter.ReportEvent micFail,"Step13: The OK button is clicked i

n the pop-up that appears","The Event is not deleted as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

If Browser("CorporateActions").Page("UnderlyingEvent").Image("Error").Exist(2)Then

Reporter.ReportEvent micFail,"Check for any error messages","An error has occured due to which the test case is unable to continue deleting the event"

Call captureScreenshot()Call select_Menu("CorporateActions","UnderlyingEvent","Home;DR Home")Exit functionEnd If

'step13'Search for the event which was deleted beforeCall set_WebEdit_Value("CorporateActions","Profile - Underlying Event Se

arch","EventName",PageProcessingStatus)

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 123/144

blnExistFlag = "True"intRowCount = Browser("CorporateActions").Page("Profile

- Underlying Event Search").WebTable("UnderlyingEventSearch").RowCountFor intRC = 1 to intRowCount

strCellData = trim(Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("UnderlyingEventSearch").GetCellData(intRC,2))

strApprovalData=trim(Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("UnderlyingEventSearch").GetCellData(intRC,7))

If UCase(Trim(strCellData)) = UCase(Trim(strEventName)) and UCase(trim(strApprovalData))=UCase("Unapproved") Then

blnExistFlag = falseEnd ifNextIf blnExistFlag=false Then

Reporter.ReportEvent micFail,"Step14: Search for the deleted event","The deleted event is present"

Call captureScreenshot()

Environment.Value("Execution_Log")="False"ElseReporter.ReportEvent micPass,"Step14: Search for

the deleted event","The deleted event is not present as required"End If

Call Select_Menu("CorporateActions","Profile - Underlying Event Search","Home;DR Home")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Step15:Click on the home DR Home

link","The DR Home page opens up as required"Else

Reporter.ReportEvent micFail ,"Step15:Click on the home DR Homelink","The DR Home page does not open up"

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

End Function'**********************************************************************************************************************************************************************************************Public function CAProfileUnderlyingEvent_TC25()

Environment.Value("TestCase_Log") = "True"Browser("CorporateActions").Page("Depositary Receipt Division's"

).WebElement("CorporateActions").click

Environment.Value ("TestCase_Log")="True"Call logoutfromApp("CorporateActions","Depositary Receipt Division's")

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

Call login("CorporateActions","Login Page","Product Management","CALogin")

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" )

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

Reporter.ReportEvent micPass ,"Check the CA Home page","The CA

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 124/144

Home page had loaded as required"Else

Reporter.ReportEvent micFail ,"Check the CA Home page","The CA Home page has not loaded as required"

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

'#Step1

'Under Profile menu select 'Underlying Event'.Call select_Menu("CorporateActions","CorporateActions",D

ataTable.Value("MenuPath","UnderlyingEvent"))

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"Call captureScreenshot()

Environment.Value("Execution_Log")="False"End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Underlying Event Search","Clear;Search","")

If Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("CorporateActionInfo").exist(2) then

Reporter.ReportEvent micPass,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon exists as requir

ed"Else

Reporter.ReportEvent micFail,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon next to the ISIN Edit box","The ? Mark icon does not exist as required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the Underlying security Edit box","The ? Mark icon exists asrequired"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Underlying security Edit box","The ? Mark icon does not exist asrequired"

Call captureScreenshot()

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 125/144

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

Call chkEventSearchReportHeader("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent")

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

der Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: U

nder Reports menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

 

'Clicking on the clear button

Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("Clear").Click'Checking if all the fields have been cleared and whether the default v

alues of the fields alone are presentCall chkCAProfileUnderlyingEventClear("CorporateActions","Profile - Unde

rlying Event Search")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass," Click onthe clear button and check if the fields have been cleared.","The fields are cleared as expected"

ElseReporter.ReportEvent micFail," Click on

the clear button and check if the fields have been cleared..","The fields have n

ot been cleared as expected"Environment.Value("TestCase_Log")="True"

End If

'Step2Call chkUnderlyingEventsSearchCriteria ("CorporateActions","Profile - Un

derlying Event Search","")Call click_Image("CorporateActions","Profile - Underlying Event Search",

"Search")Call chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","EventName")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step2: Ent

er Event Name to search.","The event name has been entered and the results appear as expected"

ElseReporter.ReportEvent micFail,"Step2: Ent

er Event Name to search.","The event name has been entered but the results do not appear as expected"

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

'Step3

''Clicking on any result value

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 126/144

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

Next

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").RowCount >2 Then

Page_Flag=trueEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

Else Reporter.ReportEvent micFail," Under Event Name click on any link","The UnderlyingEvent page does not open up as required"

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

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEvent").WebEdit("EventName").GetROProperty("value"))

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and instr(1,PageProcessingStatus,trim(DataTable.Value("EventN

ame","UnderlyingEvent"))) ThenReporter.ReportEvent micPass,"Step 3:Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step 3:Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underlying event page does not open up"

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

End IfElse

Reporter.ReportEvent micPass,"Click on the link under event name","There are no events present for this search criteria"

Page_Flag=falseEnd If

'Step4'Click on the RM certification buttonIf Browser("CorporateActions").Page("UnderlyingEvent").WebButton("RM Cer

tification").Exist(2) ThenBrowser("CorporateActions").Page("UnderlyingEvent").WebButton("R

M Certification").Click

'Call pageCheck_WebElement("CorporateActions","UnderlyingEvent","CertifiedByRMCertification;CertificationDateRMCertification;EventNameRMCertification;LocalRecordDateRMCertification;UnderlyingISINRMCertification;CorporateActi

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 127/144

onTypeRMCertification;CountryRMCertification","")'Call pageCheck_Frame("CorporateActions", "UnderlyingEvent", "lookupFram

e", "","","CertifiedByRMCertification;CertificationDateRMCertification;EventNameRMCertification;LocalRecordDateRMCertification;UnderlyingISINRMCertification;CorporateActionTypeRMCertification;CountryRMCertification")

If Browser("CorporateActions").Page("UnderlyingEvent").Frame("lookupFrame").Exist(2) and Environment.Value("TestCase_Log")="True" then

Reporter.ReportEvent micPass,"Step4: Check for the RM certification look up frame","The RM certification frame is as required"

ElseReporter.ReportEvent micFail,"Step4: Check for the RM certificat

ion look up frame","The RM certification look up frame does not exists as required"

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

End IfElse

Reporter.ReportEvent micFail,"Step4: Check for the RM certification button","The RM certification button does not exists as required"

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

End If

'Step5'Click on the event changes log button

If Browser("CorporateActions").Page("UnderlyingEvent").WebButton("Event Changes Log").Exist(2) Then

Browser("CorporateActions").Page("UnderlyingEvent").WebButton("Event Changes Log").Click

'Call pageCheck_WebElement("CorporateActions","UnderlyingEvent","Field NameEventChangesLog;Old ValueEventChangesLog;New ValueEventChangesLog","")

'Call pageCheck_Frame("CorporateActions", "UnderlyingEvent", "lookupFrame", "","","Field NameEventChangesLog;Old ValueEventChangesLog;New ValueEventChangesLog")

If Browser("CorporateActions").Page("UnderlyingEvent").Frame("lookupFrame").Exist(2) And Environment.Value("TestCase_Log")="True"then

Reporter.ReportEvent micPass,"Step5: Check for the event changes log look up frame","The event changes log frame is as required"

ElseReporter.ReportEvent micFail,"Step5: Check for t

he event changes log look up frame","The event changes log frame does not existsas required"

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

End IfElse

Reporter.ReportEvent micFail,"Step5: Check for the eventchanges log button","The event changes log button does not exists as required"

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

End If

'Step6'Click on the Source comparison report

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 128/144

If Browser("CorporateActions").Page("UnderlyingEvent").WebButton("SourceComparison Report").Exist(2) Then

Browser("CorporateActions").Page("UnderlyingEvent").WebButton("Source Comparison Report").Click

If Browser("CorporateActions").Page("Reports - Underlying SourceComparison Search").Exist(2) Then

Reporter.ReportEvent micPass,"Step6:Check for the Source

comparison report link","The source comparison report page opens as required"Call select_Menu("CorporateActions","Reports - Underlyin

g Source Comparison Search","Home;DR Home")Else

Reporter.ReportEvent micFail,"Step6: Check for the source comparison report link","The source comparison report page does not open as required"

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

End IfElse

Reporter.ReportEvent micFail,"Step6: Ceck for the source compari

son report link","The source comparison repost button is not present"Call captureScreenshot()Environment.Value("Execution_Log")="False"Call select_Menu("CorporateActions","UnderlyingEvent","Home;DR H

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

Reporter.ReportEvent micPass ,"Step7:Click on the Home DR Home","The DR Home page opens up as required"

ElseReporter.ReportEvent micFail ,"Step7: Click on the Home

DR Home","The DR Home page does not open up"Environment.Value("TestCase_Log")="True"

End If

End IfEnd Function

'**********************************************************************************************************************************************************************************************Public function CAProfileUnderlyingEvent_TC26()

Environment.Value("TestCase_Log") = "True"Browser("CorporateActions").Page("Depositary Receipt Division's"

).WebElement("CorporateActions").click

Environment.Value ("TestCase_Log")="True"Call logoutfromApp("CorporateActions","Depositary Receipt Division's")

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

Call login("CorporateActions","Login Page","Product Management","CALogin")

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))

If Environment.Value ("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Check the CA Home page","The CA

Home page had loaded as required"Else

Reporter.ReportEvent micFail ,"Check the CA Home page","The CA H

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 129/144

ome page has not loaded as required"Environment.Value ("TestCase_Log")="True"

End If'#Step1'Under Profile menu select 'Underlying Event'.

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

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")Call pageCheck_WebListOR("CorporateActions","Profile - U

nderlying Event Search","ProcessingStatus;Owner")Call pageCheck_Image("CorporateActions","Profile - Under

lying Event Search","Clear;Search","")If Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("CorporateActionInfo").exist(2) thenReporter.ReportEvent micPass,"Check for the ? ic

on next to the Corporate action type Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon next to the ISIN Edit box","The ? Mark icon does not exist as required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("UnderlyingSecurityInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the Underlying security Edit box","The ? Mark icon exists asrequired"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Underlying security Edit box","The ? Mark icon does not exist asrequired"

Call captureScreenshot()

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 130/144

Call chkEventSearchReportHeader("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent")

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

der Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

Else

Reporter.ReportEvent micFail,"Step 1: Under Reports menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

 

'Clicking on the clear buttonBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").Click'Checking if all the fields have been cleared and whether the default v

alues of the fields alone are presentCall chkCAProfileUnderlyingEventClear("CorporateActions","Profile - Underlying Event Search")

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

the clear button and check if the fields have been cleared.","The fields are cleared as expected"

ElseReporter.ReportEvent micFail," Click on

the clear button and check if the fields have been cleared..","The fields have not been cleared as expected"

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

'Step2Call chkUnderlyingEventsSearchCriteria ("CorporateActions","Profile - Un

derlying Event Search","")Call click_Image("CorporateActions","Profile - Underlying Event Search",

"Search")Call chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","EventName")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step2: Ent

er Event Name to search.","The event name has been entered and the results appear as expected"

ElseReporter.ReportEvent micFail,"Step2: Ent

er Event Name to search.","The event name has been entered but the results do not appear as expected"

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

'Step3''Clicking on any result value

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying Event

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 131/144

Search").WebTable("Item").GetCellData(2,colcounter1)="Event Name" ThenExit for

End IfNextIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).WebTable("Item").RowCount >2 ThenPage_Flag=true

EventName=Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").GetCellData(3,colcounter1)

Browser("CorporateActions").Page("Profile - Underlying Event Search").WebElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"

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

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEvent").WebEdit("EventName").GetROProperty("value"))

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and instr(1,PageProcessingStatus,trim(DataTable.Value("EventName","UnderlyingEvent"))) Then

Reporter.ReportEvent micPass,"Step 3:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underl

ying event page opens up as required"Else

Reporter.ReportEvent micFail,"Step 3:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page does not open up"

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

End IfElse

Reporter.ReportEvent micPass,"Click on the link under event name","There are no events present for this search criteria"

Page_Flag=falseEnd If

'Step4If Browser("CorporateActions").Page("UnderlyingEvent").Image("Save").Exi

st(2) And Browser("CorporateActions").Page("UnderlyingEvent").Image("Delete").Exist (2) And Browser("CorporateActions").Page("UnderlyingEvent").WebButton("BulkMove").Exist(2) And Browser("CorporateActions").Page("UnderlyingEvent").WebButton("Event Changes Log").Exist(2) And Browser("CorporateActions").Page("UnderlyingEvent").WebButton("RM Certification").Exist(2) And Browser("CorporateActions").Page("UnderlyingEvent").WebButton("Source Comparison Report").Exist(2) Then

Reporter.ReportEvent micPass,"Step4:Verify for the Save,Delete,Bulk Move,Event Changes Log,RM Certification,Source comparison buttons","The required buttons exists as required"

Else

Reporter.ReportEvent micPass,"Step4:Verify for the Save,Delete,Bulk Move,Event Changes Log,RM Certification,Source comparison buttons","The required buttons does not exist as required"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 132/144

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

End If

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

") + 1

DataTable.GetSheet("UnderlyingEvent").SetCurrentRow(Environment.Value("DataTable_ROW"))

'Step5Call select_Menu("CorporateActions","UnderlyingEvent",DataTable.Value("M

enuPath","UnderlyingEvent"))If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step5: Click on the Underlying event from the profile menu","The Underlying event is selected as required"

ElseReporter.ReportEvent micFail ,"Step5: Click on the Underlying e

vent from the profile menu","The underlying event is not selected as required"

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

'Step6Browser("CorporateActions").Page("Profile - Underlying Event Search").I

mage("Clear").Click'Checking if all the fields have been cleared and whether the default v

alues of the fields alone are presentCall chkCAProfileUnderlyingEventClear("CorporateActions","Profile - Unde

rlying Event Search")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass," Click on

the clear button and check if the fields have been cleared.","The fields are cleared as expected"

ElseReporter.ReportEvent micFail," Click on

the clear button and check if the fields have been cleared..","The fields have not been cleared as expected"

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

Call chkUnderlyingEventsSearchCriteria ("CorporateActions","Profile - Underlying Event Search","")

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

Call chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent","EventName")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step6: Ent

er Event Name to search.","The event name has been entered and the results appear as expected"

ElseReporter.ReportEvent micFail,"Step6: Ent

er Event Name to search.","The event name has been entered but the results do not appear as expected"

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 133/144

'Step8''Clicking on any result value

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying Event

Search").WebTable("Item").GetCellData(2,colcounter1)="Event Name" ThenExit for

End IfNextIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).WebTable("Item").RowCount >2 ThenPage_Flag=trueEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) ThenReporter.ReportEvent micPass," Under Event Name click on any lin

k","The UnderlyingEvent page opens as required"Else

Reporter.ReportEvent micFail," Under Event Name click on any link","The UnderlyingEvent page does not open up as required"

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

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEvent").WebEdit("EventName").GetROProperty("value"))

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and instr(1,PageProcessingStatus,trim(DataTable.Value("EventName","UnderlyingEvent"))) Then

Reporter.ReportEvent micPass,"Step 8:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step 8:Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underlying event page does not open up"

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

End IfElse

Reporter.ReportEvent micPass,"Click on the link under event name","There are no events present for this search criteria"

Page_Flag=falseEnd If

'Step9If Browser("CorporateActions").Page("UnderlyingEvent").WebButton("DR Eve

nt Link").Exist(2) ThenReporter.ReportEvent micPass ,"Step9:Verify whether the DR Even

t Link exists","The DR Event Link exists as required"Else

Reporter.ReportEvent micFail ,"Step9:Verify whether the DR Even

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 134/144

t Link Exists","The DR Event Link does not exists as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

'Step10

Call Select_Menu("CorporateActions","UnderlyingEvent","Home;DR Home")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step10:Click on the home link andselect DR Home","The DR Home page opens up as required"

ElseReporter.ReportEvent micFail ,"Step10: Click on the Home link a

nd select DR Home","The DR Home page opens up as required"Environment.Value("TestCase_Log")="True"

End If

End Function'*******************************************************************************

******************************************************************************************************************Public function CAProfileUnderlyingEvent_TC27()

Environment.Value("TestCase_Log") = "True"Browser("CorporateActions").Page("Depositary Receipt Division's"

).WebElement("CorporateActions").click

Environment.Value ("TestCase_Log")="True"Call logoutfromApp("CorporateActions","Depositary Receipt Division's")Call invoke_URL("CorporateActions","Login Page",DataTable.Value("URL","C

ALogin"))Call login("CorporateActions","Login Page","Relationship Manager","CALog

in")

Browser("CorporateActions").Page("Depositary Receipt Division's").WebElement("CorporateActions").click

Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Value("MenuName","HomePageVerification"),DataTable.Value("UserFullName","CALogin" ))

If Environment.Value ("TestCase_Log")="True" ThenReporter.ReportEvent micPass ,"Check the CA Home page","The CA

Home page had loaded as required"Else

Reporter.ReportEvent micFail ,"Check the CA Home page","The CA Home page has not loaded as required"

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

'#Step1'Under Profile menu select 'Underlying Event'.

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

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 135/144

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Under

lying Event Search","Clear;Search","")If Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("CorporateActionInfo").exist(2) thenReporter.ReportEvent micPass,"Check for the ? ic

on next to the Corporate action type Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("ISINInfo").exist(2)Then

Reporter.ReportEvent micPass,"Check forthe ? icon next to the ISIN Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the ISIN Edit box","The ? Mark icon does not exist as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifIf Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("UnderlyingSecurityInfo").exist(2)Then

Reporter.ReportEvent micPass,"Check forthe ? icon next to the Underlying security Edit box","The ? Mark icon exists asrequired"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Underlying security Edit box","The ? Mark icon does not exist asrequired"

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent")

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

der Reports menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 1: U

nder Reports menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

 

'Clicking on the clear buttonBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 136/144

age("Clear").Click'Checking if all the fields have been cleared and whether the default v

alues of the fields alone are presentCall chkCAProfileUnderlyingEventClear("CorporateActions","Profile - Unde

rlying Event Search")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass," Click on

the clear button and check if the fields have been cleared.","The fields are cleared as expected"

ElseReporter.ReportEvent micFail," Click on

the clear button and check if the fields have been cleared..","The fields have not been cleared as expected"

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

'Step2Call chkUnderlyingEventsSearchCriteria ("CorporateActions","Profile - Un

derlying Event Search","")

Call click_Image("CorporateActions","Profile - Underlying Event Search","Search")Call chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Un

derlying Event Search","UnderlyingEvent","EventName")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step2: Ent

er Event Name to search.","The event name has been entered and the results appear as expected"

ElseReporter.ReportEvent micFail,"Step2: Ent

er Event Name to search.","The event name has been entered but the results do n

ot appear as expected"Environment.Value("TestCase_Log")="True"

End If

'Step3''Clicking on any result value

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

NextIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).WebTable("Item").RowCount >2 ThenPage_Flag=trueEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

Else

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 137/144

Reporter.ReportEvent micFail," Under Event Name click on any link","The UnderlyingEvent page does not open up as required"

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

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEv

ent").WebEdit("EventName").GetROProperty("value"))

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Browser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and instr(1,PageProcessingStatus,trim(DataTable.Value("EventName","UnderlyingEvent"))) Then

Reporter.ReportEvent micPass,"Step 3:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

ElseReporter.ReportEvent micFail,"Step 3:Click on any link under 'Ev

ent Name' and verify whether the Underlying event page opens or not","The underl

ying event page does not open up"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End IfElse

Reporter.ReportEvent micPass,"Click on the link under event name","There are no events present for this search criteria"

Page_Flag=falseEnd If

'Step4If Browser("CorporateActions").Page("UnderlyingEvent").WebButton("RM Cer

tification").Exist(2) Then

Reporter.ReportEvent micFail,"Step4: Check for the RM certification button","The RM certification button Exists"

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

ElseReporter.ReportEvent micPass,"Step4:Check for the RM certificat

ion button","The RM certification Button does not exists as required"End If

'Step5Call Select_Menu("CorporateActions","UnderlyingEvent","Profile;Relations

hip Manager Certification")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step5: Click on the profile relationship manager certification button","The Profile relationship manager certification button is clicked as required"

ElseReporter.ReportEvent micFail ,"Step5: Click on the profile rel

ationship manager certification button","The Profile relationship manager certification button is not clicked as required"

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

'Step6Call set_WebEdit_Value ("CorporateActions","Profile Relationship Manager

Certification Search Screen","EventName",DataTable.Value("EventName","UnderlyingEvent"))

Call Click_Image("CorporateActions","Profile Relationship Manager Certif

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 138/144

ication Search Screen","Search")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step6: Enter the required DR Name and click on search","The search button is clicked as required"

ElseReporter.ReportEvent micFail ,"Step6:Enter the required search

criteria and click on search","The search button is clicked as required"

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

'Step7Call select_Checkbox("CorporateActions","Profile Relationship Manager Ce

rtification Search Screen","selectall")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step7: Check the check box in the certification collumn","The check box is checked as required"

ElseReporter.ReportEvent micFail ,"Step7:Check the check box in the

certification collumn","The check box is not checked as required"

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

'Step8Call click_Image("CorporateActions","Profile Relationship Manager Certif

ication Search Screen","Save Message")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step8: Click on the save button","The save button is clicked as required"

ElseReporter.ReportEvent micFail ,"Step8: Click on the save button"

,"The save button is not clicked as required"Environment.Value("TestCase_Log")="True"

End If

'#Step9'Under Profile menu select 'Underlying Event'.

Call select_Menu("CorporateActions","Profile Relationship Manager Certification Search Screen",DataTable.Value("MenuPath","UnderlyingEvent"))

If Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Search By:").Exist(2) then

Reporter.ReportEvent micPass,"Check fot the existance of the search by table","The search by table is present as required"

ElseReporter.ReportEvent micFail,"Check fot the exis

tance of the search by table","The search by table is not present as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End ifCall pageCheck_WebEditOR("CorporateActions","Profile - U

nderlying Event Search","CorporateActionType;ISIN;RecievedDateRangeFrom;RecievedDateRangeTo;UnderlyingSecurityName;EventName")

Call pageCheck_WebListOR("CorporateActions","Profile - Underlying Event Search","ProcessingStatus;Owner")

Call pageCheck_Image("CorporateActions","Profile - Under

lying Event Search","Clear;Search","")If Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("CorporateActionInfo").exist(2) then

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 139/144

Reporter.ReportEvent micPass,"Check for the ? icon next to the Corporate action type Edit box","The ? Mark icon exists as required"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Corporate action type Edit box","The ? Mark icon does not existas required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlyi

ng Event Search").Image("ISINInfo").exist(2)ThenReporter.ReportEvent micPass,"Check for

the ? icon next to the ISIN Edit box","The ? Mark icon exists as required"Else

Reporter.ReportEvent micFail,"Check for the ? icon next to the ISIN Edit box","The ? Mark icon does not exist as required"

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

End ifIf Browser("CorporateActions").Page("Profile - Underlying Event Search").Image("UnderlyingSecurityInfo").exist(2)Then

Reporter.ReportEvent micPass,"Check forthe ? icon next to the Underlying security Edit box","The ? Mark icon exists asrequired"

ElseReporter.ReportEvent micFail,"Check for the ? i

con next to the Underlying security Edit box","The ? Mark icon does not exist asrequired"

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

End if

Call chkEventSearchReportHeader("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 9: Un

der Profile menu select Underlying Event.","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 9: U

nder Profile menu select Underlying Event..","Expected fields are not displayedin search criteria"

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

 

'Clicking on the clear buttonBrowser("CorporateActions").Page("Profile - Underlying Event Search").Im

age("Clear").Click'Checking if all the fields have been cleared and whether the default v

alues of the fields alone are presentCall chkCAProfileUnderlyingEventClear("CorporateActions","Profile - Unde

rlying Event Search")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass," Click on

the clear button and check if the fields have been cleared.","The fields are cleared as expected"

Else

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 140/144

Reporter.ReportEvent micFail," Click onthe clear button and check if the fields have been cleared..","The fields have not been cleared as expected"

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

'Step10

Call chkUnderlyingEventsSearchCriteria ("CorporateActions","Profile - Underlying Event Search","")

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

Call chkReportsForUnderlyingEventSearch("CorporateActions","Profile - Underlying Event Search","UnderlyingEvent","EventName")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step10: En

ter Event Name to search.","The event name has been entered and the results appear as expected"

Else Reporter.ReportEvent micFail,"Step10: Enter Event Name to search.","The event name has been entered but the results donot appear as expected"

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

'Step11''Clicking on any result value

For colcounter1=1 to Browser("CorporateActions").Page("Profile - Underlying Event Search").WebTable("Item").ColumnCount(2)

If Browser("CorporateActions").Page("Profile - Underlying EventSearch").WebTable("Item").GetCellData(2,colcounter1)="Event Name" Then

Exit forEnd If

NextIf Browser("CorporateActions").Page("Profile - Underlying Event Search"

).WebTable("Item").RowCount >2 ThenPage_Flag=trueEventName=Browser("CorporateActions").Page("Profile - Underlying Event S

earch").WebTable("Item").GetCellData(3,colcounter1)Browser("CorporateActions").Page("Profile - Underlying Event Search").We

bElement("html tag:=TD","innertext:="&EventName,"index:=0").Click

Wait(1)If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) Then

Reporter.ReportEvent micPass," Under Event Name click on any link","The UnderlyingEvent page opens as required"

ElseReporter.ReportEvent micFail," Under Event Name click on any lin

k","The UnderlyingEvent page does not open up as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

PageProcessingStatus=trim(Browser("CorporateActions").Page("UnderlyingEv

ent").WebEdit("EventName").GetROProperty("value"))

If Browser("CorporateActions").Page("UnderlyingEvent").Exist(2) and Brow

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 141/144

ser("CorporateActions").Page("UnderlyingEvent").WebElement("CorporateActionEventDetails").Exist(2) and instr(1,PageProcessingStatus,trim(DataTable.Value("EventName","UnderlyingEvent"))) Then

Reporter.ReportEvent micPass,"Step 11:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page opens up as required"

Else

Reporter.ReportEvent micFail,"Step 11:Click on any link under 'Event Name' and verify whether the Underlying event page opens or not","The underlying event page does not open up"

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

End IfElse

Reporter.ReportEvent micPass,"Click on the link under event name","There are no events present for this search criteria"

Page_Flag=falseEnd If

'Step12 If Browser("CorporateActions").Page("UnderlyingEvent").WebButton("RM Certification").Exist(2) Then

Reporter.ReportEvent micPass,"Step12: Check for the RM certification button","The RM certification button Exists"

ElseReporter.ReportEvent micFail,"Step12:Check for the RM certifica

tion button","The RM certification Button does not exists as required"Call captureScreenshot()Environment.Value("Execution_Log")="False"

End If

'Step13

Call select_Menu("CorporateActions","UnderlyingEvent","Home;DR Home")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass ,"Step13: Click on the Home menu and select DR Home option","The DR Home page opens up as required"

ElseReporter.ReportEvent micFail ,"Step13: Click on the Home menu a

nd select DR Home option","The DR Home page does not open up as required"Environment.Value("TestCase_Log")="True"

End If

End Function'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'Functions'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'==================================================================================================================================' Name of the Function : ClickonPrefilbutton' Scope of the Function : Public' Author : Ganesh Viswanathan' Description : This function is used to Click on the prefillbutton in a particular row of the corporate action screen' Parameters accepted : BrowserName, PageName.' Parameter returned : Nill

' Date and / or Version : 22-02-2008,version 1.0'==================================================================================================================================

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 142/144

'Call ClickonPrefilbutton("CorporateActions","Underlying Event")Public Function ClickonPrefilbutton(strBrowserName,strPageName)

blnExistFlag = "False"intRowCount = Browser(strBrowserName).Page(strPageName).WebTable("Notifi

cationsAssigned").RowCountFor intRowCounter = 1 to intRowCount

intColumnCount = Browser(strBrowserName).Page(strPageName).WebTable("NotificationsAssigned").ColumnCount(intRowCounter)

For intColumnCounter = 1 to intColumnCountintImageCount = Browser(strBrowserName).Page(strPageName

).WebTable("NotificationsAssigned").ChildItemCount(intRowCounter,intColumnCounter,"Image")

If intImageCount >0 ThenFor intImageCounter = 0 to intImageCount -1

strImageName = Browser(strBrowserName).Page(strPageName).WebTable("NotificationsAssigned").ChildItem(intRowCount

er,intColumnCounter,"Image",intImageCounter).GetROProperty("file name")If UCase(strImageName) = UCase("editbutton.gif") Then

blnExistFlag = "True"intRequiredRowCounter =

intRowCounterFor intColCounter = 2 to

intColumnCountstrValue = Brow

ser(strBrowserName).Page(strPageName).WebTable("NotificationsAssigned").GetCellData(intRequiredRowCounter,intColCounter)

strAppValue = strAppValue & strValue & ";"

NextClickonPrefilbutton=strA

ppValueWait(2)

Browser(strBrowserName).Page(strPageName).WebTable("NotificationsAssigned").ChildItem(intRequiredRowCounter,1,"Image",0).Click

Reporter.ReportEvent micPass ,"Verifying the prefill image exists or not and to click on it","The prefill Image exists and its clicked as required"

Exit ForEnd If

NextEnd IfIf blnExistFlag = "True" Then

Exit ForEnd If

NextIf blnExistFlag = "True" Then

Exit ForEnd If

Next

If blnExistFlag = "False" Then

Reporter.ReportEvent micFail,"Verifying if the Prefill Image exist or Not","The Prefill Image does not Exist"

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

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 143/144

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

End Function

'**************************************************************************************************************************************************************************************

'==================================================================================================================================' Name of the Function : SelectNotificationRecieveDate' Scope of the Function : Public' Author : Ganesh Viswanathan' Description : This function is used to Click on a particularrecieve date in the corporate actions underlying event screen' Parameters accepted : BrowserName, PageName.' Parameter returned : Nill' Date and / or Version : 22-02-2008,version 1.0'==================================================================================================================================

'Call SelectNotificationRecieveDate("CorporateActions","Underlying Event")Public Function SelectNotificationRecieveDate(strBrowserName,strPageName)Flag=falseintRowCount = Browser(strBrowserName).Page(strPageName).WebTable("Notifi

cationsAssigned").RowCount'MsgBox intRowCountFor intRowCounter = 1 to intRowCount

intColumnCount = Browser(strBrowserName).Page(strPageName).WebTable("NotificationsAssigned").ColumnCount(intRowCounter)

For intColumnCounter = 1 to intColumnCountstrAppValues = Browser(strBrowserName).Page(strPageName)

.WebTable("NotificationsAssigned").GetCellData(intRowCounter,intColumnCounter)If ISDate(strAppValues) Then

Call SelectValueinTable(strBrowserName,strPageName,"NotificationsAssigned",strAppValues)

Reporter.ReportEvent micPass ,"Check for the date in the recived date collumn and click on the value","The required value is clicked as required"

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

ElseFlag=TrueEnd If

NextNext

If Flag=True ThenReporter.ReportEvent micFail ,"Check for the date in the recive

d date collumn and click on the value","The required value is not clicked as required"

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

End IfEnd Function

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

===================================================' Name of the Function : ReadallValuesWebListUnderlyingEvent' Scope of the Function : Public

8/7/2019 ADRCA_ProfileUnderlyingEvent

http://slidepdf.com/reader/full/adrcaprofileunderlyingevent 144/144

' Author : Ganesh Viswanathan modified mohan's function' Description : This function is to read all the values in a web list and compare to check if all the required details are there' Parameters accepted : BrowserName, PageName,web list name,datatablecollumn name,data sheet name' Parameter returned : Nill' Date and / or Version : 22-02-2008,version 1.0

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

Public Function ReadallValuesWebListUnderlyingEvent(strBrowserName,strPageName,strWebListName,strDataTableColumnName,strDataTableSheetName)

AllItemText=Trim(Browser(strBrowserName).Page(strPageName).WebList(strWebListName).GetROProperty("all items"))

If Instr(1,DataTable.Value(strDataTableColumnName,strDataTableSheetName), AllItemText) Or Instr(1, AllItemText,DataTable.Value(strDataTableColumnName,strDataTableSheetName)) Then

Reporter.ReportEvent micPass,"Verify all the opt

ions available in the "&strWebListName,DataTable.Value(strDataTableColumnName,strDataTableSheetName)&" these options are displayed in the weblist "&strWebListName

ElseReporter.ReportEvent micFail,"Verify all the opt

ions available in the "&strWebListName,DataTable.Value(strDataTableColumnName,strDataTableSheetName)&" these options are not displayed in the weblist "&strWebListName

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

End If

End Function'***************************************************************************************************************************************************************