adrca profile underlying notification old
TRANSCRIPT
-
8/7/2019 ADRCA Profile Underlying Notification Old
1/57
'=========================================================================================================' Name of the Script : Corporate Actions Profille Underlying Notification' Scope of the Script : This test script covers 19 test cases related to the CA Profile Underlying Notification
' Author: Shyam H D' Description : Corporate Actions Profille Underlying Event --> Bulk Move' Date and / or Version : 10-12-2008,version 1.0'===========================================================================================================
Sub CAProfileUnderlyingNotification()
'****Declaration of Environmental VariableEnvironment.Value("Execution_Log")=True
'''''''''Test case countConst TC_COUNT = 19
strVar = Environment("TestDir")strIndVar = Split(strVar,"\",-1,1)strBound = UBound(strIndVar)strAllPath =""
For intCounter = 0 to strBound - 1strAllPath = strAllPath & strIndVar(intCounter)
&"\"Next
strPath = Trim(strPath)strDataPath = strAllPath & "DataTables\"strLibPath = strAllPath & "Function_Library\"
' Including the Library files where all the Scripts are saved'ExecuteFile strLibPath & "CAReportsUnderlyingNotificationTC.vbs
"
'****Adding MFLogin sheet to the dataTable and Importing the Input DataTable
DataTable.AddSheet "CALogin"
DataTable.ImportSheet strDataPath & "Login.xls","CALogin","CALogin"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"), "", "", "")
-
8/7/2019 ADRCA Profile Underlying Notification Old
2/57
'****Invoking IE and navigating to the ADR Login pageCall invoke_URL("CorporateActions","Login Page",DataTable.Value(
"URL","CALogin"))
'****Checking the username, password and login objects in the login page
Call pageCheck_WebEdit("CorporateActions","Login Page","username
;j_password","")Call pageCheck_WebButton("CorporateActions","Login Page","Login"
,"")
'****Entering username and password and login into the masterfile application
Call login("CorporateActions","Login Page","User","CALogin")
Environment.Value("DATATABLE_ROW")=1DataTable.GetSheet("UnderlyingNotification").SetCurrentRow(Envir
onment.Value("DATATABLE_ROW"))
'***************************************** TC Driver Strat *******************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = TrueEnvironment.Value("TestCase_Log")=TrueIf DataTable("TestRunFlag","UnderlyingNotification")="Y"
Then ''If run flag is Y in test data tableReporter.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 FunctionExecute "Call " & strFuncName
If Environment.Value("Execution_Log") = True Then
Call Execution_log("",Datatable.Value("TestCaseID", "UnderlyingNotification"), Datatable.Value("TestCaseDesc", "UnderlyingNotification"), "PASS")
ElseCall Execution_log("",Datatable.
Value("TestCaseID", "UnderlyingNotification"), Datatable.Value("TestCaseDesc", "UnderlyingNotification"), "FAIL")
End IfReporter.ReportEvent micDone,"######### END OF T
EST CASE - '" & DataTable("TestCaseID","UnderlyingNotification") & "###########","The Test Case Execution Completed"
End If
strPrevious=Trim(DataTable.Value("TestCaseID","UnderlyingNotification"))
''Increment the test data table rowEnvironment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1DataTable.GetSheet("UnderlyingNotification").SetCurrentR
ow(Environment.Value("DATATABLE_ROW"))
-
8/7/2019 ADRCA Profile Underlying Notification Old
3/57
strNext=Trim(DataTable.Value("TestCaseID","UnderlyingNotification"))
While strPrevious = strNextEnvironment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1DataTable.GetSheet("UnderlyingNotification").Set
CurrentRow(Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","UnderlyingNotification"))
Wend
Next
Call logoutfromApp("CorporateActions","Depositary Receipt Division's")
'***************************************** TC Driver End *******************************************************
End Sub
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC1()
' Step 1Call chkCAHomePage("CorporateActions","Depositary Receipt Divisi
on's",DataTable.Value("HomePageLinks","HomePageVerification"),DataTable.Value("UserName","HomePageVerification"))
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1: Check for DR Home Page","The Required Links and the User Details are displayed Successfully"
ElseReporter.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
End If
' Clicking on the Corporate Action ElementCall click_WebElement("CorporateActions","Depositary Receipt Div
ision's","CorporateActions")
' Step 2Call chkCAPage("CorporateActions","CorporateActions",DataTable.Value("Me
nuName","HomePageVerification"))
If Environment.Value("TestCase_Log") = True ThenReporter.ReportEvent micPass,"Step 2: Click on Corporat
e Action Element and Check for CA Home Page","The Required Menu Items are Displayed Successfully"
ElseReporter.ReportEvent micFail,"Step 2: Click on Corporate
Action Element and Check for CA Home Page","The Required Menu Items are Displayed Successfully"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = FalseEnd If
-
8/7/2019 ADRCA Profile Underlying Notification Old
4/57
' Step 3Call select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","UnderlyingNotification"))Wait 5Call 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 - Underlying Notification Search","ProcessingStatus;AssignedtoUserGroups;Source;Exception")
Call pageCheck_WebTableOR("CorporateActions","Profile - Underlying Notification Search","SearchBy;UnderlyingNotification")
' Checking for the Columns in the Table Underlying NotificationstrAppValue = ""blnExistFlag = "False"intColumnCount = Browser("CorporateActions").Page("Profile - Und
erlying Notification Search").WebTable("UnderlyingNotification").ColumnCount(2)
For intColumnCounter = 1 to intColumnCountstrValue = Browser("CorporateActions").Page("Profile - Underlying Notification Search").WebTable("UnderlyingNotification").GetCellData(2,intColumnCounter)
strAppValue = strAppValue & strValue & ";"NextstrCheckValue = "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" ThenReporter.ReportEvent micPass,"Step 3: Verfiying if the R
equired Fields are Present in the Page 'Profile Underlying Notification'","The Required Fields are Present in the Page 'Profile Underlying Notification'"
ElseReporter.ReportEvent micFail,"Step 3: Verfiying if the R
equired Fields are Present in the Page 'Profile Underlying Notification'","The Required Fields are NOT Present in the Page 'Profile Underlying Notification'"
Environment.Value("TestCase_Log") = TrueEnvironment.Value("Execution_Log") = False
End If
' Step 4IntialRowCount = Browser("CorporateActions").Page("Profile - Und
erlying Notification Search").WebTable("UnderlyingNotification").RowCountBrowser("CorporateActions").Page("Profile - Underlying Notificat
ion Search").Image("Search").SubmitWait 5FinalRowCount = Browser("CorporateActions").Page("Profile - Unde
rlying Notification Search").WebTable("UnderlyingNotification").RowCountIf FinalRowCount > InitialRowCount Then
Reporter.ReportEvent micPass,"Step 4: Verfiying if the Result are displayed or Not when clicked on 'Enter Key' with the Default Value inthe Fields","The Result are displayed when clicked on 'Enter Key' with the DefaultValue in the Fields"
ElseReporter.ReportEvent micFail,"Step 4: Verfiying if the R
esult are displayed or Not when clicked on 'Enter Key' with the Default Value in
-
8/7/2019 ADRCA Profile Underlying Notification Old
5/57
the Fields","The Result are NOT displayed when clicked on 'Enter Key' with theDefaultValue in the Fields"
Environment.Value("Execution_Log") = FalseEnd If
Call select_Menu("CorporateActions","Profile - Underlying Notification Search","Home;DR Home")
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 Search").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"
ElseReporter.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"
Environment.Value("Execution_Log") = FalseEnd 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", "PROFILE;UploadNotification")
If Browser("CorporateActions").Page("Profile - Upload Notification").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile - Upload Notification ' is Displayed or NOT", "The Page ' Profile UnderlyingNotification Search ' is displayed successfully"
ElseReporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le - Upload Notification ' is Displayed or NOT", "The Page ' Profile Underlying
Notification Search ' is NOT displayed successfully"Environment.Value("Execution_Log") = False
End If
-
8/7/2019 ADRCA Profile Underlying Notification Old
6/57
' Step 2Call CreateNewFolder("UploadFiles")
strFilePath = CreateFile("UploadFiles",DataTable.Value("TestCaseID","UnderlyingNotification"),"txt")
Call Select_Combo_Value("CorporateActions","Profile - Upload Notification","TargetDocument",DataTable.Value("TargetDocument","UnderlyingNotification"))
' Entering the path of the File and clicking on SaveBrowser("CorporateActions").Page("Profile - Upload Notification"
).WebFile("UploadFile").ClickBrowser("CorporateActions").Dialog("Choose file").WinEdit("File
name:").Set strFilePathBrowser("CorporateActions").Dialog("Choose file").WinButton("Ope
n").Click
' Selecting Underlying SecurityCall click_Image("CorporateActions","Profile - Upload Notificati
on","UnderlyingSecurity")
Call operation_on_FrameObjects_WithName("CorporateActions","Profile - Upload Notification","lookupFrame","WebEdit","divNm",DataTable.Value("UnderlyingSecurity","UnderlyingNotification"))
Call operation_on_FrameObjects_WithName("CorporateActions","Profile - Upload Notification","lookupFrame","Image","Go","")
Call SelectValueinFrame("CorporateActions","Profile - Upload Notification","lookupFrame","FrameTable")
' Entering the Corporate Action TypeCall SelectCorporateActionType("CorporateActions","Profile - Upl
oad Notification","CorporateActionType",DataTable.Value("CorporateActionType","UnderlyingNotification"))
Call Select_Combo_Value("CorporateActions","Profile - Upload Notification","Comparison",DataTable.Value("Comparison","UnderlyingNotification"))
' Setting thr Local Record DateCall 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 madeCall click_Image("CorporateActions","Profile - Upload Notificati
on","Save")Wait(5)If Browser("CorporateActions").Page("Underlying Upload Notificat
ion").Exist(5) ThenstrAppValue = 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: Verifyingif the Document is Uploaded or Not","The Document is Uploaded Successfully"
ElseReporter.ReportEvent micFail,"Step 2: Verifying
if the Document is Uploaded or Not","The Document is NOT Uploaded Successfully"
-
8/7/2019 ADRCA Profile Underlying Notification Old
7/57
Environment.Value("Execution_Log") = FalseEnd IfCall select_Menu("CorporateActions","Underlying Upload N
otification","Home;DR Home")Else
Reporter.ReportEvent micFail,"Step 2: Verifying if the Document is Uploaded or Not","The Document is NOT Uploaded Successfully"
Environment.Value("Execution_Log") = FalseCall select_Menu("CorporateActions","Profile - Upload No
tification","Home;DR Home")End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC4()
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 Search").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"
ElseReporter.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
End If
strAppValues = Browser("CorporateActions").Page("Profile - Underlying Notification Search").webList("ProcessingStatus").GetROProperty("all items")
intPos = InStr(1, strAppValues, DataTable.Value("AllItemsofVariousField", "UnderlyingNotification"))
If intPos 0 ThenReporter.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
ElseReporter.ReportEvent micFail, "Step 2: Verifying if the Field ' Proc
essing Staus ' has the required Items or NOT", "All the Required items are not Present in the Field ' Processing Status ' "
Environment.Value("Execution_Log") = FalseEnd If
strDefaultValue = Browser("CorporateActions").Page("Profile - UnderlyingNotification Search").webList("ProcessingStatus").GetROProperty("value")
If InStr(1, strDefaultValue, "All") 0 ThenReporter.ReportEvent micPass, "Step 3: Verifying the Default value i
n the Field ' Processing Status '", "The Default Value in the Field ' ProcessingStatus ' is " & strDefaultValue
ElseReporter.ReportEvent micFail, "Step 3: Verifying the Default value i
n the Field ' Processing Status '", "The Default Value in the Field ' Processing
-
8/7/2019 ADRCA Profile Underlying Notification Old
8/57
Status ' is NOT " & strDefaultValueEnvironment.Value("Execution_Log") = F
End If
Call select_Menu("CorporateActions", "Profile - Underlying NotificationSearch", "Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC5()
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 Search").Exist(5) ThenReporter.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"
ElseReporter.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"
Environment.Value("Execution_Log") = FalseEnd If
Call EnterDetailsinUnderlyingNotification("Assigned", "", "")
If Environment.Value("TestCase_Log") = True ThenReporter.ReportEvent micPass, "Step 2, 3, 4: Verifying the Details f
or the Processing Status ' Assigned ' ", "The Notification Details for the Processing Status Assigned is displayed successfully"
ElseReporter.ReportEvent micFail, "Step 2, 3, 4: Verifying the Details f
or the Processing Status ' Assigned ' ", "The Notification Details for the Processing Status Assigned is NOT displayed successfully"
Environment.Value("TestCase_Log") = TrueEnvironment.Value("Execution_Log") = False
End If
Call EnterDetailsinUnderlyingNotification("No Action Needed", "", "")
If Environment.Value("TestCase_Log") = True ThenReporter.ReportEvent micPass, "Step 5, 6, 7: Verifying the Details f
or the Processing Status 'No Action Needed' ", "The Notification Details for theProcessing Status 'No Action Needed' is displayed successfully"
ElseReporter.ReportEvent micFail, "Step 5, 6, 7: Verifying the Details f
or the Processing Status 'No Action Needed' ", "The Notification Details for theProcessing Status 'No Action Needed' is NOT displayed successfully"
Environment.Value("TestCase_Log") = TrueEnvironment.Value("Execution_Log") = False
End If
Call EnterDetailsinUnderlyingNotification("Return to IMMR", DataTable.Va
-
8/7/2019 ADRCA Profile Underlying Notification Old
9/57
lue("FromDate","UnderlyingNotification"),DataTable.Value("ToDate","UnderlyingNotification"))
If Environment.Value("TestCase_Log") = True ThenReporter.ReportEvent micPass, "Step 8, 9, 10: Verifying the Details
for the Processing Status 'Return to IMMR' ", "The Notification Details for theProcessing Status 'Return to IMMR' is displayed successfully"
ElseReporter.ReportEvent micFail, "Step 8, 9, 10: Verifying the Details
for the Processing Status 'Return to IMMR' ", "The Notification Details for theProcessing Status 'Return to IMMR' is NOT displayed successfully"
Environment.Value("TestCase_Log") = TrueEnvironment.Value("Execution_Log") = False
End If
Call EnterDetailsinUnderlyingNotification("Unassigned", DataTable.Value("FromDate", "UnderlyingNotification"), DataTable.Value("ToDate", "UnderlyingNotification"))
If Environment.Value("TestCase_Log") = True ThenReporter.ReportEvent micPass, "Step 11,12: Verifying the Details forthe Processing Status 'Unassigned' ", "The Notification Details for the Processing Status 'Unassigned' is displayed successfully"
ElseReporter.ReportEvent micFail, "Step 11, 12: Verifying the Details fo
r the Processing Status 'Unassigned' ", "The Notification Details for the Processing Status 'Unassigned' is NOT displayed successfully"
Environment.ValEnvironment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions", "Profile - Underlying Notification
Search", "Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Public Function CAProfileUnderlyingNotification_TC6()
' Step 1Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath", "UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification Search").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"
ElseReporter.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"
Environment.Value("Execution_Log") = FalseEnd If
-
8/7/2019 ADRCA Profile Underlying Notification Old
10/57
' Step 2Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "Clear")
strReceivedDate1 = get_WebEdit_Value("CorporateActions", "Profile - Underlying Notification Search", "ReceivedDate")
strReceivedDate2 = get_WebEdit_Value("CorporateActions", "Profile - Unde
rlying Notification Search", "ReceivedEndDate")
If strReceivedDate1 = "" And strRececivedDate2 = "" ThenReporter.ReportEvent micPass, "Step 2: Verifying if the Values in th
e Date is Cleared or NOT", "The Values are Cleared after clicking on Clear button"
ElseReporter.ReportEvent micFail, "Step 2: Verifying if the Values in th
e Date is Cleared or NOT", "The Values are NOT Cleared after clicking on Clear button"
Environment.Value("Execution_Log") = FalseEnd If
' Step 3Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "ReceivedDate")Browser("CorporateActions").Page("Profile - Underlying Notification Sear
ch").Frame("PopCalFrame").WebElement("Today").ClickstrReceivedDate = get_WebEdit_Value("CorporateActions", "Profile - Under
lying Notification Search", "ReceivedDate")strConvertedDate = DateValue(strReceivedDate)If strConvertedDate = Date Then
Reporter.ReportEvent micPass, "Step 3: Verifying if the Current Dateis Displayed in the Received Date Field or Not", "The Current Date is Displayedin the Received Date Field"
ElseReporter.ReportEvent micFail, "Step 3: Verifying if the Current Date
is Displayed in the Received Date Field or Not", "The Current Date is NOT Displayed in the Received Date Field"
Environment.Value("Execution_Log") = FalseEnd If
' Step 4Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "ReceivedDate")Browser("CorporateActions").Page("Profile - Underlying Notification Sear
ch").Frame("PopCalFrame").Image("Clear").ClickstrReceivedDate = get_WebEdit_Value("CorporateActions", "Profile - Under
lying Notification Search", "ReceivedDate")If strReceivedDate = "" Then
Reporter.ReportEvent micPass, "Step 4: Verifying if the Date is Cleared in the Received Date Field", "The Date is Cleared in the Received Date Fieldwhen Clicked on the Clear Image in the Calender"
ElseReporter.ReportEvent micFail, "Step 4: Verifying if the Date is Clea
red in the Received Date Field", "The Date is NOT Cleared in the Received Date Field when Clicked on the Clear Image in the Calender"
Environment.Value("Execution_Log") = FalseEnd If
'Step 5Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "ReceivedEndDate")
-
8/7/2019 ADRCA Profile Underlying Notification Old
11/57
Browser("CorporateActions").Page("Profile - Underlying Notification Search").Frame("PopCalFrame").WebElement("Today").Click
strReceivedDate = get_WebEdit_Value("CorporateActions", "Profile - Underlying Notification Search", "ReceivedEndDate")
strConvertedDate = DateValue(strReceivedDate)If strConvertedDate = Date Then
Reporter.ReportEvent micPass, "Step 5: Verifying if the Current Date
is Displayed in the Received Date Field or Not", "The Current Date is Displayedin the Received Date Field"
ElseReporter.ReportEvent micFail, "Step 5: Verifying if the Current Date
is Displayed in the Received Date Field or Not", "The Current Date is NOT Displayed in the Received Date Field"
Environment.Value("Execution_Log") = FalseEnd If
' Step 6Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "ReceivedEndDate")
Browser("CorporateActions").Page("Profile - Underlying Notification Search").Frame("PopCalFrame").Image("Clear").ClickstrReceivedDate = get_WebEdit_Value("CorporateActions", "Profile - Under
lying Notification Search", "ReceivedEndDate")If strReceivedDate = "" Then
Reporter.ReportEvent micPass, "Step 6: Verifying if the Date is Cleared in the Received Date Field", "The Date is Cleared in the Received Date Fieldwhen Clicked on the Clear Image in the Calender"
ElseReporter.ReportEvent micFail, "Step 6: Verifying if the Date is Clea
red in the Received Date Field", "The Date is NOT Cleared in the Received Date Field when Clicked on the Clear Image in the Calender"
Environment.Value("Execution_Log") = False
End If
' Step 7Call 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 - Underlying Notification Search","UnderlyingNotification","Received Date",strFromDate,strToDate)
If Environment.Value("TestCase_Log") = True ThenReporter.ReportEvent micPass,"Step 7: Verifying if the R
esults are Displayed within the Date Range","The Results are Displayed in the Date Range " & strFromDate & " - " & strToDate
ElseReporter.ReportEvent micFail,"Step 7: Verifying if the R
esults are Displayed within the Date Range","The Results are NOT Displayed in th
-
8/7/2019 ADRCA Profile Underlying Notification Old
12/57
e Date Range " & strFromDate & " - " & strToDateEnvironment.Value("TestCase_Log") = TrueEnvironment.Value("Execution_Log") = False
End IfCall select_Menu("CorporateActions", "Profile - Underlying Notif
ication Search", "Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Public Function CAProfileUnderlyingNotification_TC7()
' Step 1Call 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) ThenReporter.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"
ElseReporter.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"
Environment.Value("Execution_Log") = FalseEnd If
' Step 2strAssignedUserValue = Browser("CorporateActions").Page("Profile - Under
lying Notification Search").WebList("AssignedtoUserGroups").GetROProperty("all items")
If InStr(1, UCase(strAssignedUserValue), UCase(DataTable.Value("AllItemsofVariousField", "UnderlyingNotification"))) 0 Then
Reporter.ReportEvent micPass, "Step 2: Verifying if all the Items are Present in the Field 'Assigned to User Group'", "All the Items namely " & strAssignedUserValue
ElseReporter.ReportEvent micFail, "Step 2: Verifying if all the Items ar
e Present in the Field 'Assigned to User Group'", "All the Items namely " & strAssignedUserValue & " are NOT Present in the Field ' Assigned to User Groups ' "
Environment.Value("Execution_Log") = FalseEnd If
' Step 3strValue = "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 of Assigned to User Group", "The Default Value of the Field 'Assigned to User Groups' is' " & strAssigedValue '
ElseReporter.ReportEvent micFail, "Step 3: Verifying the Default Value o
f Assigned to User Group", "The Default Value of the Field 'Assigned to User Gro
-
8/7/2019 ADRCA Profile Underlying Notification Old
13/57
ups' is NOT ' " & strAssigedValue 'Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions", "Profile - Underlying NotificationSearch", "Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC8()
' Step 1Call 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) ThenReporter.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"
ElseReporter.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"
Environment.Value("Execution_Log") = FalseEnd If
strAssignedValues = "Corporate Actions and Unsponsored;Dividends;Mergers and Acquisitions & HOLDRs;Proxy;Relationship Management"
strAssignedValue = Split(strAssignedValues,";",-1,1)For intValCounter = 0 to UBound(strAssignedValue)
intCount = intValCounter + 2strSelectValue = strAssignedValue(intValCounter)Call click_Image("CorporateActions","Profile - Underlyin
g Notification Search","Search")InitialRowCount = Browser("CorporateActions").Page("Prof
ile - Underlying Notification Search").WebTable("UnderlyingNotification").RowCount
Call Select_Combo_Value("CorporateActions","Profile - Underlying Notification Search","AssignedtoUserGroups",strSelectValue)
Call click_Image("CorporateActions","Profile - Underlying Notification Search","Search")
FinalRowCount = Browser("CorporateActions").Page("Profile - Underlying Notification Search").WebTable("UnderlyingNotification").RowCount
If FinalRowCount
-
8/7/2019 ADRCA Profile Underlying Notification Old
14/57
ording to the Search Criteria 'Assigned to User Groups: " & strSelectValueEnvironment.Value("Execution_Log") = False
End If
If intValCounter = UBound(strAssignedValue) ThenCall select_Menu("CorporateActions","Profile - U
nderlying Notification Search","Home;DR Home")
ElseCall select_Menu("CorporateActions","Profile - U
nderlying Notification Search","Home;DR Home")Wait 2Call click_WebElement("CorporateActions","Deposi
tary Receipt Division's","CorporateActions")Wait 2Call select_Menu("CorporateActions", "CorporateA
ctions", DataTable.Value("MenuPath", "UnderlyingNotification"))End If
Next
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC9()
' Step 1Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value("MenuPath", "UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification Search").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"
ElseReporter.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"
Environment.Value("Execution_Log") = FalseEnd If
' Step 2strSourceAllValue = Browser("CorporateActions").Page("Profile - Underlyi
ng Notification Search").WebList("Source").GetROProperty("all items")If InStr(1, strSourceAllValue, DataTable.Value("AllItemsofVariousField",
"UnderlyingNotification")) 0 ThenReporter.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' "
ElseReporter.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' "
Environment.Value("Execution_Log") = False
-
8/7/2019 ADRCA Profile Underlying Notification Old
15/57
End If
' Step 3strValue = "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 of Source Field", "The Default Value of the Field 'Source' is' " & strSourceValue'
ElseReporter.ReportEvent micFail, "Step 3: Verifying the Default Value o
f Source Field", "The Default Value of the Field 'Source' is NOT ' " & strSourceValue '
Environment.Value("Execution_Log") = FalseEnd If
Call select_Menu("CorporateActions", "Profile - Underlying Notification
Search", "Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC10()
' Step 1Call 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) ThenReporter.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"
ElseReporter.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"
Environment.Value("Execution_Log") = FalseEnd If
' Step 4,5,6,7strSelectValue = "Fax"strException = Split(DataTable.Value("Exception", "UnderlyingNotificatio
n"), ";", -1, 1)For intValCount = 0 To UBound(strException)
Call Select_Combo_Value("CorporateActions", "Profile - Underlying Notification Search", "Source", strSelectValue)
Call Select_Combo_Value("CorporateActions", "Profile - Underlying Notification Search", "Exception", strException(intValCount))
Call click_Image("CorporateActions", "Profile - Underlying Notification Search","Search")
Wait (5)
Call chkResultinTable("CorporateActions", "Profile - Underlying Notification Search","UnderlyingNotification", "Source", strSelectValue)
If Environment.Value("TestCase_Log") = True Then
-
8/7/2019 ADRCA Profile Underlying Notification Old
16/57
Reporter.ReportEvent micPass, "Verifying if the Results are displayed with Source as " & strSelectValue, "The Results are displayed as per the Search Criteria: 'Source " & strSelectValue '
ElseReporter.ReportEvent micFail, "Verifying if the Results are disp
layed with Source as " & strSelectValue, "The Results are NOT displayed as per the Search Criteria: 'Source " & strSelectValue '
Environment.Value("TestCase_Log") = TrueEnvironment.Value("Execution_Log") = False
End IfintRowCounts = Browser("CorporateActions").Page("Profile - Underlyin
g Notification Search").WebTable("UnderlyingNotification").RowCountIf intRowCounts > 2 Then
Call SelectElementValueinTable("CorporateActions", "Profile - Underlying Notification Search", "UnderlyingNotification", "Received Date")
Wait (5)If Browser("CorporateActions").Page("Underlying Notification").E
xist(5) ThenIf Browser("CorporateActions").Dialog("F
ile Download").Exist(5) Then Browser("CorporateActions").Dialog("File Download").WinButton("Cancel").Click
End IfstrSourceValue = get_WebEdit_Value("CorporateActions", "Unde
rlying Notification", "Source")If UCase(Trim(strSourceValue)) = UCase(Trim(strSelectValue))
ThenReporter.ReportEvent micPass, "Verifying the Value displ
ayed in the ' Source ' Field", "The Value displayed in the 'Source' Field is " &strSourceValue
ElseReporter.ReportEvent micFail, "Verifying the Value displ
ayed in the ' Source ' Field", "The " & strSourceValue & " is Not the Value displayed in the 'Source' Field "
Environment.Value("TestCase_Log") = FalseEnvironment.Value("Execution_Log") = False
End IfCall select_Menu("CorporateActions", "Underlying Notificatio
n", DataTable.Value("MenuPath", "UnderlyingNotification"))Else
Reporter.ReportEvent micFail, "Verifying if the Page 'Underlying Notification' is displayed or NOT", "The Page 'Underlying Notification' isNot displayed"
Environment.Value("Execution_Log") = FalseEnvironment.Value("TestCase_Log") = False
End IfElse
Reporter.ReportEvent micFail, "Verifying the Search Result", "NoResults are displayed for the Search Criteria :'Source - " & strSelectValue '
Environment.Value("Execution_Log") = FalseEnvironment.Value("TestCase_Log") = False
End IfNextIf Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass, "Step 4 to 7 : Verifying if the Results are displayed with Search Criteria: Source - " & strSelectValue & " and Exception Value as Yes and No", "The Results are displayed with Search Criteria: Sourc
e - " & strSelectValue & " and Exception Value as Yes and No"Else
Reporter.ReportEvent micFail, "Step 4 to 7 : Verifying if the Result
-
8/7/2019 ADRCA Profile Underlying Notification Old
17/57
s are displayed with Search Criteria: Source - " & strSelectValue & " and Exception Value as Yes and No", "The Results are displayed with Search Criteria: Source - " & strSelectValue & " and Exception Value as Yes and No"
Environment.Value("TestCase_Log") = TrueEnvironment.Value("Execution_Log") = False
End If
' Step 2,3,8 to 17strSelectValues = 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 ThenReporter.ReportEvent micPass, "Verifying if the Results are displayed with Source as " & strSelectValue, "The Results are displayed as per the Search Criteria: 'Source " & strSelectValue '
ElseReporter.ReportEvent micFail, "Verifying if the Results are disp
layed with Source as " & strSelectValue, "The Results are NOT displayed as per the Search Criteria: 'Source " & strSelectValue '
Environment.Value("TestCase_Log") = TrueEnvironment.Value("Execution_Log") = False
End IfintRowCounts = Browser("CorporateActions").Page("Profile - Underlyin
g Notification Search").WebTable("UnderlyingNotification").RowCount
If intRowCounts > 2 ThenCall SelectElementValueinTable("CorporateActions", "Profile - Un
derlying Notification Search", "UnderlyingNotification", "Received Date")Wait (10)If Browser("CorporateActions").Page("Underlying Notification").E
xist(2) ThenIf Browser("CorporateActions").Dialog("F
ile Download").Exist(5) ThenBrowser("CorporateActions").Dial
og("File Download").WinButton("Cancel").ClickEnd If
strSourceValue = get_WebEdit_Value("CorporateActions", "Underlying Notification", "Source")
If UCase(Trim(strSourceValue)) = UCase(Trim(strSelectValue))Then
Reporter.ReportEvent micPass, "Verifying the Value displayed in the ' Source ' Field", "The Value displayed in the 'Source' Field is " &strSourceValue
ElseReporter.ReportEvent micFail, "Verifying the Value displ
ayed in the ' Source ' Field", "The " & strSourceValue & " is Not the Value displayed in the 'Source' Field "
Environment.Value("TestCase_Log") = FalseEnvironment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions", "Underlying Notification", DataTable.Value("MenuPath", "UnderlyingNotification"))
Else
-
8/7/2019 ADRCA Profile Underlying Notification Old
18/57
Reporter.ReportEvent micFail, "Verifying if the Page 'Underlying Notification' is displayed or NOT", "The Page 'Underlying Notification' isNot displayed"
Environment.Value("Execution_Log") = FalseEnvironment.Value("TestCase_Log") = False
End IfElse
Reporter.ReportEvent micFail, "Verifying the Search Result", "NoResults are displayed for the Search Criteria :'Source - " & strSelectValue '
Environment.Value("Execution_Log") = FalseEnvironment.Value("TestCase_Log") = False
End IfNext
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass, "Step 2,3,8 to 17 : Verifying if the Results are displayed when other items in the 'Source' Field are Selected", "TheResults are displayed with other items in the 'Source' Field"
Else
Reporter.ReportEvent micFail, "Step 2,3,8 to 17 : Verifying if the Results are displayed when other items in the 'Source' Field are Selected", "TheResults are NOT displayed with other items in the 'Source' Field"
Environment.Value("TestCase_Log") = TrueEnvironment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Underlying Notification").Exist(2)Then
Call select_Menu("CorporateActions", "Underlying Notification", "Home;DR Home")
ElseIf Browser("CorporateActions").Page("Profile - Underlying Notification Search").Exist(2) Then
Call select_Menu("CorporateActions", "Profile - Underlying Notification Search", "Home;DR Home")
End IfEnd Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC11()
' Step 1Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath", "UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification Search").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"
ElseReporter.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"
Environment.Value("Execution_Log") = False
-
8/7/2019 ADRCA Profile Underlying Notification Old
19/57
End If
' Step 2strExceptionAllValue = 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 are Present in the Field 'Exception'", "All the Items namely " & strExecptionAllValue & " is Present in the Field 'Exception' "
ElseReporter.ReportEvent micFail, "Step 2: Verifying if all the Items ar
e Present in the Field 'Exception'", "All the Items namely " & strExecptionAllValue & " are NOT Present in the Field 'Exception' "
Environment.Value("Execution_Log") = FalseEnd If
' Step 3strValue = "All"
strExceptionValue = get_WebList_Value("CorporateActions", "Profile - Underlying Notification Search", "Exception")If InStr(1, strExceptionValue, strValue) 0 Then
Reporter.ReportEvent micPass, "Step 3: Verifying the Default Value of Exception Field", "The Default Value of the Field 'Exception' is' " & strExceptionValue '
ElseReporter.ReportEvent micFail, "Step 3: Verifying the Default Value o
f Exception Field", "The Default Value of the Field 'Exception' is NOT ' " & strExceptionValue '
Environment.Value("Execution_Log") = FalseEnd If
Call select_Menu("CorporateActions", "Profile - Underlying NotificationSearch", "Home;DR Home")
End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC12()
' Step 1Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath", "UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification Search").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"
ElseReporter.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"
Environment.Value("Execution_Log") = False
-
8/7/2019 ADRCA Profile Underlying Notification Old
20/57
End If
' Step 2Call 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 the Frame", "The Required Fields are Present in the Frame"
ElseReporter.ReportEvent micFail, "Step 2: Verifying the Fields inside t
he Frame", "The Required Fields are NOT present in the Frame"Environment.Value("TestCase_Log") = TrueEnvironment.Value("Execution_Log") = False
End If
' Step 3
Browser("CorporateActions").Page("Profile - Underlying Notification Search").Frame("lookupFrame").WebEdit("ISIN").Set DataTable.Value("ISIN", "UnderlyingNotification")
Call operation_on_FrameObjects_WithName("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame", "Image", "Go", "")
Call ReportLoadWaitinFrame("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame", "ISIN", "ISIN")
Call chkResultinFrame("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame", "ISIN", "ISIN", DataTable.Value("ISIN", "UnderlyingNotification"))
If Environment.Value("TestCase_Log") = True ThenReporter.ReportEvent micPass, "Step 3: Verifying the ISIN Values in
the Table", "The Value in the ISIN Column is " & DataTable.Value("ISIN", "UnderlyingNotification")
ElseReporter.ReportEvent micFail, "Step 3: Verifying the ISIN Values in
the Table", "The Value in the ISIN Column is NOT displayed as " & DataTable.Value("ISIN", "UnderlyingNotification")
Environment.Value("TestCase_Log") = TrueEnvironment.Value("Execution_Log") = False
End If
' Step 4strApp = 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 ThenReporter.ReportEvent micPass, "Step 4: Verifying if the ISIN and Und
erlying Security Name values are filled or NOT", "The Value of ISIN is " & strISIN & " and Underlying Security Name is " & strUndSecName
ElseReporter.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"Environment.Value("Execution_Log") = False
End If
-
8/7/2019 ADRCA Profile Underlying Notification Old
21/57
' Step 5Call 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 displayed with ISIN Value = " & DataTable.Value("ISIN", "UnderlyingNotification")& "or NOT ", "The Results are Displayed with Search Criteria as : " & DataTable.Value("ISIN", "UnderlyingNotification")
ElseReporter.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.Value("ISIN", "UnderlyingNotification")
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = FalseEnd If
intRowCounts = Browser("CorporateActions").Page("Profile - Underlying Notification Search").WebTable("UnderlyingNotification").RowCount
If intRowCounts > 2 ThenCall SelectElementValueinTable("CorporateActions", "Profile - Un
derlying Notification Search", "UnderlyingNotification", "Received Date")Wait (10)If Browser("CorporateActions").Page("Underlying Notification").E
xist(5) ThenIf Browser("CorporateActions").Dialog("F
ile Download").Exist(5) Then
Browser("CorporateActions").Dialog("File Download").WinButton("Cancel").Click
End IfstrISINValue = get_WebEdit_Value("CorporateActions", "Underl
ying Notification", "ISIN")If UCase(Trim(strISINValue)) = UCase(Trim(DataTable.Value("I
SIN", "UnderlyingNotification"))) ThenReporter.ReportEvent micPass, "Step 6: Verifying the Val
ue displayed in the ' ISIN ' Field", "The Value displayed in the 'ISIN' Field is" & strISINValue
ElseReporter.ReportEvent micFail, "Step 6: Verifying the Val
ue displayed in the ' ISIN ' Field", "The " & strISINValue & " is Not the Valuedisplayed in the 'ISIN' Field "
Environment.Value("TestCase_Log") = FalseEnvironment.Value("Execution_Log") = False
End IfCall 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 Notification' is Not displayed"
Environment.Value("Execution_Log") = FalseEnvironment.Value("TestCase_Log") = False
End IfElse
Repoter.ReportEvent micFail, "Step 5: Verifying the Search Resul
-
8/7/2019 ADRCA Profile Underlying Notification Old
22/57
t", "No Results are displayed for the Search Criteria :'ISIN - " & strSelectValue '
Environment.Value("Execution_Log") = FalseEnvironment.Value("TestCase_Log") = False
End If
Call select_Menu("CorporateActions", "Profile - Underlying Notification
Search", "Home;DR Home")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 Search").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is displayed successfully"
ElseReporter.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
End If
' Step 2Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "UnderlyingSecurityName")Call pageCheck_Frame("CorporateActions", "Profile - Underlying Notificat
ion Search", "lookupFrame", "ISIN;SEDOL;UnderlyingSecurityName", "Go;Clear", "ISIN;SEDOL;Und.SecurityName;Type")
If Environment.Value("TestCase_Log") = True ThenReporter.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 the Frame", "The Required Fields are NOT present in the Frame"
Environment.Value("TestCase_Log") = TrueEnvironment.Value("Execution_Log") = False
End If
' Step 3Browser("CorporateActions").Page("Profile - Underlying Notification Sear
ch").Frame("lookupFrame").WebEdit("UnderlyingSecurityName").Set DataTable.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")
-
8/7/2019 ADRCA Profile Underlying Notification Old
23/57
Call chkResultinFrame("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame", "ISIN","Und. Security Name",DataTable.Value("UnderlyingSecurity", "UnderlyingNotification"))
If Environment.Value("TestCase_Log") = True ThenReporter.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 Security Name in the Table", "The Value in the Underlying Security Name Column is NOT " & DataTable.Value("UnderlyingSecurity", "UnderlyingNotification")
Environment.Value("TestCase_Log") = TrueEnvironment.Value("Execution_Log") = False
End If
' Step 4strApp = SelectValueinFrame("CorporateActions", "Profile - Underlying No
tification Search", "lookupFrame","ISIN")
strISINValue = get_WebEdit_Value("CorporateActions", "Profile - Underlying 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 ThenReporter.ReportEvent micPass, "Step 4: Verifying if the ISIN and Und
erlying Security Name values are filled or NOT", "The Value of ISIN is " & strISIN & " and Underlying Security Name is " & strUndSecName
ElseReporter.ReportEvent micFail, "Step 4: Verifying if the ISIN and Und
erlying Security Name values are filled or NOT", "The Values are not filled in ISIN or Underlying Security Name Field"
Environment.Value("Execution_Log") = FalseEnd If
' Step 5Call 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 ThenReporter.ReportEvent micPass, "Step 5:Verifying if the Result are di
splayed with Underlying Security Name = " & DataTable.Value("UnderlyingSecurity", "UnderlyingNotification") & "or NOT ", "The Results are Displayed with SearchCriteria as Underlying Security Name: " & DataTable.Value("UnderlyingSecurity","UnderlyingNotification")
ElseReporter.ReportEvent micFail, "Step 5:Verifying if the Result are di
splayed with Underlying Security Name = " & DataTable.Value("UnderlyingSecurity", "UnderlyingNotification") & "or NOT ", "The Results are NOT Displayed with Underlying Security Name = " & DataTable.Value("UnderlyingSecurity", "UnderlyingNotification")
Environment.Value("TestCase_Log") = TrueEnvironment.Value("Execution_Log") = False
End If
intRowCounts = Browser("CorporateActions").Page("Profile - Underlying No
tification Search").WebTable("UnderlyingNotification").RowCount
-
8/7/2019 ADRCA Profile Underlying Notification Old
24/57
If intRowCounts > 2 ThenCall SelectElementValueinTable("CorporateActions", "Profile - Un
derlying Notification Search", "UnderlyingNotification", "Received Date")Wait (10)If Browser("CorporateActions").Page("Underlying Notification").E
xist(2) ThenIf Browser("CorporateActions").Dialog("F
ile Download").Exist(5) ThenBrowser("CorporateActions").Dial
og("File Download").WinButton("Cancel").ClickEnd If
strUnderlyingSecurityNameValue = get_WebEdit_Value("CorporateActions", "Underlying Notification", "UnderlyingSecurityName")
If UCase(Trim(strUnderlyingSecurityNameValue)) = UCase(Trim(DataTable.Value("UnderlyingSecurity", "UnderlyingNotification"))) Then
Reporter.ReportEvent micPass,"Step 6: Verifying the Value displayed in the ' UnderlyingSecurityName ' Field", "The " & strUnderlyingSecurityNameValue & " is the Value displayed in the 'UnderlyingSecurityName' Field "
Else
Reporter.ReportEvent micFail, "Step 6: Verifying the Value displayed in the ' UnderlyingSecurityName ' Field", "The " & strUnderlyingSecurityNameValue & " is Not the Value displayed in the 'UnderlyingSecurityName' Field "
Environment.Value("TestCase_Log") = FalseEnvironment.Value("Execution_Log") = False
End IfCall 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 Notification' is Not displayed"
Environment.Value("Execution_Log") = FalseEnvironment.Value("TestCase_Log") = False
End IfElse
Repoter.ReportEvent micFail, "Step 5: Verifying the Search Result", "No Results are displayed for the Search Criteria :'UnderlyingSecurityName -" & strSelectValue '
Environment.Value("Execution_Log") = FalseEnvironment.Value("TestCase_Log") = False
End If'Next
Call select_Menu("CorporateActions", "Profile - Underlying Notification
Search", "Home;DR Home")End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC14()
' Step 1Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
-
8/7/2019 ADRCA Profile Underlying Notification Old
25/57
Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value("MenuPath", "UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification Search").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile 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 ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is NOT displayed successfully"
Environment.Value("Execution_Log") = FalseEnd If
' Step 2Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "CorporateActionType")Call pageCheck_Frame("CorporateActions", "Profile - Underlying Notificat
ion Search", "lookupFrame", "CorporateActionType", "Go;Clear", "CorporateActionType")If Environment.Value("TestCase_Log") = True Then
blnFlag = "True"Else
blnFlag = "False"Environment.Value("TestCase_Log") = True
End If
strDataValue = ""intDataRowCount = DataTable.GetSheet("ReportHeader").GetRowCountFor intCounter = 1 to intDataRowCount
DataTable.GetSheet("ReportHeader").SetCurrentRow(intCoun
ter)strDataValues = Trim(DataTable.Value("UploadNotification
","ReportHeader"))strDataValue = strDataValue & strDataValues & ";"
NextstrDataValue = Replace(strDataValue," ","")intRowCount = Browser("CorporateActions").Page("Profile - Underl
ying Notification Search").Frame("lookupFrame").WebTable("ISIN").RowCountstrAppValue = ""blnTestFlag = "True"For intRowCounter = 2 to intRowCount
strAppValue = Browser("CorporateActions").Page("Profile- Underlying Notification Search").Frame("lookupFrame").WebTable("ISIN").GetCellData(intRowCounter,1)
strAppValue = Replace(strAppValue," ","")If Instr(1,strDataValue,strAppValue) = 0 Then
blnTestFlag = "False"Exit For
End IfNext
If blnTestFlag = "True" AND blnFlag = "True" ThenReporter.ReportEvent micPass,"Step 2: Verifying if the r
equired Items are Present in the Table and the Required Fields are Present in the 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
-
8/7/2019 ADRCA Profile Underlying Notification Old
26/57
equired Items are Present in the Table","The Required Items are NOT Present in the Table or the Required Fields are Present in the Frame"
Environment.Value("Execution_Log") = FalseEnd If
' Step 3Browser("CorporateActions").Page("Profile - Underlying Notification Sear
ch").Frame("lookupFrame").WebEdit("CorporateActionType").Set DataTable.Value("SelectCAType", "UnderlyingNotification")
Call operation_on_FrameObjects_WithName("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame", "Image", "Go", "")
Call ReportLoadWaitinFrame("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame", "ISIN", "Corporate Action Type")
Call chkResultinFrame("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame","ISIN","Corporate Action Type", DataTable.Value("SelectCAType", "UnderlyingNotification"))
If Environment.Value("TestCase_Log") = True ThenReporter.ReportEvent micPass, "Step 3: Verifying if the Results are
displayed or NOT", "The Value in the Corporate Action Type Column is " & DataTable.Value("SelectCAType", "UnderlyingNotification")Else
Reporter.ReportEvent micFail, "Step 3: Verifying if the Results aredisplayed or NOT", "The Value in the Corporate Action Type Column is NOT " & DataTable.Value("SelectCAType", "UnderlyingNotification")
Environment.Value("TestCase_Log") = TrueEnvironment.Value("Execution_Log") = False
End If
Browser("CorporateActions").Page("Profile - Underlying Notification Search").WebElement("html tag:=TD", "innertext:=" & DataTable.Value("CorporateActionType", "UnderlyingNotification")).Click
' Step 4strCATypeValue = get_WebEdit_Value("CorporateActions", "Profile - Underl
ying Notification Search", "CorporateActionType")If UCase(strCATypeValue) = UCase(DataTable.Value("CorporateActionType",
"UnderlyingNotification")) ThenReporter.ReportEvent micPass, "Step 4: Verifying the Corporate Actio
n Type Value", "The Corporate Action Type Value is " & strCATypeValueElse
Reporter.ReportEvent micFail, "Step 4: Verifying the Corporate Action Type Value", "The Corporate Action Type Value is NOT " & strCATypeValue
Environment.Value("Execution_Log") = FalseEnd If
' Step 5Call 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 ThenReporter.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", "UnderlyingNotification")
Else
-
8/7/2019 ADRCA Profile Underlying Notification Old
27/57
Reporter.ReportEvent micFail, "Step 5:Verifying if the Result are displayed with Corporate Action Type value as = " & DataTable.Value("SelectCAType", "UnderlyingNotification") & "or NOT ", "The Results are NOT Displayed with Corporate Action Type = " & DataTable.Value("SelectCAType", "UnderlyingNotification")
Environment.Value("TestCase_Log") = TrueEnvironment.Value("Execution_Log") = False
End If
' Step 6, 7intRowCounts = Browser("CorporateActions").Page("Profile - Underlying No
tification Search").WebTable("UnderlyingNotification").RowCountIf intRowCounts > 2 Then
Call SelectElementValueinTable("CorporateActions", "Profile - Underlying Notification Search", "UnderlyingNotification", "Received Date")
Wait (10)If Browser("CorporateActions").Page("Underlying Notification").E
xist(2) ThenIf Browser("CorporateActions").Dialog("F
ile Download").Exist(5) Then Browser("CorporateActions").Dialog("File Download").WinButton("Cancel").Click
End IfstrCorporateActionTypeValue = get_WebEdit_Value("CorporateAc
tions", "Underlying Notification", "CorporateActionType")If UCase(Trim(strCorporateActionTypeValue)) = UCase(Trim(Dat
aTable.Value("CorporateActionType", "UnderlyingNotification"))) ThenReporter.ReportEvent micPass, "Step 6: Verifying the Val
ue displayed in the ' CorporateActionType ' Field", "The Value displayed in the'CorporateActionType' Field is " & strCorporateActionTypeValue
ElseReporter.ReportEvent micFail, "Step 6: Verifying the Val
ue displayed in the ' CorporateActionType ' Field", "The " & strCorporateActionTypeValue & " is Not the Value displayed in the 'CorporateActionType' Field "
Environment.Value("Execution_Log") = FalseEnd IfCall click_WebElement("CorporateActions", "Underlying Notifi
cation", "UnderlyingNotificationSearch")If Browser("CorporateActions").Dialog("M
icrosoft Internet Explorer").Exist(5) ThenBrowser("CorporateActions").Dial
og("Microsoft Internet Explorer").WinButton("Cancel").ClickEnd If
If Browser("CorporateActions").Page("Profile - Underlying Notification Search").Exist(5) Then
Reporter.ReportEvent micPass, "Step 7: Verifying if thePage 'Profile - Underlying Notification Search ' is displayed or NOT", "The Page'Profile - Underlying Notification Search ' is displayed"
ElseReporter.ReportEvent micFail, "Step 7: Verifying if the
Page 'Profile - Underlying Notification Search ' is displayed or NOT", "The Page'Profile - Underlying Notification Search ' is NOT displayed or NOT"
Environment.Value("Execution_Log") = FalseEnd If
ElseReporter.ReportEvent micFail, "Step 6: Verifying if the Page
'Underlying Notification' is displayed or NOT", "The Page 'Underlying Notificat
ion' is Not displayed"Environment.Value("Execution_Log") = FalseEnvironment.Value("TestCase_Log") = False
-
8/7/2019 ADRCA Profile Underlying Notification Old
28/57
End IfElse
Repoter.ReportEvent micFail, "Step 5: Verifying the Search Result", "No Results are displayed for the Search Criteria :'CorporateActionType - "& DataTable.Value("SelectCAType", "UnderlyingNotification")
Environment.Value("Execution_Log") = FalseEnvironment.Value("TestCase_Log") = False
End If
Call select_Menu("CorporateActions", "Profile - Underlying NotificationSearch", "Home;DR Home")End Function
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function CAProfileUnderlyingNotification_TC15()
' Step 1Call click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")Call select_Menu("CorporateActions", "CorporateActions", DataTable.Value
("MenuPath", "UnderlyingNotification"))
If Browser("CorporateActions").Page("Profile - Underlying Notification Search").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile 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 ' Profile Underlying Notification Search ' is Displayed or NOT", "The Page ' Profile Underlying Notification Search ' is NOT displayed successfully"
Environment.Value("Execution_Log") = FalseEnd If
' Step 2Call 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 the Frame", "The Required Fields are present in the Frame"
ElseReporter.ReportEvent micFail, "Step 2: Verifying the Fields inside t
he Frame", "The Required Fields are NOT present in the Frame"Environment.Value("TestCase_Log") = TrueEnvironment.Value("Execution_Log") = False
End If
' Step 3Browser("CorporateActions").Page("Profile - Underlying Notification Sear
ch").Frame("lookupFrame").WebEdit("Custodian").Set DataTable.Value("Custodian","UnderlyingNotification")
Call operation_on_FrameObjects_WithName("CorporateActions", "Profile - Underlying Notification Search", "lookupFrame", "Image", "Go", "")
Call ReportLoadWaitinFrame("CorporateActions", "Profile - Underlying Not
-
8/7/2019 ADRCA Profile Underlying Notification Old
29/57
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 ThenReporter.ReportEvent micPass, "Step 3: Verifying if the Results are
displayed or NOT", "The Value in the Custodian Column is " & DataTable.Value("Custodian", "UnderlyingNotification")
ElseReporter.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") = TrueEnvironment.Value("Execution_Log") = False
End If
' Step 4Call SelectValueinFrame("CorporateActions", "Profile - Underlying Notifi
cation Search", "lookupFrame", "ISIN")strCustodianValue = get_WebEdit_Value("CorporateActions", "Profile - Underlying Notification Search", "Custodian")
If InStr(1, strCustodianValue, DataTable.Value("Custodian", "UnderlyingNotification")) 0 Then
Reporter.ReportEvent micPass, "Step 4: Verifying the Value in the Custodian Field", "The Value in the Custodian Field Contains " & DataTable.Value("Custodian", "UnderlyingNotification")
ElseReporter.ReportEvent micPass, "Step 4: Verifying the Value in the Cu
stodian Field", "The Value in the Custodian Field Contains " & DataTable.Value("Custodian", "UnderlyingNotification")
Environment.Value("Execution_Log") = False
End If
' Step 5Call click_Image("CorporateActions", "Profile - Underlying Notification
Search", "Search")
RowCount = Browser("CorporateActions").Page("Profile - Underlying Notification Search").WebTable("UnderlyingNotification").RowCount
If RowCount > 2 ThenReporter.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 Results are displayed or Not","The Results are NOT Displayed Successfully"
Environment.Value("Execution_Log") = FalseEnd If
Call select_Menu("CorporateActions","Profile - Underlying Notification Search","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++
-
8/7/2019 ADRCA Profile Underlying Notification Old
30/57
Public Function CAProfileUnderlyingNotification_TC16()
Call click_WebElement("CorporateActions","Depositary Receipt Division's","CorporateActions")
Call select_Menu("CorporateActions", "CorporateActions", "PROFILE;UploadNotification")
If Browser("CorporateActions").Page("Profile - Upload Notification").Exist(5) Then
Reporter.ReportEvent micPass, "Step 1: Verifying if the Page ' Profile Upload Notification ' is Displayed or NOT", "The Page ' Profile Upload Notification ' is displayed successfully"
ElseReporter.ReportEvent micFail, "Step 1: Verifying if the Page ' Profi
le Upload Notification ' is Displayed or NOT", "The Page ' Profile Upload Notification ' is NOT displayed successfully"
Environment.Value("Execution_Log") = FalseEnd If
' Step 2Call 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 SaveBrowser("CorporateActions").Page("Profile - Upload Notification"
).WebFile("UploadFile").ClickBrowser("CorporateActions").Dialog("Choose file").WinEdit("File
name:").Set strFilePathBrowser("CorporateActions").Dialog("Choose file").WinButton("Ope
n").Click
' Selecting Underlying SecurityCall click_Image("CorporateActions","Profile - Upload Notificati
on","UnderlyingSecurity")Call operation_on_FrameObjects_WithName("CorporateActions","Prof
ile - Upload Notification","lookupFrame","WebEdit","divNm",DataTable.Value("UnderlyingSecurity","UnderlyingNotification"))
Call operation_on_FrameObjects_WithName("CorporateActions","Profile - Upload Notification","lookupFrame","Image","Go","")
Call SelectValueinFrame("CorporateActions","Profile - Upload Notification","lookupFrame","FrameTable")
' Entering the Corporate Action TypeCall SelectCorporateActionType("CorporateActions","Profile - Upl
oad Notification","CorporateActionType",DataTable.Value("CorporateActionType","UnderlyingNotification"))
strISINValue1 = get_WebEdit_Value("CorporateActions","Profile -Upload Notification","ISIN")
strUSName1 = get_WebEdit_Value("CorporateActions","Profile - Upload Notification","UnderlyingSecurity")
strCAType1 = get_WebEdit_Value("CorporateActions","Profile - Upload Notification","CorporateActionType")
Call Select_Combo_Value("CorporateActions","Profile - Upload Not
ification","Comparison",DataTable.Value("Comparison","UnderlyingNotification"))
' Setting thr Local Record Date
-
8/7/2019 ADRCA Profile Underlying Notification Old
31/57
Call click_image("CorporateActions","Profile - Upload Notification","LocalRecordDate")
'strDate=split(DataTable.Value("LocalRecordDate","UnderlyingNotification"),";",-1,1)
Call SetDate("CorporateActions","Profile - Upload Notification",DataTable.Value("LocalRecordDate","UnderlyingNotification"))
strLocalDate = get_WebEdit_Value("CorporateActions","Profile - U
pload Notification","LocalRecordDate")' Saving the Changes madeCall click_Image("CorporateActions","Profile - Upload Notificati
on","Save")Wait(5)If Browser("CorporateActions").Page("Underlying Upload Notificat
ion").Exist(5) ThenIf Browser("CorporateActions").Dialog("File Download").E
xist(5) ThenBrowser("CorporateActions").Dialog("File Downloa
d").WinButton("Cancel").ClickEnd If
strAppValue = Browser("CorporateActions").Page("Underlying 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: Verifyingif the Document is Uploaded or Not","The Document is Uploaded Successfully"
ElseReporter.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 Notification",DataTable.Value("MenuPath","UnderlyingNotification"))
ElseReporter.ReportEvent micFail,"Step 2: Verifying if the D
ocument is Uploaded or Not","The Page 'Underlying Upload Notification is Not Displayed 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 3If Browser("CorporateActions").Page("Profile - Underlying Notifi
cation Search").Exist(5) ThenReporter.ReportEvent micPass,"Step 3: Verifying if the P
age 'Profile - Underlying Notification Search' is Displayed or NOT","The Page 'Profile - Underlying Notification Search' is Displayed"
ElseReporter.ReportEvent micPass,"Step 3: Verifying if the P
age 'Profile - Underlying Notification Search' is Displayed or NOT","The Page 'Profile - Underlying Notification Search' is Displayed"
Environment.Value("Execution_Log") = FalseEnd If
' Step 4Call Select_Combo_Value("CorporateActions","Profile - Underlying
Notification Search","ProcessingStatus",DataTable.Value("ProcessingStatus","Und
-
8/7/2019 ADRCA Profile Underlying Notification Old
32/57
erlyingNotification"))strValue = get_WebList_Value("CorporateActions","Profile - Under
lying Notification Search","ProcessingStatus")If Trim(strValue) = Trim(DataTable.Value("ProcessingStatus","Und
erlyingNotification")) ThenReporter.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 Value in the Processing Status Field","The Value in the Processing Status Field is NOT " & DataTable.Value("ProcessingStatus","UnderlyingNotification")
Environment.Value("Execution_Log") = FalseEnd If
' Step 5Call click_image("CorporateActions","Profile - Underlying Notifi
cation Search","ReceivedDate")'strDate1=split(DataTable.Value("FromDate","UnderlyingNotificati
on"),";",-1,1) Call SetDate("CorporateActions","Profile - Underlying Notification Search",DataTable.Value("FromDate","UnderlyingNotification"))
Call click_image("CorporateActions","Profile - Underlying Notification Search","ReceivedEndDate")
Browser("CorporateActions").Page("Profile - Underlying Notification Search").Frame("PopCalFrame").WebElement("Today").Click
strReceivedDate = get_WebEdit_Value("CorporateActions","Profile- Underlying Notification Search","ReceivedDate")
strReceivedEndDate = get_WebEdit_Value("CorporateActions","Profile - Underlying Notification Search","ReceivedEndDate")
strDates1 = Replace(DataTable.Value("FromDate","UnderlyingNotification"),";","-")
If DateValue(strDates1) = DateValue(strReceivedDate) AND DateValue(strReceivedEndDate) = DateValue(Date) Then
Reporter.ReportEvent micPass,"Step 5: Verifying the Entered Date","The Date entered in Received Date is " & strReceivedDate & " and theDate Entered in Received End Date is " & strReceivedEndDate
ElseReporter.ReportEvent micPass,"Step 5: Verifying the Ente
red Date","The Date entered in Received Date is NOT " & strReceivedDate & " OR the Date Entered in Received End Date is NOT " & strReceivedEndDate
Environment.Value("Execution_Log") = FalseEnd If
' Step 6Call Select_Combo_Value("CorporateActions","Profile - Underlying
Notification Search","AssignedtoUserGroups",DataTable.Value("AssignedtoUserGroups","UnderlyingNotification"))
strValue = get_WebList_Value("CorporateActions","Profile - Underlying Notification Search","AssignedtoUserGroups")
If Trim(strValue) = Trim(DataTable.Value("AssignedtoUserGroups","UnderlyingNotification")) Then
Reporter.ReportEvent micPass,"Step 6: Verifying the Value in the Assigned to User Groups Field","The Value in the Assigned to User Groups Field is " & DataTable.Value("AssignedtoUserGroups","UnderlyingNotification")
ElseReporter.ReportEvent micFail,"Step 6: Verifying the Valu
e in the Assigned to User Groups Field","The Value in the Assigned to User Group
-
8/7/2019 ADRCA Profile Underlying Notification Old
33/57
s Field is NOT " & DataTable.Value("AssignedtoUserGroups","UnderlyingNotification")
Environment.Value("Execution_Log") = FalseEnd If
' Step 7Call Select_Combo_Value("CorporateActions","Profile - Underlying
Notification Search","Source",DataTable.Value("Source","UnderlyingNotification"))
strValue = get_WebList_Value("CorporateActions","Profile - Underlying Notification Search","Source")
If Trim(strValue) = Trim(DataTable.Value("Source","UnderlyingNotification")) Then
Reporter.ReportEvent micPass,"Step 7: Verifying the Value in the Source Field","The Value in the Source Field is " & DataTable.Value("Source","UnderlyingNotification")
ElseReporter.ReportEvent micFail,"Step 7: Verifying the Valu
e in the Source Field","The Value in the Source Field is NOT " & DataTable.Value
("Source","UnderlyingNotification")Environment.Value("Execution_Log") = FalseEnd If
' Step 8Call SelectCorporateActionType("CorporateActions","Profile - Und
erlying Notification Search","CorporateActionType",DataTable.Value("CorporateActionType","UnderlyingNotification"))
Call click_Image("CorporateActions","Profile - Underlying Notification Search","UnderlyingSecurityName")
Browser("CorporateActions").Page("Profile - Underlying Notification Search").Frame("lookupFrame").WebEdit("UnderlyingSecurityName").Set DataTable.Value("UnderlyingSecurity","UnderlyingNotification")
Call operation_on_FrameObjects_WithName("CorporateActions","Profile - Underlying Notification Search","lookupFrame","Image","Go","")
Call SelectValueinFrame("CorporateActions","Profile - UnderlyingNotification Search","lookupFrame","ISIN")
strISINValue2 = get_WebEdit_Value("CorporateActions","Profile -Underlying Notification Search","ISIN")
strUSName2 = get_WebEdit_Value("CorporateActions","Profile - Underlying Notification Search","UnderlyingSecurityName")
strCAType2 = get_WebEdit_Value("CorporateActions","Profile - Underlying Notification Search","CorporateActionType")
If strISINValue2 = strISINValue1 AND strUSName2 = strUSName1 AND strCAType2 = strCAType1 Then
Reporter.ReportEvent micPass,"Step 8: Verifying the Entered Details","The Entered Details are Same as the Details entered to Upload theDocument"
ElseReporter.ReportEvent micFail,"Step 8: Verifying the Ente
red Details","The Entered Details are NOT Same as the Details entered to Uploadthe Document"
Environment.Value("Execution_Log") = FalseEnd If
' Step 9
Call click_Image("CorporateActions","Profile - Underlying Notification Search","Search")
Call chkResultinTable("CorporateActions","Profile - Underlying N
-
8/7/2019 ADRCA Profile Underlying Notification Old
34/57
otification Search","UnderlyingNotification","Processing Status",DataTable.Value("ProcessingStatus","UnderlyingNotification"))
Call chkResultinTable("CorporateActions","Profile - Underlying Notification Search","UnderlyingNotification","Corporate Action Type",DataTable.Value("CorporateActionType","UnderlyingNotification"))
Call chkResultinTable("CorporateAc