You are on page 1of 97

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

==========================
' Name of the Script : Corporate Actions Profille Un
derlying Notification
' Scope of the Script : This test script covers 23 te
st cases related to the CA Profile Underlying Notification
' Author : Shyam H D
' Description : Corporate Actions Profille Un
derlying Notification
' Date and / or Version : 05 - 03 - 2009,version 1.0
'===============================================================================
============================
Sub CAProfileUnderlyingNotification()
'****Declaration of Environmental Variable
Environment.Value("strSheetName")= "UnderlyingNotification"
'''''''''Test case count
Const TC_COUNT = 23
strVar = Environment("TestDir")
strIndVar = Split(strVar,"\",-1,1)
strBound = UBound(strIndVar)
strAllPath =""
For intCounter = 0 to strBound - 1
strAllPath = strAllPath & strIndVar(intCounter)
&"\"
Next
strPath = Trim(strPath)
strDataPath = strAllPath & "DataTables\"
strLibPath = strAllPath & "Function_Library\"
' Including the Library files where all the Scripts are saved
'ExecuteFile strLibPath & "CAReportsUnderlyingNotificationTC.vbs
"
'****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 "UnderlyingNotification"
DataTable.ImportSheet strDataPath & "CorporateActionsProfile.xls
","UnderlyingNotification","UnderlyingNotification"
DataTable.AddSheet "ReportHeader"
DataTable.ImportSheet strDataPath & "CorporateActionsProfile.xls
","ReportHeader","ReportHeader"
DataTable.AddSheet "HomePageVerification"
DataTable.ImportSheet strDataPath & "CorporateActionsProfile.xls
","HomePageVerification","HomePageVerification"
' 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
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"
,"")
'****Entering username and password and login into the masterfil
e application
Call login("CorporateActions","Login Page","User","CALogin")
Environment.Value("DATATABLE_ROW")=1
DataTable.GetSheet("UnderlyingNotification").SetCurrentRow(Envir
onment.Value("DATATABLE_ROW"))
'***************************************** TC Driver Strat *****
**************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"
Environment.Value("TestCase_Log")= "True"
If DataTable("TestRunFlag","UnderlyingNotification")="Y"
Then ''If run flag is Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TES
T CASE - '" & DataTable("TestCaseID","UnderlyingNotification") & "' ###########
","Execution of Test Case '" & DataTable("TestCaseDesc","UnderlyingNotification"
) & "' Started"
strFuncName = "CAProfileUnderlyingNotification_TC" & intTCCount
& "()" ''Formation of function name
''Call Function
Execute "Call " & strFuncName
If Environment.Value("Execution_Log") = "True"
Then
Call Execution_log("",Datatable.
Value("TestCaseID", "UnderlyingNotification"), Datatable.Value("TestCaseDesc", "
UnderlyingNotification"), "PASS")
Else
Call Execution_log("",Datatable.
Value("TestCaseID", "UnderlyingNotification"), Datatable.Value("TestCaseDesc", "
UnderlyingNotification"), "FAIL")
End If
Reporter.ReportEvent micDone,"######### END OF T
EST CASE - '" & DataTable("TestCaseID","UnderlyingNotification") & "###########"
,"The Test Case Execution Completed"
End If

strPrevious=Trim(DataTable.Value("TestCaseID","Underlyin
gNotification"))
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("UnderlyingNotification").SetCurrentR
ow(Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","UnderlyingNot
ification"))
While strPrevious = strNext
Environment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("UnderlyingNotification").Set
CurrentRow(Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","Under
lyingNotification"))
Wend
Next
Call logoutfromApp("CorporateActions","Depositary Receipt Divisi
on's")
'***************************************** TC Driver End *******
************************************************

End Sub

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC1()
' Step 1
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: Check for DR Hom
e Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Check for DR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Clicking on the Corporate Action Element
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
' Step 2
Call chkMFCAHomePage("CorporateActions","CorporateActions",DataTable.Val
ue("MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 2: Click on Corporat
e Action Element and Check for CA Home Page","The Required Menu Items are Displa
yed Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Click on Corporate
Action Element and Check for CA Home Page","The Required Menu Items are Display
ed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 3
Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","UnderlyingNotification"))
Wait 5
Call pageCheck_Image("CorporateActions","Profile - Underlying No
tification Search","Search;Clear","")
Call pageCheck_WebEditOR("CorporateActions","Profile - Underlyin
g Notification Search","ReceivedDate;ReceivedEndDate;ISIN;UnderlyingSecurityName
;CorporateActionType;Custodian")
Call pageCheck_WebListOR("CorporateActions","Profile - Underlyin
g Notification Search","ProcessingStatus;AssignedtoUserGroups;Source;Exception")
Call pageCheck_WebTableOR("CorporateActions","Profile - Underlyi
ng Notification Search","SearchBy;UnderlyingNotification")
' Checking for the Columns in the Table Underlying Notification
strAppValue = ""
blnExistFlag = "False"
intColumnCount = Browser("CorporateActions").Page("Profile - Und
erlying Notification Search").WebTable("UnderlyingNotification").ColumnCount(2)
For intColumnCounter = 1 to intColumnCount
strValue = Browser("CorporateActions").Page("Profile - U
nderlying Notification Search").WebTable("UnderlyingNotification").GetCellData(2
,intColumnCounter)
strAppValue = strAppValue & strValue & ";"
Next
strCheckValue = "Received Date;Processing Status;Corporate Actio
n Type;ISIN;Underlying Security;Event Date;Source;Sender BIC"
If Instr(1,strAppValue,strCheckValue) <> 0 Then
blnExistFlag = "True"
End If
If Environment.Value("TestCase_Log") = "True" AND blnExistFlag =
"True" Then
Reporter.ReportEvent micPass,"Step 3: Verfiying if the R
equired Fields are Present in the Page 'Profile Underlying Notification'","The R
equired Fields are Present in the Page 'Profile Underlying Notification'"
Else
Reporter.ReportEvent micFail,"Step 3: Verfiying if the R
equired Fields are Present in the Page 'Profile Underlying Notification'","The R
equired Fields are NOT Present in the Page 'Profile Underlying Notification'"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 4
IntialRowCount = Browser("CorporateActions").Page("Profile - Und
erlying Notification Search").WebTable("UnderlyingNotification").RowCount
Browser("CorporateActions").Page("Profile - Underlying Notificat
ion Search").Image("Search").Submit
Wait(5)
FinalRowCount = Browser("CorporateActions").Page("Profile - Unde
rlying Notification Search").WebTable("UnderlyingNotification").RowCount
If FinalRowCount > InitialRowCount Then
Reporter.ReportEvent micPass,"Step 4: Verfiying if the R
esult are displayed or Not when clicked on 'Enter Key' with the Default Value in
the Fields","The Result are displayed when clicked on 'Enter Key' with the Defa
ultValue in the Fields"
Else
Reporter.ReportEvent micFail,"Step 4: Verfiying if the R
esult are displayed or Not when clicked on 'Enter Key' with the Default Value in
the Fields","The Result are NOT displayed when clicked on 'Enter Key' with the
DefaultValue in the Fields"
Environment.Value("Execution_Log") = "False"
Call captureScreenShot()
End If
' Step 5:
Call select_Menu("CorporateActions","Profile - Underlying Notifi
cation Search","Home;DR Home")
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Check for DR Hom
e Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 5: Check for DR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If

End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++
'
'Public Function CAProfileUnderlyingNotification_TC2()
'
' Call click_WebElement("CorporateActions","Depositary Receipt Division's
","CorporateActions")
' Call select_Menu("CorporateActions", "CorporateActions", DataTable.Valu
e("MenuPath", "UnderlyingNotification"))
'
' If Browser("CorporateActions").Page("Profile - Underlying Notification
Search").Exist(5) Then
' Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Prof
ile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile U
nderlying Notification Search ' is displayed successfully"
' Else
' Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Prof
ile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile U
nderlying Notification Search ' is NOT displayed successfully"
' Environment.Value("Execution_Log") = "False"
' End If
'
' Call select_Menu("CorporateActions","Profile - Underlying Notifi
cation Search","Home;DR Home")
'
'End Function
'
'
'
''++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++
'
'Public Function CAProfileUnderlyingNotification_TC3()
'
' Call click_WebElement("CorporateActions","Depositary Receipt Division's
","CorporateActions")
' Call select_Menu("CorporateActions", "CorporateActions", "PROFILE;Uploa
d Notification")
'
' If Browser("CorporateActions").Page("Profile - Upload Notification").Ex
ist(5) Then
' Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Prof
ile - Upload Notification ' is Displayed or NOT", "The Page ' Profile Underlying
Notification Search ' is displayed successfully"
' Else
' Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Prof
ile - Upload Notification ' is Displayed or NOT", "The Page ' Profile Underlying
Notification Search ' is NOT displayed successfully"
' Environment.Value("Execution_Log") = "False"
' End If
'
' ' Step 2
' Call CreateNewFolder("UploadFiles")
' strFilePath = CreateFile("UploadFiles",DataTable.Value("TestCaseID","Un
derlyingNotification"),"txt")
' Call Select_Combo_Value("CorporateActions","Profile - Upload Notificati
on","TargetDocument",DataTable.Value("TargetDocument","UnderlyingNotification"))
'
' ' 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("File
name:").Set strFilePath
' Browser("CorporateActions").Dialog("Choose file").WinButton("Ope
n").Click
'
' ' Selecting Underlying Security
' Call click_Image("CorporateActions","Profile - Upload Notificati
on","UnderlyingSecurity")
' Call operation_on_FrameObjects_WithName("CorporateActions","Prof
ile - Upload Notification","lookupFrame","WebEdit","divNm",DataTable.Value("Unde
rlyingSecurity","UnderlyingNotification"))
' Call operation_on_FrameObjects_WithName("CorporateActions","Prof
ile - Upload Notification","lookupFrame","Image","Go","")
' Call SelectValueinFrame("CorporateActions","Profile - Upload Notificati
on","lookupFrame","FrameTable")
'
' ' Entering the Corporate Action Type
' Call SelectCorporateActionType("CorporateActions","Profile - Upl
oad Notification","CorporateActionType",DataTable.Value("CorporateActionType","U
nderlyingNotification"))
'
' Call Select_Combo_Value("CorporateActions","Profile - Upload Not
ification","Comparison",DataTable.Value("Comparison","UnderlyingNotification"))
'
' ' Setting thr Local Record Date
' Call click_image("CorporateActions","Profile - Upload Notificati
on","LocalRecordDate")
' 'strDate= DataTable.Value("LocalRecordDate","UnderlyingNotificat
ion")
' Call SetDate("CorporateActions","Profile - Upload Notification",
DataTable.Value("LocalRecordDate","UnderlyingNotification"))
'
' ' Saving the Changes made
' Call click_Image("CorporateActions","Profile - Upload Notificati
on","Save")
' Wait(5)
' If Browser("CorporateActions").Page("Underlying Upload Notificat
ion").Exist(5) Then
' strAppValue = Browser("CorporateActions").Page("Underlyi
ng Upload Notification").Frame("msgFrame").GetROProperty("innertext")
' strValue = ReadTextFile(strFilePath)
' strAppValue = Replace(strAppValue," ","")
' strValue = Replace(strValue," ","")
' If Trim(strAppValue) = Trim(strValue) Then
' Reporter.ReportEvent micPass,"Step 2: Verifying
if the Document is Uploaded or Not","The Document is Uploaded Successfully"
' Else
' Reporter.ReportEvent micFail,"Step 2: Verifying
if the Document is Uploaded or Not","The Document is NOT Uploaded Successfully"
' Environment.Value("Execution_Log") = "False"
' End If
' Call select_Menu("CorporateActions","Underlying Upload N
otification","Home;DR Home")
' Else
' Reporter.ReportEvent micFail,"Step 2: Verifying if the D
ocument is Uploaded or Not","The Document is NOT Uploaded Successfully"
' Environment.Value("Execution_Log") = "False"
' Call select_Menu("CorporateActions","Profile - Upload No
tification","Home;DR Home")
' End If
'
'End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC2()
Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath", "UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification S
earch").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is NOT displayed successfully"
Environment.Value("Execution_Log") = "False"
Call captureScreenShot()
End If
strAppValues = Browser("CorporateActions").Page("Profile - Underlying No
tification Search").webList("ProcessingStatus").GetROProperty("all items")
intPos = InStr(1, strAppValues, DataTable.Value("AllItemsofVariousField"
, "UnderlyingNotification"))
If intPos <> 0 Then
Reporter.ReportEvent micPass, "Step 2: Verifying if the Field ' Proc
essing Staus ' has the required Items or NOT", "The Field ' Processing Status '
contains the following items: " & strAppValues
Else
Reporter.ReportEvent micFail, "Step 2: Verifying if the Field ' Proc
essing Staus ' has the required Items or NOT", "All the Required items are not P
resent in the Field ' Processing Status ' "
Environment.Value("Execution_Log") = "False"
Call captureScreenShot()
End If
strDefaultValue = Browser("CorporateActions").Page("Profile - Underlying
Notification Search").webList("ProcessingStatus").GetROProperty("value")
If InStr(1, strDefaultValue, "All") <> 0 Then
Reporter.ReportEvent micPass, "Step 3: Verifying the Default value i
n the Field ' Processing Status '", "The Default Value in the Field ' Processing
Status ' is " & strDefaultValue
Else
Reporter.ReportEvent micFail, "Step 3: Verifying the Default value i
n the Field ' Processing Status '", "The Default Value in the Field ' Processing
Status ' is NOT " & strDefaultValue
Environment.Value("Execution_Log") = "False"
Call captureScreenShot()
End If
Call select_Menu("CorporateActions", "Profile - Underlying Notification
Search", "Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC3()
Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath", "UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification S
earch").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is NOT displayed successfully"
Environment.Value("Execution_Log") = "False"
Call CaptureScreenShot()
End If
Call EnterDetailsinUnderlyingNotification("Assigned", "", "")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 2, 3, 4: Verifying the Details f
or the Processing Status ' Assigned ' ", "The Notification Details for the Proce
ssing Status Assigned is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 2, 3, 4: Verifying the Details f
or the Processing Status ' Assigned ' ", "The Notification Details for the Proce
ssing Status Assigned is NOT displayed successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call EnterDetailsinUnderlyingNotification("No Action Needed", "", "")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 5, 6, 7: Verifying the Details f
or the Processing Status 'No Action Needed' ", "The Notification Details for the
Processing Status 'No Action Needed' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 5, 6, 7: Verifying the Details f
or the Processing Status 'No Action Needed' ", "The Notification Details for the
Processing Status 'No Action Needed' is NOT displayed successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call EnterDetailsinUnderlyingNotification("Deleted", "", "")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 8, 9, 10: Verifying the Details
for the Processing Status 'Deleted' ", "The Notification Details for the Process
ing Status 'Deleted' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 8, 9, 10: Verifying the Details
for the Processing Status 'Deleted' ", "The Notification Details for the Process
ing Status 'Deleted' is NOT displayed successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call EnterDetailsinUnderlyingNotification("Return to IMMR", DataTable.Va
lue("FromDate","UnderlyingNotification"),DataTable.Value("ToDate","UnderlyingNot
ification"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 11, 12, 13: Verifying the Detail
s for the Processing Status 'Return to IMMR' ", "The Notification Details for th
e Processing Status 'Return to IMMR' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 11, 12, 13: Verifying the Detail
s for the Processing Status 'Return to IMMR' ", "The Notification Details for th
e Processing Status 'Return to IMMR' is NOT displayed successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call EnterDetailsinUnderlyingNotification("Unassigned", "","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 14, 15: Verifying the Details fo
r the Processing Status 'Unassigned' ", "The Notification Details for the Proces
sing Status 'Unassigned' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 14, 15: Verifying the Details fo
r the Processing Status 'Unassigned' ", "The Notification Details for the Proces
sing Status 'Unassigned' is NOT displayed successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions", "Profile - Underlying Notification
Search", "Home;DR Home")
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 16: Check for DR Ho
me Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 16: Check for DR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC4()
' Step 1
Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath", "UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification S
earch").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
strFromReceivedDate = get_WebEdit_Value("CorporateActions","Profile - Un
derlying Notification Search","ReceivedDate")
strToReceivedDate = get_WebEdit_Value("CorporateActions","Profile - Unde
rlying Notification Search","ReceivedEndDate")
If strFromReceivedDate <> "" And DateValue(strToReceivedDate) =
Date Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Valu
e in the Received Date Field","The Value in the Received From Date is ' " & str
FromReceivedDate & " ' and Date displayed in Received End Date is 'Today Date i
.e., ' " & strToReceivedDate
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Valu
e in the Received Date Field","The Value in the Received From Date is ' NULL ' o
r Date displayed in Received End Date is Not 'Today Date ' "
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 3
Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "Clear")
strReceivedDate1 = get_WebEdit_Value("CorporateActions", "Profile - Unde
rlying Notification Search", "ReceivedDate")
strReceivedDate2 = get_WebEdit_Value("CorporateActions", "Profile - Unde
rlying Notification Search", "ReceivedEndDate")
If strReceivedDate1 = "" And strRececivedDate2 = "" Then
Reporter.ReportEvent micPass, "Step 3: Verifying if the Values in th
e Date is Cleared or NOT", "The Values are Cleared after clicking on Clear butto
n"
Else
Reporter.ReportEvent micFail, "Step 3: Verifying if the Values in th
e Date is Cleared or NOT", "The Values are NOT Cleared after clicking on Clear b
utton"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 4
Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "ReceivedDate")
Browser("CorporateActions").Page("Profile - Underlying Notification Sear
ch").Frame("PopCalFrame").WebElement("Today").Click
strReceivedDate = get_WebEdit_Value("CorporateActions", "Profile - Under
lying Notification Search", "ReceivedDate")
strConvertedDate = DateValue(strReceivedDate)
If strConvertedDate = Date Then
Reporter.ReportEvent micPass, "Step 4: Verifying if the Current Date
is Displayed in the Received Date Field or Not", "The Current Date is Displayed
in the Received Date Field"
Else
Reporter.ReportEvent micFail, "Step 4: Verifying if the Current Date
is Displayed in the Received Date Field or Not", "The Current Date is NOT Displ
ayed in the Received Date Field"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 5
Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "ReceivedDate")
Browser("CorporateActions").Page("Profile - Underlying Notification Sear
ch").Frame("PopCalFrame").Image("Clear").Click
strReceivedDate = get_WebEdit_Value("CorporateActions", "Profile - Under
lying Notification Search", "ReceivedDate")
If strReceivedDate = "" Then
Reporter.ReportEvent micPass, "Step 5: Verifying if the Date is Clea
red in the Received Date Field", "The Date is Cleared in the Received Date Field
when Clicked on the Clear Image in the Calender"
Else
Reporter.ReportEvent micFail, "Step 5: Verifying if the Date is Clea
red in the Received Date Field", "The Date is NOT Cleared in the Received Date F
ield when Clicked on the Clear Image in the Calender"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
'Step 6
Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "ReceivedEndDate")
Browser("CorporateActions").Page("Profile - Underlying Notification Sear
ch").Frame("PopCalFrame").WebElement("Today").Click
strReceivedDate = get_WebEdit_Value("CorporateActions", "Profile - Under
lying Notification Search", "ReceivedEndDate")
strConvertedDate = DateValue(strReceivedDate)
If strConvertedDate = Date Then
Reporter.ReportEvent micPass, "Step 6: Verifying if the Current Date
is Displayed in the Received Date Field or Not", "The Current Date is Displayed
in the Received Date Field"
Else
Reporter.ReportEvent micFail, "Step 6: Verifying if the Current Date
is Displayed in the Received Date Field or Not", "The Current Date is NOT Displ
ayed in the Received Date Field"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 7
Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "ReceivedEndDate")
Browser("CorporateActions").Page("Profile - Underlying Notification Sear
ch").Frame("PopCalFrame").Image("Clear").Click
strReceivedDate = get_WebEdit_Value("CorporateActions", "Profile - Under
lying Notification Search", "ReceivedEndDate")
If strReceivedDate = "" Then
Reporter.ReportEvent micPass, "Step 7: Verifying if the Date is Clea
red in the Received Date Field", "The Date is Cleared in the Received Date Field
when Clicked on the Clear Image in the Calender"
Else
Reporter.ReportEvent micFail, "Step 7: Verifying if the Date is Clea
red in the Received Date Field", "The Date is NOT Cleared in the Received Date F
ield when Clicked on the Clear Image in the Calender"
Environment.Value("Execution_Log") = "False"
End If
' Step 8
Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "ReceivedDate")
Call SetDate("CorporateActions", "Profile - Underlying Notification Sear
ch", DataTable.Value("FromDate", "UnderlyingNotification"))
Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "ReceivedEndDate")
Call SetDate("CorporateActions", "Profile - Underlying Notification Sear
ch", DataTable.Value("ToDate", "UnderlyingNotification"))
Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "Search")
strFromDate = get_WebEdit_Value("CorporateActions", "Profile - U
nderlying Notification Search","ReceivedDate")
strToDate = get_WebEdit_Value("CorporateActions", "Profile - Und
erlying Notification Search","ReceivedEndDate")
Call chkDateRangeinTable("CorporateActions", "Profile - Underlyi
ng Notification Search","UnderlyingNotification","Received Date",strFromDate,str
ToDate)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: Verifying if the R
esults are Displayed within the Date Range","The Results are Displayed in the Da
te Range " & strFromDate & " - " & strToDate
Else
Reporter.ReportEvent micFail,"Step 8: Verifying if the R
esults are Displayed within the Date Range","The Results are NOT Displayed in th
e Date Range " & strFromDate & " - " & strToDate
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions", "Profile - Underlying Notif
ication Search", "Home;DR Home")
Wait(5)
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: Check for DR Hom
e Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 9: Check for DR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC5()
' Step 1
Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath", "UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification S
earch").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2
strAssignedUserValue = Browser("CorporateActions").Page("Profile - Under
lying Notification Search").WebList("AssignedtoUserGroups").GetROProperty("all i
tems")
If InStr(1, UCase(strAssignedUserValue), UCase(DataTable.Value("AllItems
ofVariousField", "UnderlyingNotification"))) <> 0 Then
Reporter.ReportEvent micPass, "Step 2: Verifying if all the Items ar
e Present in the Field 'Assigned to User Group'", "All the Items namely " & strA
ssignedUserValue
Else
Reporter.ReportEvent micFail, "Step 2: Verifying if all the Items ar
e Present in the Field 'Assigned to User Group'", "All the Items namely " & strA
ssignedUserValue & " are NOT Present in the Field ' Assigned to User Groups ' "
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 3
strValue = "All"
strAssignedValue = get_WebList_Value("CorporateActions", "Profile - Unde
rlying Notification Search", "AssignedtoUserGroups")
If InStr(1, strAssignedValue, strValue) <> 0 Then
Reporter.ReportEvent micPass, "Step 3: Verifying the Default Value o
f Assigned to User Group", "The Default Value of the Field 'Assigned to User Gro
ups' is' " & strAssigedValue '
Else
Reporter.ReportEvent micFail, "Step 3: Verifying the Default Value o
f Assigned to User Group", "The Default Value of the Field 'Assigned to User Gro
ups' is NOT ' " & strAssigedValue '
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions", "Profile - Underlying Notification
Search", "Home;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC6()
' Step 1
Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath", "UnderlyingNotification"))

If Browser("CorporateActions").Page("Profile - Underlying Notification S


earch").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
strAssignedValues = DataTable.Value("AssignedtoUserGroups","Unde
rlyingNotification")
strAssignedValue = Split(strAssignedValues,";",-1,1)
For intValCounter = 0 to UBound(strAssignedValue)
intCount = intValCounter + 2
strSelectValue = strAssignedValue(intValCounter)
Call select_Menu("CorporateActions", "Profile - Underlyi
ng Notification Search", DataTable.Value("MenuPath", "UnderlyingNotification"))
'Call click_Image("CorporateActions","Profile - Underlyi
ng Notification Search","Clear")
Wait(1)
Call click_Image("CorporateActions","Profile - Underlyin
g Notification Search","Search")
InitialRowCount = Browser("CorporateActions").Page("Prof
ile - Underlying Notification Search").WebTable("UnderlyingNotification").RowCou
nt
Call Select_Combo_Value("CorporateActions","Profile - Un
derlying Notification Search","AssignedtoUserGroups",strSelectValue)
Call click_Image("CorporateActions","Profile - Underlyin
g Notification Search","Search")
Wait(2)
FinalRowCount = Browser("CorporateActions").Page("Profil
e - Underlying Notification Search").WebTable("UnderlyingNotification").RowCount
If FinalRowCount <= InitialRowCount Then
Reporter.ReportEvent micPass,"Step : " & intCoun
t & " Verifying if the Results are displayed","The Result are Displayed accordi
ng to the Search Criteria Assigned to User Groups: " & strSelectValue
Else
Reporter.ReportEvent micFail,"Step : " & intCou
nt & " Verifying if the Results are displayed","The Result are NOT Displayed acc
ording to the Search Criteria 'Assigned to User Groups: " & strSelectValue
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(1)
Next
Call select_Menu("CorporateActions","Profile - Underlying Notifi
cation Search","Home;DR Home")
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC7()
' Step 1
Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath", "UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification S
earch").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2
strSourceAllValue = Browser("CorporateActions").Page("Profile - Underlyi
ng Notification Search").WebList("Source").GetROProperty("all items")
If InStr(1, strSourceAllValue, DataTable.Value("AllItemsofVariousField",
"UnderlyingNotification")) <> 0 Then
Reporter.ReportEvent micPass, "Step 2: Verifying if all the Items ar
e Present in the Field 'Source'", "All the Items namely " & strSourceAllValue &
" is Present in the Field 'Source' "
Else
Reporter.ReportEvent micFail, "Step 2: Verifying if all the Items ar
e Present in the Field 'Source'", "All the Items namely " & strSourceAllValue &
" are NOT Present in the Field 'Source' "
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 3
strValue = "All"
strSourceValue = get_WebList_Value("CorporateActions", "Profile - Underl
ying Notification Search", "Source")
If InStr(1, strSourceValue, strValue) <> 0 Then
Reporter.ReportEvent micPass, "Step 3: Verifying the Default Value o
f Source Field", "The Default Value of the Field 'Source' is' " & strSourceValue
'
Else
Reporter.ReportEvent micFail, "Step 3: Verifying the Default Value o
f Source Field", "The Default Value of the Field 'Source' is NOT ' " & strSource
Value '
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions", "Profile - Underlying Notification
Search", "Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC8()
' Step 1
Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath", "UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification S
earch").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2 to 15
strSelectValues = Split(DataTable.Value("Source", "UnderlyingNotificatio
n"), ";", -1, 1)
For intValCounter = 0 To UBound(strSelectValues)
strSelectValue = strSelectValues(intValCounter)
Call Select_Combo_Value("CorporateActions", "Profile - Underlying No
tification Search", "Source", strSelectValue)
Call click_Image("CorporateActions", "Profile - Underlying Notificat
ion Search","Search")
Wait (5)
Call chkResultinTable("CorporateActions", "Profile - Underlying Noti
fication Search","UnderlyingNotification", "Source", strSelectValue)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Verifying if the Results are disp
layed with Source as " & strSelectValue, "The Results are displayed as per the S
earch Criteria: 'Source " & strSelectValue '
Else
Reporter.ReportEvent micFail, "Verifying if the Results are disp
layed with Source as " & strSelectValue, "The Results are NOT displayed as per t
he Search Criteria: 'Source " & strSelectValue '
'Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intRowCounts = Browser("CorporateActions").Page("Profile - Underlyin
g Notification Search").WebTable("UnderlyingNotification").RowCount
If intRowCounts > 2 Then
Call SelectElementValueinTable("CorporateActions", "Profile - Un
derlying Notification Search", "UnderlyingNotification", "Received Date")
Wait (10)
If Browser("CorporateActions").Page("Underlying Notification").E
xist(2) Then
If Browser("CorporateActions").Dialog("F
ile Download").Exist(5) Then
Browser("CorporateActions").Dial
og("File Download").WinButton("Cancel").Click
End If
strSourceValue = get_WebEdit_Value("CorporateActions", "Unde
rlying Notification", "Source")
If UCase(Trim(strSourceValue)) = UCase(Trim(strSelectValue))
Then
Reporter.ReportEvent micPass, "Verifying the Value displ
ayed in the ' Source ' Field", "The Value displayed in the 'Source' Field is " &
strSourceValue
Else
Reporter.ReportEvent micFail, "Verifying the Value displ
ayed in the ' Source ' Field", "The " & strSourceValue & " is Not the Value disp
layed in the 'Source' Field "
Call captureScreenShot()
Environment.Value("TestCase_Log") = "False"
'Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions", "Underlying Notificatio
n", DataTable.Value("MenuPath", "UnderlyingNotification"))
Else
Reporter.ReportEvent micFail, "Verifying if the Page 'Underl
ying Notification' is displayed or NOT", "The Page 'Underlying Notification' is
Not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
'Environment.Value("TestCase_Log") = "False"
End If
Else
Reporter.ReportEvent micWarning, "Verifying the Search Result",
"No Results are displayed for the Search Criteria :'Source - " & strSelectValue
& " ' "
Call captureScreenShot()
'Environment.Value("Execution_Log") = "False"
'Environment.Value("TestCase_Log") = "False"
End If
Next
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 2 to 15 : Verifying if the Resul
ts are displayed when other items in the 'Source' Field are Selected", "The Resu
lts are displayed with other items in the 'Source' Field"
Else
Reporter.ReportEvent micFail, "Step 2 to 15 : Verifying if the Resul
ts are displayed when other items in the 'Source' Field are Selected", "The Resu
lts are NOT displayed with other items in the 'Source' Field"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
If Browser("CorporateActions").Page("Underlying Notification").Exist(2)
Then
Call select_Menu("CorporateActions", "Underlying Notification", "Hom
e;DR Home")
ElseIf Browser("CorporateActions").Page("Profile - Underlying Notificati
on Search").Exist(2) Then
Call select_Menu("CorporateActions", "Profile - Underlying Notificat
ion Search", "Home;DR Home")
End If
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 16: Check for DR Ho
me Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 16: Check for DR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
'Earlier Test Case 11
Public Function CAProfileUnderlyingNotification_TC9()
' Step 1
Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath", "UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification S
earch").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2
strExceptionAllValue = Browser("CorporateActions").Page("Profile - Under
lying Notification Search").WebList("Exception").GetROProperty("all items")
If InStr(1, strExceptionAllValue, DataTable.Value("AllItemsofVariousFiel
d", "UnderlyingNotification")) <> 0 Then
Reporter.ReportEvent micPass, "Step 2: Verifying if all the Items ar
e Present in the Field 'Exception'", "All the Items namely " & strExecptionAllVa
lue & " is Present in the Field 'Exception' "
Else
Reporter.ReportEvent micFail, "Step 2: Verifying if all the Items ar
e Present in the Field 'Exception'", "All the Items namely " & strExecptionAllVa
lue & " are NOT Present in the Field 'Exception' "
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 3
strValue = "All"
strExceptionValue = get_WebList_Value("CorporateActions", "Profile - Und
erlying Notification Search", "Exception")
If InStr(1, strExceptionValue, strValue) <> 0 Then
Reporter.ReportEvent micPass, "Step 3: Verifying the Default Value o
f Exception Field", "The Default Value of the Field 'Exception' is' " & strExcep
tionValue '
Else
Reporter.ReportEvent micFail, "Step 3: Verifying the Default Value o
f Exception Field", "The Default Value of the Field 'Exception' is NOT ' " & str
ExceptionValue '
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
strException = Split(DataTable.Value("Exception", "UnderlyingNotificatio
n"), ";", -1, 1)
Call click_Image("CorporateActions","Profile - Underlying Notification S
earch","Search")
InitialRowCount = Browser("CorporateActions").Page("Profile - Un
derlying Notification Search").WebTable("UnderlyingNotification").RowCount
Wait(2)
Call Select_Combo_Value("CorporateActions", "Profile - Underlyin
g Notification Search", "Exception", strException(0))
Call click_Image("CorporateActions", "Profile - Underlying Notif
ication Search","Search")
Wait (5)
FinalRowCount = Browser("CorporateActions").Page("Profile - Unde
rlying Notification Search").WebTable("UnderlyingNotification").RowCount
If FinalRowCount <= InitialRowCount Then
Reporter.ReportEvent micPass,"Step 4: Verifying if the R
esults are displayed","The Result are Displayed according to the Search Criteria
Exception:=: " & strException(intValCount)
Else
Reporter.ReportEvent micFail," Step 4 :Verifying if the
Results are displayed","The Result are NOT Displayed according to the Search Cri
teria 'Exception: " & strException(intValCount)
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
intRowCounts = Browser("CorporateActions").Page("Profile - Under
lying Notification Search").WebTable("UnderlyingNotification").RowCount
If intRowCounts > 2 Then
Call SelectElementValueinTable("CorporateActions", "Prof
ile - Underlying Notification Search", "UnderlyingNotification", "Received Date"
)
Wait (5)
If Browser("CorporateActions").Page("Underlying Notifica
tion").Exist(5) Then
If Browser("CorporateActions").Dialog("File Down
load").Exist(5) Then
Browser("CorporateActions").Dialog("File
Download").WinButton("Cancel").Click
End If
strExceptionValue = get_WebEdit_Value("Corporat
eActions", "Underlying Notification", "ParserExceptionCode")
If UCase(Trim(strExceptionValue)) = "EXCEPTION"
Then
Reporter.ReportEvent micPass, "Step 5: V
erifying the Value displayed in the ' ParserExceptionCode ' Field", "The Value d
isplayed in the 'Source' Field is " & strExceptionValue
Else
Reporter.ReportEvent micFail, "Step 5: V
erifying the Value displayed in the ' ParserExceptionCode ' Field", "The " & str
ExceptionValue & " is displayed the 'ParserExceptionCode' Field instead of 'Exce
ption' "
Call captureScreenShot()
Environment.Value("TestCase_Log") = "Fal
se"
Environment.Value("Execution_Log") = "Fa
lse"
End If
Call select_Menu("CorporateActions", "Underlying
Notification", DataTable.Value("MenuPath", "UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - U
nderlying Notification Search").Exist(3) Then
Reporter.ReportEvent micPass,"Step 6:Ver
ifying if the Profile - Underlying Notification is displayed or Not","The Page '
Profile - Underlying Notification' is dispalyed successfully"
Else
Reporter.ReportEvent micFail,"Step 6:Ver
ifying if the Profile - Underlying Notification is displayed or Not","The Page '
Profile - Underlying Notification' is Not dispalyed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "Fa
lse"
End If
Else
Reporter.ReportEvent micFail, "Step 5 : Verifyin
g if the Page 'Underlying Notification' is displayed or NOT", "The Page 'Underly
ing Notification' is Not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "False"
End If
Else
Reporter.ReportEvent micFail, "Step 3: Verifying the Sea
rch Result", "No Results are displayed for the Search Criteria :'Source - " & st
rSelectValue '
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "False"
End If

' Select No in Exception Field


Call click_Image("CorporateActions","Profile - Underlying Notifi
cation Search","Search")
InitialRowCount = Browser("CorporateActions").Page("Profile - Un
derlying Notification Search").WebTable("UnderlyingNotification").RowCount
Wait(2)
Call Select_Combo_Value("CorporateActions", "Profile - Underlyin
g Notification Search", "Exception", strException(1))
Call click_Image("CorporateActions", "Profile - Underlying Notif
ication Search","Search")
Wait (5)
FinalRowCount = Browser("CorporateActions").Page("Profile - Unde
rlying Notification Search").WebTable("UnderlyingNotification").RowCount
If FinalRowCount <= InitialRowCount Then
Reporter.ReportEvent micPass,"Step 7: Verifying if the R
esults are displayed","The Result are Displayed according to the Search Criteria
Exception:=: " & strException(intValCount)
Else
Reporter.ReportEvent micFail," Step 7 :Verifying if the
Results are displayed","The Result are NOT Displayed according to the Search Cri
teria 'Exception: " & strException(intValCount)
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
intRowCounts = Browser("CorporateActions").Page("Profile - Under
lying Notification Search").WebTable("UnderlyingNotification").RowCount
If intRowCounts > 2 Then
Call SelectElementValueinTable("CorporateActions", "Prof
ile - Underlying Notification Search", "UnderlyingNotification", "Received Date"
)
Wait (5)
If Browser("CorporateActions").Page("Underlying Notifica
tion").Exist(5) Then
If Browser("CorporateActions").Dialog("File Down
load").Exist(5) Then
Browser("CorporateActions").Dialog("File
Download").WinButton("Cancel").Click
End If
strExceptionValue = get_WebEdit_Value("Corporat
eActions", "Underlying Notification", "ParserExceptionCode")
If UCase(Trim(strExceptionValue)) = "" Then
Reporter.ReportEvent micPass, "Step 8 :
Verifying the Value displayed in the ' ParserExceptionCode ' Field", "The Value
displayed in the 'ParserExceptionCode' Field is 'Null' "
Else
Reporter.ReportEvent micFail, "Step 8: V
erifying the Value displayed in the ' ParserExceptionCode ' Field", "The " & str
ExceptionValue & " is displayed the 'ParserExceptionCode' Field instead of 'Null
' "
Call captureScreenShot()
Environment.Value("TestCase_Log") = "Fal
se"
Environment.Value("Execution_Log") = "Fa
lse"
End If
Call select_Menu("CorporateActions", "Underlying
Notification", DataTable.Value("MenuPath", "UnderlyingNotification"))
Else
Reporter.ReportEvent micFail, "Step 7 : Verifyin
g if the Page 'Underlying Notification' is displayed or NOT", "The Page 'Underly
ing Notification' is Not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "False"
End If
Else
Reporter.ReportEvent micFail, "Step 7: Verifying the Sea
rch Result", "No Results are displayed for the Search Criteria :'Source - " & st
rSelectValue & " ' "
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "False"
End If
Call select_Menu("CorporateActions", "Profile - Underlying Notification
Search", "Home;DR Home")
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: Check for DR Hom
e Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 9: Check for DR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC10()

' Step 1
Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath", "UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification S
earch").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2
Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "ISIN")
Call pageCheck_Frame("CorporateActions", "Profile - Underlying Notificat
ion Search", "lookupFrame", "ISIN;SEDOL;UnderlyingSecurityName", "Go;Clear", "IS
IN;SEDOL;Und.SecurityName;Type")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 2: Verifying the Fields inside t
he Frame", "The Required Fields are Present in the Frame"
Else
Reporter.ReportEvent micFail, "Step 2: Verifying the Fields inside t
he Frame", "The Required Fields are NOT present in the Frame"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 3
Browser("CorporateActions").Page("Profile - Underlying Notification Sear
ch").Frame("lookupFrame").WebEdit("ISIN").Set DataTable.Value("ISIN", "Underlyin
gNotification")
Call operation_on_FrameObjects_WithName("CorporateActions", "Profile - U
nderlying Notification Search", "lookupFrame", "Image", "Go", "")
Call ReportLoadWaitinFrame("CorporateActions", "Profile - Underlying Not
ification Search", "lookupFrame", "ISIN", "ISIN")
Call chkResultinFrame("CorporateActions", "Profile - Underlying Notifica
tion Search", "lookupFrame", "ISIN", "ISIN", DataTable.Value("ISIN", "Underlying
Notification"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 3: Verifying the ISIN Values in
the Table", "The Value in the ISIN Column is " & DataTable.Value("ISIN", "Underl
yingNotification")
Else
Reporter.ReportEvent micFail, "Step 3: Verifying the ISIN Values in
the Table", "The Value in the ISIN Column is NOT displayed as " & DataTable.Valu
e("ISIN", "UnderlyingNotification")
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 4
strApp = SelectValueinFrame("CorporateActions", "Profile - Underlying No
tification Search", "lookupFrame", "ISIN")
strISINValue = get_WebEdit_Value("CorporateActions", "Profile - Underlyi
ng Notification Search", "ISIN")
strUndSecName = get_WebEdit_Value("CorporateActions", "Profile - Underly
ing Notification Search", "UnderlyingSecurityName")
If InStr(1, UCase(Trim(strApp)), UCase(Trim(strISINValue))) <> 0 And InS
tr(1, UCase(Trim(strApp)), UCase(Trim(strUndSecName))) <> 0 Then
Reporter.ReportEvent micPass, "Step 4: Verifying if the ISIN and Und
erlying Security Name values are filled or NOT", "The Value of ISIN is " & strIS
IN & " and Underlying Security Name is " & strUndSecName
Else
Reporter.ReportEvent micFail, "Step 4: Verifying if the ISIN and Und
erlying Security Name values are filled or NOT", "The Values are not filled in I
SIN or Underlying Security Name Field"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If

' Step 5
Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "Search")
Wait (5)
Call chkResultinTable("CorporateActions", "Profile - Underlying Notifica
tion Search", "UnderlyingNotification", "ISIN", DataTable.Value("ISIN", "Underly
ingNotification"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 5:Verifying if the Result are di
splayed with ISIN Value = " & DataTable.Value("ISIN", "UnderlyingNotification")
& "or NOT ", "The Results are Displayed with Search Criteria as : " & DataTable.
Value("ISIN", "UnderlyingNotification")
Else
Reporter.ReportEvent micFail, "Step 5:Verifying if the Result are di
splayed with ISIN Value = " & DataTable.Value("ISIN", "UnderlyingNotification")
& "or NOT ", "The Results are NOT Displayed with ISIN Value = " & DataTable.Valu
e("ISIN", "UnderlyingNotification")
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intRowCounts = Browser("CorporateActions").Page("Profile - Underlying No
tification Search").WebTable("UnderlyingNotification").RowCount
If intRowCounts > 2 Then
Call SelectElementValueinTable("CorporateActions", "Profile - Un
derlying Notification Search", "UnderlyingNotification", "Received Date")
Wait (10)
If Browser("CorporateActions").Page("Underlying Notification").E
xist(5) Then
If Browser("CorporateActions").Dialog("F
ile Download").Exist(5) Then
Browser("CorporateActions").Dial
og("File Download").WinButton("Cancel").Click
End If
If Dialog("text:=Security Alert").Exist
(3) Then
Dialog("text:=Security Alert").W
inButton("text:=&Yes").Click
End If
strISINValue = get_WebEdit_Value("CorporateActions", "Underl
ying Notification", "ISIN")
If UCase(Trim(strISINValue)) = UCase(Trim(DataTable.Value("I
SIN", "UnderlyingNotification"))) Then
Reporter.ReportEvent micPass, "Step 6: Verifying the Val
ue displayed in the ' ISIN ' Field", "The Value displayed in the 'ISIN' Field is
" & strISINValue
Else
Reporter.ReportEvent micFail, "Step 6: Verifying the Val
ue displayed in the ' ISIN ' Field", "The " & strISINValue & " is Not the Value
displayed in the 'ISIN' Field "
Call captureScreenShot()
Environment.Value("TestCase_Log") = "False"
Environment.Value("Execution_Log") = "False"
End If
If Dialog("text:=Security Alert").Exist
(3) Then
Dialog("text:=Security Alert").W
inButton("text:=&Yes").Click
End If
Call select_Menu("CorporateActions", "Underlying Notificatio
n", DataTable.Value("MenuPath", "UnderlyingNotification"))
Else
Reporter.ReportEvent micFail, "Step 6: Verifying if the Page
'Underlying Notification' is displayed or NOT", "The Page 'Underlying Notificat
ion' is Not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "False"
End If
Else
Repoter.ReportEvent micFail, "Step 5: Verifying the Search Resul
t", "No Results are displayed for the Search Criteria :'ISIN - " & strSelectValu
e & " '"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "False"
End If
Call select_Menu("CorporateActions", "Profile - Underlying Notification
Search", "Home;DR Home")
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Check for DR Hom
e Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 7: Check for DR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC11()
' Step 1
Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath", "UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification S
earch").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2
Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "UnderlyingSecurityName")
Call pageCheck_Frame("CorporateActions", "Profile - Underlying Notificat
ion Search", "lookupFrame", "ISIN;SEDOL;UnderlyingSecurityName", "Go;Clear", "IS
IN;SEDOL;Und.SecurityName;Type")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 2: Verifying the Fields inside t
he Frame", "The Required Fields are present in the Frame"
Else
Reporter.ReportEvent micFail, "Step 2: Verifying the Fields inside t
he Frame", "The Required Fields are NOT present in the Frame"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 3
Browser("CorporateActions").Page("Profile - Underlying Notificat
ion Search").Frame("lookupFrame").WebEdit("UnderlyingSecurityName").Set DataTabl
e.Value("UnderlyingSecurity", "UnderlyingNotification")
Call operation_on_FrameObjects_WithName("CorporateActions", "Profile - U
nderlying Notification Search", "lookupFrame", "Image", "Go", "")
Call ReportLoadWaitinFrame("CorporateActions", "Profile - Underlying Not
ification Search", "lookupFrame", "ISIN", "ISIN")
Call chkResultinFrame("CorporateActions", "Profile - Underlying Notifica
tion Search", "lookupFrame", "ISIN","Und. Security Name",DataTable.Value("Underl
yingSecurity", "UnderlyingNotification"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 3: Verifying the Underlying Secu
rity Name in the Table", "The Value in the Underlying Security Name Column is "
& DataTable.Value("UnderlyingSecurity", "UnderlyingNotification")
Else
Reporter.ReportEvent micFail, "Step 3: Verifying the Underlying Secu
rity Name in the Table", "The Value in the Underlying Security Name Column is NO
T " & DataTable.Value("UnderlyingSecurity", "UnderlyingNotification")
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 4
strApp = SelectValueinFrame("CorporateActions", "Profile - Underlying No
tification Search", "lookupFrame","ISIN")
strISINValue = get_WebEdit_Value("CorporateActions", "Profile - Underlyi
ng Notification Search", "ISIN")
strUndSecName = get_WebEdit_Value("CorporateActions", "Profile - Underly
ing Notification Search", "UnderlyingSecurityName")
If InStr(1, UCase(Trim(strApp)), UCase(Trim(strISINValue))) <> 0 And InS
tr(1, UCase(Trim(strApp)), UCase(Trim(strUndSecName))) <> 0 Then
Reporter.ReportEvent micPass, "Step 4: Verifying if the ISIN and Und
erlying Security Name values are filled or NOT", "The Value of ISIN is " & strIS
IN & " and Underlying Security Name is " & strUndSecName
Else
Reporter.ReportEvent micFail, "Step 4: Verifying if the ISIN and Und
erlying Security Name values are filled or NOT", "The Values are not filled in I
SIN or Underlying Security Name Field"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 5:
Call click_Image("CorporateActions", "Profile - Underlying Notif
ication Search", "UnderlyingSecurityName")
Call pageCheck_Frame("CorporateActions", "Profile - Underlying Notificat
ion Search", "lookupFrame", "ISIN;SEDOL;UnderlyingSecurityName", "Go;Clear", "IS
IN;SEDOL;Und.SecurityName;Type")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 5: Verifying the Fields inside t
he Frame", "The Required Fields are present in the Frame"
Else
Reporter.ReportEvent micFail, "Step 5: Verifying the Fields inside t
he Frame", "The Required Fields are NOT present in the Frame"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Browser("CorporateActions").Page("Profile - Underlying Notificat
ion Search").Frame("lookupFrame").Image("Clear").Click
Wait(2)
strISINValue1 = get_WebEdit_Value("CorporateActions", "Profile -
Underlying Notification Search", "ISIN")
strUndSecName1 = get_WebEdit_Value("CorporateActions", "Profile - Underl
ying Notification Search", "UnderlyingSecurityName")
If strISINValue1 = "" And strUndSecName1 = "" Then
Reporter.ReportEvent micPass,"Step 6: Verifying if the I
SIN and Underlying Security Name value is Cleared or Not","The ISIN and Underlyi
ng Security Name is Cleared after clicking on the Clear button"
Else
Reporter.ReportEvent micFail,"Step 6: Verifying if the I
SIN and Underlying Security Name value is Cleared or Not","The ISIN Or Underlyin
g Security Name is Not Cleared after clicking on the Clear button"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Call captureScreenShot()
End If
' Step 7:
Call click_Image("CorporateActions", "Profile - Underlying Notif
ication Search", "UnderlyingSecurityName")
Call pageCheck_Frame("CorporateActions", "Profile - Underlying Notificat
ion Search", "lookupFrame", "ISIN;SEDOL;UnderlyingSecurityName", "Go;Clear", "IS
IN;SEDOL;Und.SecurityName;Type")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 7: Verifying the Fields inside t
he Frame", "The Required Fields are present in the Frame"
Else
Reporter.ReportEvent micFail, "Step 7: Verifying the Fields inside t
he Frame", "The Required Fields are NOT present in the Frame"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
' Step 8:
Browser("CorporateActions").Page("Profile - Underlying Notificat
ion Search").Frame("lookupFrame").WebEdit("UnderlyingSecurityName").Set DataTabl
e.Value("UnderlyingSecurity", "UnderlyingNotification")
Call operation_on_FrameObjects_WithName("CorporateActions", "Profile - U
nderlying Notification Search", "lookupFrame", "Image", "Go", "")
Call ReportLoadWaitinFrame("CorporateActions", "Profile - Underlying Not
ification Search", "lookupFrame", "ISIN", "ISIN")
Call chkResultinFrame("CorporateActions", "Profile - Underlying Notifica
tion Search", "lookupFrame", "ISIN","Und. Security Name",DataTable.Value("Underl
yingSecurity", "UnderlyingNotification"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 8: Verifying the Underlying Secu
rity Name in the Table", "The Value in the Underlying Security Name Column is "
& DataTable.Value("UnderlyingSecurity", "UnderlyingNotification")
Else
Reporter.ReportEvent micFail, "Step 8: Verifying the Underlying Secu
rity Name in the Table", "The Value in the Underlying Security Name Column is NO
T " & DataTable.Value("UnderlyingSecurity", "UnderlyingNotification")
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 9
strApp = SelectValueinFrame("CorporateActions", "Profile - Underlying No
tification Search", "lookupFrame","ISIN")
strISINValue = get_WebEdit_Value("CorporateActions", "Profile - Underlyi
ng Notification Search", "ISIN")
strUndSecName = get_WebEdit_Value("CorporateActions", "Profile - Underly
ing Notification Search", "UnderlyingSecurityName")
If InStr(1, UCase(Trim(strApp)), UCase(Trim(strISINValue))) <> 0 And InS
tr(1, UCase(Trim(strApp)), UCase(Trim(strUndSecName))) <> 0 Then
Reporter.ReportEvent micPass, "Step 9: Verifying if the ISIN and Und
erlying Security Name values are filled or NOT", "The Value of ISIN is " & strIS
IN & " and Underlying Security Name is " & strUndSecName
Else
Reporter.ReportEvent micFail, "Step 9: Verifying if the ISIN and Und
erlying Security Name values are filled or NOT", "The Values are not filled in I
SIN or Underlying Security Name Field"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 10
Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "Search")
Wait (5)
Call chkResultinTable("CorporateActions", "Profile - Underlying Notifica
tion Search", "UnderlyingNotification", "Underlying Security", DataTable.Value("
UnderlyingSecurity", "UnderlyingNotification"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 10:Verifying if the Result are d
isplayed with Underlying Security Name = " & DataTable.Value("UnderlyingSecurity
", "UnderlyingNotification") & "or NOT ", "The Results are Displayed with Search
Criteria as Underlying Security Name: " & DataTable.Value("UnderlyingSecurity",
"UnderlyingNotification")
Else
Reporter.ReportEvent micFail, "Step 10:Verifying if the Result are d
isplayed with Underlying Security Name = " & DataTable.Value("UnderlyingSecurity
", "UnderlyingNotification") & "or NOT ", "The Results are NOT Displayed with Un
derlying Security Name = " & DataTable.Value("UnderlyingSecurity", "UnderlyingNo
tification")
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If

intRowCounts = Browser("CorporateActions").Page("Profile - Underlying No


tification Search").WebTable("UnderlyingNotification").RowCount
If intRowCounts > 2 Then
Call SelectElementValueinTable("CorporateActions", "Profile - Un
derlying Notification Search", "UnderlyingNotification", "Received Date")
Wait (10)
If Browser("CorporateActions").Page("Underlying Notification").E
xist(2) Then
If Browser("CorporateActions").Dialog("F
ile Download").Exist(5) Then
Browser("CorporateActions").Dial
og("File Download").WinButton("Cancel").Click
End If
strUnderlyingSecurityNameValue = get_WebEdit_Value("Corporat
eActions", "Underlying Notification", "UnderlyingSecurityName")
If UCase(Trim(strUnderlyingSecurityNameValue)) = UCase(Trim(
DataTable.Value("UnderlyingSecurity", "UnderlyingNotification"))) Then
Reporter.ReportEvent micPass,"Step 11: Verifying the Val
ue displayed in the ' UnderlyingSecurityName ' Field", "The " & strUnderlyingSec
urityNameValue & " is the Value displayed in the 'UnderlyingSecurityName' Field
"
Else
Reporter.ReportEvent micFail, "Step 11: Verifying the Va
lue displayed in the ' UnderlyingSecurityName ' Field", "The " & strUnderlyingSe
curityNameValue & " is Not the Value displayed in the 'UnderlyingSecurityName' F
ield "
Call captureScreenShot()
Environment.Value("TestCase_Log") = "False"
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions", "Underlying Notificatio
n", DataTable.Value("MenuPath", "UnderlyingNotification"))
Else
Reporter.ReportEvent micFail, "Step 11: Verifying if the Pag
e 'Underlying Notification' is displayed or NOT", "The Page 'Underlying Notifica
tion' is Not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "False"
End If
Else
Reporter.ReportEvent micFail, "Step 10: Verifying the Search Res
ult", "No Results are displayed for the Search Criteria :'UnderlyingSecurityName
- " & strSelectValue '
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "False"
End If
'Next
Call select_Menu("CorporateActions", "Profile - Underlying Notification
Search", "Home;DR Home")
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 12: Check for DR Ho
me Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 12: Check for DR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC12()
' Step 1
Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath", "UnderlyingNotification"))

If Browser("CorporateActions").Page("Profile - Underlying Notification S


earch").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2
Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "CorporateActionType")
Call pageCheck_Frame("CorporateActions", "Profile - Underlying Notificat
ion Search", "lookupFrame", "CorporateActionType", "Go;Clear", "CorporateActionT
ype")
If Environment.Value("TestCase_Log") = "True" Then
blnFlag = "True"
Else
blnFlag = "False"
Environment.Value("TestCase_Log") = "True"
End If
strDataValue = ""
intDataRowCount = DataTable.GetSheet("ReportHeader").GetRowCount
For intCounter = 1 to intDataRowCount
DataTable.GetSheet("ReportHeader").SetCurrentRow(intCoun
ter)
strDataValues = Trim(DataTable.Value("UploadNotification
","ReportHeader"))
strDataValue = strDataValue & strDataValues & ";"
Next
strDataValue = Replace(strDataValue," ","")
intRowCount = Browser("CorporateActions").Page("Profile - Underl
ying Notification Search").Frame("lookupFrame").WebTable("ISIN").RowCount
strAppValue = ""
blnTestFlag = "True"
For intRowCounter = 2 to intRowCount
strAppValue = Browser("CorporateActions").Page("Profile
- Underlying Notification Search").Frame("lookupFrame").WebTable("ISIN").GetCell
Data(intRowCounter,1)
strAppValue = Replace(strAppValue," ","")
If Instr(1,strDataValue,strAppValue) = 0 Then
blnTestFlag = "False"
Exit For
End If
Next
If blnTestFlag = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 2: Verifying if the r
equired Items are Present in the Table and the Required Fields are Present in th
e Frame","The Required Items are Present in the Table are " & strAppValue & " an
d the Required Fields are Present in the Frame"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying if the r
equired Items are Present in the Table","The Required Items are NOT Present in t
he Table or the Required Fields are Present in the Frame"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 3
Browser("CorporateActions").Page("Profile - Underlying Notification Sear
ch").Frame("lookupFrame").WebEdit("CorporateActionType").Set DataTable.Value("Se
lectCAType", "UnderlyingNotification")
Call operation_on_FrameObjects_WithName("CorporateActions", "Profile - U
nderlying Notification Search", "lookupFrame", "Image", "Go", "")
Call ReportLoadWaitinFrame("CorporateActions", "Profile - Underlying Not
ification Search", "lookupFrame", "ISIN", "Corporate Action Type")
Call chkResultinFrame("CorporateActions", "Profile - Underlying Notifica
tion Search", "lookupFrame","ISIN","Corporate Action Type", DataTable.Value("Sel
ectCAType", "UnderlyingNotification"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 3: Verifying if the Results are
displayed or NOT", "The Value in the Corporate Action Type Column is " & DataTab
le.Value("SelectCAType", "UnderlyingNotification")
Else
Reporter.ReportEvent micFail, "Step 3: Verifying if the Results are
displayed or NOT", "The Value in the Corporate Action Type Column is NOT " & Dat
aTable.Value("SelectCAType", "UnderlyingNotification")
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Browser("CorporateActions").Page("Profile - Underlying Notification Sear
ch").WebElement("html tag:=TD", "innertext:=" & DataTable.Value("CorporateAction
Type", "UnderlyingNotification")).Click
' Step 4
strCATypeValue = get_WebEdit_Value("CorporateActions", "Profile - Underl
ying Notification Search", "CorporateActionType")
If UCase(strCATypeValue) = UCase(DataTable.Value("CorporateActionType",
"UnderlyingNotification")) Then
Reporter.ReportEvent micPass, "Step 4: Verifying the Corporate Actio
n Type Value", "The Corporate Action Type Value is " & strCATypeValue
Else
Reporter.ReportEvent micFail, "Step 4: Verifying the Corporate Actio
n Type Value", "The Corporate Action Type Value is NOT " & strCATypeValue
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 5
Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "Search")
Wait (5)
Call chkResultinTable("CorporateActions", "Profile - Underlying Notifica
tion Search", "UnderlyingNotification", "Corporate Action Type", DataTable.Value
("CorporateActionType", "UnderlyingNotification"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 5:Verifying if the Result are di
splayed with Corporate Action Type Value as = " & DataTable.Value("SelectCAType"
, "UnderlyingNotification") & "or NOT ", "The Results are Displayed with Search
Criteria as Corporate Action Tyep: " & DataTable.Value("SelectCAType", "Underlyi
ngNotification")
Else
Reporter.ReportEvent micFail, "Step 5:Verifying if the Result are di
splayed with Corporate Action Type value as = " & DataTable.Value("SelectCAType"
, "UnderlyingNotification") & "or NOT ", "The Results are NOT Displayed with Cor
porate Action Type = " & DataTable.Value("SelectCAType", "UnderlyingNotification
")
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 6, 7
intRowCounts = Browser("CorporateActions").Page("Profile - Underlying No
tification Search").WebTable("UnderlyingNotification").RowCount
If intRowCounts > 2 Then
Call SelectElementValueinTable("CorporateActions", "Profile - Un
derlying Notification Search", "UnderlyingNotification", "Received Date")
Wait (10)
If Browser("CorporateActions").Page("Underlying Notification").E
xist(2) Then
If Browser("CorporateActions").Dialog("F
ile Download").Exist(5) Then
Browser("CorporateActions").Dial
og("File Download").WinButton("Cancel").Click
End If
strCorporateActionTypeValue = get_WebEdit_Value("CorporateAc
tions", "Underlying Notification", "CorporateActionType")
If UCase(Trim(strCorporateActionTypeValue)) = UCase(Trim(Dat
aTable.Value("CorporateActionType", "UnderlyingNotification"))) Then
Reporter.ReportEvent micPass, "Step 6: Verifying the Val
ue displayed in the ' CorporateActionType ' Field", "The Value displayed in the
'CorporateActionType' Field is " & strCorporateActionTypeValue
Else
Reporter.ReportEvent micFail, "Step 6: Verifying the Val
ue displayed in the ' CorporateActionType ' Field", "The " & strCorporateActionT
ypeValue & " is Not the Value displayed in the 'CorporateActionType' Field "
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call click_WebElement("CorporateActions", "Underlying Notifi
cation", "UnderlyingNotificationSearch")
Wait(2)
If Browser("CorporateActions").Dialog("M
icrosoft Internet Explorer").Exist(5) Then
Browser("CorporateActions").Dial
og("Microsoft Internet Explorer").WinButton("Cancel").Click
End If
strCATypeValue = get_WebEdit_Value("CorporateActions", "Prof
ile - Underlying Notification Search", "CorporateActionType")
If UCase(strCATypeValue) = UCase(DataTab
le.Value("CorporateActionType", "UnderlyingNotification")) Then
Reporter.ReportEvent micPass, "S
tep 7: Verifying the Corporate Action Type Value", "The Corporate Action Type Va
lue is " & strCATypeValue
Else
Reporter.ReportEvent micFail, "S
tep 7: Verifying the Corporate Action Type Value", "The Corporate Action Type Va
lue is NOT " & strCATypeValue
Call captureScreenShot()
Environment.Value("Execution_Log
") = "False"
End If
Else
Reporter.ReportEvent micFail, "Step 6: Verifying if the Page
'Underlying Notification' is displayed or NOT", "The Page 'Underlying Notificat
ion' is Not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
'Environment.Value("TestCase_Log") = "False"
End If
Else
Reporter.ReportEvent micFail, "Step 5: Verifying the Search Resu
lt", "No Results are displayed for the Search Criteria :'CorporateActionType - "
& DataTable.Value("SelectCAType", "UnderlyingNotification")
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
'Environment.Value("TestCase_Log") = "False"
End If
Call select_Menu("CorporateActions", "Profile - Underlying Notification
Search", "Home;DR Home")
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: Check for ADR Ho
me Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 8: Check for ADR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC13()
' Step 1
Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath", "UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification S
earch").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2
Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "Custodian")
Call pageCheck_Frame("CorporateActions", "Profile - Underlying Notificat
ion Search", "lookupFrame", "Custodian", "Go;Clear", "Custodian")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 2: Verifying the Fields inside t
he Frame", "The Required Fields are present in the Frame"
Else
Reporter.ReportEvent micFail, "Step 2: Verifying the Fields inside t
he Frame", "The Required Fields are NOT present in the Frame"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 3
Browser("CorporateActions").Page("Profile - Underlying Notification Sear
ch").Frame("lookupFrame").WebEdit("Custodian").Set DataTable.Value("Custodian",
"UnderlyingNotification")
Call operation_on_FrameObjects_WithName("CorporateActions", "Profile - U
nderlying Notification Search", "lookupFrame", "Image", "Go", "")
Call ReportLoadWaitinFrame("CorporateActions", "Profile - Underlying Not
ification Search","lookupFrame","ISIN","Custodian")
Call chkResultinFrame("CorporateActions", "Profile - Underlying Notifica
tion Search", "lookupFrame", "ISIN", "Custodian", DataTable.Value("Custodian", "
UnderlyingNotification"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 3: Verifying if the Results are
displayed or NOT", "The Value in the Custodian Column is " & DataTable.Value("Cu
stodian", "UnderlyingNotification")
Else
Reporter.ReportEvent micFail, "Step 3: Verifying if the Results are
displayed or NOT", "The Value in the Custodian Column is NOT " & DataTable.Value
("Custodian", "UnderlyingNotification")
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If

' Step 4
Call SelectValueinFrame("CorporateActions", "Profile - Underlying Notifi
cation Search", "lookupFrame", "ISIN")
strCustodianValue = get_WebEdit_Value("CorporateActions", "Profile - Und
erlying Notification Search", "Custodian")
If InStr(1, strCustodianValue, DataTable.Value("Custodian", "UnderlyingN
otification")) <> 0 Then
Reporter.ReportEvent micPass, "Step 4: Verifying the Value in the Cu
stodian Field", "The Value in the Custodian Field Contains " & DataTable.Value("
Custodian", "UnderlyingNotification")
Else
Reporter.ReportEvent micPass, "Step 4: Verifying the Value in the Cu
stodian Field", "The Value in the Custodian Field Contains " & DataTable.Value("
Custodian", "UnderlyingNotification")
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 5
Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "Search")
RowCount = Browser("CorporateActions").Page("Profile - Underlyin
g Notification Search").WebTable("UnderlyingNotification").RowCount
If RowCount > 2 Then
Reporter.ReportEvent micPass,"Step 5: Verfiying if the R
esults are displayed or Not","The Results are Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 5: Verfiying if the R
esults are displayed or Not","The Results are NOT Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Profile - Underlying Notifi
cation Search","Home;DR Home")
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Check for DR Hom
e Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 6: Check for DR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC14()
Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", "PROFILE;Upload
Notification")
If Browser("CorporateActions").Page("Profile - Upload Notification").Exi
st(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi
le Upload Notification ' is Displayed or NOT", "The Page ' Profile Upload Notifi
cation ' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le Upload Notification ' is Displayed or NOT", "The Page ' Profile Upload Notifi
cation ' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2
Call CreateNewFolder("UploadFiles")
strFilePath = CreateFile("UploadFiles",DataTable.Value("TestCaseID","Und
erlyingNotification"),"txt")
Call Select_Combo_Value("CorporateActions","Profile - Upload Notificatio
n","TargetDocument",DataTable.Value("TargetDocument","UnderlyingNotification"))
' 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("File
name:").Set strFilePath
Browser("CorporateActions").Dialog("Choose file").WinButton("Ope
n").Click
' Selecting Underlying Security
Call click_Image("CorporateActions","Profile - Upload Notificati
on","UnderlyingSecurity")
Call operation_on_FrameObjects_WithName("CorporateActions","Prof
ile - Upload Notification","lookupFrame","WebEdit","divNm",DataTable.Value("Unde
rlyingSecurity","UnderlyingNotification"))
Call operation_on_FrameObjects_WithName("CorporateActions","Prof
ile - Upload Notification","lookupFrame","Image","Go","")
Call SelectValueinFrame("CorporateActions","Profile - Upload Notificatio
n","lookupFrame","FrameTable")
' Entering the Corporate Action Type
Call SelectCorporateActionType("CorporateActions","Profile - Upl
oad Notification","CorporateActionType",DataTable.Value("CorporateActionType","U
nderlyingNotification"))
strISINValue1 = get_WebEdit_Value("CorporateActions","Profile -
Upload Notification","ISIN")
strUSName1 = get_WebEdit_Value("CorporateActions","Profile - Upl
oad Notification","UnderlyingSecurity")
strCAType1 = get_WebEdit_Value("CorporateActions","Profile - Upl
oad Notification","CorporateActionType")
'Call Select_Combo_Value("CorporateActions","Profile - Upload No
tification","Comparison",DataTable.Value("Comparison","UnderlyingNotification"))
' Setting thr Local Record Date
Call click_image("CorporateActions","Profile - Upload Notificati
on","PaymentDate")
'strDate=split(DataTable.Value("LocalRecordDate","UnderlyingNoti
fication"),";",-1,1)
Call SetDate("CorporateActions","Profile - Upload Notification",
DataTable.Value("PaymentDate","UnderlyingNotification"))
strLocalDate = get_WebEdit_Value("CorporateActions","Profile - U
pload Notification","PaymentDate")
' Saving the Changes made
Call click_Image("CorporateActions","Profile - Upload Notificati
on","Save")
Wait(5)
If Browser("CorporateActions").Page("Underlying Upload Notificat
ion").Exist(5) Then
If Browser("CorporateActions").Dialog("File Download").E
xist(5) Then
Browser("CorporateActions").Dialog("File Downloa
d").WinButton("Cancel").Click
End If
strAppValue = Browser("CorporateActions").Page("Underlyi
ng Upload Notification").Frame("msgFrame").GetROProperty("innertext")
strValue = ReadTextFile(strFilePath)
strAppValue = Replace(strAppValue," ","")
strValue = Replace(strValue," ","")
If Trim(strAppValue) = Trim(strValue) Then
Reporter.ReportEvent micPass,"Step 2: Verifying
if the Document is Uploaded or Not","The Document is Uploaded Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying
if the Document is Uploaded or Not","The Document is NOT Uploaded Successfully"
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Underlying Upload N
otification",DataTable.Value("MenuPath","UnderlyingNotification"))
Else
Reporter.ReportEvent micFail,"Step 2: Verifying if the D
ocument is Uploaded or Not","The Page 'Underlying Upload Notification is Not Dis
played and the Document is NOT Uploaded Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
'Call select_Menu("CorporateActions","Profile - Upload N
otification",DataTable.Value("MenuPath","UnderlyingNotification"))
Exit Function
End If
' Step 3
If Browser("CorporateActions").Page("Profile - Underlying Notifi
cation Search").Exist(5) Then
Reporter.ReportEvent micPass,"Step 3: Verifying if the P
age 'Profile - Underlying Notification Search' is Displayed or NOT","The Page 'P
rofile - Underlying Notification Search' is Displayed"
Else
Reporter.ReportEvent micPass,"Step 3: Verifying if the P
age 'Profile - Underlying Notification Search' is Displayed or NOT","The Page 'P
rofile - Underlying Notification Search' is Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 4
Call Select_Combo_Value("CorporateActions","Profile - Underlying
Notification Search","ProcessingStatus",DataTable.Value("ProcessingStatus","Und
erlyingNotification"))
strValue = get_WebList_Value("CorporateActions","Profile - Under
lying Notification Search","ProcessingStatus")
If Trim(strValue) = Trim(DataTable.Value("ProcessingStatus","Und
erlyingNotification")) Then
Reporter.ReportEvent micPass,"Step 4: Verifying the Valu
e in the Processing Status Field","The Value in the Processing Status Field is "
& DataTable.Value("ProcessingStatus","UnderlyingNotification")
Else
Reporter.ReportEvent micFail,"Step 4: Verifying the Valu
e in the Processing Status Field","The Value in the Processing Status Field is N
OT " & DataTable.Value("ProcessingStatus","UnderlyingNotification")
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 5
Call click_image("CorporateActions","Profile - Underlying Notifi
cation Search","ReceivedDate")
'strDate1=split(DataTable.Value("FromDate","UnderlyingNotificati
on"),";",-1,1)
Call SetDate("CorporateActions","Profile - Underlying Notificati
on Search",DataTable.Value("FromDate","UnderlyingNotification"))
Call click_image("CorporateActions","Profile - Underlying Notifi
cation Search","ReceivedEndDate")
Browser("CorporateActions").Page("Profile - Underlying Notification Sear
ch").Frame("PopCalFrame").WebElement("Today").Click
strReceivedDate = get_WebEdit_Value("CorporateActions","Profile
- Underlying Notification Search","ReceivedDate")
strReceivedEndDate = get_WebEdit_Value("CorporateActions","Profi
le - Underlying Notification Search","ReceivedEndDate")
strDates1 = Replace(DataTable.Value("FromDate","UnderlyingNotifi
cation"),";","-")
If DateValue(strDates1) = DateValue(strReceivedDate) AND DateVal
ue(strReceivedEndDate) = DateValue(Date) Then
Reporter.ReportEvent micPass,"Step 5: Verifying the Ente
red Date","The Date entered in Received Date is " & strReceivedDate & " and the
Date Entered in Received End Date is " & strReceivedEndDate
Else
Reporter.ReportEvent micPass,"Step 5: Verifying the Ente
red Date","The Date entered in Received Date is NOT " & strReceivedDate & " OR t
he Date Entered in Received End Date is NOT " & strReceivedEndDate
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 6
Call Select_Combo_Value("CorporateActions","Profile - Underlying
Notification Search","AssignedtoUserGroups",DataTable.Value("AssignedtoUserGrou
ps","UnderlyingNotification"))
strValue = get_WebList_Value("CorporateActions","Profile - Under
lying Notification Search","AssignedtoUserGroups")
If Trim(strValue) = Trim(DataTable.Value("AssignedtoUserGroups",
"UnderlyingNotification")) Then
Reporter.ReportEvent micPass,"Step 6: Verifying the Valu
e in the Assigned to User Groups Field","The Value in the Assigned to User Group
s Field is " & DataTable.Value("AssignedtoUserGroups","UnderlyingNotification")
Else
Reporter.ReportEvent micFail,"Step 6: Verifying the Valu
e in the Assigned to User Groups Field","The Value in the Assigned to User Group
s Field is NOT " & DataTable.Value("AssignedtoUserGroups","UnderlyingNotificatio
n")
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 7
Call Select_Combo_Value("CorporateActions","Profile - Underlying
Notification Search","Source",DataTable.Value("Source","UnderlyingNotification"
))
strValue = get_WebList_Value("CorporateActions","Profile - Under
lying Notification Search","Source")
If Trim(strValue) = Trim(DataTable.Value("Source","UnderlyingNot
ification")) Then
Reporter.ReportEvent micPass,"Step 7: Verifying the Valu
e in the Source Field","The Value in the Source Field is " & DataTable.Value("So
urce","UnderlyingNotification")
Else
Reporter.ReportEvent micFail,"Step 7: Verifying the Valu
e in the Source Field","The Value in the Source Field is NOT " & DataTable.Value
("Source","UnderlyingNotification")
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 8
Call SelectCorporateActionType("CorporateActions","Profile - Und
erlying Notification Search","CorporateActionType",DataTable.Value("CorporateAct
ionType","UnderlyingNotification"))
Call click_Image("CorporateActions","Profile - Underlying Notifi
cation Search","UnderlyingSecurityName")
Browser("CorporateActions").Page("Profile - Underlying Notification Sear
ch").Frame("lookupFrame").WebEdit("UnderlyingSecurityName").Set DataTable.Value(
"UnderlyingSecurity","UnderlyingNotification")
Call operation_on_FrameObjects_WithName("CorporateActions","Prof
ile - Underlying Notification Search","lookupFrame","Image","Go","")
Call SelectValueinFrame("CorporateActions","Profile - Underlying
Notification Search","lookupFrame","ISIN")
strISINValue2 = get_WebEdit_Value("CorporateActions","Profile -
Underlying Notification Search","ISIN")
strUSName2 = get_WebEdit_Value("CorporateActions","Profile - Und
erlying Notification Search","UnderlyingSecurityName")
strCAType2 = get_WebEdit_Value("CorporateActions","Profile - Und
erlying Notification Search","CorporateActionType")
If strISINValue2 = strISINValue1 AND strUSName2 = strUSName1 AN
D strCAType2 = strCAType1 Then
Reporter.ReportEvent micPass,"Step 8: Verifying the Ente
red Details","The Entered Details are Same as the Details entered to Upload the
Document"
Else
Reporter.ReportEvent micFail,"Step 8: Verifying the Ente
red Details","The Entered Details are NOT Same as the Details entered to Upload
the Document"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 9
Call click_Image("CorporateActions","Profile - Underlying Notifi
cation Search","Search")
Call chkResultinTable("CorporateActions","Profile - Underlying N
otification Search","UnderlyingNotification","Processing Status",DataTable.Value
("ProcessingStatus","UnderlyingNotification"))
Call chkResultinTable("CorporateActions","Profile - Underlying N
otification Search","UnderlyingNotification","Corporate Action Type",DataTable.V
alue("CorporateActionType","UnderlyingNotification"))
'Call chkResultinTable("CorporateActions","Profile - Underlying
Notification Search","UnderlyingNotification","ISIN",DataTable.Value("ISIN","Und
erlyingNotification"))
Call chkResultinTable("CorporateActions","Profile - Underlying N
otification Search","UnderlyingNotification","Underlying Security",DataTable.Val
ue("UnderlyingSecurity","UnderlyingNotification"))
Call chkResultinTable("CorporateActions","Profile - Underlying N
otification Search","UnderlyingNotification","Source",DataTable.Value("Source","
UnderlyingNotification"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: Verifying if the R
esults are Displayed as per the Search Criteria","The Results are Displayed as p
er the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 9: Verifying if the R
esults are Displayed as per the Search Criteria","The Results are NOT Displayed
as per the Search Criteria"
Environment.Value("Execution_Log") = "False"
End If
' Step 10
blnTestFlag = "False"
strLocalRecordDate = DateValue(strLocalDate)
intRowCount = Browser("CorporateActions").Page("Profile - Underl
ying Notification Search").WebTable("UnderlyingNotification").RowCount
For intRowCounter = 3 to intRowCount
strReceivedDate = Browser("CorporateActions").Page("Prof
ile - Underlying Notification Search").WebTable("UnderlyingNotification").GetCel
lData(intRowCounter,2)
strEventDate = Browser("CorporateActions").Page("Profile
- Underlying Notification Search").WebTable("UnderlyingNotification").GetCellDa
ta(intRowCounter,7)
If strEventDate <> "" AND strReceivedDate <> "" Then
If DateValue(strReceivedDate) = DateValu
e(Date) AND DateValue(strEventDate) = strLocalRecordDate Then
Browser("CorporateActions").Page
("Profile - Underlying Notification Search").WebElement("html tag:= TD","innerte
xt := " & strReceivedDate,"class:=tabSelected","index:=0").Click
Wait 5
blnTestFlag = "True"
Exit For
End If
End If
Next
If blnTestFlag = "False" Then
Reporter.ReportEvent micFail,"Step 9: Verfiying if the R
eceived Date Field","There is No Record with Event Date Equal to Local Record Da
te and Received Date Equal to Today's Date, so Selecting some other Data to Cont
inue Execution"
If intRowCount > 2 Then
Call SelectElementValueinTable("CorporateActions
","Profile - Underlying Notification Search","UnderlyingNotification","Received
Date")
End If
' Call select_Menu("CorporateActions","Profile - Underlyin
g Notification Search","Home;DR Home")
' Exit Function
End If
If Browser("CorporateActions").Page("Underlying Notification").Exist(5) T
hen
Reporter.ReportEvent micPass,"Step 10: Verifying if the
Page 'Underlying Notification' is Dispalyed or Not","The Page 'Underlying Notifi
ction' is Displayed successfully"
Else
Reporter.ReportEvent micFail,"Step 10: Verifying if the
Page 'Underlying Notification' is Dispalyed or Not","The Page 'Underlying Notifi
ction' is NOT Displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 11
If Browser("CorporateActions").Page("Underlying Notification").
Exist(5) Then
If Browser("CorporateActions").Dialog("File Download").
Exist(5) Then
Browser("CorporateActions").Dialog("File Downlo
ad").WinButton("Cancel").Click
End If
strProcessingData = get_WebList_Value("CorporateActions", "Underlyin
g Notification", "ProcessingStatus")
Call pageCheck_WebElementinTable("CorporateActions", "Underlying Not
ification", "Corporate Action Events this Underlying Notification is Assigned to
;Corporate Action Event Details", "")
strCellData1 = Browser("CorporateActions").Page("Underlying Notifica
tion").WebTable("DetailTable").GetCellData(1, 1)
strCellData2 = Browser("CorporateActions").Page("Underlying Notifica
tion").WebTable("DetailTable").GetCellData(2, 1)
If InStr(1, strCellData2, "Created") <> 0 And InStr(1, strCellData2,
"Updated") <> 0 And Environment.Value("TestCase_Log") = "True" And strProcessin
gData = DataTable.Value("ProcessingStatus","UnderlyingNotification") Then
Reporter.ReportEvent micPass, "Step 11: Verifying if the Details
of the Notification is displayed or NOT", "The details of the Notification is d
isplayed in the Page 'Underlying Notification' "
Else
Reporter.ReportEvent micFail, "Step 11: Verifying if the Details
of the Notification is displayed or NOT", "The details of the Notification is N
OT displayed in the Page 'Underlying Notification' "
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
End If
Else
Reporter.ReportEvent micFail, "Step 11: Verifying if the Page ' Unde
rlying Notification' is displayed or NOT", "The Page ' Underlying Notification'
is NOT displayed"
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
Exit Function
End If
' Step 12
strAllItems = Browser("CorporateActions").Page("Underlying Notif
ication").WebList("ProcessingStatus").GetROProperty("all items")
strReqValue = "Deleted;No Action Needed;Unassigned"
If InStr(1,strAllItems,strReqValue) <> 0 Then
Reporter.ReportEvent micPass,"Step 12: Verifying if the
Required Items are Present in the Field Processing Status","The Required Items:
" & strReqValue & " are Present in the Field Processing Status"
Else
Reporter.ReportEvent micFail,"Step 12: Verifying if the
Required Items are Present in the Field Processing Status","The Required Items:
" & strReqValue & " are NOT Present in the Field Processing Status"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 13
strProcessValue = get_WebList_Value("CorporateActions","Underlyi
ng Notification","ProcessingStatus")
If Trim(strProcessValue) = Trim(DataTable.Value("ProcessingStatu
s","UnderlyingNotification")) Then
Reporter.ReportEvent micPass,"Step 13: Verifying the Val
ue in the Processing Status Field","The Value in the Processing Status Field is
" & DataTable.Value("ProcessingStatus","UnderlyingNotification")
Else
Reporter.ReportEvent micFail,"Step 13: Verifying the Val
ue in the Processing Status Field","The Value in the Processing Status Field is
NOT " & DataTable.Value("ProcessingStatus","UnderlyingNotification")
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 14
Call pageCheck_ImageOR("CorporateActions","Underlying Notificati
on","Save;Save_UnderlyingNotification")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 14: Verifying if the
Save Image exist at the Top and Bottom on the Page","The Save Image Exists at bo
th Top and Botton of the Page"
Else
Reporter.ReportEvent micFail,"Step 14: Verifying if the
Save Image exist at the Top and Bottom on the Page","The Save Image does not Exi
sts at both Top OR Botton of the Page"
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
End If
' Step 15
InitialCARowCount = Browser("CorporateActions").Page("Underlying
Notification").WebTable("CorporateActionEvents").RowCount
Call click_WebButton("CorporateActions","Underlying Notification
","Add")
Call pageCheck_WebEditOR("CorporateActions","Underlying Notifica
tion","CA_CorporateActionType;CA_ISIN;CA_SEDOL;CA_EventName;CA_EventDate;CA_Proc
essingStatus;CA_StatusChangedDate")
Call pageCheck_WebListOR("CorporateActions","Underlying Notifica
tion","CA_Type;CA_Comparison")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 15: Verifying if the
Required Fields are Displayed in 'Corporate Action Event Details","The Required
Fields are Present in the Corporate Action Event Details"
Else
Reporter.ReportEvent micFail,"Step 15: Verifying if the
Required Fields are Displayed in 'Corporate Action Event Details","The Required
Fields are NOT Present in the Corporate Action Event Details"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 16
strAllTypeValue = Browser("CorporateActions").Page("Underlying N
otification").WebList("CA_Type").GetROProperty("all items")
If Trim(strAllTypeValue) = Trim("Existing Event;New Event") Then
Reporter.ReportEvent micPass,"Step 16: Verifying if all
the Items are Present in the Field Event Tye","The Required items : =" & strAllT
ypeValue & " is Present in the Field Event Type"
Else
Reporter.ReportEvent micFail,"Step 16: Verifying if all
the Items are Present in the Field Event Tye","The Required items : =" & strAllT
ypeValue & " are NOT Present in the Field Event Type"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 17
Call Select_Combo_Value("CorporateActions","Underlying Notificat
ion","CA_Type",DataTable.Value("EventType","UnderlyingNotification"))
strTypeValue = get_WebList_Value("CorporateActions","Underlying
Notification","CA_Type")
If strTypeValue = DataTable.Value("EventType","UnderlyingNotific
ation") Then
Reporter.ReportEvent micPass,"Step 17: Verifying the Val
ue in the Field Event Type","The Value in the Field Event Type is " & DataTable.
Value("EventType","UnderlyingNotification")
Else
Reporter.ReportEvent micFail,"Step 17: Verifying the Val
ue in the Field Event Type","The Value in the Field Event Type is NOT " & DataTa
ble.Value("EventType","UnderlyingNotification")
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 18
blnFlag = "False"
Call click_Image("CorporateActions","Underlying Notification","C
orporateActionType")
Call pageCheck_Frame("CorporateActions","Underlying Notification
","lookupFrame","CorporateActionType","Clear;Go","CorporateActionType")
strDataValue = ""
intDataRowCount = DataTable.GetSheet("ReportHeader").GetRowCount
For intCounter = 1 to intDataRowCount
DataTable.GetSheet("ReportHeader").SetCurrentRow(intCoun
ter)
strDataValues = Trim(DataTable.Value("UploadNotification
","ReportHeader"))
strDataValue = strDataValue & strDataValues & ";"
Next
strDataValue = Replace(strDataValue," ","")
intRowCount = Browser("CorporateActions").Page("Underlying Notif
ication").Frame("lookupFrame").WebTable("ISIN").RowCount
strAppValue = ""
blnTestFlag = "True"
For intRowCounter = 2 to intRowCount
strAppValue = Browser("CorporateActions").Page("Underlyi
ng Notification").Frame("lookupFrame").WebTable("ISIN").GetCellData(intRowCounte
r,1)
strAppValue = Replace(strAppValue," ","")
If Instr(1,strDataValue,strAppValue) = 0 Then
blnTestFlag = "False"
Exit For
End If
Next
If blnTestFlag = "True" AND Environment.Value("TestCase_Log") =
"True" Then
Reporter.ReportEvent micPass,"Step 18: Verifying if the
required Items are Present in the Table","The Required Items are Present in the
Table are " & strAppValue
Else
Reporter.ReportEvent micFail,"Step 18: Verifying if the
required Items are Present in the Table","The Required Items are NOT Present in
the Table "
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
End If

' Step 19
Browser("CorporateActions").Page("Underlying Notification").Fram
e("lookupFrame").WebEdit("CorporateActionType").Set DataTable.Value("CorporateAc
tionType", "UnderlyingNotification")
Call operation_on_FrameObjects_WithName("CorporateActions","Unde
rlying Notification","lookupFrame","Image","Go","")
Call chkResultinFrame("CorporateActions","Underlying Notificatio
n","lookupFrame","ISIN","Corporate Action Event Type",DataTable.Value("Corporate
ActionType","UnderlyingNotification"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 19 : Verifying the Re
sults in the Frame","The Results are displayed as per the Search Criteria : " &
DataTable.Value("CorporateActionType","UnderlyingNotification")
Else
Reporter.ReportEvent micFail,"Step 19 : Verifying the Re
sults in the Frame","The Results are NOT displayed as per the Search Criteria :
" & DataTable.Value("CorporateActionType","UnderlyingNotification")
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 20
Browser("CorporateActions").Page("Underlying Notification").WebE
lement("html tag:=TD","innertext:= " & DataTable.Value("CorporateActionType","Un
derlyingNotification")).Click
strCAType = get_WebEdit_Value("CorporateActions","Underlying Not
ification","CA_CorporateActionType")
If strCAType = DataTable.Value("CorporateActionType","Underlying
Notification") Then
Reporter.ReportEvent micPass,"Step 20: Verifying the Val
ue Present in the Corporate Action Type Field","The Value Present in the Field C
orporate Action Type is " & DataTable.Value("CorporateActionType","UnderlyingNot
ification")
Else
Reporter.ReportEvent micFail,"Step 20: Verifying the Val
ue Present in the Corporate Action Type Field","The Value Present in the Field C
orporate Action Type is NOT " & DataTable.Value("CorporateActionType","Underlyin
gNotification")
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 21
Call click_Image("CorporateActions","Underlying Notification","I
SIN")
Call pageCheck_Frame("CorporateActions","Underlying Notification
","lookupFrame","ISIN;SEDOL;UnderlyingSecurityName","Clear;Go","ISIN;SEDOL;Under
lyingSecurityName;Type")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 21: Verifying if the
Required Fields are Present in the Frame","The Required Fields are Present in th
e Frame"
Else
Reporter.ReportEvent micPass,"Step 21: Verifying if the
Required Fields are Present in the Frame","The Required Fields are Present in th
e Frame"
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
End If
' Step 22
Browser("CorporateActions").Page("Underlying Notification").Fram
e("lookupFrame").WebEdit("UnderlyingSecurityName").Set DataTable.Value("Underlyi
ngSecurity","UnderlyingNotification")
Call operation_on_FrameObjects_WithName("CorporateActions","Unde
rlying Notification","lookupFrame","Image","Go","")
Call SelectValueinFrame("CorporateActions","Underlying Notificat
ion","lookupFrame","ISIN")
strISINValue = get_WebEdit_Value("CorporateActions","Underlying
Notification","CA_ISIN")
strSEDOLValue = get_WebEdit_Value("CorporateActions","Underlying
Notification","CA_SEDOL")
strEventNameValue = get_WebEdit_Value("CorporateActions","Underl
ying Notification","CA_EventName")
If strISINValue <> "" AND strSEDOLValue <> "" AND strEventNameVa
lue <> "" Then
Reporter.ReportEvent micPass,"Step 22: Verifying if the
ISIN, SEDOL and the Event Name Fields are Filled","The ISIN, SEDOL and Event Nam
e fields are Filled,ISIN Value := " & strISINValue & " SEDOL Value : = " & strSE
DOLValue & " and Event Name := " & strEventNameValue
Else
Reporter.ReportEvent micFail,"Step 22: Verifying if the
ISIN, SEDOL and the Event Name Fields are Filled","The ISIN, SEDOL OR Event Name
fields are NOT Filled and the ISIN Value := " & strISINValue & " SEDOL Value :
= " & strSEDOLValue & " and Event Name := " & strEventNameValue
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 23
strDate = DataTable("EventDate","UnderlyingNotification")
Call click_Image("CorporateActions","Underlying Notification","E
ventDate")
Call SetDate("CorporateActions","Underlying Notification",DataTa
ble.Value("EventDate","UnderlyingNotification"))
strEventDate = get_WebEdit_Value("CorporateActions","Underlying
Notification","CA_EventDate")
strDates = Replace(strDate,";","-")
If DateValue(strDates) = DateValue(strEventDate) Then
Reporter.ReportEvent micPass,"Step 23: Verifyng the Valu
e in the Event Date Field","The Value in the Event Date Field is " & strEventDat
e
Else
Reporter.ReportEvent micFail,"Step 23: Verifyng the Valu
e in the Event Date Field","The Value in the Event Date Field is NOT " & strEven
tDate
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 24
strAllComparisonValue = Browser("CorporateActions").Page("Underl
ying Notification").WebList("CA_Comparison").GetROProperty("all items")
strCompValue = "No;Yes"
If Trim(strAllComparisonValue)= Trim(strCompValue) Then
Reporter.ReportEvent micPass,"Step 24: Verifying the Ite
ms Present in the Comparison Field","The Required Items " & strAllComparisonValu
e & " is Present in the Comparison Field"
Else
Reporter.ReportEvent micFail,"Step 24: Verifying the Ite
ms Present in the Comparison Field","The Required Items " & strAllComparisonValu
e & " is NOT Present in the Comparison Field"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 25
Call Select_Combo_Value("CorporateActions","Underlying Notificat
ion","CA_Comparison",DataTable.Value("Comparison","UnderlyingNotification"))
strValue = get_WebList_Value("CorporateActions","Underlying Not
ification","CA_Comparison")
If strValue = DataTable.Value("Comparison","UnderlyingNotificati
on") Then
Reporter.ReportEvent micPass,"Step 25: Verifying the Val
ue in the Comparison Field","The Value in the Comparison Field is " & DataTable.
Value("Comparison","UnderlyingNotification")
Else
Reporter.ReportEvent micFail,"Step 25: Verifying the Val
ue in the Comparison Field","The Value in the Comparison Field is NOT " & DataTa
ble.Value("Comparison","UnderlyingNotification")
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 26
Call click_Image("CorporateActions","Underlying Notification","S
ave_UnderlyingNotification")
Wait(5)
strProcessingValue = Browser("CorporateActions").Page("Underlyin
g Notification Screen").WebList("ProcessingStatus").GetROProperty("value")
If strProcessingValue = "Assigned" Then
Reporter.ReportEvent micPass,"Step 26: Verifying the Val
ue in the Processing Status Field","The Value in the Processing Staus Field is C
hanged to Assigned"
Else
Reporter.ReportEvent micFail,"Step 26: Verifying the Val
ue in the Processing Status Field","The Value in the Processing Staus Field is N
OT Changed to Assigned"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Underlying Notification Scr
een","Home;DR Home")
Wait(5)
Wait(5)
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 27: Check for DR Ho
me Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 27: Check for DR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC15()
Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", "PROFILE;Upload
Notification")
If Browser("CorporateActions").Page("Profile - Upload Notification").Exi
st(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi
le Upload Notification ' is Displayed or NOT", "The Page ' Profile Upload Notifi
cation ' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le Upload Notification ' is Displayed or NOT", "The Page ' Profile Upload Notifi
cation ' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2
Call CreateNewFolder("UploadFiles")
strFilePath = CreateFile("UploadFiles",DataTable.Value("TestCaseID","Und
erlyingNotification"),"txt")
Call Select_Combo_Value("CorporateActions","Profile - Upload Notificatio
n","TargetDocument",DataTable.Value("TargetDocument","UnderlyingNotification"))
Wait(2)
blnFlag = Browser("CorporateActions").Page("Profile - Upload Not
ification").WebElement("CreateUnderlyingNotification").Exist(5)
If blnFlag Then
Reporter.ReportEvent micPass,"Step 2: Verifying if 'Crea
te an Underlying Corporate Action Notification' is dispalyed or Not","'Create an
Underlying Corporate Action Notification' message is Disaplyed"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying if 'Crea
te an Underlying Corporate Action Notification' is dispalyed or Not","'Create an
Underlying Corporate Action Notification' message is Not Disaplyed"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
' 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("File
name:").Set strFilePath
Browser("CorporateActions").Dialog("Choose file").WinButton("Ope
n").Click
' Selecting Underlying Security
Call click_Image("CorporateActions","Profile - Upload Notificati
on","UnderlyingSecurity")
Call operation_on_FrameObjects_WithName("CorporateActions","Prof
ile - Upload Notification","lookupFrame","WebEdit","divNm",DataTable.Value("Unde
rlyingSecurity","UnderlyingNotification"))
Call operation_on_FrameObjects_WithName("CorporateActions","Prof
ile - Upload Notification","lookupFrame","Image","Go","")
Call SelectValueinFrame("CorporateActions","Profile - Upload Notificatio
n","lookupFrame","FrameTable")
' Entering the Corporate Action Type
Call SelectCorporateActionType("CorporateActions","Profile - Upl
oad Notification","CorporateActionType",DataTable.Value("CorporateActionType","U
nderlyingNotification"))
strISINValue1 = get_WebEdit_Value("CorporateActions","Profile -
Upload Notification","ISIN")
strUSName1 = get_WebEdit_Value("CorporateActions","Profile - Upl
oad Notification","UnderlyingSecurity")
strCAType1 = get_WebEdit_Value("CorporateActions","Profile - Upl
oad Notification","CorporateActionType")
'Call Select_Combo_Value("CorporateActions","Profile - Upload No
tification","Comparison",DataTable.Value("Comparison","UnderlyingNotification"))
' Setting thr Local Record Date
Call click_image("CorporateActions","Profile - Upload Notificati
on","MeetingDate")
'strDate=split(DataTable.Value("LocalRecordDate","UnderlyingNoti
fication"),";",-1,1)
Call SetDate("CorporateActions","Profile - Upload Notification",
DataTable.Value("MeetingDate","UnderlyingNotification"))
strLocalDate = get_WebEdit_Value("CorporateActions","Profile - U
pload Notification","MeetingDate")
' Saving the Changes made
Call click_Image("CorporateActions","Profile - Upload Notificati
on","Save")
Wait(5)
If Browser("CorporateActions").Page("Underlying Upload Notificat
ion").Exist(5) Then
If Browser("CorporateActions").Dialog("File Download").E
xist(5) Then
Browser("CorporateActions").Dialog("File Downloa
d").WinButton("Cancel").Click
End If
strAppValue = Browser("CorporateActions").Page("Underlyi
ng Upload Notification").Frame("msgFrame").GetROProperty("innertext")
strValue = ReadTextFile(strFilePath)
strAppValue = Replace(strAppValue," ","")
strValue = Replace(strValue," ","")
If Trim(strAppValue) = Trim(strValue) Then
Reporter.ReportEvent micPass,"Step 3: Verifying
if the Document is Uploaded or Not","The Document is Uploaded Successfully"
Else
Reporter.ReportEvent micFail,"Step 3: Verifying
if the Document is Uploaded or Not","The Document is NOT Uploaded Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
'Call select_Menu("CorporateActions","Underlying Upload
Notification",DataTable.Value("MenuPath","UnderlyingNotification"))
Else
Reporter.ReportEvent micFail,"Step 2: Verifying if the D
ocument is Uploaded or Not","The Page 'Underlying Upload Notification is Not Dis
played and the Document is NOT Uploaded Successfully"
Environment.Value("Execution_Log") = "False"
'Call select_Menu("CorporateActions","Profile - Upload N
otification",DataTable.Value("MenuPath","UnderlyingNotification"))
Exit Function
End If
' Step 3
' If Browser("CorporateActions").Page("Profile - Underlying Notifi
cation Search").Exist(5) Then
' Reporter.ReportEvent micPass,"Step 3: Verifying if the P
age 'Profile - Underlying Notification Search' is Displayed or NOT","The Page 'P
rofile - Underlying Notification Search' is Displayed"
' Else
' Reporter.ReportEvent micFail,"Step 3: Verifying if the P
age 'Profile - Underlying Notification Search' is Displayed or NOT","The Page 'P
rofile - Underlying Notification Search' is Displayed"
' Call captureScreenShot()
' Environment.Value("Execution_Log") = "False"
' End If
strProcessingStatus = get_WebList_Value("CorporateActions","Underlying U
pload Notification","ProcessingStatus")
strParserException = get_WebEdit_Value("CorporateActions","Under
lying Upload Notification","ParserExceptionCode")
strParserValidation = get_WebEdit_Value("CorporateActions","Unde
rlying Upload Notification","ParserValidation")
If strProcessingStatus = DataTable.Value("ProcessingStatus","Und
erlyingNotification") Then
Reporter.ReportEvent micPass,"Step 4: Verifying the Valu
e in the Processing Status Field","The Value in the Processing Status field is '
" & DataTable.Value("ProcessingStatus","UnderlyingNotification") & " ' "
Else
Reporter.ReportEvent micFail,"Step 4: Verifying the Valu
e in the Processing Status Field","The Value in the Processing Status field is N
ot ' " & DataTable.Value("ProcessingStatus","UnderlyingNotification") & " '. Ins
tead it ' " & strProcessingStatus & " '"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
If strParserException = "Exception" Then
Reporter.ReportEvent micPass,"Step 4: Verifying the Valu
e in the Parser Exception Code Field","The Value in the Parser Exception Code fi
eld is ' Exception' "
Else
Reporter.ReportEvent micFail,"Step 4: Verifying the Valu
e in the Parser Exception Code Field","The Value in the Parser Exception Code fi
eld is Not ' Exception . Instead it ' " & strParserException & "'"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
If Instr(1,strParserValidation,"Non-BNY DR Program. No CA Event
is created.") <> 0 Then
Reporter.ReportEvent micPass,"Step 4: Verifying the Valu
e in the Parser Validation Field","The Value in the Parser Exception Code field
is ' " & strParserValidation & " '"
Else
Reporter.ReportEvent micFail,"Step 4: Verifying the Valu
e in the Parser Validation Field","The Value in the Parser Exception Code field
is Not ' " & strParserValidation & " '"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
intRowCount = Browser("CorporateActions").Page("Underlying Uploa
d Notification").WebTable("CorporateActionEvents").RowCount
If intRowCount = 2 Then
Reporter.ReportEvent micPass,"Step 4: Verifying if any R
ecords are displayed in the Table 'Corporate Action Events Needed'","No Records
are displayed in the table 'Corporate Action Events'"
Else
Reporter.ReportEvent micFail,"Step 4: Verifying if any R
ecords are displayed in the Table 'Corporate Action Events Needed'"," Records ar
e displayed in the table 'Corporate Action Events'"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Underlying Upload Notificat
ion","Home;DR Home")
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Check for DR Hom
e Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 5: Check for DR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execption_Log") = "False"
End If
End Function

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

Public Function CAProfileUnderlyingNotification_TC16()


Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath","UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notifi
cation Search").Exist(5) Then
Reporter.ReportEvent micPass,"Step 1: Verifying if the P
age 'Profile - Underlying Notification Search' is Displayed or NOT","The Page 'P
rofile - Underlying Notification Search' is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying if the P
age 'Profile - Underlying Notification Search' is Displayed or NOT","The Page 'P
rofile - Underlying Notification Search' is Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2"
Call click_Image("CorporateActions","Profile - Underlying Notifi
cation Search","Clear")
Call Select_Combo_Value("CorporateActions","Profile - Underlying
Notification Search","Source",DataTable.Value("Source","UnderlyingNotification"
))
strSource = get_WebList_Value("CorporateActions","Profile - Unde
rlying Notification Search","Source")
If strSource = DataTable.Value("Source","UnderlyingNotification"
) Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Valu
e in the Source Field","The Value displayed in the Source field is ' " & strSour
ce & " '"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Valu
e in the Source Field","The Value displayed in the Source field is ' " & strSour
ce & " '. Instead of ' " & DataTable.Value("Source","UnderlyingNotification") &
" ' "
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
Call click_image("CorporateActions","Profile - Underlying Notifi
cation Search","ReceivedDate")
Call SetDate("CorporateActions","Profile - Underlying Notification Searc
h",DataTable.Value("FromDate","UnderlyingNotification"))
Call click_image("CorporateActions","Profile - Underlying Notifi
cation Search","ReceivedEndDate")
Call SetDate("CorporateActions","Profile - Underlying Notification Searc
h",DataTable.Value("ToDate","UnderlyingNotification"))
strReceivedDate = get_WebEdit_Value("CorporateActions","Profile
- Underlying Notification Search","ReceivedDate")
strReceivedEndDate = get_WebEdit_Value("CorporateActions","Profi
le - Underlying Notification Search","ReceivedEndDate")
strFromDate = Replace(DataTable.Value("FromDate","UnderlyingNoti
fication"),";","-")
strToDate = Replace(DataTable.Value("ToDate","UnderlyingNotifica
tion"),";","-")
If DateValue(strFromDate) = DateValue(strReceivedDate) AND DateV
alue(strReceivedEndDate) = DateValue(strToDate) Then
Reporter.ReportEvent micPass,"Step 3: Verifying the Ente
red Date","The Date entered in Received Date is " & strFromDate & " and the Date
Entered in Received End Date is " & strToDate
Else
Reporter.ReportEvent micFail,"Step 3: Verifying the Ente
red Date","The Date entered in Received Date is NOT " & strFromDate & " OR the D
ate Entered in Received End Date is NOT " & strToDate
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call click_Image("CorporateActions","Profile - Underlying Notifi
cation Search","Search")
Wait(10)
Call chkResultinTable("CorporateActions","Profile - Underlying N
otification Search","UnderlyingNotification","Source",DataTable.Value("Source","
UnderlyingNotification"))
Call chkDateRangeinTable("CorporateActions", "Profile - Underlying Notif
ication Search","UnderlyingNotification","Received Date",strReceivedDate,strRece
ivedEndDate)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Verifying if the R
esults are Disaplyed as per the Search Criteria","The Results are Diaplyed with
Source Value =: ' " & DataTable.Value("Source","UnderlyingNotification") & " ' w
ith in the Date Range ' " & strReceivedDate & " and ' " & strReceivedEndDate & "
' "
Else
Reporter.ReportEvent micFail,"Step 3: Verifying if the R
esults are Disaplyed as per the Search Criteria","The Results are Not Diaplyed w
ith Source Value =: ' " & DataTable.Value("Source","UnderlyingNotification") & "
' with in the Date Range ' " & strReceivedDate & " and ' " & strReceivedEndDate
& " ' "
Environment.Value("TestCase_Log") = "False"
Environment.Value("Execution_Log") = "False"
End If
intRC = Browser("CorporateActions").Page("Profile - Underlying N
otification Search").WebTable("UnderlyingNotification").RowCount
If intRC < 2 Then
Reporter.ReportEvent micFail,"Verifying the Records","No
records displayed and hence can't proceed futhur"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
Exit Function
End If
Wait(2)
intColumnCount = Browser("CorporateActions").Page("Profile - Und
erlying Notification Search").WebTable("UnderlyingNotification").ColumnCount(2)
For intColumnCounter =1 to intColumnCount
strCellData = Browser("CorporateActions").Page("Profile
- Underlying Notification Search").WebTable("UnderlyingNotification").GetCellDa
ta(2, intColumnCounter)
If strCellData = "Processing Status" Then
intReqColumn = intColumnCounter
End If
If strCellData = "Received Date" Then
intDateColumn = intColumnCounter
End If
Next
For intRowCounter = 3 to intRC
strAppProcessValue = Browser("CorporateActions").Page("P
rofile - Underlying Notification Search").WebTable("UnderlyingNotification").Get
CellData(intRowCounter,intReqColumn)
If Trim(strAppprocessValue) = "Assigned" Then
strDateValue = Browser("CorporateActions").Page(
"Profile - Underlying Notification Search").WebTable("UnderlyingNotification").G
etCellData(intRowCounter,intDateColumn)
Browser("CorporateActions").Page("Profile - Unde
rlying Notification Search").WebElement("html tag:=TD","innertext:=" & strDateVa
lue).Click
Wait(2)
Exit For
End If
Next
If Browser("CorporateActions").Page("Underlying Notification").Exist(5)
Then
Reporter.ReportEvent micPass,"Verifying if the Page 'Pro
file - Underlying Notification is disaplyed ot Not","The Page Underlying Notific
ation is Disaplyed"
If Browser("CorporateActions").Dialog("File Download").E
xist(5) Then
Browser("CorporateActions").Dialog("File Downloa
d").WinButton("Cancel").Click
End If
Else
Reporter.ReportEvent micFail,"Verifying if the Page 'Pro
file - Underlying Notification is disaplyed ot Not","The Page Underlying Notific
ation is Not Displayed"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
End If
blnFalg1 = Browser("CorporateActions").Page("Underlying Notifica
tion").WebTable("CorporateActionEventDetails").Exist(2)
blnFalg2 = Browser("CorporateActions").Page("Underlying Notifica
tion").WebTable("CorporateActionEvents").Exist(2)
If blnFalg1 And blnFalg2 Then
Reporter.ReportEvent micPass,"Step 5: Verfiying if the T
ables Corporate Action Event Details & Corporate Action Event is Present","The T
ables Corporate Action Event Details & Corporate Action Event is Present"
Else
Reporter.ReportEvent micFail,"Step 5: Verfiying if the T
ables Corporate Action Event Details & Corporate Action Event is Present","The T
ables Corporate Action Event Details Or Corporate Action Event is Not Present"
Environment.Value("Execution_Log") = "False"
Call captureScreenshot()
End If
strReceivedDate = get_WebEdit_Value("CorporateActions","Underlyi
ng Notification","ReceivedDate")
strMsgType = "MSG TYPE : 564"
strBONYRCVD = "BONY RCVD : "& strReceivedDate
strAppValue = Browser("CorporateActions").Page("Underlying Notif
ication").Frame("msgFrame").GetROProperty("innertext")
strMsgType = Replace(strMsgType," ","")
strBONYRCVD = Replace(strBONYRCVD," ","")
strAppValue = Replace(strAppValue," ","")
If Instr(1, strAppValue,strMsgType) <> 0 Then
Reporter.ReportEvent micPass,"Step 5: Verifying the 'MSG
TYPE' value","The MSG TYPE Value is ' " & strMsgType & " ' "
Else
Reporter.ReportEvent micFail,"Step 5: Verifying the 'MSG
TYPE' value","The MSG TYPE Value is NOT ' " & strMsgType& " ' "
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
If Instr(1, strAppValue,strBONYRCVD) <> 0 Then
Reporter.ReportEvent micPass,"Step 5: Verifying the 'BON
Y RCVD' value","The BONY RCVD Value is ' " & strBONYRCVD & " ' "
Else
Reporter.ReportEvent micFail,"Step 5: Verifying the 'BON
Y RCVD' value","The BONY RCVD Value is NOT ' " & strBONYRCVD& " ' "
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
strCreatedUpdated = Browser("CorporateActions").Page("Underlying Notific
ation").WebTable("CreatedUpdated").GetROProperty("innertext")
intCreatedPos = InStr(1,strCreatedUpdated,"Created")
intUpdatedPos = InStr(1,strCreatedUpdated,"Updated")
strCreatedDetails = Mid(strCreatedUpdated,intCreatedPos,intUpdat
edPos-1)
strUpdatedDetails = Mid(strCreatedUpdated,intUpdatedPos)
If Instr(1,strCreatedUpdated,"Created") <> 0 And Instr(1,strCrea
tedUpdated,"Updated") Then
Reporter.ReportEvent micPass,"Step 5: Verifying the Crea
ted and Updated Details","The Created Details are ' & " & strCreatedDetails & "
' And Updated Details are : ' " & strUpdatedDetails & " ' "
Else
Reporter.ReportEvent micFail,"Step 5: Verifying the Crea
ted and Updated Details","The Created and Updated details are not displayed"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
' Step 6:
strEventName = get_WebEdit_Value("CorporateActions","Underlying Notifica
tion","CA_EventName")
Reporter.ReportEvent micPass,"Step 6: Noting the Value in Event
Name Field","The Value in the Event Name Field is ' " & strEventName & " ' "
strISIN = get_WebEdit_Value("CorporateActions","Underlying Notif
ication","CA_ISIN")
Reporter.ReportEvent micPass,"Step 6: Noting the Value in ISIN F
ield","The Value in the ISIN Field is ' " & strISIN & " ' "
strSEDOL = get_WebEdit_Value("CorporateActions","Underlying Noti
fication","CA_SEDOL")
Reporter.ReportEvent micPass,"Step 6: Noting the Value in SEDOL
Field","The Value in the SEDOL Field is ' " & strSEDOL & " ' "
' Step 7:
intRC = Browser("CorporateActions").Page("Underlying Notification").WebT
able("CorporateActionEvents").RowCount
Browser("CorporateActions").Page("Underlying Notification").WebT
able("CorporateActionEvents").ChildItem(intRC,2,"WebEdit",0).Click
If Browser("CorporateActions").Dialog("Microsoft Internet Explor
er").Exist(5) Then
strDialogText = Browser("CorporateActions").Dialog("Micr
osoft Internet Explorer").Static("MessageText").GetROProperty("text")
strRequiredText = "Data has been modified. Please save
your changes or click Cancel to discard changes"
If strDialogText = strRequiredText Then
Reporter.ReportEvent micPass,"Step 7:Verifying t
he Text in the Dialog mesasge","The Text dispalyed in the Dialog is ' " & strReq
uiredText & " '"
Else
Reporter.ReportEvent micFail,"Step 7:Verifying t
he Text in the Dialog mesasge","The Text dispalyed in the Dialog is Not ' " & st
rRequiredText & " '"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
Browser("CorporateActions").Dialog("Microsoft Internet E
xplorer").WinButton("Cancel").Click
Else
Reporter.ReportEvent micFail,"Step 7: Verifying if the D
ialog Exist or Not","The Dialog is Not dispalyed"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
Exit Function
End If
Wait(2)
' Step 8:
If Browser("CorporateActions").Page("Underlying Event").Exist(5)
Then
Reporter.ReportEvent micPass,"Step 8: Verifying if the p
age 'Underlying Event' is Displayed or Not","The Page 'Underlying Event is Displ
ayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 8: Verifying if the p
age 'Underlying Event' is Displayed or Not","The Page 'Underlying Event is Not D
isplayed Successfully"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
Exit Function
End If
Call pageCheck_ImageOR("CorporateActions","Underlying Event","Sa
ve;Delete")
blnFalg1 = Browser("CorporateActions").Page("Underlying Event")
.WebTable("CorporateActionEvent").Exist(2)
blnFalg2 = Browser("CorporateActions").Page("Underlying Event")
.WebTable("NotificationsAssigned").Exist(2)
If Environment.Value("TestCase_Log") = "True" AND blnFalg1 = "T
rue" AND blnFalg2 = "True" Then
Reporter.ReportEvent micPass,"Step 8: Verifying if the F
ields in the page 'Underlying Event'","The Required Fields are present in the Pa
ge 'Underlying Event'"
Else
Reporter.ReportEvent micFail,"Step 8: Verifying if the F
ields in the page 'Underlying Event'","The Required Fields are Not present in th
e Page 'Underlying Event'"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
strInnertext = Browser("CorporateActions").Page("Underlying Even
t").WebTable("NotificationsAssigned").GetROProperty("innertext")
If Instr(1,strInnertext ,strDateValue) <> 0 AND Instr(1,strInner
text ,DataTable.Value("Source","UnderlyingNotification")) <> 0 And Instr(1,strIn
nertext,strISIN) <> 0 Then
Reporter.ReportEvent micPass,"Step 8: Verifying the Rece
ived Date, Source and ISIN Value","The Received Date Value is ' " & strDateValue
& " ' and the Source Value is ' " & DataTable.Value("Source","UnderlyingNotific
ation") & " ' and ISIN Value is ' " & strISIN & " '"
Else
Reporter.ReportEvent micFail,"Step 8: Verrifying the Rec
eived Date, Source and ISIN Value","The Required Received Date Value is ' " & st
rDateValue & " ' and the Source Value is ' " & DataTable.Value("Source","Underly
ingNotification") & "' & ISIN Value '" &strISIN & " ' is Not Dispalyed"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Underlying Event","Home;DR
Home")
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: Check for DR Hom
e Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 9: Check for DR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC17()
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath","UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notifi
cation Search").Exist(5) Then
Reporter.ReportEvent micPass,"Step 1: Verifying if the P
age 'Profile - Underlying Notification Search' is Displayed or NOT","The Page 'P
rofile - Underlying Notification Search' is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying if the P
age 'Profile - Underlying Notification Search' is Displayed or NOT","The Page 'P
rofile - Underlying Notification Search' is Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2"
Call click_Image("CorporateActions","Profile - Underlying Notifi
cation Search","Clear")
Call Select_Combo_Value("CorporateActions","Profile - Underlying
Notification Search","Source",DataTable.Value("Source","UnderlyingNotification"
))
strSource = get_WebList_Value("CorporateActions","Profile - Unde
rlying Notification Search","Source")
If strSource = DataTable.Value("Source","UnderlyingNotification"
) Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Valu
e in the Source Field","The Value displayed in the Source field is ' " & strSour
ce & " '"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Valu
e in the Source Field","The Value displayed in the Source field is ' " & strSour
ce & " '. Instead of ' " & DataTable.Value("Source","UnderlyingNotification") &
" ' "
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
Call click_image("CorporateActions","Profile - Underlying Notifi
cation Search","ReceivedDate")
Call SetDate("CorporateActions","Profile - Underlying Notification Searc
h",DataTable.Value("FromDate","UnderlyingNotification"))
Call click_image("CorporateActions","Profile - Underlying Notifi
cation Search","ReceivedEndDate")
Call SetDate("CorporateActions","Profile - Underlying Notification Searc
h",DataTable.Value("ToDate","UnderlyingNotification"))
strReceivedDate = get_WebEdit_Value("CorporateActions","Profile
- Underlying Notification Search","ReceivedDate")
strReceivedEndDate = get_WebEdit_Value("CorporateActions","Profi
le - Underlying Notification Search","ReceivedEndDate")
strFromDate = Replace(DataTable.Value("FromDate","UnderlyingNoti
fication"),";","-")
strToDate = Replace(DataTable.Value("ToDate","UnderlyingNotifica
tion"),";","-")
If DateValue(strFromDate) = DateValue(strReceivedDate) AND DateV
alue(strReceivedEndDate) = DateValue(strToDate) Then
Reporter.ReportEvent micPass,"Step 3: Verifying the Ente
red Date","The Date entered in Received Date is " & strFromDate & " and the Date
Entered in Received End Date is " & strToDate
Else
Reporter.ReportEvent micFail,"Step 3: Verifying the Ente
red Date","The Date entered in Received Date is NOT " & strFromDate & " OR the D
ate Entered in Received End Date is NOT " & strToDate
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call click_Image("CorporateActions","Profile - Underlying Notifi
cation Search","Search")
Wait(2)
Call chkResultinTable("CorporateActions","Profile - Underlying N
otification Search","UnderlyingNotification","Source",DataTable.Value("Source","
UnderlyingNotification"))
Call chkDateRangeinTable("CorporateActions", "Profile - Underlying Notif
ication Search","UnderlyingNotification","Received Date",strReceivedDate,strRece
ivedEndDate)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Verifying if the R
esults are Disaplyed as per the Search Criteria","The Results are Diaplyed with
Source Value =: ' " & DataTable.Value("Source","UnderlyingNotification") & " ' w
ith in the Date Range ' " & strReceivedDate & " and ' " & strReceivedEndDate & "
' "
Else
Reporter.ReportEvent micFail,"Step 3: Verifying if the R
esults are Disaplyed as per the Search Criteria","The Results are Not Diaplyed w
ith Source Value =: ' " & DataTable.Value("Source","UnderlyingNotification") & "
' with in the Date Range ' " & strReceivedDate & " and ' " & strReceivedEndDate
& " ' "
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
intRC = Browser("CorporateActions").Page("Profile - Underlying N
otification Search").WebTable("UnderlyingNotification").RowCount
If intRC < 2 Then
Reporter.ReportEvent micFail,"Verifying the Records","No
records displayed and hence can't proceed futhur"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
Exit Function
End If
intColumnCount = Browser("CorporateActions").Page("Profile - Und
erlying Notification Search").WebTable("UnderlyingNotification").ColumnCount(2)
For intColumnCounter =1 to intColumnCount
strCellData = Browser("CorporateActions").Page("Profile
- Underlying Notification Search").WebTable("UnderlyingNotification").GetCellDa
ta(2, intColumnCounter)
If strCellData = "Processing Status" Then
intReqColumn = intColumnCounter
End If
If strCellData = "Received Date" Then
intDateColumn = intColumnCounter
End If
Next
For intRowCounter = 3 to intRC
strAppProcessValue = Browser("CorporateActions").Page("P
rofile - Underlying Notification Search").WebTable("UnderlyingNotification").Get
CellData(intRowCounter,intReqColumn)
If Trim(strAppprocessValue) = DataTable.Value("Processin
gStatus","UnderlyingNotification") Then
strDateValue = Browser("CorporateActions").Page(
"Profile - Underlying Notification Search").WebTable("UnderlyingNotification").G
etCellData(intRowCounter,intDateColumn)
Browser("CorporateActions").Page("Profile - Unde
rlying Notification Search").WebElement("html tag:=TD","innertext:=" & strDateVa
lue,"index:=0").Click
Wait(2)
Exit For
End If
Next
If Browser("CorporateActions").Page("Underlying Notification").Exist(5)
Then
Reporter.ReportEvent micPass,"Verifying if the Page 'Pro
file - Underlying Notification is disaplyed ot Not","The Page Underlying Notific
ation is Disaplyed"
If Browser("CorporateActions").Dialog("File Download").E
xist(5) Then
Browser("CorporateActions").Dialog("File Downloa
d").WinButton("Cancel").Click
End If
Else
Reporter.ReportEvent micFail,"Verifying if the Page 'Pro
file - Underlying Notification is disaplyed ot Not","The Page Underlying Notific
ation is Not Displayed"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
End If
blnFalg1 = Browser("CorporateActions").Page("Underlying Notifica
tion").WebTable("CorporateActionEventDetails").Exist(2)
blnFalg2 = Browser("CorporateActions").Page("Underlying Notifica
tion").WebTable("CorporateActionEvents").Exist(2)
If blnFalg1 And blnFalg2 Then
Reporter.ReportEvent micPass,"Step 5: Verfiying if the T
ables Corporate Action Event Details & Corporate Action Event is Present","The T
ables Corporate Action Event Details & Corporate Action Event is Present"
Else
Reporter.ReportEvent micFail,"Step 5: Verfiying if the T
ables Corporate Action Event Details & Corporate Action Event is Present","The T
ables Corporate Action Event Details Or Corporate Action Event is Not Present"
Environment.Value("Execution_Log") = "False"
Call captureScreenshot()
End If
blnCheckFlag = "True"
strAppValue = Browser("CorporateActions").Page("Underlying Notif
ication").Frame("msgFrame").WebTable("CAForeignRate").GetROProperty("innertext")
strRequiredFields = "CA Foreign Rate;Foreign Payment Date;Foreig
n Record Date;Ex Dividend Date;CA Original Store Date;CA Store Date;CA Tape Date
;CA Type"
strRequiredField = Split(strRequiredFields,";",-1,1)
For intValCounter = 0 to UBound(strRequiredField)
If Instr(1,strAppValue,strRequiredField(intValCounter))
<> 0 Then
Reporter.ReportEvent micPass,"Verifying if the S
wift message","The Swift message contains the field ' " & strRequiredField(intVa
lCounter) & " ' "
Else
Reporter.ReportEvent micFail,"Verifying if the S
wift message","The Swift message does not contains the field ' " & strRequiredF
ield(intValCounter) & " ' "
blnCheckFlag = "False"
End If
Next
If blnCheckFlag = "True" Then
Reporter.ReportEvent micPass,"Step 5: Verifying the Swif
t message Report","The Swift message contains the required Fields"
Else
Reporter.ReportEvent micFail,"Step 5: Verifying the Swif
t message Report","The Swift message does not contains the required Fields"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
' If Instr(1, strAppValue,strBONYRCVD) <> 0 Then
' Reporter.ReportEvent micPass,"Step 5: Verifying the 'BON
Y RCVD' value","The BONY RCVD Value is ' " & strBONYRCVD & " ' "
' Else
' Reporter.ReportEvent micFail,"Step 5: Verifying the 'BON
Y RCVD' value","The BONY RCVD Value is NOT ' " & strBONYRCVD& " ' "
' Call captureScreenshot()
' Environment.Value("Execution_Log") = "False"
' End If
strCreatedUpdated = Browser("CorporateActions").Page("Underlying Notific
ation").WebTable("CreatedUpdated").GetROProperty("innertext")
intCreatedPos = InStr(1,strCreatedUpdated,"Created")
intUpdatedPos = InStr(1,strCreatedUpdated,"Updated")
strCreatedDetails = Mid(strCreatedUpdated,intCreatedPos,intUpdat
edPos-1)
strUpdatedDetails = Mid(strCreatedUpdated,intUpdatedPos)
If Instr(1,strCreatedUpdated,"Created") <> 0 And Instr(1,strCrea
tedUpdated,"Updated") Then
Reporter.ReportEvent micPass,"Step 5: Verifying the Crea
ted and Updated Details","The Created Details are ' & " & strCreatedDetails & "
' And Updated Details are : ' " & strUpdatedDetails & " ' "
Else
Reporter.ReportEvent micFail,"Step 5: Verifying the Crea
ted and Updated Details","The Created and Updated details are not displayed"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
' Step 6:
strProcessingValue = get_WebList_Value("CorporateActions","Underlying No
tification","ProcessingStatus")
If strProcessingValue = DataTable.Value("ProcessingStatus","Unde
rlyingNotification") Then
Reporter.ReportEvent micPass,"Step 6: Verifying the Valu
e in Process Status","The Value displayed in the Process Status Field is ' " & D
ataTable.Value("ProcessingStatus","UnderlyingNotification") & " '"
Else
Reporter.ReportEvent micFail,"Step 6: Verifying the Valu
e in Process Status","The Value displayed in the Process Status Field is Not ' "
& DataTable.Value("ProcessingStatus","UnderlyingNotification") & " '"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
' Step 7:
strEventName = get_WebEdit_Value("CorporateActions","Underlying Notifica
tion","CA_EventName")
Reporter.ReportEvent micPass,"Step 7: Noting the Value in Event
Name Field","The Value in the Event Name Field is ' " & strEventName & " ' "
strISIN = get_WebEdit_Value("CorporateActions","Underlying Notif
ication","CA_ISIN")
Reporter.ReportEvent micPass,"Step 7: Noting the Value in ISIN F
ield","The Value in the ISIN Field is ' " & strISIN & " ' "
strSEDOL = get_WebEdit_Value("CorporateActions","Underlying Noti
fication","CA_SEDOL")
Reporter.ReportEvent micPass,"Step 7: Noting the Value in SEDOL
Field","The Value in the SEDOL Field is ' " & strSEDOL & " ' "
' Step 8:
intRC = Browser("CorporateActions").Page("Underlying Notification").WebT
able("CorporateActionEvents").RowCount
Browser("CorporateActions").Page("Underlying Notification").WebT
able("CorporateActionEvents").ChildItem(intRC,2,"WebEdit",0).Click
If Browser("CorporateActions").Dialog("Microsoft Internet Explor
er").Exist(5) Then
strDialogText = Browser("CorporateActions").Dialog("Micr
osoft Internet Explorer").Static("MessageText").GetROProperty("text")
strRequiredText = "Data has been modified. Please save
your changes or click Cancel to discard changes"
If strDialogText = strRequiredText Then
Reporter.ReportEvent micPass,"Step 8:Verifying t
he Text in the Dialog mesasge","The Text dispalyed in the Dialog is ' " & strReq
uiredText & " '"
Else
Reporter.ReportEvent micFail,"Step 8:Verifying t
he Text in the Dialog mesasge","The Text dispalyed in the Dialog is Not ' " & st
rRequiredText & " '"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
Browser("CorporateActions").Dialog("Microsoft Internet E
xplorer").WinButton("Cancel").Click
Else
Reporter.ReportEvent micFail,"Step 8: Verifying if the D
ialog Exist or Not","The Dialog is Not dispalyed"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
Exit Function
End If
Wait(2)
' Step 9
If Browser("CorporateActions").Page("Underlying Event").Exist(5)
Then
Reporter.ReportEvent micPass,"Step 9: Verifying if the p
age 'Underlying Event' is Displayed or Not","The Page 'Underlying Event is Displ
ayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 9: Verifying if the p
age 'Underlying Event' is Displayed or Not","The Page 'Underlying Event is Not D
isplayed Successfully"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
Exit Function
End If
Call pageCheck_ImageOR("CorporateActions","Underlying Event","Sa
ve;Delete")
blnFalg1 = Browser("CorporateActions").Page("Underlying Event")
.WebTable("CorporateActionEvent").Exist(2)
blnFalg2 = Browser("CorporateActions").Page("Underlying Event")
.WebTable("NotificationsAssigned").Exist(2)
If Environment.Value("TestCase_Log") = "True" AND blnFalg1 = "T
rue" AND blnFalg2 = "True" Then
Reporter.ReportEvent micPass,"Step 9: Verifying if the F
ields in the page 'Underlying Event'","The Required Fields are present in the Pa
ge 'Underlying Event'"
Else
Reporter.ReportEvent micFail,"Step 9: Verifying if the F
ields in the page 'Underlying Event'","The Required Fields are Not present in th
e Page 'Underlying Event'"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
strInnertext = Browser("CorporateActions").Page("Underlying Even
t").WebTable("NotificationsAssigned").GetROProperty("innertext")
If Instr(1,strInnertext ,strDateValue) <> 0 AND Instr(1,strInner
text ,DataTable.Value("Source","UnderlyingNotification")) <> 0 And Instr(1,strIn
nertext,strISIN) <> 0 Then
Reporter.ReportEvent micPass,"Step 9: Verifying the Rece
ived Date, Source and ISIN Value","The Received Date Value is ' " & strDateValue
& " ' and the Source Value is ' " & DataTable.Value("Source","UnderlyingNotific
ation") & " ' and ISIN Value is ' " & strISIN & " '"
Else
Reporter.ReportEvent micFail,"Step 9: Verrifying the Rec
eived Date, Source and ISIN Value","The Required Received Date Value is ' " & st
rDateValue & " ' and the Source Value is ' " & DataTable.Value("Source","Underly
ingNotification") & "' & ISIN Value '" &strISIN & " ' is Not Dispalyed"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Underlying Event","Home;DR
Home")
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: Check for DR Ho
me Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 10: Check for DR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC18()
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath","UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notifi
cation Search").Exist(5) Then
Reporter.ReportEvent micPass,"Step 1: Verifying if the P
age 'Profile - Underlying Notification Search' is Displayed or NOT","The Page 'P
rofile - Underlying Notification Search' is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying if the P
age 'Profile - Underlying Notification Search' is Displayed or NOT","The Page 'P
rofile - Underlying Notification Search' is Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2"
Call click_Image("CorporateActions","Profile - Underlying Notifi
cation Search","Clear")
Call Select_Combo_Value("CorporateActions","Profile - Underlying
Notification Search","Source",DataTable.Value("Source","UnderlyingNotification"
))
strSource = get_WebList_Value("CorporateActions","Profile - Unde
rlying Notification Search","Source")
If strSource = DataTable.Value("Source","UnderlyingNotification"
) Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Valu
e in the Source Field","The Value displayed in the Source field is ' " & strSour
ce & " '"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Valu
e in the Source Field","The Value displayed in the Source field is ' " & strSour
ce & " '. Instead of ' " & DataTable.Value("Source","UnderlyingNotification") &
" ' "
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
Call click_image("CorporateActions","Profile - Underlying Notifi
cation Search","ReceivedDate")
Call SetDate("CorporateActions","Profile - Underlying Notification Searc
h",DataTable.Value("FromDate","UnderlyingNotification"))
Call click_image("CorporateActions","Profile - Underlying Notifi
cation Search","ReceivedEndDate")
Call SetDate("CorporateActions","Profile - Underlying Notification Searc
h",DataTable.Value("ToDate","UnderlyingNotification"))
strReceivedDate = get_WebEdit_Value("CorporateActions","Profile
- Underlying Notification Search","ReceivedDate")
strReceivedEndDate = get_WebEdit_Value("CorporateActions","Profi
le - Underlying Notification Search","ReceivedEndDate")
strFromDate = Replace(DataTable.Value("FromDate","UnderlyingNoti
fication"),";","-")
strToDate = Replace(DataTable.Value("ToDate","UnderlyingNotifica
tion"),";","-")
If DateValue(strFromDate) = DateValue(strReceivedDate) AND DateV
alue(strReceivedEndDate) = DateValue(strToDate) Then
Reporter.ReportEvent micPass,"Step 3: Verifying the Ente
red Date","The Date entered in Received Date is " & strFromDate & " and the Date
Entered in Received End Date is " & strToDate
Else
Reporter.ReportEvent micPass,"Step 3: Verifying the Ente
red Date","The Date entered in Received Date is NOT " & strFromDate & " OR the D
ate Entered in Received End Date is NOT " & strToDate
Environment.Value("Execution_Log") = "False"
End If
Call click_Image("CorporateActions","Profile - Underlying Notifi
cation Search","Search")
Wait(2)
Call chkResultinTable("CorporateActions","Profile - Underlying N
otification Search","UnderlyingNotification","Source",DataTable.Value("Source","
UnderlyingNotification"))
Call chkDateRangeinTable("CorporateActions", "Profile - Underlying Notif
ication Search","UnderlyingNotification","Received Date",strReceivedDate,strRece
ivedEndDate)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Verifying if the R
esults are Disaplyed as per the Search Criteria","The Results are Diaplyed with
Source Value =: ' " & DataTable.Value("Source","UnderlyingNotification") & " ' w
ith in the Date Range ' " & strReceivedDate & " and ' " & strReceivedEndDate & "
' "
Else
Reporter.ReportEvent micFail,"Step 3: Verifying if the R
esults are Disaplyed as per the Search Criteria","The Results are Not Diaplyed w
ith Source Value =: ' " & DataTable.Value("Source","UnderlyingNotification") & "
' with in the Date Range ' " & strReceivedDate & " and ' " & strReceivedEndDate
& " ' "
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
intRC = Browser("CorporateActions").Page("Profile - Underlying N
otification Search").WebTable("UnderlyingNotification").RowCount
If intRC < 2 Then
Reporter.ReportEvent micFail,"Verifying the Records","No
records displayed and hence can't proceed futhur"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
Exit Function
End If
intColumnCount = Browser("CorporateActions").Page("Profile - Und
erlying Notification Search").WebTable("UnderlyingNotification").ColumnCount(2)
For intColumnCounter =1 to intColumnCount
strCellData = Browser("CorporateActions").Page("Profile
- Underlying Notification Search").WebTable("UnderlyingNotification").GetCellDa
ta(2, intColumnCounter)
If strCellData = "Processing Status" Then
intReqColumn = intColumnCounter
End If
If strCellData = "Received Date" Then
intDateColumn = intColumnCounter
End If
Next
For intRowCounter = 3 to intRC
strAppProcessValue = Browser("CorporateActions").Page("P
rofile - Underlying Notification Search").WebTable("UnderlyingNotification").Get
CellData(intRowCounter,intReqColumn)
If Trim(strAppprocessValue) = DataTable.Value("Processin
gStatus","UnderlyingNotification") Then
strDateValue = Browser("CorporateActions").Page(
"Profile - Underlying Notification Search").WebTable("UnderlyingNotification").G
etCellData(intRowCounter,intDateColumn)
Browser("CorporateActions").Page("Profile - Unde
rlying Notification Search").WebElement("html tag:=TD","innertext:=" & strDateVa
lue,"index:=0").Click
Wait(2)
Exit For
End If
Next
If Browser("CorporateActions").Page("Underlying Notification").Exist(5)
Then
Reporter.ReportEvent micPass,"Verifying if the Page 'Pro
file - Underlying Notification is disaplyed ot Not","The Page Underlying Notific
ation is Disaplyed"
If Browser("CorporateActions").Dialog("File Download").E
xist(5) Then
Browser("CorporateActions").Dialog("File Downloa
d").WinButton("Cancel").Click
End If
Else
Reporter.ReportEvent micFail,"Verifying if the Page 'Pro
file - Underlying Notification is disaplyed ot Not","The Page Underlying Notific
ation is Not Displayed"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
End If
blnFalg1 = Browser("CorporateActions").Page("Underlying Notifica
tion").WebTable("CorporateActionEventDetails").Exist(2)
blnFalg2 = Browser("CorporateActions").Page("Underlying Notifica
tion").WebTable("CorporateActionEvents").Exist(2)
If blnFalg1 And blnFalg2 Then
Reporter.ReportEvent micPass,"Step 5: Verfiying if the T
ables Corporate Action Event Details & Corporate Action Event is Present","The T
ables Corporate Action Event Details & Corporate Action Event is Present"
Else
Reporter.ReportEvent micFail,"Step 5: Verfiying if the T
ables Corporate Action Event Details & Corporate Action Event is Present","The T
ables Corporate Action Event Details Or Corporate Action Event is Not Present"
Environment.Value("Execution_Log") = "False"
Call captureScreenshot()
End If
strReceivedDate = get_WebEdit_Value("CorporateActions","Underlyi
ng Notification","ReceivedDate")
strMsgType = "MSG TYPE : 566"
strBONYRCVD = "BONY RCVD : "& strReceivedDate
strAppValue = Browser("CorporateActions").Page("Underlying Notif
ication").Frame("msgFrame").GetROProperty("innertext")
strAppValue = Replace(strAppValue," ","")
strMsgType = Replace(strMsgType," ","")
strBONYRCVD = Replace(strBONYRCVD," ","")
If Instr(1, strAppValue,strMsgType) <> 0 Then
Reporter.ReportEvent micPass,"Step 5: Verifying the 'MSG
TYPE' value","The MSG TYPE Value is ' " & strMsgType & " ' "
Else
Reporter.ReportEvent micFail,"Step 5: Verifying the 'MSG
TYPE' value","The MSG TYPE Value is NOT ' " & strMsgType& " ' "
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
If Instr(1, strAppValue,strBONYRCVD) <> 0 Then
Reporter.ReportEvent micPass,"Step 5: Verifying the 'BON
Y RCVD' value","The BONY RCVD Value is ' " & strBONYRCVD & " ' "
Else
Reporter.ReportEvent micFail,"Step 5: Verifying the 'BON
Y RCVD' value","The BONY RCVD Value is NOT ' " & strBONYRCVD& " ' "
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
strCreatedUpdated = Browser("CorporateActions").Page("Underlying Notific
ation").WebTable("CreatedUpdated").GetROProperty("innertext")
intCreatedPos = InStr(1,strCreatedUpdated,"Created")
intUpdatedPos = InStr(1,strCreatedUpdated,"Updated")
strCreatedDetails = Mid(strCreatedUpdated,intCreatedPos,intUpdat
edPos-1)
strUpdatedDetails = Mid(strCreatedUpdated,intUpdatedPos)
If Instr(1,strCreatedUpdated,"Created") <> 0 And Instr(1,strCrea
tedUpdated,"Updated") Then
Reporter.ReportEvent micPass,"Step 5: Verifying the Crea
ted and Updated Details","The Created Details are ' & " & strCreatedDetails & "
' And Updated Details are : ' " & strUpdatedDetails & " ' "
Else
Reporter.ReportEvent micFail,"Step 5: Verifying the Crea
ted and Updated Details","The Created and Updated details are not displayed"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
' Step 6:
strProcessingValue = get_WebList_Value("CorporateActions","Underlying No
tification","ProcessingStatus")
If strProcessingValue = DataTable.Value("ProcessingStatus","Unde
rlyingNotification") Then
Reporter.ReportEvent micPass,"Step 6: Verifying the Valu
e in Process Status","The Value displayed in the Process Status Field is ' " & D
ataTable.Value("ProcessingStatus","UnderlyingNotification") & " '"
Else
Reporter.ReportEvent micFail,"Step 6: Verifying the Valu
e in Process Status","The Value displayed in the Process Status Field is Not ' "
& DataTable.Value("ProcessingStatus","UnderlyingNotification") & " '"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
' Step 7:
strEventName = get_WebEdit_Value("CorporateActions","Underlying Notifica
tion","CA_EventName")
Reporter.ReportEvent micPass,"Step 7: Noting the Value in Event
Name Field","The Value in the Event Name Field is ' " & strEventName & " ' "
strISIN = get_WebEdit_Value("CorporateActions","Underlying Notif
ication","CA_ISIN")
Reporter.ReportEvent micPass,"Step 7: Noting the Value in ISIN F
ield","The Value in the ISIN Field is ' " & strISIN & " ' "
strSEDOL = get_WebEdit_Value("CorporateActions","Underlying Noti
fication","CA_SEDOL")
Reporter.ReportEvent micPass,"Step 7: Noting the Value in SEDOL
Field","The Value in the SEDOL Field is ' " & strSEDOL & " ' "
' Step 8:
intRC = Browser("CorporateActions").Page("Underlying Notification").WebT
able("CorporateActionEvents").RowCount
Browser("CorporateActions").Page("Underlying Notification").WebT
able("CorporateActionEvents").ChildItem(intRC,2,"WebEdit",0).Click
If Browser("CorporateActions").Dialog("Microsoft Internet Explor
er").Exist(5) Then
strDialogText = Browser("CorporateActions").Dialog("Micr
osoft Internet Explorer").Static("MessageText").GetROProperty("text")
strRequiredText = "Data has been modified. Please save
your changes or click Cancel to discard changes"
If strDialogText = strRequiredText Then
Reporter.ReportEvent micPass,"Step 8:Verifying t
he Text in the Dialog mesasge","The Text dispalyed in the Dialog is ' " & strReq
uiredText & " '"
Else
Reporter.ReportEvent micFail,"Step 8:Verifying t
he Text in the Dialog mesasge","The Text dispalyed in the Dialog is Not ' " & st
rRequiredText & " '"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
Browser("CorporateActions").Dialog("Microsoft Internet E
xplorer").WinButton("Cancel").Click
Else
Reporter.ReportEvent micFail,"Step 8: Verifying if the D
ialog Exist or Not","The Dialog is Not dispalyed"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
Exit Function
End If
Wait(2)
' Step 9
If Browser("CorporateActions").Page("Underlying Event").Exist(5)
Then
Reporter.ReportEvent micPass,"Step 9: Verifying if the p
age 'Underlying Event' is Displayed or Not","The Page 'Underlying Event is Displ
ayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 9: Verifying if the p
age 'Underlying Event' is Displayed or Not","The Page 'Underlying Event is Not D
isplayed Successfully"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
Exit Function
End If
Call pageCheck_ImageOR("CorporateActions","Underlying Event","Sa
ve;Delete")
blnFalg1 = Browser("CorporateActions").Page("Underlying Event")
.WebTable("CorporateActionEvent").Exist(2)
blnFalg2 = Browser("CorporateActions").Page("Underlying Event")
.WebTable("NotificationsAssigned").Exist(2)
If Environment.Value("TestCase_Log") = "True" AND blnFalg1 = "T
rue" AND blnFalg2 = "True" Then
Reporter.ReportEvent micPass,"Step 9: Verifying if the F
ields in the page 'Underlying Event'","The Required Fields are present in the Pa
ge 'Underlying Event'"
Else
Reporter.ReportEvent micFail,"Step 9: Verifying if the F
ields in the page 'Underlying Event'","The Required Fields are Not present in th
e Page 'Underlying Event'"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
strInnertext = Browser("CorporateActions").Page("Underlying Even
t").WebTable("NotificationsAssigned").GetROProperty("innertext")
If Instr(1,strInnertext ,strDateValue) <> 0 AND Instr(1,strInner
text ,DataTable.Value("Source","UnderlyingNotification")) <> 0 And Instr(1,strIn
nertext,strISIN) <> 0 Then
Reporter.ReportEvent micPass,"Step 9: Verifying the Rece
ived Date, Source and ISIN Value","The Received Date Value is ' " & strDateValue
& " ' and the Source Value is ' " & DataTable.Value("Source","UnderlyingNotific
ation") & " ' and ISIN Value is ' " & strISIN & " '"
Else
Reporter.ReportEvent micFail,"Step 9: Verrifying the Rec
eived Date, Source and ISIN Value","The Required Received Date Value is ' " & st
rDateValue & " ' and the Source Value is ' " & DataTable.Value("Source","Underly
ingNotification") & "' & ISIN Value '" &strISIN & " ' is Not Dispalyed"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Underlying Event","Home;DR
Home")
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: Check for DR Ho
me Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 10: Check for DR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC19()
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath","UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notifi
cation Search").Exist(5) Then
Reporter.ReportEvent micPass,"Step 1: Verifying if the P
age 'Profile - Underlying Notification Search' is Displayed or NOT","The Page 'P
rofile - Underlying Notification Search' is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying if the P
age 'Profile - Underlying Notification Search' is Displayed or NOT","The Page 'P
rofile - Underlying Notification Search' is Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2"
Call click_Image("CorporateActions","Profile - Underlying Notifi
cation Search","Clear")
Call Select_Combo_Value("CorporateActions","Profile - Underlying
Notification Search","Source",DataTable.Value("Source","UnderlyingNotification"
))
strSource = get_WebList_Value("CorporateActions","Profile - Unde
rlying Notification Search","Source")
If strSource = DataTable.Value("Source","UnderlyingNotification"
) Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Valu
e in the Source Field","The Value displayed in the Source field is ' " & strSour
ce & " '"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Valu
e in the Source Field","The Value displayed in the Source field is ' " & strSour
ce & " '. Instead of ' " & DataTable.Value("Source","UnderlyingNotification") &
" ' "
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
Call click_image("CorporateActions","Profile - Underlying Notifi
cation Search","ReceivedDate")
Call SetDate("CorporateActions","Profile - Underlying Notification Searc
h",DataTable.Value("FromDate","UnderlyingNotification"))
Call click_image("CorporateActions","Profile - Underlying Notifi
cation Search","ReceivedEndDate")
Call SetDate("CorporateActions","Profile - Underlying Notification Searc
h",DataTable.Value("ToDate","UnderlyingNotification"))
strReceivedDate = get_WebEdit_Value("CorporateActions","Profile
- Underlying Notification Search","ReceivedDate")
strReceivedEndDate = get_WebEdit_Value("CorporateActions","Profi
le - Underlying Notification Search","ReceivedEndDate")
strFromDate = Replace(DataTable.Value("FromDate","UnderlyingNoti
fication"),";","-")
strToDate = Replace(DataTable.Value("ToDate","UnderlyingNotifica
tion"),";","-")
If DateValue(strFromDate) = DateValue(strReceivedDate) AND DateV
alue(strReceivedEndDate) = DateValue(strToDate) Then
Reporter.ReportEvent micPass,"Step 3: Verifying the Ente
red Date","The Date entered in Received Date is " & strFromDate & " and the Date
Entered in Received End Date is " & strToDate
Else
Reporter.ReportEvent micFail,"Step 3: Verifying the Ente
red Date","The Date entered in Received Date is NOT " & strFromDate & " OR the D
ate Entered in Received End Date is NOT " & strToDate
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call click_Image("CorporateActions","Profile - Underlying Notifi
cation Search","Search")
Wait(2)
Call chkResultinTable("CorporateActions","Profile - Underlying N
otification Search","UnderlyingNotification","Source",DataTable.Value("Source","
UnderlyingNotification"))
Call chkDateRangeinTable("CorporateActions", "Profile - Underlying Notif
ication Search","UnderlyingNotification","Received Date",strReceivedDate,strRece
ivedEndDate)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Verifying if the R
esults are Disaplyed as per the Search Criteria","The Results are Diaplyed with
Source Value =: ' " & DataTable.Value("Source","UnderlyingNotification") & " ' w
ith in the Date Range ' " & strReceivedDate & " and ' " & strReceivedEndDate & "
' "
Else
Reporter.ReportEvent micFail,"Step 3: Verifying if the R
esults are Disaplyed as per the Search Criteria","The Results are Not Diaplyed w
ith Source Value =: ' " & DataTable.Value("Source","UnderlyingNotification") & "
' with in the Date Range ' " & strReceivedDate & " and ' " & strReceivedEndDate
& " ' "
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
intRC = Browser("CorporateActions").Page("Profile - Underlying N
otification Search").WebTable("UnderlyingNotification").RowCount
If intRC < 2 Then
Reporter.ReportEvent micFail,"Verifying the Records","No
records displayed and hence can't proceed futhur"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
Exit Function
End If
intColumnCount = Browser("CorporateActions").Page("Profile - Und
erlying Notification Search").WebTable("UnderlyingNotification").ColumnCount(2)
For intColumnCounter =1 to intColumnCount
strCellData = Browser("CorporateActions").Page("Profile
- Underlying Notification Search").WebTable("UnderlyingNotification").GetCellDa
ta(2, intColumnCounter)
If strCellData = "Processing Status" Then
intReqColumn = intColumnCounter
End If
If strCellData = "Received Date" Then
intDateColumn = intColumnCounter
End If
Next
For intRowCounter = 3 to intRC
strAppProcessValue = Browser("CorporateActions").Page("P
rofile - Underlying Notification Search").WebTable("UnderlyingNotification").Get
CellData(intRowCounter,intReqColumn)
If Trim(strAppprocessValue) = DataTable.Value("Processin
gStatus","UnderlyingNotification") Then
strDateValue = Browser("CorporateActions").Page(
"Profile - Underlying Notification Search").WebTable("UnderlyingNotification").G
etCellData(intRowCounter,intDateColumn)
Browser("CorporateActions").Page("Profile - Unde
rlying Notification Search").WebElement("html tag:=TD","innertext:=" & strDateVa
lue,"index:=0").Click
Wait(2)
Exit For
End If
Next
If Browser("CorporateActions").Page("Underlying Notification").Exist(5)
Then
Reporter.ReportEvent micPass,"Verifying if the Page 'Pro
file - Underlying Notification is disaplyed ot Not","The Page Underlying Notific
ation is Disaplyed"
If Browser("CorporateActions").Dialog("File Download").E
xist(5) Then
Browser("CorporateActions").Dialog("File Downloa
d").WinButton("Cancel").Click
End If
Else
Reporter.ReportEvent micFail,"Verifying if the Page 'Pro
file - Underlying Notification is disaplyed ot Not","The Page Underlying Notific
ation is Not Displayed"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
End If
blnFalg1 = Browser("CorporateActions").Page("Underlying Notifica
tion").WebTable("CorporateActionEventDetails").Exist(2)
blnFalg2 = Browser("CorporateActions").Page("Underlying Notifica
tion").WebTable("CorporateActionEvents").Exist(2)
If blnFalg1 And blnFalg2 Then
Reporter.ReportEvent micPass,"Step 5: Verfiying if the T
ables Corporate Action Event Details & Corporate Action Event is Present","The T
ables Corporate Action Event Details & Corporate Action Event is Present"
Else
Reporter.ReportEvent micFail,"Step 5: Verfiying if the T
ables Corporate Action Event Details & Corporate Action Event is Present","The T
ables Corporate Action Event Details Or Corporate Action Event is Not Present"
Environment.Value("Execution_Log") = "False"
Call captureScreenshot()
End If
strReceivedDate = get_WebEdit_Value("CorporateActions","Underlyi
ng Notification","ReceivedDate")
strMsgType = "MSG TYPE : 568"
strBONYRCVD = "BONY RCVD : "& strReceivedDate
strAppValue = Browser("CorporateActions").Page("Underlying Notif
ication").Frame("msgFrame").GetROProperty("innertext")
strAppValue = Replace(strAppValue," ","")
strMsgType = Replace(strMsgType," ","")
strBONYRCVD = Replace(strBONYRCVD," ","")
If Instr(1, strAppValue,strMsgType) <> 0 Then
Reporter.ReportEvent micPass,"Step 5: Verifying the 'MSG
TYPE' value","The MSG TYPE Value is ' " & strMsgType & " ' "
Else
Reporter.ReportEvent micFail,"Step 5: Verifying the 'MSG
TYPE' value","The MSG TYPE Value is NOT ' " & strMsgType& " ' "
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
If Instr(1, strAppValue,strBONYRCVD) <> 0 Then
Reporter.ReportEvent micPass,"Step 5: Verifying the 'BON
Y RCVD' value","The BONY RCVD Value is ' " & strBONYRCVD & " ' "
Else
Reporter.ReportEvent micFail,"Step 5: Verifying the 'BON
Y RCVD' value","The BONY RCVD Value is NOT ' " & strBONYRCVD& " ' "
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
strCreatedUpdated = Browser("CorporateActions").Page("Underlying Notific
ation").WebTable("CreatedUpdated").GetROProperty("innertext")
intCreatedPos = InStr(1,strCreatedUpdated,"Created")
intUpdatedPos = InStr(1,strCreatedUpdated,"Updated")
strCreatedDetails = Mid(strCreatedUpdated,intCreatedPos,intUpdat
edPos-1)
strUpdatedDetails = Mid(strCreatedUpdated,intUpdatedPos)
If Instr(1,strCreatedUpdated,"Created") <> 0 And Instr(1,strCrea
tedUpdated,"Updated") Then
Reporter.ReportEvent micPass,"Step 5: Verifying the Crea
ted and Updated Details","The Created Details are ' & " & strCreatedDetails & "
' And Updated Details are : ' " & strUpdatedDetails & " ' "
Else
Reporter.ReportEvent micFail,"Step 5: Verifying the Crea
ted and Updated Details","The Created and Updated details are not displayed"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
' Step 6:
strProcessingValue = get_WebList_Value("CorporateActions","Underlying No
tification","ProcessingStatus")
If strProcessingValue = DataTable.Value("ProcessingStatus","Unde
rlyingNotification") Then
Reporter.ReportEvent micPass,"Step 6: Verifying the Valu
e in Process Status","The Value displayed in the Process Status Field is ' " & D
ataTable.Value("ProcessingStatus","UnderlyingNotification") & " '"
Else
Reporter.ReportEvent micFail,"Step 6: Verifying the Valu
e in Process Status","The Value displayed in the Process Status Field is Not ' "
& DataTable.Value("ProcessingStatus","UnderlyingNotification") & " '"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
' Step 7:
strEventName = get_WebEdit_Value("CorporateActions","Underlying Notifica
tion","CA_EventName")
Reporter.ReportEvent micPass,"Step 7: Noting the Value in Event
Name Field","The Value in the Event Name Field is ' " & strEventName & " ' "
strISIN = get_WebEdit_Value("CorporateActions","Underlying Notif
ication","CA_ISIN")
Reporter.ReportEvent micPass,"Step 7: Noting the Value in ISIN F
ield","The Value in the ISIN Field is ' " & strISIN & " ' "
strSEDOL = get_WebEdit_Value("CorporateActions","Underlying Noti
fication","CA_SEDOL")
Reporter.ReportEvent micPass,"Step 7: Noting the Value in SEDOL
Field","The Value in the SEDOL Field is ' " & strSEDOL & " ' "
' Step 8:
intRC = Browser("CorporateActions").Page("Underlying Notification").WebT
able("CorporateActionEvents").RowCount
Browser("CorporateActions").Page("Underlying Notification").WebT
able("CorporateActionEvents").ChildItem(intRC,2,"WebEdit",0).Click
If Browser("CorporateActions").Dialog("Microsoft Internet Explor
er").Exist(5) Then
strDialogText = Browser("CorporateActions").Dialog("Micr
osoft Internet Explorer").Static("MessageText").GetROProperty("text")
strRequiredText = "Data has been modified. Please save
your changes or click Cancel to discard changes"
If strDialogText = strRequiredText Then
Reporter.ReportEvent micPass,"Step 8:Verifying t
he Text in the Dialog mesasge","The Text dispalyed in the Dialog is ' " & strReq
uiredText & " '"
Else
Reporter.ReportEvent micFail,"Step 8:Verifying t
he Text in the Dialog mesasge","The Text dispalyed in the Dialog is Not ' " & st
rRequiredText & " '"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
Browser("CorporateActions").Dialog("Microsoft Internet E
xplorer").WinButton("Cancel").Click
Else
Reporter.ReportEvent micFail,"Step 8: Verifying if the D
ialog Exist or Not","The Dialog is Not dispalyed"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
Exit Function
End If
Wait(2)
' Step 9
If Browser("CorporateActions").Page("Underlying Event").Exist(5)
Then
Reporter.ReportEvent micPass,"Step 9: Verifying if the p
age 'Underlying Event' is Displayed or Not","The Page 'Underlying Event is Displ
ayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 9: Verifying if the p
age 'Underlying Event' is Displayed or Not","The Page 'Underlying Event is Not D
isplayed Successfully"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
Exit Function
End If
Call pageCheck_ImageOR("CorporateActions","Underlying Event","Sa
ve;Delete")
blnFalg1 = Browser("CorporateActions").Page("Underlying Event")
.WebTable("CorporateActionEvent").Exist(2)
blnFalg2 = Browser("CorporateActions").Page("Underlying Event")
.WebTable("NotificationsAssigned").Exist(2)
If Environment.Value("TestCase_Log") = "True" AND blnFalg1 = "T
rue" AND blnFalg2 = "True" Then
Reporter.ReportEvent micPass,"Step 9: Verifying if the F
ields in the page 'Underlying Event'","The Required Fields are present in the Pa
ge 'Underlying Event'"
Else
Reporter.ReportEvent micFail,"Step 9: Verifying if the F
ields in the page 'Underlying Event'","The Required Fields are Not present in th
e Page 'Underlying Event'"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
strInnertext = Browser("CorporateActions").Page("Underlying Even
t").WebTable("NotificationsAssigned").GetROProperty("innertext")
If Instr(1,strInnertext ,strDateValue) <> 0 AND Instr(1,strInner
text ,DataTable.Value("Source","UnderlyingNotification")) <> 0 And Instr(1,strIn
nertext,strISIN) <> 0 Then
Reporter.ReportEvent micPass,"Step 9: Verifying the Rece
ived Date, Source and ISIN Value","The Received Date Value is ' " & strDateValue
& " ' and the Source Value is ' " & DataTable.Value("Source","UnderlyingNotific
ation") & " ' and ISIN Value is ' " & strISIN & " '"
Else
Reporter.ReportEvent micFail,"Step 9: Verrifying the Rec
eived Date, Source and ISIN Value","The Required Received Date Value is ' " & st
rDateValue & " ' and the Source Value is ' " & DataTable.Value("Source","Underly
ingNotification") & "' & ISIN Value '" &strISIN & " ' is Not Dispalyed"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Underlying Event","Home;DR
Home")
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: Check for DR Ho
me Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 10: Check for DR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC20()
Call click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath","UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notifi
cation Search").Exist(5) Then
Reporter.ReportEvent micPass,"Step 1: Verifying if the P
age 'Profile - Underlying Notification Search' is Displayed or NOT","The Page 'P
rofile - Underlying Notification Search' is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying if the P
age 'Profile - Underlying Notification Search' is Displayed or NOT","The Page 'P
rofile - Underlying Notification Search' is Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2"
Call click_Image("CorporateActions","Profile - Underlying Notifi
cation Search","Clear")
Call Select_Combo_Value("CorporateActions","Profile - Underlying
Notification Search","Source",DataTable.Value("Source","UnderlyingNotification"
))
strSource = get_WebList_Value("CorporateActions","Profile - Unde
rlying Notification Search","Source")
If strSource = DataTable.Value("Source","UnderlyingNotification"
) Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Valu
e in the Source Field","The Value displayed in the Source field is ' " & strSour
ce & " '"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Valu
e in the Source Field","The Value displayed in the Source field is ' " & strSour
ce & " '. Instead of ' " & DataTable.Value("Source","UnderlyingNotification") &
" ' "
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
Call click_image("CorporateActions","Profile - Underlying Notifi
cation Search","ReceivedDate")
Call SetDate("CorporateActions","Profile - Underlying Notification Searc
h",DataTable.Value("FromDate","UnderlyingNotification"))
Call click_image("CorporateActions","Profile - Underlying Notifi
cation Search","ReceivedEndDate")
Call SetDate("CorporateActions","Profile - Underlying Notification Searc
h",DataTable.Value("ToDate","UnderlyingNotification"))
strReceivedDate = get_WebEdit_Value("CorporateActions","Profile
- Underlying Notification Search","ReceivedDate")
strReceivedEndDate = get_WebEdit_Value("CorporateActions","Profi
le - Underlying Notification Search","ReceivedEndDate")
strFromDate = Replace(DataTable.Value("FromDate","UnderlyingNoti
fication"),";","-")
strToDate = Replace(DataTable.Value("ToDate","UnderlyingNotifica
tion"),";","-")
If DateValue(strFromDate) = DateValue(strReceivedDate) AND DateV
alue(strReceivedEndDate) = DateValue(strToDate) Then
Reporter.ReportEvent micPass,"Step 3: Verifying the Ente
red Date","The Date entered in Received Date is " & strFromDate & " and the Date
Entered in Received End Date is " & strToDate
Else
Reporter.ReportEvent micPass,"Step 3: Verifying the Ente
red Date","The Date entered in Received Date is NOT " & strFromDate & " OR the D
ate Entered in Received End Date is NOT " & strToDate
Environment.Value("Execution_Log") = "False"
End If
Call click_Image("CorporateActions","Profile - Underlying Notifi
cation Search","Search")
Wait(2)
Call chkResultinTable("CorporateActions","Profile - Underlying N
otification Search","UnderlyingNotification","Source",DataTable.Value("Source","
UnderlyingNotification"))
Call chkDateRangeinTable("CorporateActions", "Profile - Underlying Notif
ication Search","UnderlyingNotification","Received Date",strReceivedDate,strRece
ivedEndDate)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Verifying if the R
esults are Disaplyed as per the Search Criteria","The Results are Diaplyed with
Source Value =: ' " & DataTable.Value("Source","UnderlyingNotification") & " ' w
ith in the Date Range ' " & strReceivedDate & " and ' " & strReceivedEndDate & "
' "
Else
Reporter.ReportEvent micFail,"Step 3: Verifying if the R
esults are Disaplyed as per the Search Criteria","The Results are Not Diaplyed w
ith Source Value =: ' " & DataTable.Value("Source","UnderlyingNotification") & "
' with in the Date Range ' " & strReceivedDate & " and ' " & strReceivedEndDate
& " ' "
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
intRC = Browser("CorporateActions").Page("Profile - Underlying N
otification Search").WebTable("UnderlyingNotification").RowCount
If intRC < 2 Then
Reporter.ReportEvent micFail,"Verifying the Records","No
records displayed and hence can't proceed futhur"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
Exit Function
End If
intColumnCount = Browser("CorporateActions").Page("Profile - Und
erlying Notification Search").WebTable("UnderlyingNotification").ColumnCount(2)
For intColumnCounter =1 to intColumnCount
strCellData = Browser("CorporateActions").Page("Profile
- Underlying Notification Search").WebTable("UnderlyingNotification").GetCellDa
ta(2, intColumnCounter)
If strCellData = "Processing Status" Then
intReqColumn = intColumnCounter
End If
If strCellData = "Received Date" Then
intDateColumn = intColumnCounter
End If
Next
For intRowCounter = 3 to intRC
strAppProcessValue = Browser("CorporateActions").Page("P
rofile - Underlying Notification Search").WebTable("UnderlyingNotification").Get
CellData(intRowCounter,intReqColumn)
If Trim(strAppprocessValue) = DataTable.Value("Processin
gStatus","UnderlyingNotification") Then
strDateValue = Browser("CorporateActions").Page(
"Profile - Underlying Notification Search").WebTable("UnderlyingNotification").G
etCellData(intRowCounter,intDateColumn)
Browser("CorporateActions").Page("Profile - Unde
rlying Notification Search").WebElement("html tag:=TD","innertext:=" & strDateVa
lue,"index:=0").Click
Wait(2)
Exit For
End If
Next
If Browser("CorporateActions").Page("Underlying Notification").Exist(5)
Then
Reporter.ReportEvent micPass,"Verifying if the Page 'Pro
file - Underlying Notification is disaplyed ot Not","The Page Underlying Notific
ation is Disaplyed"
If Browser("CorporateActions").Dialog("File Download").E
xist(5) Then
Browser("CorporateActions").Dialog("File Downloa
d").WinButton("Cancel").Click
End If
Else
Reporter.ReportEvent micFail,"Verifying if the Page 'Pro
file - Underlying Notification is disaplyed ot Not","The Page Underlying Notific
ation is Not Displayed"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
End If
blnFalg1 = Browser("CorporateActions").Page("Underlying Notifica
tion").WebTable("CorporateActionEventDetails").Exist(2)
blnFalg2 = Browser("CorporateActions").Page("Underlying Notifica
tion").WebTable("CorporateActionEvents").Exist(2)
If blnFalg1 And blnFalg2 Then
Reporter.ReportEvent micPass,"Step 5: Verfiying if the T
ables Corporate Action Event Details & Corporate Action Event is Present","The T
ables Corporate Action Event Details & Corporate Action Event is Present"
Else
Reporter.ReportEvent micFail,"Step 5: Verfiying if the T
ables Corporate Action Event Details & Corporate Action Event is Present","The T
ables Corporate Action Event Details Or Corporate Action Event is Not Present"
Environment.Value("Execution_Log") = "False"
Call captureScreenshot()
End If
strReceivedDate = get_WebEdit_Value("CorporateActions","Underlyi
ng Notification","ReceivedDate")
strMsgType = "MSG TYPE : 599"
strBONYRCVD = "BONY RCVD : "& strReceivedDate
'strBONYRCVD = "BONY RCVD :"
strAppValue = Browser("CorporateActions").Page("Underlying Notif
ication").Frame("msgFrame").GetROProperty("innertext")
strAppValue = Replace(strAppValue," ","")
strMsgType = Replace(strMsgType," ","")
strBONYRCVD = Replace(strBONYRCVD," ","")
If Instr(1, strAppValue,strMsgType) <> 0 Then
Reporter.ReportEvent micPass,"Step 5: Verifying the 'MSG
TYPE' value","The MSG TYPE Value is ' " & strMsgType & " ' "
Else
Reporter.ReportEvent micFail,"Step 5: Verifying the 'MSG
TYPE' value","The MSG TYPE Value is NOT ' " & strMsgType& " ' "
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
If Instr(1, strAppValue,strBONYRCVD) <> 0 Then
Reporter.ReportEvent micPass,"Step 5: Verifying the 'BON
Y RCVD' value","The BONY RCVD Value is ' " & strBONYRCVD & " ' "
Else
Reporter.ReportEvent micWarning,"Step 5: Verifying the '
BONY RCVD' value","The BONY RCVD Value is NOT ' " & strBONYRCVD& " ' "
Call captureScreenshot()
'Environment.Value("Execution_Log") = "False"
End If
strCreatedUpdated = Browser("CorporateActions").Page("Underlying Notific
ation").WebTable("CreatedUpdated").GetROProperty("innertext")
intCreatedPos = InStr(1,strCreatedUpdated,"Created")
intUpdatedPos = InStr(1,strCreatedUpdated,"Updated")
strCreatedDetails = Mid(strCreatedUpdated,intCreatedPos,intUpdat
edPos-1)
strUpdatedDetails = Mid(strCreatedUpdated,intUpdatedPos)
If Instr(1,strCreatedUpdated,"Created") <> 0 And Instr(1,strCrea
tedUpdated,"Updated") Then
Reporter.ReportEvent micPass,"Step 5: Verifying the Crea
ted and Updated Details","The Created Details are ' & " & strCreatedDetails & "
' And Updated Details are : ' " & strUpdatedDetails & " ' "
Else
Reporter.ReportEvent micFail,"Step 5: Verifying the Crea
ted and Updated Details","The Created and Updated details are not displayed"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
' Step 6:
strProcessingValue = get_WebList_Value("CorporateActions","Underlying No
tification","ProcessingStatus")
If strProcessingValue = DataTable.Value("ProcessingStatus","Unde
rlyingNotification") Then
Reporter.ReportEvent micPass,"Step 6: Verifying the Valu
e in Process Status","The Value displayed in the Process Status Field is ' " & D
ataTable.Value("ProcessingStatus","UnderlyingNotification") & " '"
Else
Reporter.ReportEvent micFail,"Step 6: Verifying the Valu
e in Process Status","The Value displayed in the Process Status Field is Not ' "
& DataTable.Value("ProcessingStatus","UnderlyingNotification") & " '"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
' Step 7:
strEventName = get_WebEdit_Value("CorporateActions","Underlying Notifica
tion","CA_EventName")
Reporter.ReportEvent micPass,"Step 7: Noting the Value in Event
Name Field","The Value in the Event Name Field is ' " & strEventName & " ' "
strISIN = get_WebEdit_Value("CorporateActions","Underlying Notif
ication","CA_ISIN")
Reporter.ReportEvent micPass,"Step 7: Noting the Value in ISIN F
ield","The Value in the ISIN Field is ' " & strISIN & " ' "
strSEDOL = get_WebEdit_Value("CorporateActions","Underlying Noti
fication","CA_SEDOL")
Reporter.ReportEvent micPass,"Step 7: Noting the Value in SEDOL
Field","The Value in the SEDOL Field is ' " & strSEDOL & " ' "
' Step 8:
intRC = Browser("CorporateActions").Page("Underlying Notification").WebT
able("CorporateActionEvents").RowCount
Browser("CorporateActions").Page("Underlying Notification").WebT
able("CorporateActionEvents").ChildItem(intRC,2,"WebEdit",0).Click
If Browser("CorporateActions").Dialog("Microsoft Internet Explor
er").Exist(5) Then
strDialogText = Browser("CorporateActions").Dialog("Micr
osoft Internet Explorer").Static("MessageText").GetROProperty("text")
strRequiredText = "Data has been modified. Please save
your changes or click Cancel to discard changes"
If strDialogText = strRequiredText Then
Reporter.ReportEvent micPass,"Step 8:Verifying t
he Text in the Dialog mesasge","The Text dispalyed in the Dialog is ' " & strReq
uiredText & " '"
Else
Reporter.ReportEvent micFail,"Step 8:Verifying t
he Text in the Dialog mesasge","The Text dispalyed in the Dialog is Not ' " & st
rRequiredText & " '"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
Browser("CorporateActions").Dialog("Microsoft Internet E
xplorer").WinButton("Cancel").Click
Else
Reporter.ReportEvent micFail,"Step 8: Verifying if the D
ialog Exist or Not","The Dialog is Not dispalyed"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
Exit Function
End If
Wait(2)
' Step 9
If Browser("CorporateActions").Page("Underlying Event").Exist(5)
Then
Reporter.ReportEvent micPass,"Step 9: Verifying if the p
age 'Underlying Event' is Displayed or Not","The Page 'Underlying Event is Displ
ayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 9: Verifying if the p
age 'Underlying Event' is Displayed or Not","The Page 'Underlying Event is Not D
isplayed Successfully"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
Exit Function
End If
Call pageCheck_ImageOR("CorporateActions","Underlying Event","Sa
ve;Delete")
blnFalg1 = Browser("CorporateActions").Page("Underlying Event")
.WebTable("CorporateActionEvent").Exist(2)
blnFalg2 = Browser("CorporateActions").Page("Underlying Event")
.WebTable("NotificationsAssigned").Exist(2)
If Environment.Value("TestCase_Log") = "True" AND blnFalg1 = "T
rue" AND blnFalg2 = "True" Then
Reporter.ReportEvent micPass,"Step 9: Verifying if the F
ields in the page 'Underlying Event'","The Required Fields are present in the Pa
ge 'Underlying Event'"
Else
Reporter.ReportEvent micFail,"Step 9: Verifying if the F
ields in the page 'Underlying Event'","The Required Fields are Not present in th
e Page 'Underlying Event'"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
strInnertext = Browser("CorporateActions").Page("Underlying Even
t").WebTable("NotificationsAssigned").GetROProperty("innertext")
If Instr(1,strInnertext ,strDateValue) <> 0 AND Instr(1,strInner
text ,DataTable.Value("Source","UnderlyingNotification")) <> 0 And Instr(1,strIn
nertext,strISIN) <> 0 Then
Reporter.ReportEvent micPass,"Step 9: Verifying the Rece
ived Date, Source and ISIN Value","The Received Date Value is ' " & strDateValue
& " ' and the Source Value is ' " & DataTable.Value("Source","UnderlyingNotific
ation") & " ' and ISIN Value is ' " & strISIN & " '"
Else
Reporter.ReportEvent micFail,"Step 9: Verrifying the Rec
eived Date, Source and ISIN Value","The Required Received Date Value is ' " & st
rDateValue & " ' and the Source Value is ' " & DataTable.Value("Source","Underly
ingNotification") & "' & ISIN Value '" &strISIN & " ' is Not Dispalyed"
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("CorporateActions","Underlying Event","Home;DR
Home")
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: Check for DR Ho
me Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 10: Check for DR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC21()
' Step 1
Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions",DataTable.Value(
"MenuPath","UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification S
earch").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2
Call click_Image("CorporateActions","Profile - Underlying Notifi
cation Search","Clear")
Call Select_Combo_Value("CorporateActions","Profile - Underlying
Notification Search","ProcessingStatus",DataTable.Value("InitialProcessingStatu
s","UnderlyingNotification"))
Call click_Image("CorporateActions","Profile - Underlying Notifi
cation Search","Search")
Wait(5)
Call chkProcessingStatusResult("CorporateActions", "Profile - Un
derlying Notification Search", "UnderlyingNotification", DataTable.Value("Initia
lProcessingStatus","UnderlyingNotification"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 2: Verifying if the Results are
displayed based on the Processing Status criteria " & DataTable.Value("InitialPr
ocessingStatus","UnderlyingNotification") , "The Results are displayed based on
the Status " & DataTable.Value("InitialProcessingStatus","UnderlyingNotification
")
Else
Reporter.ReportEvent micFail, "Step 2: Verifying if the Results are
displayed based on the Processing Status criteria " & DataTable.Value("InitialPr
ocessingStatus","UnderlyingNotification") , "The Results are NOT displayed based
on the Status " & DataTable.Value("InitialProcessingStatus","UnderlyingNotifica
tion")
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
End If
' Step 3
Call SelectElementValueinTable("CorporateActions", "Profile - Un
derlying Notification Search", "UnderlyingNotification", "Received Date")
blnExistFlag = "False"
If Browser("CorporateActions").Page("Underlying Notification").E
xist(5) Then
If Browser("CorporateActions").Dialog("File Download").E
xist(5) Then
Browser("CorporateActions").Dialog("File Downloa
d").WinButton("Cancel").Click
End If
blnExistFlag = "True"
strProcessingData = get_WebList_Value("CorporateActions", "Underlyin
g Notification", "ProcessingStatus")
Call pageCheck_WebElementinTable("CorporateActions", "Underlying Not
ification", "Corporate Action Events this Underlying Notification is Assigned to
;Corporate Action Event Details", "")
strCellData1 = Browser("CorporateActions").Page("Underlying Notifica
tion").WebTable("DetailTable").GetCellData(1, 1)
strCellData2 = Browser("CorporateActions").Page("Underlying Notifica
tion").WebTable("DetailTable").GetCellData(2, 1)
If InStr(1, strCellData2, "Created") <> 0 And InStr(1, strCellData2,
"Updated") <> 0 And Environment.Value("TestCase_Log") = "True" And strProcessin
gData = DataTable.Value("InitialProcessingStatus","UnderlyingNotification") Then
Reporter.ReportEvent micPass, "Step 3: Verifying if the Details
of the Notification is displayed or NOT", "The details of the Notification is di
splayed in the Page 'Underlying Notification' "
Else
Reporter.ReportEvent micFail, "Step 3: Verifying if the Details
of the Notification is displayed or NOT", "The details of the Notification is NO
T displayed in the Page 'Underlying Notification' "
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail, "Step 2: Verifying if the Page ' Under
lying Notification' is displayed or NOT", "The Page ' Underlying Notification' i
s NOT displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Exit Function
End If
' Step 4, 5
Call Select_Combo_Value("CorporateActions","Underlying Notificat
ion","ProcessingStatus",DataTable.Value("FinalProcessingStatus","UnderlyingNotif
ication"))
Call click_Image("CorporateActions","Underlying Notification","S
ave_UnderlyingNotification")
If Browser("CorporateActions").Dialog("Microsoft Internet Explor
er").Exist(5) Then
strMessageValue = Browser("CorporateActions").Dialog("Mi
crosoft Internet Explorer").Static("MessageText").GetROProperty("text")
strReqMessageValue = "Warning: Underlying Notification h
as Processing Status No Action Needed. Click OK to save changes you made, or cl
ick Cancel to discard them."
If Trim(strMessageValue) = Trim(strReqMessageValue) Then
Reporter.ReportEvent micPass,"Step 4: Verifying
the Message in the Dialog","The Message displayed in the Message box is " & strM
essageValue
Else
Reporter.ReportEvent micFail,"Step 4: Verifying
the Message in the Dialog","The Message displayed in the Dialog is Not " & strMe
ssageValue
Call captureScreenShot()
Environment.Value("TestCase_Log") = "False"
End If
Browser("CorporateActions").Dialog("Microsoft Internet E
xplorer").WinButton("OK").Click
End If
' Step 5:
Call ValidationErrorDetails("CorporateActions","Underlying Notification
Screen","ValidationError",DataTable.Value("ValidationError","UnderlyingNotificat
ion"),"Corporate Action Event Details")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Verifying if the V
alidation Error is disaplyed or Not","Validation Error is disaplyed and the Requ
ired Mandatory fields namely ' " & DataTable.Value("ValidationError","Underlying
Notification") & " ' is dispalyed"
Else
Reporter.ReportEvent micFail,"Step 5: Verifying if the V
alidation Error is disaplyed or Not","Validation Error is Not disaplyed Or the R
equired Mandatory fields namely ' " & DataTable.Value("ValidationError","Underly
ingNotification") & " ' is Not dispalyed"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 6:
Call clkValidationErrorElement("CorporateActions","Underlying No
tification Screen","ValidationError",DataTable.Value("ValidationError","Underlyi
ngNotification"),"Comments")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Verifying if the C
orresponding Element is Highlighted in Applciation","The Corresponding Field is
Highlighted in Application after clicking on the Validation Error Element"
Else
Reporter.ReportEvent micFail,"Step 6: Verifying if the C
orresponding Element is Highlighted in Applciation","The Corresponding Field is
Not Highlighted in Application after clicking on the Validation Error Element"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call set_WebEdit_Value("CorporateActions","Underlying Notificati
on Screen","Comments",DataTable.Value("Comments","UnderlyingNotification"))
Call click_Image("CorporateActions","Underlying Notification Scr
een","Save")
Wait(5)
strRequiredText = "Warning: Underlying Notification has Process
ing Status No Action Needed. Click OK to save changes you made, or click Cancel
to discard them."
If Browser("CorporateActions").Dialog("Microsoft Internet Explor
er").Exist(5) Then
strDisplayedValue = Browser("CorporateActions").Dialog("Microsoft In
ternet Explorer").Static("MessageText").GetROProperty("text")
If strDisplayedValue = strRequiredText Then
Reporter.ReportEvent micPass,"Step 7: Verifying
the Message in the Dialog","The Message displayed in the Dialog is ' " & strRequ
iredText & " '"
Else
Reporter.ReportEvent micFail,"Step 7: Verifying
the Message in the Dialog","The Message displayed in the Dialog is Not ' " & st
rRequiredText & " ' "
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
Browser("CorporateActions").Dialog("Microsoft Internet
Explorer").WinButton("OK").Click
strProcessingStatus = get_WebList_Value("CorporateAction
s","Underlying Notification Screen","ProcessingStatus")
If Trim(strProcessingStatus) = Trim(DataTable.Value("Fin
alProcessingStatus","UnderlyingNotification")) Then
Reporter.ReportEvent micPass,"Step 8: Verifying
if the Value in the Processing Status Field","The Value in the Processing Staus
field is " & strProcessingStatus
Else
Reporter.ReportEvent micFail,"Step 8: Verifying
if the Value in the Processing Status Field","The Value in the Processing Staus
field is NOT " & strProcessingStatus
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step 7: Verifying if the D
ialog Exists or Not","The Dialog does not exist with the message ' " & strRequir
edText & " ' "
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
' Step 9:
Call select_Menu("CorporateActions","Underlying Notification Scr
een","Home;DR Home")
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: Check for DR Hom
e Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 9: Check for DR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC22()
' Step 1
Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath", "UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification S
earch").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Un
derlying Notification Search ' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2
Call Select_Combo_Value("CorporateActions","Profile - Underlying
Notification Search","ProcessingStatus",DataTable.Value("ProcessingStatus","Und
erlyingNotification"))
strProcessValue = get_WebList_Value("CorporateActions","Profile
- Underlying Notification Search","ProcessingStatus")
If Trim(strProcessValue) = Trim(DataTable.Value("ProcessingStatu
s","UnderlyingNotification")) Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Valu
e in the Processing Field","The Value in the Processing Field is " & strProcessV
alue
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Valu
e in the Processing Field","The Value in the Processing Field is NOT " & strProc
essValue
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 3
Call Select_Combo_Value("CorporateActions","Profile - Underlying
Notification Search","AssignedtoUserGroups",DataTable.Value("AssignedtoUserGrou
ps","UnderlyingNotification"))
strValue = get_WebList_Value("CorporateActions","Profile - Under
lying Notification Search","AssignedtoUserGroups")
If Trim(strValue) = Trim(DataTable.Value("AssignedtoUserGroups",
"UnderlyingNotification")) Then
Reporter.ReportEvent micPass,"Step 3: Verifying the Valu
e in the Assigned to User Groups Field","The Value in the Assigned to User Group
s Field is " & strProcessValue
Else
Reporter.ReportEvent micFail,"Step 3: Verifying the Valu
e in the Assigned to User Groups Field","The Value in the Assigned to User Group
s Field is NOT " & strProcessValue
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 4
Call click_Image("CorporateActions","Profile - Underlying Notifi
cation Search","Search")
intRowCounts = Browser("CorporateActions").Page("Profile - Under
lying Notification Search").WebTable("UnderlyingNotification").RowCount
If intRowCounts > 2 Then
Call chkResultinTable("CorporateActions","Profile - Unde
rlying Notification Search","UnderlyingNotification","Processing Status",DataTab
le.Value("ProcessingStatus","UnderlyingNotification"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Verfiying
the Result in the Table","The Result are displayed as per the Search Criteria '
Processing Status : ' " & DataTable.Value("ProcessingStatus","UnderlyingNotifica
tion")
Else
Reporter.ReportEvent micFail,"Step 4: Verfiying
the Result in the Table","The Result are NOT displayed as per the Search Criteri
a ' Processing Status : ' " & DataTable.Value("ProcessingStatus","UnderlyingNoti
fication")
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step 4: Verifying the Resu
lts","There are No Resuts Displayed for the Search Criteria"
Reporter.ReportEvent micFail,"Step 5: Verifying the Sear
ch Results","There are No Result Displayed and hence can't Select any Link in th
e Result"
Environment.Value("Execution_Log") = "False"
Call select_Menu("CorporateActions","Profile - Underlyin
g Notification Search","Home;DR Home")
Exit Function
End If
' Step 5
Call SelectElementValueinTable("CorporateActions", "Profile - Underlying
Notification Search", "UnderlyingNotification", "Received Date")
blnExistFlag = "False"
If Browser("CorporateActions").Page("Underlying Notification").E
xist(5) Then
blnExistFlag = "True"
Reporter.ReportEvent micPass,"Step 5: Verifying if the P
age 'Underlying Notification' is displayed or NOT","The Page 'Underlying Notific
ation' is Displayed successfully"
Else
Reporter.ReportEvent micFail,"Step 5: Verifying if the P
age 'Underlying Notification' is displayed or NOT","The Page 'Underlying Notific
ation' is NOT Displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
If blnExistFlag = "True" Then
If Browser("CorporateActions").Dialog("File Download").E
xist(5) Then
Browser("CorporateActions").Dialog("File Downloa
d").WinButton("Cancel").Click
End If
Call pageCheck_WebTableOR("CorporateActions","Underlying
Notification","CorporateActionEvents")
strReqAppValue = "Corporate Action Type;ISIN;SEDOL;Event
Name;Event Date;Comparison"
Call pageCheck_WebElementinTable("CorporateActions","Und
erlying Notification",strReqAppValue,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6,7: Verifyin
g the Header in the Table 'CorporateActionEvents'","The Required Headers namely
" & strReqAppValue & " is displayed"
Else
Reporter.ReportEvent micFail,"Step 6,7: Verifyin
g the Header in the Table 'CorporateActionEvents'","The Required Headers namely
" & strReqAppValue & " is NOT displayed"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
InitialCARowCount = Browser("CorporateActions").Page("Un
derlying Notification").WebTable("CorporateActionEvents").RowCount
' Step 8
Call click_WebButton("CorporateActions","Underlying Noti
fication","Add")
Call pageCheck_WebEditOR("CorporateActions","Underlying
Notification","CA_CorporateActionType;CA_ISIN;CA_SEDOL;CA_EventName;CA_EventDate
;CA_ProcessingStatus;CA_StatusChangedDate")
Call pageCheck_WebListOR("CorporateActions","Underlying
Notification","CA_Type;CA_Comparison")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: Verifying
if the Required Fields are Displayed in 'Corporate Action Event Details","The Re
quired Fields are Present in the Corporate Action Event Details"
Else
Reporter.ReportEvent micFail,"Step 8: Verifying
if the Required Fields are Displayed in 'Corporate Action Event Details","The Re
quired Fields are NOT Present in the Corporate Action Event Details"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 9
Call Select_Combo_Value("CorporateActions","Underlying N
otification","CA_Type",DataTable.Value("EventType","UnderlyingNotification"))
strTypeValue = get_WebList_Value("CorporateActions","Und
erlying Notification","CA_Type")
If strTypeValue = DataTable.Value("EventType","Underlyin
gNotification") Then
Reporter.ReportEvent micPass,"Step 9: Verify the
Value in the Type Field","The Value in the Type Field is " & DataTable.Value(
"EventType","UnderlyingNotification")
Else
Reporter.ReportEvent micFail,"Step 9: Verify the
Value in the Type Field","The Value in the Type Field is NOT " & DataTable.Val
ue("EventType","UnderlyingNotification")
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 10
Call click_Image("CorporateActions","Underlying Notifica
tion","ISIN")
Call pageCheck_Frame("CorporateActions","Underlying Noti
fication","lookupFrame","UnderlyingSecurityName;ISIN;SEDOL","Go;Clear","ISIN;SED
OL;UnderlyingSecurityName;Type;Class")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: Verifying
if the Required Fields are Present in the Frame or Not","The Required Fields ar
e Present in the Frame"
Else
Reporter.ReportEvent micFail,"Step 10: Verifying
if the Required Fields are Present in the Frame or Not","The Required Fields ar
e NOT Present in the Frame"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 11
Browser("CorporateActions").Page("Underlying Notificatio
n").Frame("lookupFrame").WebEdit("UnderlyingSecurityName").Set DataTable.Value("
UnderlyingSecurity","UnderlyingNotification")
Browser("CorporateActions").Page("Underlying Notificatio
n").Frame("lookupFrame").WebEdit("UnderlyingSecurityName").Submit
Call chkResultinFrame("CorporateActions","Underlying Not
ification","lookupFrame","ISIN","Und. Security Name",DataTable.Value("Underlying
Security","UnderlyingNotification"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: Verifying
the Results in the Frame","The Results are displayed with Search Criteria as '
Underlying Security Name : = " & DataTable.Value("UnderlyingSecurity","Underlyi
ngNotification")
Else
Reporter.ReportEvent micPass,"Step 11: Verifying
the Results in the Frame","The Results are displayed with Search Criteria as '
Underlying Security Name : = " & DataTable.Value("UnderlyingSecurity","Underlyi
ngNotification")
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 12
Call SelectValueinFrame("CorporateActions","Underlying N
otification","lookupFrame","ISIN")
'strCATypeValue = get_WebEdit_Value("CorporateActions","
Underlying Notification","CA_CorporateActionType")
strISINValue = get_WebEdit_Value("CorporateActions","Und
erlying Notification","CA_ISIN")
strSEDOLValue = get_WebEdit_Value("CorporateActions","Un
derlying Notification","CA_SEDOL")
If strISINValue <> "" AND strSEDOLValue <> "" Then
Reporter.ReportEvent micPass,"Step 12: Verifying
if the Values are Automatically Populated","The Values in the Field ISIN and SE
DOL are automatically Populated"
Else
Reporter.ReportEvent micFail,"Step 12: Verifyin
g if the Values are Automatically Populated","The Values in the Field ISIN and S
EDOL are NOT automatically Populated"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 13:
strSelectValues = DataTable.Value("CorporateActionType",
"UnderlyingNotification")
strSelectValue = Replace(strSelectValues,"(","\(")
strSelectValue = Replace(strSelectValue,")","\)")
Call SelectCorporateActionType("CorporateActions","Under
lying Notification","CorporateActionType",strSelectValue)
strCAName = get_WebEdit_Value("CorporateActions","Under
lying Notification","CA_CorporateActionType")
If strSelectValues = strCAName Then
Reporter.ReportEvent micPass,"Step 13: Verifying
the Corporate Action Type Name","The Corporate Action Type Value displayed is '
" & strCAName & " ' "
Else
Reporter.ReportEvent micFail,"Step 13: Verifying
the Corporate Action Type Name","The Corporate Action Type Value displayed is N
ot ' " & strCAName & " ' "
Call captureScreenShot()
Call captureScreenshot()
Environment.Value("Execution_Log") = "False"
End If
' Step 14
Call click_Image("CorporateActions","Underlying Notifica
tion","EventName")
Call pageCheck_Frame("CorporateActions","Underlying Noti
fication","lookupFrame_Event","EventName;EventDate;CorporateActionType;ISIN","Cl
ear;Go","EventName;EventDate;CorporateActionType;ISIN")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 14: Verifying
if the Required Fields are Present in the Page or Not","The Required Fields are
Present in the Frame"
Else
Reporter.ReportEvent micFail,"Step 14: Verifying
if the Required Fields are Present in the Page or Not","The Required Fields are
NOT Present in the Frame"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 15
Call SelectValueinFrame("CorporateActions","Underlying N
otification","lookupFrame_Event","EventName")
Wait(5)
'strEventName = get_WebEdit_Value("CorporateActions","Un
derlying Notification","CA_EventName")
strEventDate = get_WebEdit_Value("CorporateActions","Und
erlying Notification","CA_EventDate")
strProcessing = get_WebEdit_Value("CorporateActions","Un
derlying Notification","CA_ProcessingStatus")
strStatusChangeDate = get_WebEdit_Value("CorporateAction
s","Underlying Notification","CA_StatusChangedDate")
'If strEventName <> "" AND strEventDate <> "" AND strPro
cessing <> "" AND strStatusChangeDate <> "" Then
If strEventDate <> "" AND strProcessing <> "" AND strSta
tusChangeDate <> "" Then
Reporter.ReportEvent micPass,"Step 15: Verfiying
if the Required Details are Dispalyed or Not","The Event Name, Event Date, Proc
essing Status and Status Changed Date Details are Displayed"
Else
Reporter.ReportEvent micFail,"Step 15: Verfiying
if the Required Details are Dispalyed or Not","The Event Name or Event Date or
Processing Status or Status Changed Date Details are NOT Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 16
Call Select_Combo_Value("CorporateActions","Underlying N
otification","CA_Comparison",DataTable.Value("Comparison","UnderlyingNotificatio
n"))
strValue = get_WebList_Value("CorporateActions","Underly
ing Notification","CA_Comparison")
If strValue = DataTable.Value("Comparison","UnderlyingN
otification") Then
Reporter.ReportEvent micPass,"Step 16: Verifyng
the Value in Comaprison Field","The Value in the Comparison Field is " & DataTab
le.Value("Comparison","UnderlyingNotification")
Else
Reporter.ReportEvent micFail,"Step 16: Verifyng
the Value in Comaprison Field","The Value in the Comparison Field is NOT " & Dat
aTable.Value("Comparison","UnderlyingNotification")
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 17
Call click_Image("CorporateActions","Underlying Notifica
tion","Save")
FinalCARowCount = Browser("CorporateActions").Page("Underlying Notif
ication Screen").WebTable("CorporateActionEvents").RowCount
strCellData = Browser("CorporateActions").Page("Underlyi
ng Notification Screen").WebTable("CorporateActionEvents").ChildItem(FinalCARowC
ount,2,"WebEdit",0).GetROProperty("value")
If Trim(strCellData) = DataTable.Value("CorporateActionT
ype","UnderlyingNotification") Then
Reporter.ReportEvent micPass,"Step 17: Verifying
if the Newly Added CA is Displayed in the List or Not","The Newly Added CA " &
DataTable.Value("CorporateActionType","UnderlyingNotification") & " is Displayed
in the List"
Else
Reporter.ReportEvent micFail,"Step 17: Verifying
if the Newly Added CA is Displayed in the List or Not","The Newly Added CA " &
DataTable.Value("CorporateActionType","UnderlyingNotification") & " is NOT Displ
ayed in the List"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 18
FinalCARowCount = Browser("CorporateActions").Page("Unde
rlying Notification Screen").WebTable("CorporateActionEvents").RowCount
Browser("CorporateActions").Page("Underlying Notificatio
n Screen").WebTable("CorporateActionEvents").ChildItem(FinalCARowCount,2,"WebEdi
t",0).Click
blnTestFalg = "False"
If Browser("CorporateActions").Dialog("Microsoft Interne
t Explorer").Exist(5) Then
strMessageValue = "Data has been modified. Plea
se save your changes or click Cancel to discard changes"
strAppValue = Browser("CorporateActions").Dialog
("Microsoft Internet Explorer").Static("MessageText").GetROProperty("text")
If Trim(strMessageValue) = Trim(strAppValue) Th
en
Reporter.ReportEvent micPass,"Step 18: V
erifying the message in the Dialog","The Message Displayed in the Dialog is " &
strAppValue
Else
Reporter.ReportEvent micFail,"Step 18: V
erifying the message in the Dialog","The Message Displayed in the Dialog is NOT
" & strAppValue
Call captureScreenShot()
Environment.Value("Execution_Log") = "Fa
lse"
End If
blnTestFalg = "True"
End If
' Step 19, 20
If blnTestFalg = "True" Then
Browser("CorporateActions").Dialog("Microsoft In
ternet Explorer").WinButton("Cancel").Click
Wait(10)
If Browser("CorporateActions").Page("Underlying
Event").Exist(5) Then
Call pageCheck_WebTableOR("CorporateActi
ons","Underlying Event","CorporateActionEvent;NotificationsAssigned")
Call pageCheck_ImageOR("CorporateActions
","Underlying Event","Save;Delete")
If Environment.Value("TestCase_Log") = "
True" Then
Reporter.ReportEvent micPass,"St
ep 19: Verfiying the Fields Present in the Page 'Underlying Event'","The Require
d Fields are Present in the Page 'Underlying Event'"
Else
Reporter.ReportEvent micFail,"St
ep 19: Verfiying the Fields Present in the Page 'Underlying Event'","The Require
d Fields are NOT Present in the Page 'Underlying Event'"
Environment.Value("TestCase_Log"
) = "True"
Environment.Value("Execution_Log
") = "False"
End If
strCAValue = get_WebEdit_Value("Corporat
eActions","Underlying Event","CorporateActionType")
strISINSEDOLValues = get_WebEdit_Value("
CorporateActions","Underlying Event","ISINSEDOLValues")
If strCAValue = DataTable("CorporateActi
onType","UnderlyingNotification") AND InStr(1,strISINSEDOLValues,strISINValue) <
> 0 Then
Reporter.ReportEvent micPass,"St
ep 20: Verfiying if the Page 'Underlying Event' exists and the Corporation Actio
n Type, ISIN Value","The Corporate Action Type Value displayed in the Page ' Und
erlying Event ' is " & DataTable("CorporateActionType","UnderlyingNotification")
& " and the ISIN Value is " & strISINValue
Else
Reporter.ReportEvent micFail,"St
ep 20: Verfiying if the Page 'Underlying Event' exists and the Corporation Actio
n Type","The Corporate Action Type Value displayed in the Page ' Underlying Even
t ' is NOT " & DataTable("CorporateActionType","UnderlyingNotification") & " OR
the ISIN Value is " & strISINValue
Call captureScreenShot()
Environment.Value("Execution_Log
") = "False"
End If
Call select_Menu("CorporateActions","Und
erlying Event","Home;DR Home")
Else
Reporter.ReportEvent micFail,"Step 19, 2
0: Verifying if the Page 'Underlying Event' is dispalyed or Not","The Page 'Unde
rlying Event' is Not displayed"
Environment.Value("Execution_Log") = "Fa
lse"
Call captureScreenShot()
Call select_Menu("CorporateActions","Und
erlying Notification","Home;DR Home")
End If
End If
End If
End Function

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

Public Function CAProfileUnderlyingNotification_TC23()


Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath","UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification S
earch").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profi
le - Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile
- Underlying Notification Search ' is displayed successfully"
Else
Reporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le - Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile
- Underlying Notification Search ' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2
Call Select_Combo_Value("CorporateActions","Profile - Underlying
Notification Search","ProcessingStatus",DataTable.Value("ProcessingStatus","Und
erlyingNotification"))
strValue = get_WebList_Value("CorporateActions","Profile - Under
lying Notification Search","ProcessingStatus")
If Trim(strValue) = Trim(DataTable.Value("ProcessingStatus","Und
erlyingNotification")) Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Valu
e in the Processing Status Field","The Value in the Processing Status Field is "
& DataTable.Value("ProcessingStatus","UnderlyingNotification")
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Valu
e in the Processing Status Field","The Value in the Processing Status Field is N
OT " & DataTable.Value("ProcessingStatus","UnderlyingNotification")
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call click_Image("CorporateActions","Profile - Underlying Notifi
cation Search","ReceivedEndDate")
Browser("CorporateActions").Page("Profile - Underlying Notificat
ion Search").Frame("PopCalFrame").WebElement("Today").Click
' Step 3
Call Select_Combo_Value("CorporateActions","Profile - Underlying
Notification Search","AssignedtoUserGroups",DataTable.Value("AssignedtoUserGrou
ps","UnderlyingNotification"))
strValue = get_WebList_Value("CorporateActions","Profile - Under
lying Notification Search","AssignedtoUserGroups")
If Trim(strValue) = Trim(DataTable.Value("AssignedtoUserGroups",
"UnderlyingNotification")) Then
Reporter.ReportEvent micPass,"Step 3: Verifying the Valu
e in the Assigned to User Groups Field","The Value in the Assigned to User Group
s Field is " & DataTable.Value("AssignedtoUserGroups","UnderlyingNotification")
Else
Reporter.ReportEvent micFail,"Step 3: Verifying the Valu
e in the Assigned to User Groups Field","The Value in the Assigned to User Group
s Field is NOT " & DataTable.Value("AssignedtoUserGroups","UnderlyingNotificatio
n")
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 4
Call Select_Combo_Value("CorporateActions","Profile - Underlying
Notification Search","Source",DataTable.Value("Source","UnderlyingNotification"
))
strValue = get_WebList_Value("CorporateActions","Profile - Under
lying Notification Search","Source")
If Trim(strValue) = Trim(DataTable.Value("Source","UnderlyingNot
ification")) Then
Reporter.ReportEvent micPass,"Step 4: Verifying the Valu
e in the Source Field","The Value in the Source Field is " & DataTable.Value("So
urce","UnderlyingNotification")
Else
Reporter.ReportEvent micFail,"Step 4: Verifying the Valu
e in the Source Field","The Value in the Source Field is NOT " & DataTable.Value
("Source","UnderlyingNotification")
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 5
Call click_Image("CorporateActions","Profile - Underlying Notifi
cation Search","Search")
Call chkResultinTable("CorporateActions","Profile - Underlying N
otification Search","UnderlyingNotification","Processing Status",DataTable.Value
("ProcessingStatus","UnderlyingNotification"))
Call chkResultinTable("CorporateActions","Profile - Underlying Notificat
ion Search","UnderlyingNotification","Source",DataTable.Value("Source","Underlyi
ngNotification"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Verifying if the R
esults are Displayed as per the Search Criteria","The Results are Displayed as p
er the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Verifying if the R
esults are Displayed as per the Search Criteria","The Results are NOT Displayed
as per the Search Criteria"
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
End If
intRowCount = Browser("CorporateActions").Page("Profile - Underl
ying Notification Search").WebTable("UnderlyingNotification").RowCount
If intRowCount > 2 Then
Call SelectElementValueinTable("CorporateActions","Profi
le - Underlying Notification Search","UnderlyingNotification","Received Date")
Else
Reporter.ReportEvent micFail,"Step 5: Verfiying the Resu
lts","No Results are Displayed and hence can't Continue"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Call select_Menu("CorporateActions","Profile - Underlyin
g Notification Search","Home;DR Home")
Exit Function
End If
If Browser("CorporateActions").Page("Underlying Notification").Exist(5) T
hen
Reporter.ReportEvent micPass,"Step 6: Verifying if the P
age 'Underlying Notification' is Dispalyed or Not","The Page 'Underlying Notific
tion' is Displayed successfully"
Else
Reporter.ReportEvent micFail,"Step 6: Verifying if the P
age 'Underlying Notification' is Dispalyed or Not","The Page 'Underlying Notific
tion' is NOT Displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
If Browser("CorporateActions").Dialog("File Download").Exist(5)
Then
Browser("CorporateActions").Dialog("File Downloa
d").WinButton("Cancel").Click
End If
If Browser("CorporateActions").Dialog("File Download").Exist(2)
Then
Browser("CorporateActions").Dialog("File Downloa
d").WinButton("Cancel").Click
End If
' Step 7
If Browser("CorporateActions").Page("Underlying Notification").W
ebTable("CorporateActionEventDetails").Exist(2) Then
Call pageCheck_WebEditOR("CorporateActions","Underlying
Notification","CA_ISIN;CA_SEDOL;CA_EventName;CA_EventDate")
strISIN = get_WebEdit_Value("CorporateActions","Underlyi
ng Notification","CA_ISIN")
strSEDOL = get_WebEdit_Value("CorporateActions","Underly
ing Notification","CA_SEDOL")
strEventName = get_WebEdit_Value("CorporateActions","Und
erlying Notification","CA_EventName")
strEventDate = get_WebEdit_Value("CorporateActions","Und
erlying Notification","CA_EventDate")
If strISIN <> "" AND strSEDOL <> "" AND strEventName <>
"" AND strEventDate <> "" Then
Reporter.ReportEvent micPass,"Step 7: Verifying
if the Fields are Displayed or NOT","The Fields are dispalyed with the Details"
Else
Reporter.ReportEvent micFail,"Step 7: Verifying
if the Fields are Displayed or NOT","The Fields are NOT dispalyed with the Detai
ls"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
End If
' Step 8
intRowCount =Browser("CorporateActions").Page("Underlying Notifi
cation").WebTable("CorporateActionEvents").RowCount
If intRowCount > 2 Then
intColumnCount = Browser("CorporateActions").Page("Under
lying Notification").WebTable("CorporateActionEvents").ColumnCount(intRowCount)
For intColumnCounter = 1to intColumnCount
intImageCount = Browser("CorporateActions").Page
("Underlying Notification").WebTable("CorporateActionEvents").ChildItemCount(int
RowCount,intColumnCounter,"Image")
If intImageCount > 0 Then
strFileName = Browser("CorporateActions"
).Page("Underlying Notification").WebTable("CorporateActionEvents").ChildItem(in
tRowCount,intColumnCounter,"Image",0).GetROProperty("file name")
If strFilename = "closebutton.jpg" Then
Browser("CorporateActions").Page
("Underlying Notification").WebTable("CorporateActionEvents").ChildItem(intRowCo
unt,intColumnCounter,"Image",0).Click
Exit For
End If
End If
Next
End If
blnExistFalg = "False"
If Browser("CorporateActions").Dialog("Microsoft Internet Explor
er").Exist(5) Then
blnExistFalg = "True"
strRequiredValue = "Are you sure you want to delete this
record?"
strAppValue = Browser("CorporateActions").Dialog("Micros
oft Internet Explorer").Static("MessageText").GetROProperty("text")
If Trim(strRequiredValue) = Trim(strAppValue) Then
Reporter.ReportEvent micPass,"Step 8: Verifying
the Message in the Dialog","The Message displayed in the Dialog is " & strAppVal
ue
Else
Reporter.ReportEvent micFail,"Step 8: Verifying
the Message in the Dialog","The Message displayed in the Dialog is NOT " & strAp
pValue
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
End If
' Step 9
If blnExistFalg = "True" Then
Browser("CorporateActions").Dialog("Microsoft Internet E
xplorer").WinButton("OK").Click
FinalRowCount = Browser("CorporateActions").Page("Underl
ying Notification").WebTable("CorporateActionEvents").RowCount
If FianlRowCount < intRowCount Then
Reporter.ReportEvent micPass,"Step 9: Verifying
if the Corporation Action Type is Deleted or Not","The Corporation Action Type i
s Deleted Successfully"
Else
Reporter.ReportEvent micFail,"Step 9: Verifying
if the Corporation Action Type is Deleted or Not","The Corporation Action Type i
s NOT Deleted Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log")
End If
End If
' Step 10
Call click_Image("CorporateActions","Underlying Notification","S
ave")
Wait(5)
strProcessValue = get_Weblist_Value("CorporateActions","Underlyi
ng Notification Screen","ProcessingStatus")
If Trim(strProcessValue) = "Unassigned" Then
Reporter.ReportEvent micPass,"Step 10: Verifying the Val
ue in the Processing Status Field","The Value in the Processing Status Field is
" & strProcessValue
Else
Reporter.ReportEvent micFail,"Step 10: Verifying the Val
ue in the Processing Status Field","The Value in the Processing Status Field is
NOT " & strProcessValue
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
If Browser("CorporateActions").Dialog("File Download").Exist(5)
Then
Browser("CorporateActions").Dialog("File Downloa
d").WinButton("Cancel").Click
End If
If Browser("CorporateActions").Dialog("File Download").Exist(2)
Then
Browser("CorporateActions").Dialog("File Downloa
d").WinButton("Cancel").Click
End If
' Step 11
Call select_Menu("CorporateActions","Underlying Notification Scr
een","Home;DR Home")
Call chkADRHomePage("CorporateActions","Depositary Receipt Divis
ion's",DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value
("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: Check for DR Ho
me Page","The Required Links and the User Details are displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 11: Check for DR Home
Page","The Required Links and the User Details are NOT displayed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++ SCRIPT ENDS ++++++++++++++++


+++++++++++++++++++++++++++++++++++++++

You might also like