Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
==========================
' Name of the Script : Master File Profile CUSIP
' Scope of the Script : This test script covers 11 te
st cases related to the MF Profile --> CUSIP
' Author : Shyam H D
' Description : Master File Profile CUSIP
' Date and / or Version : 05-11-2008,version 1.0
'===============================================================================
============================
Sub MFProfileCUSIP()
'****Declaration of Environmental Variable
Environment.Value("Execution_Log")=True
Environment.Value("TestCase_Log")=True
'''''''''Test case count
Const TC_COUNT = 11
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 & "CAReportsAgingItemsTC.vbs"
'****Adding MFLogin sheet to the dataTable and Importing the Inp
ut DataTable
DataTable.AddSheet "MFLogin"
DataTable.ImportSheet strDataPath & "Login.xls","MFLogin","MFLog
in"
DataTable.AddSheet "CUSIP"
DataTable.ImportSheet strDataPath & "MasterFileProfile.xls","CUS
IP","CUSIP"
DataTable.AddSheet "ReportHeader"
DataTable.ImportSheet strDataPath & "MasterFileProfile.xls","Rep
ortHeader","ReportHeader"
DataTable.AddSheet "HomePageVerification"
DataTable.ImportSheet strDataPath & "MasterFileProfile.xls","Hom
ePageVerification","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("MasterFile","Login Page",DataTable.Value("URL"
,"MFLogin"))
'****Checking the username, password and login objects in the lo
gin page
'Call pageCheck_WebEdit("MasterFile","Login Page","username;j_pa
ssword","")
'Call pageCheck_WebButton("MasterFile","Login Page","Login","")
'****Entering username and password and login into the masterfil
e application
'Call login("MasterFile","Login Page","User","MFLogin")
Environment.Value("DATATABLE_ROW")=1
DataTable.GetSheet("CUSIP").SetCurrentRow(Environment.Value("DAT
ATABLE_ROW"))
'***************************************** TC Driver Strat *****
**************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"
If DataTable("TestRunFlag","CUSIP")="Y" Then
''If run flag is Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TES
T CASE - '" & DataTable("TestCaseID","CUSIP") & "' ########### ","Execution of T
est Case '" & DataTable("TestCaseDesc","CUSIP") & "' Started"
strFuncName = "MFProfileCUSIP_TC" & intTCCount &
"()" ''Formation of function name
'MsgBox strFuncName
''Call Function
Execute "Call " & strFuncName
If Environment.Value("Execution_Log") = "True"
Then
Call Execution_log("",Datatable.
Value("TestCaseID", "CUSIP"), Datatable.Value("TestCaseDesc", "CUSIP"), "PASS")
Else
Call Execution_log("",Datatable.
Value("TestCaseID", "CUSIP"), Datatable.Value("TestCaseDesc", "CUSIP"), "FAIL")
End If
Reporter.ReportEvent micDone,"######### END OF T
EST CASE - '" & DataTable("TestCaseID","CUSIP") & "###########","The Test Case E
xecution Completed"
End If
strPrevious=Trim(DataTable.Value("TestCaseID","CUSIP"))
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("CUSIP").SetCurrentRow(Environment.Va
lue("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","CUSIP"))
While strPrevious = strNext
Environment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("CUSIP").SetCurrentRow(Enviro
nment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","CUSIP
"))
Wend
Next
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
'***************************************** TC Driver End *******
************************************************
End Sub
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCUSIP_TC2()
' Clicking on the Master File Web Element
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
' Selecting the CUSIP Menu
'Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","
CUSIP"))
Call select_Menu("MasterFile","MasterFile","PROFILE;CUSIP")
If Browser("MasterFile").Page("Profile CUSIP Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 1 to 5: Verifying if the Page
' Profile CUSIP Search ' is displayed or NOT","The Page ' Profile CUSIP Search
' is Displayed successfully"
Else
Reporter.ReportEvent micFail,"Step 1 to 5: Verifying if the Page
' Profile CUSIP Search ' is displayed or NOT","The Page ' Profile CUSIP Search
' is NOT Displayed successfully"
Environment.Value("Execution_Log") = False
End If
Call click_Image("MasterFile","Profile CUSIP Search","New")
'Call chkWebEditMandatoryProperty("MasterFile","CUSIP Profile Orphan","N
ame;BriefName;RatioDRs;RatioUnderlyingShares;DRExchange;EntryReason;CUSIP")
'Call chkWeblistMandatoryProperty("MasterFile","CUSIP Profile Orphan","HomeM
arketCountry;ActiveFlag")
'Call pageCheck_WebEditOR("MasterFile","CUSIP Profile Orphan","DRExchange;En
tryReason;UnderlyingISIN;PricingSEDOL;EffectiveFlag;Type;Price;UnderlyingSEDOL;S
hareBase")
Call chkWebEditMandatoryProperty("MasterFile","CUSIP Profile Orphan","Na
me;BriefName;RatioDRs;RatioUnderlyingShares;CUSIP")
Call chkWeblistMandatoryProperty("MasterFile","CUSIP Profile Orphan","Ho
meMarketCountry;ActiveFlag")
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile Orphan","DRExchange
;EntryReason;UnderlyingISIN;PricingSEDOL;EffectiveFlag;Type;Price;UnderlyingSEDO
L;ShareBase")
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 6 , 7 : Verifying the
Mandatory and Non Mandatory Fields in the Page CUSIP Profile Orphan","The Requi
red Mandatory and Non Mandatory Fields are Present in the Page CUSIP Profile Orp
han"
Else
Reporter.ReportEvent micFail,"Step 6 , 7 : Verifying the
Mandatory and Non Mandatory Fields in the Page CUSIP Profile Orphan","The Requi
red Fields are NOT Present in the Page CUSIP Profile Orphan"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call pageCheck_DefaultValue("MasterFile","CUSIP Profile Orphan","","WebE
dit","INPUT","Yes;Orphan")
Call pageCheck_DefaultValue("MasterFile","CUSIP Profile Orphan","","WebL
ist","SELECT","Yes")
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 8 : Verifying the Def
ault values in the Page CUSIP Profile Orphan","The Field are displayed with the
Required Default Values"
Else
Reporter.ReportEvent micFail,"Step 8 : Verifying the Def
ault values in the Page CUSIP Profile Orphan","The Field are NOT displayed with
the Required Default Values"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
blnEFValue = Browser("MasterFile").Page("CUSIP Profile Orphan").WebEdit(
"EffectiveFlag").GetROProperty("readonly")
blnTypeValue = Browser("MasterFile").Page("CUSIP Profile Orphan").WebEdi
t("Type").GetROProperty("readonly")
If blnEFValue = "1" And blnTypeValue = "1" Then
Reporter.ReportEvent micPass," Step 9: Verifying if the Fields
' Effecive Flag and Type ' are Greyed out or NOT","The Fields ' Effecive Flag an
d Type' are Greyed out"
Else
Reporter.ReportEvent micFail,"Step 9: Verifying if the Fields '
Effecive Flag and Type ' are Greyed out or NOT","The Fields ' Effecive Flag and
Type' are NOT Greyed out"
Environment.Value("Execution_Log") = False
End If
' Create a New CUSIP
Call CreateNewCUSIP("MasterFile","CUSIP Profile Orphan","Save")
' Check for the Flag Next to the Field Modified
Call chkFlagImage("MasterFile","CUSIP Profile Orphan","Detail",DataTable
.Value("ModifiedFields","CUSIP"),"Exist")
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 10: Verifying if the Flag is
Dispalyed next to the Field Modified","A Flag is Dispalyed next to the Field Mod
ified"
Else
Reporter.ReportEvent micFail,"Step 10: Verifying if the Flag is
Dispalyed next to the Field Modified"," Flag is NOT Dispalyed next to the Field
Modified"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call logoutfromApp("MasterFile","CUSIP Profile Orphan")
If Browser("MasterFile").Exist(5) Then
Reporter.ReportEvent micFail,"Step 11: Verifying if the Applicat
ion is LoggedOuted or NOT","The Application is still Open"
Environment.Value("Execution_Log") = False
Else
Reporter.ReportEvent micPass,"Step 11: Verifying if the Applicat
ion is LoggedOuted or NOT","The Application is LoggedOut Successfully"
End If
Call invoke_URL("MasterFile","Login Page",Environment.Value("Application
_URL"))
Call login("MasterFile","Login Page","Approval","MFLogin")
Call ApprovalFunction("MasterFile","CUSIP Profile","Name;CUSIP;Last User
Updated;Last Updated",DataTable.Value("CUSIPName","CUSIP"),DataTable.Value("App
roveComments","CUSIP"),"Approved")
Call logoutfromApp("MasterFile","Approval Queue Item Search")
If Browser("MasterFile").Exist(2) Then
Reporter.ReportEvent micFail," Verifying if the Applicat
ion is LoggedOuted or NOT","The Application is still Open"
Environment.Value("TestCase_Log") = False
Environment.Value("Execution_Log") = False
Else
Reporter.ReportEvent micPass," Verifying if the Applicat
ion is LoggedOuted or NOT","The Application is LoggedOut Successfully"
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 12 to 21 : Verfiying if all t
he Modified Fields are Approved or NOT","All the Modified Fields are Approved"
Else
Reporter.ReportEvent micFail,"Step 12 to 21 : Verfiying if the A
pproval functionality","Any of the steps from 12 to 21 might have Failed"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call invoke_URL("MasterFile","Login Page",Environment.Value("Application_URL
"))
Call login("MasterFile","Login Page","Relationship Management","MFLogin"
)
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","C
USIP"))
blnFlag = Browser("MasterFile").Page("Profile CUSIP Search").Exist(2)
If Environment.Value("TestCase_Log") = True AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 22 : Verifying if the Page '
Profile CUSIP Search' is Dispalyed or NOT","The Page ' Profile CUSIP Search ' is
dispalyed"
Else
Reporter.ReportEvent micFail,"Step 22 : Verifying if the Page '
Profile CUSIP Search' is Dispalyed or NOT","The Page ' Profile CUSIP Search ' is
NOT dispalyed"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call set_WebEdit_Value("MasterFile","Profile CUSIP Search","CUSIPName",D
ataTable.Value("CUSIPName","CUSIP"))
Call click_Image("MasterFile","Profile CUSIP Search","Search")
Call chkActiveFlagImage("MasterFile","Profile CUSIP Search","CUSIP Searc
h Results","Active Flag",DataTable.Value("CUSIPName","CUSIP"),"Not Exist")
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 23 : Verfiying for the Red Ti
ck Mark in Active Flag Column","The Red Tick Mark is NOT Present"
Else
Reporter.ReportEvent micFail,"Step 23 : Verfiying for the Red Ti
ck Mark in Active Flag Column","The Red Tick Mark is Present"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Searc
h Results",DataTable.Value("CUSIPName","CUSIP"))
'Call click_Image("MasterFile","Profile CUSIP Search","Search")
Call chkFlagImage("MasterFile","CUSIP Profile Orphan","Detail",DataTable
.Value("ModifiedFields","CUSIP"),"Not Exist")
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 24: Verifying if Yellow FLAGs
are Present or NOT","The Yellow Flags are NOT displayed"
Else
Reporter.ReportEvent micPass,"Step 24: Verifying if Yellow FLAGs
are Present or NOT","The Yellow Flags are NOT displayed"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call select_Menu("MasterFile","CUSIP Profile Orphan","Home;DR Home")
End Function
'===============================================================================
====================================================
'===============================================================================
====================================================
Public Function MFProfileCUSIP_TC4()
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","C
USIP"))
blnFlag = Browser("MasterFile").Page("Profile CUSIP Search").Exist(2)
If Environment.Value("TestCase_Log") = True AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1 : Verifying if the Page ' P
rofile CUSIP Search' is Dispalyed or NOT","The Page ' Profile CUSIP Search ' is
dispalyed"
Else
Reporter.ReportEvent micFail,"Step 1 : Verifying if the Page ' P
rofile CUSIP Search' is Dispalyed or NOT","The Page ' Profile CUSIP Search ' is
NOT dispalyed"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call ProfileCUSIPSearch("MasterFile","Profile CUSIP Search")
Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Searc
h Results",DataTable.Value("SelectCUSIPName","CUSIP"))
strAppCUSIPName = get_WebEdit_Value("MasterFile","CUSIP Profile","CUSIPD
etails_Name")
If Trim(strAppCUSIPName) = Trim(DataTable.Value("SelectCUSIPName","CUSI
P")) Then
Reporter.ReportEvent micPass,"Step 2: Verifying if the CUSIP Nam
e","The CUSIP Name dispalyed is " & strAppCUSIPName
Else
Reporter.ReportEvent micFail,"Step 2: Verifying if the CUSIP Nam
e","The CUSIP Name is NOT dispalyed as " & DataTable.Value("CUSIPName","CUSIP")
End If
Call click_Image("MasterFile","CUSIP Profile","Related Profiles")
If Browser("MasterFile").Page("CUSIP Profile").Frame("lookupFrame").WebE
lement("Related Profiles").Exist(2) Then
Reporter.ReportEvent micPass,"Step 3: Verifying if the Related P
rofile Window is Opened or NOT","The Related Profile Window is Opened"
Else
Reporter.ReportEvent micFail,"Step 3: Verifying if the Related P
rofile Window is Opened or NOT","The Related Profile Window is Opened"
Environment.Value("Execution_Log") = False
End If
Call select_Menu("MasterFile","CUSIP Profile","Home;DR Home")
End Function
'===============================================================================
=========================================
Public Function MFProfileCUSIP_TC5()
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1, 2: Verifing if the MF Home
Page is displayed or NOT","The MF Home Page is displayed"
Else
Reporter.ReportEvent micFail,"Step 1, 2: Verifing if the MF Home
Page is displayed or NOT","The MF Home Page is NOT displayed"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","CU
SIP"))
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass, "Step 3: Verifying if the CUSIP Me
nu is Present in the Profile Menu or Not","The CUSIP Menu is Present in the Prof
ile Menu"
Else
Reporter.ReportEvent micPass, "Step 3: Verifying if the CUSIP Me
nu is Present in the Profile Menu or Not","The CUSIP Menu is NOT Present in the
Profile Menu"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","C
USIP"))
Call pageCheck_WebEditOR("MasterFile","Profile CUSIP Search","CUSIP;CUSI
PName;DRName;DRTicker;UnderlyingISIN")
Call pageCheck_WebListOR("MasterFile","Profile CUSIP Search","DRExchange
;S/U;HomeMarketCountry;Status")
Call pageCheck_WebElementinTable("MasterFile","Profile CUSIP Search","Na
me;CUSIP;Type;Active Flag;S/U;DR Exchange;DR Ticker Symbol;DR ISIN;Home Market C
ountry;Underlying ISIN","")
intRC = Browser("MasterFile").Page("Profile CUSIP Search").WebTable("CUS
IP Search Results").RowCount
If intRC <3 Then
Reporter.ReportEvent micPass,"Verifying the Number of Rows befor
e entering the Search Criteria","There are No Results displayed"
Else
Reporter.ReportEvent micFail,"Verifying the Number of Rows befor
e entering the Search Criteria","There are few Results displayed"
Environment.Value("Execution_Log") = False
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass, "Step 4 : Verifying the Fields pre
sent in the Page Profile CUSIP Search","The Required Fields are dispalyed"
Else
Reporter.ReportEvent micFail, "Step 4 : Verifying the Fields pre
sent in the Page Profile CUSIP Search","The Required Fields are NOT Present"
End If
Call set_WebEdit_Value("MasterFile","Profile CUSIP Search","CUSIPName",E
nvironment.Value("ApprovedCUSIPName"))
Call click_Image("MasterFile","Profile CUSIP Search","Search")
Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Searc
h Results",Environment.Value("ApprovedCUSIPName"))
Call ChangeCUSIPDetails("MasterFile","CUSIP Profile Orphan","Save")
Call chkFlagImage("MasterFile","CUSIP Profile Orphan","Detail",DataTable
.Value("ModifiedFields","CUSIP"),"Exist")
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 5, 6: Verifying if the Approv
al Flag is dispalyed Next to the Field Modified or NOT","The Approval Flag is Di
splayed next to the Field Modified"
Else
Reporter.ReportEvent micFail,"Step 5,6: Verifying if the Approva
l Flag is dispalyed Next to the Field Modified or NOT","The Approval Flag is NOT
Displayed next to the Field Modified"
Environment.Value("Execution_Log") = False
Environment.Value("TestCase_Log") = True
End If
Call logoutfromApp("MasterFile","CUSIP Profile Orphan")
blnAppFlag = "False"
blnAppFlag = Browser("MasterFile").Exist(2)
Call invoke_URL("MasterFile","Login Page",Environment.Value("Application
_URL"))
Call login("MasterFile","Login Page","Approval","MFLogin")
Call ApprovalFunction("MasterFile","CUSIP Profile",DataTable.Value("Appr
ovalHeader","CUSIP"),Environment.Value("ApprovedCUSIPName"),DataTable.Value("App
roveComments","CUSIP"),"Approved")
Call logoutfromApp("MasterFile","Approval Queue Item Search")
If Browser("MasterFile").Exist(2) Then
Reporter.ReportEvent micFail,"Verifying if the Applicati
on is LoggedOuted or NOT","The Application is still Open"
Environment.Value("TestCase_Log") = False
Environment.Value("Execution_Log") = False
Else
Reporter.ReportEvent micPass," Verifying if the Applicat
ion is LoggedOuted or NOT","The Application is LoggedOut Successfully"
End If
If Environment.Value("TestCase_Log") = True AND blnAppFlag = "True" Th
en
Reporter.ReportEvent micPass,"Step 7: Verifying if the Fields Mo
dified are Approved or NOT and the Application is Closed","The Fields Modified a
re Approved and Application is Logged Out"
Else
Reporter.ReportEvent micFail,"Step 7: Verifying if the Fields Mo
dified are Approved or NOT and the Application is Closed","The Fields Modified a
re NOT Approved OR Application is Logged Out"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call invoke_URL("MasterFile","Login Page",Environment.Value("Application_URL
"))
Call login("MasterFile","Login Page","Relationship Management","MFLogin"
)
Wait 5
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 8: Verify if DR Home page is
Displayed after logging in","The DR Home Page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Verify if DR Home page is
Displayed after logging in","The DR Home Page is NOT Displayed"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","CUSIP"
))
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 10: Verifying if CUSIP Menu i
s Present or NOT","CUSIP Menu is Present in PROFILE Menu"
Else
Reporter.ReportEvent micFail,"Step 10: Verifying if CUSIP Menu i
s Present or NOT","CUSIP Menu is NOT Present in PROFILE Menu"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","C
USIP"))
If Browser("MasterFile").Page("Profile CUSIP Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 11: Verifying if the ' Profil
e CUSIP Search ' Page isdisplayed or NOT","The ' Profile CUSIP Search' page is d
isplayed"
Else
Reporter.ReportEvent micFail,"Step 11: Verifying if the ' Profil
e CUSIP Search ' Page isdisplayed or NOT","The ' Profile CUSIP Search' page is N
OT displayed"
Environment.Value("Execution_Log") = False
End If
Call set_WebEdit_Value("MasterFile","Profile CUSIP Search","CUSIPName",E
nvironment.Value("ApprovedCUSIPName"))
Call click_Image("MasterFile","Profile CUSIP Search","Search")
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 12: Verifying the Search Resu
lt based on the CUSIP Name","The Corresponding Results are dispalyed"
Else
Reporter.ReportEvent micFail,"Step 12: Verifying the Search Resu
lt based on the CUSIP Name","The Corresponding Results are NOT dispalyed"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Searc
h Results",Environment.Value("ApprovedCUSIPName"))
If Browser("MasterFile").Page("CUSIP Profile Orphan").Exist(5) Then
Reporter.ReportEvent micPass,"Step 13: Verifying if the Page ' C
USIP Profile' is dispalyed or NOT","The page ' CUSIP Profile' is Displayed succe
ssfully"
Else
Reporter.ReportEvent micFail,"Step 13: Verifying if the Page ' C
USIP Profile' is dispalyed or NOT","The page ' CUSIP Profile' is NOT Displayed s
uccessfully"
Environment("Execution_Log") = False
End If
Call chkFlagImage("MasterFile","CUSIP Profile Orphan","Detail",DataTable
.Value("ModifiedFields","CUSIP"),"Not Exist")
Call click_Image("MasterFile","CUSIP Profile Orphan","Audit Profile")
strModifiedFields = DataTable.Value("ModifiedFields","CUSIP")
strModifiedField = Split(strModifiedFields,";",-1,1)
For intCount = 0 to UBound(strModifiedField)
intIndex = intCount + 1
If Browser("MasterFile").Page("CUSIP Profile Orphan").Frame("lo
okupFrame").WebTable("index:= " & intIndex).Exist(2) Then
blnFlag = "True"
Else
blnFlag = "False"
Reporter.ReportEvent micFail,"Verify if the Table Exist
or NOT","The Table does NOT exist"
End If
If blnFlag = "True" Then
intRowCount = Browser("MasterFile").Page("CUSIP Profile
Orphan").Frame("lookupFrame").WebTable("index:= " & intIndex).RowCount
For intRowCounter = 1 to intRowCount
intColumnCount = Browser("MasterFile").Page("CUS
IP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & intIndex).ColumnC
ount(intRowCounter)
For intColumnCounter = 1 to intColumnCount
strGetCellData = Browser("MasterFile").P
age("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & intIndex)
.GetCellData(intRowCounter,intColumnCounter)
If strGetCellData = "Field" Then
strValue = Browser("MasterFile")
.Page("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & intInde
x).GetCellData(intRowCounter+1,intColumnCounter)
If strValue = strModifiedField(i
ntCount) Then
Reporter.ReportEvent mic
Pass,"Verifying if the Modified Field is Present or NOT","The Modified Field " &
strModifiedField(intCount) & " is Present in the table"
Else
Reporter.ReportEvent mic
Fail,"Verifying if the Modified Field is Present or NOT","The Modified Field " &
strModifiedField(intCount) & " is NOT Present in the table"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
Exit For
End If
End If
If strGetCellData = "New Value" Then
strValue = Browser("MasterFile")
.Page("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & intInde
x).GetCellData(intRowCounter+1,intColumnCounter)
Reporter.ReportEvent micPass,"Th
e New Value of the Modified Field " & strModifiedField(intCount),"The New Value
of the Modified Field " & strModifiedField(intCount) & " is " &strValue
End If
If strGetCellData = "Old Value" Then
strValue = Browser("MasterFile")
.Page("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & intInde
x).GetCellData(intRowCounter+1,intColumnCounter)
Reporter.ReportEvent micPass,"Th
e Old Value of the Modified Field " & strModifiedField(intCount),"The Old Value
of the Modified Field " & strModifiedField(intCount) & " is " &strValue
End If
If InStr(1,strGetCellData,"Updated By") <> 0
Then
intPos = Instr(1,strGetCellData,"Appr
oved By")
strUpdated = Mid(strGetCellData,1,int
Pos-1)
strApproved = Mid(strGetCellData,intP
os)
Reporter.ReportEvent micPass,"The dis
played Updated by and Time Stamp are",":" & strUpdated
Reporter.ReportEvent micPass,"The App
roved By details are:",":" & strApproved
End If
Next
Next
End If
Next
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 14 : Verify if the details of
the Modified Field is displyed when clicked on ' AUDIT Button'","The Modified F
ields is displayed with the details of Modification"
Else
Reporter.ReportEvent micFail,"Step 14 : Verify if the details of
the Modified Field is displyed when clicked on ' AUDIT Button'","The Modified F
ields are NOT displayed with the details of Modification"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call select_Menu("MasterFile","CUSIP Profile Orphan","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCUSIP_TC6()
Call click_WebElement("MasterFile","Depositary Receipt Division's","MasterFil
e")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","CUSIP
"))
blnFlag = Browser("MasterFile").Page("Profile CUSIP Search").Exist(2)
If Environment.Value("TestCase_Log") = True AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 1 to 5 : Verifying if the Pag
e ' Profile CUSIP Search' is Dispalyed or NOT","The Page ' Profile CUSIP Search
' is dispalyed"
Else
Reporter.ReportEvent micFail,"Step 1 to 5 : Verifying if the Pag
e ' Profile CUSIP Search' is Dispalyed or NOT","The Page ' Profile CUSIP Search
' is NOT dispalyed"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call ProfileCUSIPSearch("MasterFile","Profile CUSIP Search")
Call pageCheck_WebEditOR("MasterFile","Profile CUSIP Search","CUSIP;CUSI
PName;DRName;DRTicker;UnderlyingISIN")
Call pageCheck_WebListOR("MasterFile","Profile CUSIP Search","DRExchange
;S/U;HomeMarketCountry;Status")
intRC = Browser("MasterFile").Page("Profile CUSIP Search").WebTable("CUS
IP Search Results").RowCount
If intRC >2 Then
Reporter.ReportEvent micPass,"Verifying the Number of Rows after
entering the Search Criteria","The Results are dispalyed based on the Search Cr
iteria"
Else
Reporter.ReportEvent micFail," Verifying the Number of Rows afte
r entering the Search Criteria","The No matched results are dispalyed for the en
tered Search Criteria"
Environment.Value("Execution_Log") = False
Environment.Value("TestCase_Log") = False
End If
blnFlag= "False"
intRowCount = Browser("MasterFile").Page("Profile CUSIP Search").WebTabl
e("CUSIP Search Results").RowCount
For intRowCounter = 0 to intRowCount
intColumnCount = Browser("MasterFile").Page("Profile CUSIP Searc
h").WebTable("CUSIP Search Results").ColumnCount(intRowCount)
For intColumnCounter = 0 to intColumnCount
strGetCellData = Browser("MasterFile").Page("Profile CUS
IP Search").WebTable("CUSIP Search Results").GetCellData(intRowCounter,intColumn
Counter)
If UCase(Trim(strGetCellData)) = UCase(Trim(DataTable.Va
lue("DRName","CUSIP"))) Then
blnFlag= "True"
Exit For
End If
Next
If blnFlag= "True" Then
Exit For
End If
Next
If blnFlag = "True" AND Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 6: Verifying the Fields prese
nt in the Page Profile CUSIP Search and if the DR Name " & DataTable.Value("DRNa
me","CUSIP") & " is dispalyed in the Result Table or NOT","The DR " & DataTable
.Value("DRName","CUSIP") & " is dispalyed in the Result Table and the required F
ields are Present"
Else
Reporter.ReportEvent micFail,"Step 6: Verifying the Fields prese
nt in the Page Profile CUSIP Search and if the DR Name " & DataTable.Value("DRNa
me","CUSIP") & " is dispalyed in the Result Table or NOT","The DR " & DataTable
.Value("DRName","CUSIP") & " is dispalyed in the Result Table and the required F
ields are Present"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Searc
h Results",DataTable.Value("SelectCUSIPName","CUSIP"))
Wait 5
strIntialAppValue = GetAllFieldValue("MasterFile","CUSIP Profile","WebEd
it","INPUT")
Call click_Image("MasterFile","CUSIP Profile","Preview Profile")
blnReturnImage = Browser("MasterFile").Page("CUSIP Profile").Frame("Frame").
Image("Print").Exist(2)
blnPrintImage = Browser("MasterFile").Page("CUSIP Profile").Frame("Frame
").Image("Print").Exist(2)
If blnReturnImage = "True" AND blnPrintImage = "True" Then
Reporter.ReportEvent micPass,"Step 7: Verfiying if the Print and
Return Button are Present or NOT","The Print and Return Button are Present"
Else
Reporter.ReportEvent micFail,"Step 7: Verfiying if the Print and
Return Button are Present or NOT","The Print OR Return Button is NOT Present"
Environment.Value("Execution_Log") = False
End If
If blnPrintImage = "True" Then
blnPrintImage = Browser("MasterFile").Page("CUSIP Profile").Fram
e("Frame").Image("Print").Click
If Dialog("Print").Exist(2) Then
Reporter.ReportEvent micWarning,"Step 8: Verifying if th
e Print Dialog Exists or NOT","The Print Dialog Exist and Please Check for the P
rint document Manually"
Dialog("Print").Close
Else
Reporter.ReportEvent micFail,"Step 8: Verifying if the P
rint Dialog Exists or NOT","The Print Dialog does NOT Exist"
Environment.Value("Execution_Log") = False
End If
End If
If blnReturnImage = "True" Then
Browser("MasterFile").Page("CUSIP Profile").Frame("Frame").Image
("Return").Click
blnPageFlag = Browser("MasterFile").Page("CUSIP Profile").Exist(
2)
strFinalAppValue = GetAllFieldValue("MasterFile","CUSIP Profile"
,"WebEdit","INPUT")
If blnPageFlag = "True" AND (Trim(strFinalAppValue) = Trim(strIn
tialAppValue)) Then
Reporter.ReportEvent micPass,"Step 9: Verifying if the P
age ' CUSIP Profile ' is Displayed with the Details of the CUSIP","The Page ' CU
SIP Profile' is dispalyed with the deatils of the CUSIP"
Else
Reporter.ReportEvent micFail,"Step 9: Verifying if the P
age ' CUSIP Profile ' is Displayed with the Details of the CUSIP","The Page ' CU
SIP Profile' is Not dispalyed with the deatils of the CUSIP"
Environment.Value("Execution_Log") = False
End If
End If
Call select_Menu("MasterFile","CUSIP Profile","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
intPos = InStr(1,strMandatoryValue,";")
If intPos = 1 Then
strMandatoryField = Trim(Mid(strMandatoryValue,intPos+1))
' Else
' strMandatoryField = Trim(Mid(strMandatoryValue,2))
End If
strMandatoryValue = ValidationErrorDetails("MasterFile","CUSIP Profile O
rphan","Validation Error",strMandatoryField,"Detail")
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 21 : Verfiying the Mandatory
Fields displayed in the Validation Error Table","The Mandatory Fields are Displa
yed in the Validation Error Table and the Mandatory Fields are " & strMandatoryV
alue
Else
Reporter.ReportEvent micFail,"Step 21: Verfiying the Mandatory F
ields displayed in the Validation Error Table","The Mandatory Fields are NOT Dis
played in the Validation Error Table"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call click_Image("MasterFile","CUSIP Profile Orphan","Close")
Reporter.ReportEvent micDone,"Step 22 : Clicked on Close Button in the V
alidation Error Table","Successfully clicked on Close Button in Validation Error
Table"
Call set_WebEdit_Value("MasterFile","CUSIP Profile Orphan","BriefName",D
ataTable.Value("BriefName","CUSIP"))
Call click_Image("MasterFile","CUSIP Profile Orphan","Save")
strMandatoryValue = Replace(strMandatoryValue,"Brief Name","")
intPos = InStr(1,strMandatoryValue,";")
If intPos = 1 Then
strMandatoryField = Trim(Mid(strMandatoryValue,intPos+1))
' Else
' strMandatoryField = Trim(Mid(strMandatoryValue,2))
End If
strMandatoryValue = ValidationErrorDetails("MasterFile","CUSIP Profile O
rphan","Validation Error",strMandatoryField,"Detail")
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 23 : Verfiying the Mandatory
Fields dispalyed in the Validation Error Table","The Mandatory Fields are Displa
yed in the Validation Error Table and the Mandatory Fields are " & strMandatoryV
alue
Else
Reporter.ReportEvent micFail,"Step 23: Verfiying the Mandatory F
ields dispalyed in the Validation Error Table","The Mandatory Fields are NOT Dis
played in the Validation Error Table"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call click_Image("MasterFile","CUSIP Profile Orphan","Close")
Reporter.ReportEvent micDone,"Step 24 : Clicked on Close Button in the
Validation Error Table","Successfully clicked on Close Button in Validation Err
or Table"
blnFlag = "False"
Call click_Image("MasterFile","CUSIP Profile Orphan","EntryReason")
intRowCount = Browser("MasterFile").Page("CUSIP Profile Orphan").Frame(
"lookupFrame").WebTable("BLDRS Fund").RowCount
For intRowCounter = 1 to intRowCount
intColumnCount = Browser("MasterFile").Page("CUSIP Profi
le Orphan").Frame("lookupFrame").WebTable("BLDRS Fund").ColumnCount(intRowCounte
r)
For intColumnCounter = 1 to intColumnCount
strCellData = Browser("MasterFile").Page
("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("BLDRS Fund").GetCellData
(intRowCounter,intColumnCounter)
If Trim(strCellData) = DataTable.Value("
EntryReason","CUSIP") Then
Browser("MasterFile").Page("CUSI
P Profile Orphan").WebElement("html tag:=TD","innertext:= " & strCellData).Click
blnFlag = "True"
Exit For
End If
Next
If blnFlag = "True" Then
Exit For
End If
Next
Call click_Image("MasterFile","CUSIP Profile Orphan","Save")
strMandatoryValue = Replace(strMandatoryValue,"Entry Reason","")
intPos = InStr(1,strMandatoryValue,";")
If intPos = 1 Then
strMandatoryField = Trim(Mid(strMandatoryValue,intPos+1))
' Else
' strMandatoryField = Trim(Mid(strMandatoryValue,2))
End If
strMandatoryValue = ValidationErrorDetails("MasterFile","CUSIP Profile O
rphan","Validation Error",strMandatoryField,"Detail")
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass," Verfiying the Mandatory Fields di
spalyed in the Validation Error Table","The Mandatory Fields are Displayed in th
e Validation Error Table and the Mandatory Fields are " & strMandatoryValue
Else
Reporter.ReportEvent micFail,"Verfiying the Mandatory Fields dis
palyed in the Validation Error Table","The Mandatory Fields are NOT Displayed in
the Validation Error Table"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call click_Image("MasterFile","CUSIP Profile Orphan","Close")
Reporter.ReportEvent micDone,"Clicked on Close Button in the Validation
Error Table","Successfully clicked on Close Button in Validation Error Table"
strCurrentTime = Time
strTime = Split(strCurrentTime,":",-1,1)
strIndTime = Split(strTime(2)," ",-1,1)
strTimeStamp = strTime(0) & strTime(1) & strIndTime(0) &strIndTime(1)
CUSIPNo = "0" & strTimeStamp
Call set_WebEdit_Value("MasterFile","CUSIP Profile Orphan","CUSIP",CUSIPNo)
If Browser("MasterFile").Dialog("Microsoft Internet Explorer").Exist(5)
Then
Browser("MasterFile").Dialog("Microsoft Internet Explorer").WinB
utton("OK").Click
End If
Call click_Image("MasterFile","CUSIP Profile Orphan","Save")
strMandatoryValue = Replace(strMandatoryValue,"CUSIP","")
intPos = InStr(1,strMandatoryValue,";")
If intPos = 1 Then
strMandatoryField = Trim(Mid(strMandatoryValue,intPos+1))
' Else
' strMandatoryField = Trim(Mid(strMandatoryValue,2))
End If
strMandatoryValue = ValidationErrorDetails("MasterFile","CUSIP Profile O
rphan","Validation Error",strMandatoryField,"Detail")
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 25 : Verfiying the Mandatory
Fields dispalyed in the Validation Error Table","The Mandatory Fields are Displa
yed in the Validation Error Table and the Mandatory Fields are " & strMandatoryV
alue
Else
Reporter.ReportEvent micFail,"Step 25: Verfiying the Mandatory F
ields dispalyed in the Validation Error Table","The Mandatory Fields are NOT Dis
played in the Validation Error Table"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call click_Image("MasterFile","CUSIP Profile Orphan","Close")
Reporter.ReportEvent micDone,"Step 26 : Clicked on Close Button in the
Validation Error Table","Successfully clicked on Close Button in Validation Erro
r Table"
Call Select_Combo_Value("MasterFile","CUSIP Profile Orphan","HomeMarketC
ountry",DataTable.Value("HomeMarketCountry","CUSIP"))
Call click_Image("MasterFile","CUSIP Profile Orphan","Save")
strMandatoryValue = Replace(strMandatoryValue,"Home Market Country","")
intPos = InStr(1,strMandatoryValue,";")
If intPos = 1 Then
strMandatoryField = Trim(Mid(strMandatoryValue,intPos+1))
' Else
' strMandatoryField = Trim(Mid(strMandatoryValue,2))
End If
strMandatoryValue = ValidationErrorDetails("MasterFile","CUSIP Profile O
rphan","Validation Error",strMandatoryField,"Detail")
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 27 : Verfiying the Mandatory
Fields dispalyed in the Validation Error Table","The Mandatory Fields are Displa
yed in the Validation Error Table and the Mandatory Fields are " & strMandatoryV
alue
Else
Reporter.ReportEvent micFail,"Step 27: Verfiying the Mandatory F
ields dispalyed in the Validation Error Table","The Mandatory Fields are NOT Dis
played in the Validation Error Table"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call click_Image("MasterFile","CUSIP Profile Orphan","Close")
Reporter.ReportEvent micDone,"Step 28 : Clicked on Close Button in the
Validation Error Table","Successfully clicked on Close Button in Validation Erro
r Table"
Call set_WebEdit_Value("MasterFile","CUSIP Profile Orphan","RatioDRs",Da
taTable.Value("RatioDRs","CUSIP"))
Call click_Image("MasterFile","CUSIP Profile Orphan","Save")
Call chkFlagImage("MasterFile","CUSIP Profile Orphan","Detail",DataTable
.Value("ValidationErrorDetails","CUSIP"),"Exist")
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 29 : Verifying if the Flag is
Dispalyed next to the Field or NOT","The Flags are displayed Next to the Field
Modified"
Else
Reporter.ReportEvent micFail,"Step 29 : Verifying if the Flag is
Dispalyed next to the Field or NOT","The Flags are NOT displayed Next to the Fi
eld Modified"
Environment.Value("TestCase_Log") = True
Environment.Value("Execution_Log") = False
End If
Call select_Menu("MasterFile","CUSIP Profile Orphan","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++