Sie sind auf Seite 1von 50

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

==========================
' 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"
Environment.Value("strSheetName") = "CUSIP"
'''''''''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
DataTable.GetSheet("MFLogin").SetCurrentRow(1)
Environment.Value("strAppURL") = DataTable.Value("URL","MFLogin"
)
' 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"
Environment.Value("TestCase_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
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

'**********************************************Test Case 1 to Test Case 11******


********************************************
Public Function MFProfileCUSIP_TC1()
Call invoke_URL("MasterFile","Login Page",Environment.Value("str
AppURL"))
Call pageCheck_WebEdit("MasterFile","Login Page","username;j_pas
sword","")
Call pageCheck_WebButton("MasterFile","Login Page","Login","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verfiying if the L
ogin Page is Dispalyed or NOT","The Login Page is Dispalyed successfully with th
e Required Field"
Else
Reporter.ReportEvent micFail,"Step 1: Verfiying if the L
ogin Page is Dispalyed or NOT","The Login Page is NOT Dispalyed successfully wit
h the Required Field"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call login("MasterFile","Login Page","User","MFLogin")
' Check the MasterFile Application for the 4 links, User Name an
d the last Login Details
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 2: Verifying the DR H
ome Page","The DR Home Page is displayed successfully with Home Page Links and t
he User Details"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the DR H
ome Page","The DR Home Page is NOT displayed successfully with Home Page Links a
nd the User Details"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Verfiying the MF H
ome Page","The MF Home Page is disaplyed successfully with the required Menu Ite
ms and also displays the Current Version"
Else
Reporter.ReportEvent micFail,"Step 3: Verfiying the MF H
ome Page","The MF Home Page is NOT disaplyed successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","CUSIP"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 4: 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 4: 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("Menu
Path","CUSIP"))
Call pageCheck_WebEditOR("MasterFile","Profile CUSIP Search","CU
SIP;CUSIPName;DRName;DRTicker;UnderlyingISIN")
Call pageCheck_WebListOR("MasterFile","Profile CUSIP Search","DR
Exchange;S/U;HomeMarketCountry;Status")
Call pageCheck_WebElementinTable("MasterFile","Profile CUSIP Sea
rch","Name;CUSIP;Type;Active Flag;S/U;DR Exchange;DR Ticker Symbol;DR ISIN;Home
Market Country;Underlying ISIN","")
intRC = Browser("MasterFile").Page("Profile CUSIP Search").WebTa
ble("CUSIP Search Results").RowCount
If intRC <3 Then
Reporter.ReportEvent micPass,"Verifying the Number of Ro
ws before entering the Search Criteria","There are No Results displayed"
Else
Reporter.ReportEvent micFail,"Verifying the Number of Ro
ws before entering the Search Criteria","There are few Results displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 5 : Verifying the Fi
elds present in the Page Profile CUSIP Search","The Required Fields are dispalye
d"
Else
Reporter.ReportEvent micFail, "Step 5 : Verifying the Fi
elds present in the Page Profile CUSIP Search","The Required Fields are NOT Pres
ent"
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","CU
SIP;CUSIPName;DRName;DRTicker;UnderlyingISIN")
Call pageCheck_WebListOR("MasterFile","Profile CUSIP Search","DR
Exchange;S/U;HomeMarketCountry;Status")
Call pageCheck_WebElementinTable("MasterFile","Profile CUSIP Sea
rch","Name;CUSIP;Type;Active Flag;S/U;DR Exchange;DR Ticker Symbol;DR ISIN;Home
Market Country;Underlying ISIN","")
intRC = Browser("MasterFile").Page("Profile CUSIP Search").WebTa
ble("CUSIP Search Results").RowCount
If intRC >2 Then
Reporter.ReportEvent micPass,"Verifying the Number of Ro
ws after entering the Search Criteria","The Results are dispalyed based on the S
earch Criteria"
Else
Reporter.ReportEvent micFail," Verifying the Number of R
ows after entering the Search Criteria","The No matched results are didpalyed fo
r the entered Search Criteria"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 6 : Verifying the Fi
elds present in the Page Profile CUSIP Search","The Required Fields are dispalye
d"
Else
Reporter.ReportEvent micFail, "Step 6: Verifying the Fie
lds present in the Page Profile CUSIP Search","The Required Fields are NOT Prese
nt"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
blnFlag= "False"
intRowCount = Browser("MasterFile").Page("Profile CUSIP Search")
.WebTable("CUSIP Search Results").RowCount
For intRowCounter = 1 to intRowCount
intColumnCount = Browser("MasterFile").Page("Profile CUSIP Searc
h").WebTable("CUSIP Search Results").ColumnCount(intRowCount)
For intColumnCounter = 1 to intColumnCount
strGetCellData = Browser("MasterFile").Page("Profile CUS
IP Search").WebTable("CUSIP Search Results").GetCellData(intRowCounter,intColumn
Counter)
If Trim(UCase(strGetCellData)) = Trim(UCase(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" Then
Reporter.ReportEvent micPass,"Verifying if the DR Name "
& DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table or NOT
","The DR " & DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result
Table"
Else
Reporter.ReportEvent micFail,"Verifying if the DR Name "
& DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table or NOT
","The DR " & DataTable.Value("DRName","CUSIP") & " is NOT dispalyed in the Res
ult Table"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUS
IP Search Results",DataTable.Value("SelectCUSIPName","CUSIP"))
blnFlag = "False"
intRC = Browser("MasterFile").Page("CUSIP Profile").WebTable("DR
").RowCount
For intRow =1 to intRC
intColCount = Browser("MasterFile").Page("CUSIP Profile"
).WebTable("DR").ColumnCount(intRow)
For intCol = 1to intColCount
strCellData = Browser("MasterFile").Page("CUSIP
Profile").WebTable("DR").GetCellData(intRow,intCol)
If Trim(UCase(strCellData)) = UCase(DataTable.Va
lue("DRName","CUSIP")) Then
blnFlag = "True"
End IF
Next
Next
If blnFlag = "True" Then
Reporter.ReportEvent micPass,"Verifying the DR Name in t
he CUSIP Profile page","The DR Name dispalyed is " & strCellData
Else
Reporter.ReportEvent micFail,"Verifying the DR Name in t
he CUSIP Profile page","The DR Name is NOT displayed as " & strCellData
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","CUSIPDeta
ils_Name;CUSIPDetails_BriefName;CUSIPDetails_HomeMarketCountry;CUSIPDetails_Rati
oDRs;CUSIPDetails_RatioUnderlyingShares;CUSIPDetails_DRTickerSymbol;CUSIPDetails
_DRExchange;CUSIPDetails_DRISIN;CUSIPDetails_DRCommonCode;CUSIPDetails_CommonDep
ository;CUSIPDetails_PricingSEDOL;CUSIPDetails_UnderlyingSecurity;CUSIPDetails_S
/U;CUSIPDetails_CommonDepository;CUSIPDetails_Threshold;CUSIPDetails_EffectiveFl
ag")
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","CUSIPDeta
ils_CUSIP;CUSIPDetails_Type;CUSIPDetails_Price;CUSIPDetails_PreReleaseLimit;CUSI
PDetails_DRSEDOL;CUSIPDetails_NomineeAccount;CUSIPDetails_ShareBase;CUSIPDetails
_UnderlyingISIN;CUSIPDetails_UnderlyingSEDOL;CUSIPDetails_MultipleUnderlyingFlag
")
Call pageCheck_WebListOR("MasterFile","CUSIP Profile","CUSIPDeta
ils_ActiveFlag")
If Browser("MasterFile").Page("CUSIP Profile").WebButton("Prior
CUSIP").Exist(2) Then
Call click_WebButton("MasterFile","CUSIP Profile","Prior
CUSIP")
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","C
USIPDetails_Name;CUSIPDetails_BriefName;CUSIPDetails_HomeMarketCountry;CUSIPDeta
ils_RatioDRs;CUSIPDetails_RatioUnderlyingShares;CUSIPDetails_DRTickerSymbol;CUSI
PDetails_DRExchange;CUSIPDetails_DRISIN;CUSIPDetails_DRCommonCode;CUSIPDetails_C
ommonDepository;CUSIPDetails_PricingSEDOL;CUSIPDetails_UnderlyingSecurity;CUSIPD
etails_S/U;CUSIPDetails_Depository;CUSIPDetails_Threshold;CUSIPDetails_EffeciveF
lag")
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","C
USIPDetails_CUSIP;CUSIPDetails_Type;CUSIPDetails_Price;CUSIPDetails_PreReleaseLi
mit;CUSIPDetails_DRSEDOL;CUSIPDetails_NomineeAccount;CUSIPDetails_ShareBase;CUSI
PDetails_UnderlyingISIN;CUSIPDetails_UnderlyingSEDOL;CUSIPDetails_MultipleUnderl
yingFlag")
Call pageCheck_WebListOR("MasterFile","CUSIP Profile","C
USIPDetails_ActiveFlag")
End If
If Browser("MasterFile").Page("CUSIP Profile").WebElement("Manag
ement Report").Exist(2) Then
Browser("MasterFile").Page("CUSIP Profile").WebElement("Management R
eport").Click
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","M
gmtReport_ReportStartDate")
Call pageCheck_WebListOR("MasterFile","CUSIP Profile","MgmtReport_Sh
owPreRelease;MgmtReport_ShowInstitutionalHolder;MgmtReport_GenerateReport;MgmtRe
port_CUSIPLinking")
End If

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


Reporter.ReportEvent micPass,"Step 7 : Verifying the Fie
lds Present in CUSIP Profile page","The Required Fields are Present in the Page
CUSIP Profile"
Else
Reporter.ReportEvent micFail,"Step 7 : Verifying the Fie
lds Present in CUSIP Profile page","The Required Fields are Present in the Page
CUSIP Profile"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("MasterFile","CUSIP Profile","Home;DR Home")
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8 : Verifying the DR
Home Page","The DR Home Page is displayed successfully with Home Page Links and
the User Details"
Else
Reporter.ReportEvent micFail,"Step 8 : Verifying the DR
Home Page","The DR Home Page is NOT displayed successfully with Home Page Links
and the User Details"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If

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"
Call captureScreenShot()
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"
Call captureScreenShot()
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"
Call captureScreenShot()
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("strAppURL")
)
Call login("MasterFile","Login Page","Approver","MFLogin")
Call ApprovalFunction("MasterFile","CUSIP Profile","Name;CUSIP;Last User
Updated;Last Updated",DataTable.Value("CUSIPName","CUSIP"),DataTable.Value("App
roveComments","CUSIP"),"Approved","Pending Approval")
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"
Call captureScreenShot()
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("strAppURL"))
Call login("MasterFile","Login Page","User","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_TC3()


' 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")
blnFlag = Browser("MasterFile").Page("Profile CUSIP Search").Exist(5)
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 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 click_Image("MasterFile","Profile CUSIP Search","New")
' Call chkWebEditMandatoryProperty("MasterFile","CUSIP Profile Orphan","Na
me;BriefName;RatioDRs;RatioUnderlyingShares;DRExchange;EntryReason;CUSIP")
' Call chkWeblistMandatoryProperty("MasterFile","CUSIP Profile Orphan","Ho
meMarketCountry;ActiveFlag")
' Call pageCheck_WebEditOR("MasterFile","CUSIP Profile Orphan","UnderlyingISI
N;PricingSEDOL;EffectiveFlag;Type;Price;UnderlyingSEDOL;ShareBase")
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"
Call captureScreenShot()
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"
Call captureScreenShot()
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("strAppURL")
)
Call login("MasterFile","Login Page","Approver","MFLogin")
Call ApprovalFunction("MasterFile","CUSIP Profile","Name;CUSIP;Last User
Updated;Last Updated",DataTable.Value("CUSIPName","CUSIP"),DataTable.Value("App
roveComments","CUSIP"),"Rejected","Pending Approval")
Call logoutfromApp("MasterFile","Approval Queue Item Search")
If Browser("MasterFile").Exist(5) Then
Reporter.ReportEvent micFail,"Verifying if the Applicati
on is LoggedOuted or NOT","The Application is still Open"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Else
Reporter.ReportEvent micPass,"Verifying if the Applicati
on is LoggedOuted or NOT","The Application is LoggedOut Successfully"
End If
Call invoke_URL("MasterFile","Login Page",Environment.Value("strAppURL")
)
Call login("MasterFile","Login Page","User","MFLogin")
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","C
USIP"))
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 20 : Verfiying for the Red Ti
ck Mark in Active Flag Column","The Red Tick Mark is NOT Present"
Else
Reporter.ReportEvent micFail,"Step 20 : 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 chkRejectedFlagImage("MasterFile","CUSIP Profile Orphan","Detail",DataT
able.Value("ModifiedFields","CUSIP"),"Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 21: Verifying if RED FLAGS ar
e Present or NOT","The RED FLAGS are Displayed"
Else
Reporter.ReportEvent micFail,"Step 21: Verifying if RED FLAGS ar
e Present or NOT","The RED 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")
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
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"
Call captureScreenShot()
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"
Call captureScreenShot()
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"
Environment.Value("TestCase_Log") = "True"
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")
Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Searc
h Results",Environment.Value("ApprovedCUSIPName"))
intOldPriceValue = get_WebEdit_Value("MasterFile", "CUSIP Profile Orphan
", "Price")
intOldActiveFlagValue = get_WebList_Value("MasterFile","CUSIP Profile Orphan
","ActiveFlag")
Wait(2)
Call ChangeCUSIPDetails("MasterFile","CUSIP Profile Orphan","Save")
Wait(60)
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
Wait(2)
intNewPriceValue = get_WebEdit_Value("MasterFile", "CUSIP Profile Orphan
", "Price")
intNewActiveFlagValue = get_WebList_Value("MasterFile","CUSIP Profile Orphan
","ActiveFlag")
Call logoutfromApp("MasterFile","CUSIP Profile Orphan")
blnAppFlag = "False"
blnAppFlag = Browser("MasterFile").Exist(2)
Call invoke_URL("MasterFile","Login Page",Environment.Value("strAppURL")
)
Call login("MasterFile","Login Page","Approver","MFLogin")
Call ApprovalFunction("MasterFile","CUSIP Profile",DataTable.Value("Appr
ovalHeader","CUSIP"),Environment.Value("ApprovedCUSIPName"),DataTable.Value("App
roveComments","CUSIP"),"Approved","Pending Approval")
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"
Call captureScreenShot()
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 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("strAppURL"))
Call login("MasterFile","Login Page","User","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"
Call captureScreenShot()
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"
Call captureScreenShot()
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")
Wait(2)
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

For index = 1 to 2
intRowCount = Browser("MasterFile").Page("CUSIP Profile
Orphan").Frame("lookupFrame").WebTable("index:= " & Index).RowCount
For intRowCounter = 1 To intRowCount
strFieldName = Browser("MasterFile").Page("CUSIP
Profile Orphan").Frame("lookupFrame").WebTable("index:= " & Index).GetCellData(
intRowCounter, 1)
If strFieldName = "Price (USD)" Then
strNewValue = Browser("MasterFile").Page
("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & Index).GetCe
llData(intRowCounter, 2)
strOldValue = Browser("MasterFile").Page
("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & Index).GetCe
llData(intRowCounter, 3)
If Round(strOldValue,2) = Round(intOldPr
iceValue,2) And Round(strNewValue,2) = Round(intNewPriceValue,2) Then
Reporter.ReportEvent mic
Pass, "Verfiying the Old and New Values", "The Old Value is " & intOldPriceValue
& " and New Value is " & intNewPriceValue & " in the Field " & strFieldName
Else
Reporter.ReportEvent mic
Fail, "Verfiying the Old and New Values", "The Old Value is Not " & intOldPrice
Value & " Or New Value is Not " & intNewPriceValue & " in the Field " & strFiel
dName
Call captureScreenShot()
Environment.Value("TestC
ase_Log") = "False"
Environment.Value("Execu
tion_Log") = "False"
End If
End If
If strFieldName = "Active Flag" Then
strNewValue = Browser("MasterFile").Page
("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & Index).GetCe
llData(intRowCounter, 2)
strOldValue = Browser("MasterFile").Page
("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("index:= " & Index).GetCe
llData(intRowCounter, 3)
If UCase(intOldActiveFlagValue) = "YES"
Then
intOldActiveFlagValue = "Y"
Else
intOldActiveFlagValue = "N"
End If
If UCase(intNewActiveFlagValue) = "YES"
Then
intNewActiveFlagValue = "Y"
Else
intNewActiveFlagValue = "N"
End If
If UCase(strOldValue) = UCase(intOldActi
veFlagValue) And UCase(strNewValue) = UCase(intNewActiveFlagValue) Then
'If Round(strOldValue,2) = Round(intOldActiveFlagValue,2) An
d Round(strNewValue,2) = Round(intNewActiveFlagValue,2) Then
Reporter.ReportEvent mic
Pass, "Verfiying the Old and New Values", "The Old Value is " & intOldActiveFlag
Value & " and New Value is " & intNewActiveFlagValue & " in the Field " & strFie
ldName
Else
Reporter.ReportEvent mic
Fail, "Verfiying the Old and New Values", "The Old Value is Not " & intOldActiv
eFlagValue & " Or New Value is Not " & intNewActiveFlagValue & " in the Field
" & strFieldName
Call captureScreenShot()
Environment.Value("TestC
ase_Log") = "False"
Environment.Value("Execu
tion_Log") = "False"
End If
End If
If Instr(1,strFieldName,"Approved By") <> 0 Then
strApproverName = Environment.Value("App
roverUser")
strCheck = Split(strApproverName," ",-1,
1)
strFinalApproverName = strCheck(1) & " ,
" & strCheck(0)
If instr(1,strFieldName,strFinalApprover
Name) <> 0 Then
Reporter.ReportEvent micPass,"Ve
rfiying the Approval Details","The Details are Approved by the User ' " & strFin
alApproverName
Else
Reporter.ReportEvent micFail,"Ve
rifying the Approval Details","The Details are Not Approved by the User ' " & st
rFinalApproverName
Call captureScreenShot()
Environment.Value("Execution_Log
") = "False"
Environment.Value("TestCase_Log"
) = "False"
End If
End If
If Instr(1,strFieldName,"Updated By") <> 0 Then
strUserName = Environment.Value("NormalU
ser")
strChecks = Split(strUserName," ",-1,1)
strFinalUserName = strChecks(1) & " , "
& strChecks(0)
If instr(1,strFieldName,strFinalUserName
) <> 0 Then
Reporter.ReportEvent micPass,"Ve
rfiying the User Details","The Updated User is " & strFinalUserName
Else
Reporter.ReportEvent micFail,"Ve
rfiying the User Details","The Updated User is NOT " & strFinalUserName
Call captureScreenShot()
Environment.Value("TestCase_Log"
) = "False"
Environment.Value("Execution_Log
") = "False"
End If
End If
Next
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"
Call captureScreenShot()
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"
Call captureScreenShot()
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"
Call captureScreenShot()
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"
Call captureScreenShot()
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"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
End If
Call select_Menu("MasterFile","CUSIP Profile","Home;DR Home")

End Function

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

Public Function MFProfileCUSIP_TC7()


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")
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" Then
Reporter.ReportEvent micPass,"Step 6: Verifying if the DR Name "
& DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table or NOT
","The DR " & DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result
Table"
Else
Reporter.ReportEvent micFail,"Step 6: Verifying if the DR Name "
& DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table or NOT
","The DR " & DataTable.Value("DRName","CUSIP") & " is NOT dispalyed in the Res
ult Table"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Searc
h Results",DataTable.Value("SelectCUSIPName","CUSIP"))
' Getting the CUSIP Number of the Selected CUSIP from the Application
strCUSIPNumber = get_WebEdit_Value("MasterFile","CUSIP Profile","CUSIPDe
tails_CUSIP")
' Clicking on the Trading Volume option
Call click_WebElement("MasterFile","CUSIP Profile","Trading Volume")
Call pageCheck_WebEditOR("MasterFile","Trading Volume and Price","Search
ByDate;Date;HighPrice;LowPrice;ClosePrice;TradingVolume")
Call pageCheck_WebEditOR("MasterFile","Trading Volume and Price","MonthE
ndDate;Month_HighPrice;Month_LowPrice;Month_ClosePrice;Month_AveragePrice;Month_
TradingVolume;Month_RegisteredHolders;Month_CEDEPosition")
Call pageCheck_WebEditOR("MasterFile","Trading Volume and Price","Year;Y
ear_HighPrice;Year_LowPrice;Year_ClosePrice;Year_AveragePrice;Year_TradingVolume
")
Call pageCheck_WebListOR("MasterFile","Trading Volume and Price","Search
ByMonth;SearchByYear")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Verifying the Fields prese
nt in the Page ' Trading Volume and Price' Page","The Required Fields are Presen
t in the Page ' Trading Volume and Price'"
Else
Reporter.ReportEvent micFail,"Step 7: Verifying the Fields prese
nt in the Page ' Trading Volume and Price' Page","The Required Fields are NOT Pr
esent in the Page ' Trading Volume and Price'"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call GetMultipleValue_WebEdit("MasterFile","Trading Volume and Price","D
ate;HighPrice;LowPrice;ClosePrice;TradingVolume")
Call GetMultipleValue_WebEdit("MasterFile","Trading Volume and Price","M
onthEndDate;Month_HighPrice;Month_LowPrice;Month_ClosePrice;Month_AveragePrice;M
onth_TradingVolume;Month_RegisteredHolders;Month_CEDEPosition")
Call GetMultipleValue_WebEdit("MasterFile","Trading Volume and Price","Y
ear;Year_HighPrice;Year_LowPrice;Year_ClosePrice;Year_AveragePrice;Year_TradingV
olume")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: Verifying the Default Valu
e in Various Field","The Default Value is displayed in the Fields"
Else
Reporter.ReportEvent micFail,"Step 8: Verifying the Default Valu
e in Various Field","The Default Value is NOT displayed in the Fields"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call chkWebEditReadOnly("MasterFile","Trading Volume and Price","HighPri
ce;HighPrice;LowPrice;TradingVolume","NOT ReadOnly")
Call chkWebEditReadOnly("MasterFile","Trading Volume and Price","Month_R
egisteredHolders;Month_CEDEPosition","NOT ReadOnly")
Call pageCheck_WebListOR("MasterFile","Trading Volume and Price","Search
ByMonth;SearchByYear;Year_SearchByYear")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: Verifying if the required
fields are Editable or NOT","The Required Fields are Editable"
Else
Reporter.ReportEvent micFail,"Step 9: Verifying if the required
fields are Editable or NOT","The Required Fields are NOT Editable"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
If DataTable.Value("SelectDate","CUSIP") <> "" Then
Call click_image("MasterFile","Trading Volume an
d Price","SearchByDate")
strDate=split(DataTable.Value("SelectDate","CUSI
P"),";")
strMonth=strDate(1)
strYear=strDate(2)
strDateValue =strDate(0)
Call ClickIcon_SetDate("MasterFile","Trading Vol
ume and Price",strMonth,strYear,strDateValue)
End If
Call click_Image("MasterFile","Trading Volume and Price","Retrie
ve")
strAppCurrentValue = GetMultipleValue_WebEdit("MasterFile","Trad
ing Volume and Price","Date;HighPrice;LowPrice;ClosePrice;TradingVolume")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: Checking for the
Values in the Required Field","The Value Displayed in the required Fields are "
& strAppCurrentValue
Else
Reporter.ReportEvent micFail,"Step 10: Checking for the
Data in the Required Field","The Value Displayed in the required Fields are " &
strAppCurrentValue
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Selcting the Values Monthly Price/Volume
Call Select_Combo_Value("MasterFile","Trading Volume and Price",
"SearchByMonth",DataTable.Value("SelectMonth","CUSIP"))
Call Select_Combo_Value("MasterFile","Trading Volume and Price",
"SearchByYear",DataTable.Value("SelectYear","CUSIP"))
Call click_Image("MasterFile","Trading Volume and Price","Retrie
ve_Month")
strAppCurrentValue = GetMultipleValue_WebEdit("MasterFile","Trad
ing Volume and Price","MonthEndDate;Month_HighPrice;Month_LowPrice;Month_ClosePr
ice;Month_AveragePrice;Month_TradingVolume;Month_RegisteredHolders;Month_CEDEPos
ition")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: Checking for the
Values in the Required Field","The Value Displayed in the required Fields are "
& strAppCurrentValue
Else
Reporter.ReportEvent micFail,"Step 11: Checking for the
Data in the Required Field","The Value Displayed in the required Fields are " &
strAppCurrentValue
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call Select_Combo_Value("MasterFile","Trading Volume and Price",
"Year_SearchByYear",DataTable.Value("Year","CUSIP"))
Call click_Image("MasterFile","Trading Volume and Price","Retrieve_Year"
)
strAppCurrentValue = GetMultipleValue_WebEdit("MasterFile","Trad
ing Volume and Price","Year;Year_HighPrice;Year_LowPrice;Year_ClosePrice;Year_Av
eragePrice;Year_TradingVolume")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 12: Checking for the
Values in the Required Field","The Value Displayed in the required Fields are "
& strAppCurrentValue
Else
Reporter.ReportEvent micFail,"Step 12: Checking for the
Data in the Required Field","The Value Displayed in the required Fields are " &
strAppCurrentValue
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Setting the High Price Field in Date
Call set_WebEdit_Value("MasterFile","Trading Volume and Price","
HighPrice",DataTable.Value("DateHighPrice","CUSIP"))
' Setting the Low Price Field in Date
Call set_WebEdit_Value("MasterFile","Trading Volume and Price","
LowPrice",DataTable.Value("DateLowPrice","CUSIP"))
' Setting the Close Price Field in Date
Call set_WebEdit_Value("MasterFile","Trading Volume and Price","
ClosePrice",DataTable.Value("DateClosePrice","CUSIP"))
' Setting the Trading Volume Field in Date
Call set_WebEdit_Value("MasterFile","Trading Volume and Price","
TradingVolume",DataTable.Value("DateTradingVolume","CUSIP"))
' Setting the Registered Holders Field in Month Section
Call set_WebEdit_Value("MasterFile","Trading Volume and Price","
Month_RegisteredHolders",DataTable.Value("MonthRegisteredHolders","CUSIP"))
' Setting the CESE Position Field in Month Section
Call set_WebEdit_Value("MasterFile","Trading Volume and Price","
Month_CEDEPosition",DataTable.Value("MonthCESEPosition","CUSIP"))
Call click_Image("MasterFile","Trading Volume and Price","Save")
Call chkFlagImage("MasterFile","Trading Volume and Price","Daily
Price Volume","DateHighPrice;DateLowPrice;DateClosePrice;DateTradingVolume","Ex
ist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 13: Verifying if the
Approval Flag is dispalyed next to the Field modified","The Approval Flag is dis
played next to the Field modified"
Else
Reporter.ReportEvent micFail,"Step 13: Verifying if the
Approval Flag is dispalyed next to the Field modified","The Approval Flag is dis
played next to the Field modified"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("MasterFile","Trading Volume and Price","Home;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++
Public Function MFProfileCUSIP_TC8()
'DataTable.GetSheet("MFLogin").SetCurrentRow(1)
Call invoke_URL("MasterFile","Login Page",Environment.Value("strAppURL")
)
Call Login("MasterFile","Login Page","Relationship Manager","MFLogin")
Call click_WebElement("MasterFile","Depositary Receipt Division's","MasterFil
e")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","CUSIP
"))
If Browser("MasterFile").Page("Profile CUSIP Search").Exist(5) Then
Reporter.ReportEvent micPass,"Step 1 to 5: Verfiying if the Page
' Profile CUSIP Search ' is dispalyed or NOT","The Page ' Profile CUSIP Search
' is displayed successfully"
Else
Reporter.ReportEvent micFail,"Step 1 to 5: Verfiying if the Page
' Profile CUSIP Search ' is dispalyed or NOT","The Page ' Profile CUSIP Search
' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call ProfileCUSIPSearch("MasterFile","Profile CUSIP Search")
blnFlag= "False"
intRowCount = Browser("MasterFile").Page("Profile CUSIP Search").WebTabl
e("CUSIP Search Results").RowCount
For intRowCounter = 1 to intRowCount
intColumnCount = Browser("MasterFile").Page("Profile CUSIP Searc
h").WebTable("CUSIP Search Results").ColumnCount(intRowCount)
For intColumnCounter = 1 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" Then
Reporter.ReportEvent micPass,"Step 6: Verifying if the DR Name "
& DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table or NOT
","The DR " & DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result
Table"
Else
Reporter.ReportEvent micFail,"Step 6: Verifying if the DR Name "
& DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table or NOT
","The DR " & DataTable.Value("DRName","CUSIP") & " is NOT dispalyed in the Res
ult Table"
Environment.Value("TestCase_Log") = "False"
Environment.Value("Execution_Log") = "False"
End If
Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Searc
h Results",DataTable.Value("SelectCUSIPName","CUSIP"))
If Browser("MasterFile").Page("CUSIP Profile").Exist(2) Then
Reporter.ReportEvent micPass,"Step 7: Verfiying if the Page ' Pr
ofile CUSIP Search ' is dispalyed or NOT","The Page ' Profile CUSIP Search ' is
displayed successfully"
Else
Reporter.ReportEvent micFail,"Step 7: Verfiying if the Page ' Pr
ofile CUSIP Search ' is dispalyed or NOT","The Page ' Profile CUSIP Search ' is
NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "True"
End If
CUSIPNumber = get_WebEdit_Value("MasterFile","CUSIP Profile","CUSIPDetai
ls_CUSIP")
Call click_WebElement("MasterFile","CUSIP Profile","Books Closed")
Wait 5
Call pageCheck_WebElementinTable("MasterFile","Books Closed","Books Clos
ed/Open;Closed;Close Date;Close Reason;Open Date;Open Reason;DR Issuance;DR Canc
ellation;DR Pre-Release;Issue/Cancel;DR Apply;Ordinary Apply","")
strCUSIPValue = Browser("MasterFile").Page("Books Closed").WebTable("CUS
IP").GetCellData(1,2)
If strCUSIPValue = CUSIPNumber Then
Reporter.ReportEvent micPass,"Verifying the CUSIP Number display
ed","The CUSIP Number Displayed is " & strCUSIPValue
Else
Reporter.ReportEvent micFail,"Verifying the CUSIP Number display
ed","The CUSIP Number " & strCUSIPValue & " is NOT dispalyed"
Call captureScreenShot()
Environment.Value("TestCase_Log") = "False"
Environment.Value("Execution_Log") = "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: Verifiying the Fields afte
r clicking on Books Closed","The Required Fields are displayed after clicking on
the Books Closed link"
Else
Reporter.ReportEvent micFail,"Step 8: Verifiying the Fields afte
r clicking on Books Closed","The Required Fields are NOT displayed after clickin
g on the Books Closed link"
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
End If
Call DeleteRowBooksClose("MasterFile","Books Closed","DR Issuance")
Call EnterValueinCUSIPBooksClosePage("MasterFile","Books Closed","DR Iss
uance",DataTable.Value("DRIssuance_CloseDate","CUSIP"),DataTable.Value("DRIssuan
ce_CloseReason","CUSIP"),DataTable.Value("DRIssuance_OpenDate","CUSIP"),DataTabl
e.Value("DRIssuance_OpenReason","CUSIP"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9, 10, 11,12, 13: Veriying if
the Entered Value are Displayed in the Respective Fields or NOT","The Entered V
alues are displayed in their Respective Fields"
Else
Reporter.ReportEvent micFail,"Step 9, 10, 11,12, 13: Veriying if
the Entered Value are Displayed in the Respective Fields or NOT","The Entered V
alues are NOT displayed in their Respective Fields"
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
End If
Call DeleteRowBooksClose("MasterFile","Books Closed","DR Cancellation")
Call EnterValueinCUSIPBooksClosePage("MasterFile","Books Closed","DR Cancell
ation",DataTable.Value("DRCancellation_CloseDate","CUSIP"),DataTable.Value("DRCa
ncellation_CloseReason","CUSIP"),DataTable.Value("DRCancellation_OpenDate","CUSI
P"),DataTable.Value("DRCancellation_OpenReason","CUSIP"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 14, 15, 16, 17, 18 : Veriying
if the Entered Value are Displayed in the Respective Fields or NOT","The Entere
d Values are displayed in their Respective Fields"
Else
Reporter.ReportEvent micFail,"Step 14, 15, 16, 17, 18 : Veriying
if the Entered Value are Displayed in the Respective Fields or NOT","The Entere
d Values are NOT displayed in their Respective Fields"
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
End If
Call DeleteRowBooksClose("MasterFile","Books Closed","DR PreRelease")
Call EnterValueinCUSIPBooksClosePage("MasterFile","Books Closed","DR Pre
Release",DataTable.Value("DRPreRelease_CloseDate","CUSIP"),DataTable.Value("DRPr
eRelease_CloseReason","CUSIP"),DataTable.Value("DRPreRelease_OpenDate","CUSIP"),
DataTable.Value("DRPreRelease_OpenReason","CUSIP"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 19, 20, 21, 22, 23 : Veriying
if the Entered Value are Displayed in the Respective Fields or NOT","The Entere
d Values are displayed in their Respective Fields"
Else
Reporter.ReportEvent micFail,"Step 19, 20, 21, 22, 23 : Veriying
if the Entered Value are Displayed in the Respective Fields or NOT","The Entere
d Values are NOT displayed in their Respective Fields"
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
End If
Call DeleteRowBooksClose("MasterFile","Books Closed","IssueCancel")
Call EnterValueinCUSIPBooksClosePage("MasterFile","Books Closed","IssueC
ancel",DataTable.Value("IssueCancel_CloseDate","CUSIP"),DataTable.Value("IssueCa
ncel_CloseReason","CUSIP"),DataTable.Value("IssueCancel_OpenDate","CUSIP"),DataT
able.Value("IssueCancel_OpenReason","CUSIP"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 24, 25, 26, 27, 28 : Veriying
if the Entered Value are Displayed in the Respective Fields or NOT","The Entere
d Values are displayed in their Respective Fields"
Else
Reporter.ReportEvent micFail,"Step 24, 25, 26, 27, 28 : Veriying
if the Entered Value are Displayed in the Respective Fields or NOT","The Entere
d Values are NOT displayed in their Respective Fields"
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
End If
Call DeleteRowBooksClose("MasterFile","Books Closed","DR Apply")
Call EnterValueinCUSIPBooksClosePage("MasterFile","Books Closed","DR App
ly",DataTable.Value("DRApply_CloseDate","CUSIP"),DataTable.Value("DRApply_CloseR
eason","CUSIP"),DataTable.Value("DRApply_OpenDate","CUSIP"),DataTable.Value("DRA
pply_OpenReason","CUSIP"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 29, 30, 31, 32, 33 : Veriying
if the Entered Value are Displayed in the Respective Fields or NOT","The Entere
d Values are displayed in their Respective Fields"
Else
Reporter.ReportEvent micFail,"Step 29, 30, 31, 32, 33 : Veriying
if the Entered Value are Displayed in the Respective Fields or NOT","The Entere
d Values are NOT displayed in their Respective Fields"
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
End If
Call DeleteRowBooksClose("MasterFile","Books Closed","Ordinary Apply")
Call EnterValueinCUSIPBooksClosePage("MasterFile","Books Closed","Ordina
ry Apply",DataTable.Value("OrdinaryApply_CloseDate","CUSIP"),DataTable.Value("Or
dinaryApply_CloseReason","CUSIP"),DataTable.Value("OrdinaryApply_OpenDate","CUSI
P"),DataTable.Value("OrdinaryApply_OpenReason","CUSIP"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 34, 35, 36, 37, 38 : Veriying
if the Entered Value are Displayed in the Respective Fields or NOT","The Entere
d Values are displayed in their Respective Fields"
Else
Reporter.ReportEvent micFail,"Step 34, 35, 36, 37, 38 : Veriying
if the Entered Value are Displayed in the Respective Fields or NOT","The Entere
d Values are NOT displayed in their Respective Fields"
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
End If
Call EnterValueinCUSIPBooksClosePage("MasterFile","Books Closed","Ordina
ry Apply",DataTable.Value("OrdinaryApply_CloseDate","CUSIP"),DataTable.Value("Or
dinaryApply_CloseReason","CUSIP"),DataTable.Value("OrdinaryApply_OpenDate","CUSI
P"),DataTable.Value("OrdinaryApply_OpenReason","CUSIP"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 39, 40, 41, 42, 43 : Veriying
if the Entered Value are Displayed in the Respective Fields or NOT","The Entere
d Values are displayed in their Respective Fields"
Else
Reporter.ReportEvent micFail,"Step 39, 40, 41, 42, 43 : Veriyin
g if the Entered Value are Displayed in the Respective Fields or NOT","The Enter
ed Values are NOT displayed in their Respective Fields"
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
End If
intRowCount = Browser("MasterFile").Page("Books Closed").WebTable("Ordin
ary Apply").RowCount
intColumnCount = Browser("MasterFile").Page("Books Closed").WebTable("Or
dinary Apply").ColumnCount(intRowCount)
For intColumnCounter = 1to intColumnCount
intImageCount = Browser("MasterFile").Page("Books Closed").WebTa
ble("Ordinary Apply").ChildItemCount(intRowCount,intColumnCounter,"Image")
If intImageCount > 0 Then
strFileName = Browser("MasterFile").Page("Books Closed")
.WebTable("Ordinary Apply").ChildItem(intRowCount,intColumnCounter,"Image",0).Ge
tROProperty("file name")
If strFileName = "closebutton.jpg" Then
Browser("MasterFile").Page("Books Closed").WebTa
ble("Ordinary Apply").ChildItem(intRowCount,intColumnCounter,"Image",0).Click
If Browser("MasterFile").Dialog("Microsoft Inter
net Explorer").WinButton("OK").Exist(2) Then
Browser("MasterFile").Dialog("Microsoft
Internet Explorer").WinButton("OK").Click
Exit For
End If
End If
End If
Next
intFinalRowCount = Browser("MasterFile").Page("Books Closed").WebTable("
Ordinary Apply").RowCount
If intFinalRowCount = intRowCount -1 Then
Reporter.ReportEvent micPass,"Step 44 :Verifying if the Row is R
emoved or NOT","The Row is Removed successfully after clicking on Cross Button"
Else
Reporter.ReportEvent micFail,"Step 44 : Verifying if the Row is
Removed or NOT","The Row is NOT Removed successfully after clicking on Cross But
ton"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call click_Image("MasterFile","Books Closed","Save")
Wait(5)
Call FlagImageCheck("MasterFile","Books Closed","DR Issuance","Exist")
Call FlagImageCheck("MasterFile","Books Closed","DR Cancellation","Exist
")
Call FlagImageCheck("MasterFile","Books Closed","DR PreRelease","Exist")
Call FlagImageCheck("MasterFile","Books Closed","IssueCancel","Exist")
Call FlagImageCheck("MasterFile","Books Closed","DR Apply","Exist")
Call FlagImageCheck("MasterFile","Books Closed","Ordinary Apply","Exist"
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 45: Verifying if the Yellow F
lag Exist or NOT and the Chamges are Saved","The Yellow Flag Exist and the data
entered are Saved"
Else
Reporter.ReportEvent micFail,"Step 45: Verifying if the Yellow F
lag Exist or NOT.","The Yellow Flag Exist does not exist"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call logoutfromApp("MasterFile","Books Closed")
Call invoke_URL("MasterFile","Login Page",Environment.Value("strAppURL")
)
Call login("MasterFile","Login Page","Approver","MFLogin")
Call ApprovalFunction("MasterFile","Books Closed/Open","CUSIP Name;Last
User Updated;Last Updated",DataTable.Value("SelectCUSIPName","CUSIP"),DataTable.
Value("ApproveComments","CUSIP"),"Approved","Pending Approval")
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"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Else
Reporter.ReportEvent micPass,"Verifying if the Applicati
on is LoggedOuted or NOT","The Application is LoggedOut Successfully"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 46, 47, 48, 49, 50, 51, 52,
53, 54 : Verifying the Changed details are Approved or NOT","The Changes made to
the CUSIP " & DataTable.Value("SelectCUSIPName","CUSIP") & " is Approved"
Else
Reporter.ReportEvent micFail, "Step 46, 47, 48, 49, 50, 51, 52, 53, 54 :
Verifying the Changed details are Approved or NOT","The Changes made to the CUS
IP are not Approved"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call invoke_URL("MasterFile","Login Page",Environment.Value("strAppURL")
)
Call login("MasterFile","Login Page","Relationship Manager","MFLogin")
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","C
USIP"))
Call set_WebEdit_Value("MasterFile","Profile CUSIP Search","CUSIPName",Data
Table.Value("SelectCUSIPName","CUSIP"))
Call click_Image("MasterFile","Profile CUSIP Search","Search")
Call chkActiveFlagImage("MasterFile","Profile CUSIP Search","CUSIP Searc
h Results","Active Flag",DataTable.Value("SelectCUSIPName","CUSIP"),"Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 56 : Verfiying if the Red Tic
k Image is dispalyed in the Active Flag Column","The Red Tick Image is Present i
n the Column Active Flag"
Else
Reporter.ReportEvent micFail,"Step 56 : Verfiying if the Red Tic
k Image is dispalyed in the Active Flag Column","The Red Tick Image is NOT Prese
nt in the Column Active Flag"
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"))
Call click_WebElement("MasterFile","CUSIP Profile","Books Closed")
Wait(5)
Call FlagImageCheck("MasterFile","Books Closed","DR Issuance","Not Exist
")
Call FlagImageCheck("MasterFile","Books Closed","DR Cancellation","Not E
xist")
Call FlagImageCheck("MasterFile","Books Closed","DR PreRelease","Not Exi
st")
Call FlagImageCheck("MasterFile","Books Closed","IssueCancel","Not Exist
")
Call FlagImageCheck("MasterFile","Books Closed","DR Apply","Not Exist")
Call FlagImageCheck("MasterFile","Books Closed","Ordinary Apply","Not Ex
ist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 57: Verifying if the Yellow F
lag Exist or NOT","The Yellow Flag does not exist"
Else
Reporter.ReportEvent micFail,"Step 57: Verifying if the Yellow F
lag Exist or NOT","The Yellow Flag Exist"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Call select_Menu("MasterFile","Books Closed","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++
Public Function MFProfileCUSIP_TC9()
Call invoke_URL("MasterFile","Login Page",Environment.Value("strAppURL")
)
Call login("MasterFile","Login Page","User","MFLogin")
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","CUSIP
"))
If Browser("MasterFile").Page("Profile CUSIP Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 1 to 5: Verfiying if the Page
' Profile CUSIP Search ' is dispalyed or NOT","The Page ' Profile CUSIP Search
' is displayed successfully"
Else
Reporter.ReportEvent micFail,"Step 1 to 5: Verfiying if the Page
' Profile CUSIP Search ' is dispalyed or NOT","The Page ' Profile CUSIP Search
' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "True"
End If
Call ProfileCUSIPSearch("MasterFile","Profile CUSIP Search")
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" Then
Reporter.ReportEvent micPass,"Step 6: Verifying if the DR Name "
& DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table or NOT
","The DR " & DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result
Table"
Else
Reporter.ReportEvent micFail,"Step 6: Verifying if the DR Name "
& DataTable.Value("DRName","CUSIP") & " is dispalyed in the Result Table or NOT
","The DR " & DataTable.Value("DRName","CUSIP") & " is NOT dispalyed in the Res
ult Table"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call SelectValueinTable("MasterFile","Profile CUSIP Search","CUSIP Searc
h Results",DataTable.Value("SelectCUSIPName","CUSIP"))
If Browser("MasterFile").Page("CUSIP Profile").Exist(2) Then
Reporter.ReportEvent micPass,"Step 7: Verfiying if the Page ' Pr
ofile CUSIP Search ' is dispalyed or NOT","The Page ' Profile CUSIP Search ' is
displayed successfully"
Else
Reporter.ReportEvent micFail,"Step 7: Verfiying if the Page ' Pr
ofile CUSIP Search ' is dispalyed or NOT","The Page ' Profile CUSIP Search ' is
NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "True"
End If
strAppURL = Browser("MasterFile").GetROProperty("openurl")
strURL = Split(strAppURL,"/",-1,1)
strRequiredURL = strURL(0)&"/"& strURL(1) & "/"& strURL(2) & "/"
strURLText = strRequiredURL&"adrmasterfile/traninfo.jsp.*"
CUSIPNumber = get_WebEdit_Value("MasterFile","CUSIP Profile","CUSIPDetai
ls_CUSIP")
Call click_WebElement("MasterFile","CUSIP Profile","Transaction Information"
)
If Browser("title:= " & strURLText).Exist(5) Then
Reporter.ReportEvent micPass,"Step 8: Verifying if the Bowser wi
th title " & strURLText & " is displayed or NOT","The Browser with title " & st
rURLText & " is displayed successfully"
Else
Reporter.ReportEvent micFail,"Step 8: Verifying if the Bowser wi
th title " & strURLText & " is displayed or NOT","The Browser with title " & str
URLText & " is displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Checking for the Fields Present
Call pageCheck_WebEditOR("Profile CUSIP","Profile CUSIP","ReportableDRsO
utstanding;LastClosedDRs;DRsIssued;DRsAvailable;DRsSwitched")
Call pageCheck_WebEditOR("Profile CUSIP","Profile CUSIP","CurrentDRsOuts
tanding;Custodian;Broker;DTCInventory;NYVault;PendingIssuance;PendingIssueCancel
;PendingCancellation")
Call pageCheck_WebEditOR("Profile CUSIP","Profile CUSIP","DRIssuance;Iss
ueCancel;DRCancellation;DRPreRelease;DRApply;Vault;TotalBalance")
Call pageCheck_WebEditOR("Profile CUSIP","Profile CUSIP","AutoMark;AutoS
PO;FeeCollateralSPO")
Call pageCheck_WebElementinTable("Profile CUSIP","Profile CUSIP","Balanc
e Information;SPO Information","")
' Checking if the Fields are greyed out or Read Only
Call chkWebEditReadOnly("Profile CUSIP","Profile CUSIP","ReportableDRsOu
tstanding;LastClosedDRs;DRsIssued;DRsAvailable;DRsSwitched","ReadOnly")
Call chkWebEditReadOnly("Profile CUSIP","Profile CUSIP","CurrentDRsOutst
anding;Custodian;Broker;DTCInventory;NYVault;PendingIssuance;PendingIssueCancel;
PendingCancellation","ReadOnly")
Call chkWebEditReadOnly("Profile CUSIP","Profile CUSIP","DRIssuance;Issu
eCancel;DRCancellation;DRPreRelease;DRApply;Vault;TotalBalance","ReadOnly")
Call chkWebEditReadOnly("Profile CUSIP","Profile CUSIP","AutoMark;AutoSP
O;FeeCollateralSPO","ReadOnly")
' Checking for the Default Value:
Call GetMultipleValue_WebEdit("Profile CUSIP","Profile CUSIP","ReportableDRs
Outstanding;LastClosedDRs;DRsIssued;DRsAvailable;DRsSwitched")
Call GetMultipleValue_WebEdit("Profile CUSIP","Profile CUSIP","CurrentDR
sOutstanding;Custodian;Broker;DTCInventory;NYVault;PendingIssuance;PendingIssueC
ancel;PendingCancellation")
Call GetMultipleValue_WebEdit("Profile CUSIP","Profile CUSIP","DRIssuanc
e;IssueCancel;DRCancellation;DRPreRelease;DRApply;Vault;TotalBalance")
Call GetMultipleValue_WebEdit("Profile CUSIP","Profile CUSIP","AutoMark;
AutoSPO;FeeCollateralSPO")
strCurrCUSIPNumber = Browser("Profile CUSIP").Page("Profile CUSIP").WebT
able("Transaction Information").GetCellData(1,1)
If InStr(1,strCurrCUSIPNumber,CUSIPNumber) <> 0 Then
blnCUSIPNumFlag = "True"
Else
blnCUSIPNumFlag = "False"
End If
blnFlag = "False"
intRowCount = Browser("Profile CUSIP").Page("Profile CUSIP").WebTable("CUSIP
Name Table").RowCount
For intRC = 1to intRowCount
intColCount = Browser("Profile CUSIP").Page("Profile CUSIP").Web
Table("CUSIPName Table").ColumnCount(intRC)
For intCC = 1 to intColCount
strValue = Browser("Profile CUSIP").Page("Profile CUSIP
").WebTable("CUSIPName Table").GetCellData(intRC,intCC)
If UCase(Trim(strValue)) = UCase(Trim(DataTable.Value("S
electCUSIPName","CUSIP"))) OR InStr(1,strValue,"Created") <> 0 OR Instr(1,strVal
ue,"Updated") <> 0 Then
blnFlag = "True"
End If
Next
Next
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" AND b
lnCUSIPNumFlag = "True" Then
Reporter.ReportEvent micPass,"Step 9:Verifying the CUSIP Name, F
ields present in the Page","The CUSIP Name displayed in the page is " & DataTabl
e.Value("SelectCUSIPName","CUSIP") & " and the fields are Greyed out"
Else
Reporter.ReportEvent micFail,"Step 9: Verifying the CUSIP Name,
Fields present in the Page","The Requied Fields are NOT Present or Not greyed ou
t"
Call captureScreenShot()
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Browser("Profile CUSIP").Close
Call select_Menu("MasterFile","CUSIP Profile","Home;DR Home")
End Function

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

Public Function MFProfileCUSIP_TC10()


Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","CUSIP
"))
If Browser("MasterFile").Page("Profile CUSIP Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 1 to 5: Verfiying if the Page
' Profile CUSIP Search ' is dispalyed or NOT","The Page ' Profile CUSIP Search
' is displayed successfully"
Else
Reporter.ReportEvent micFail,"Step 1 to 5: Verfiying if the Page
' Profile CUSIP Search ' is dispalyed or NOT","The Page ' Profile CUSIP Search
' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "True"
End If
Call click_Image("MasterFile","Profile CUSIP Search","New")
'Call chkWebEditMandatoryProperty("MasterFile","CUSIP Profile Orphan","N
ame;BriefName;Ratio DRs;RatioUnderlyingShares;DRExchange;EntryReason;CUSIP")
'Call chkWeblistMandatoryProperty("MasterFile","CUSIP Profile Orphan","H
omeMarketCountry;ActiveFlag")
'Call pageCheck_WebEditOR("MasterFile","CUSIP Profile Orphan","UnderlyingISI
N;PricingSEDOL;EffectiveFlag;Type;Price;UnderlyingSEDOL;ShareBase")
Call chkWebEditMandatoryProperty("MasterFile","CUSIP Profile Orphan","Name;B
riefName;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 : Verifying the Man
datory and Non Mandatory Fields in the Page CUSIP Profile Orphan","The Required
Mandatory and Non Mandatory Fields are Present in the Page CUSIP Profile Orphan"
Else
Reporter.ReportEvent micFail,"Step 6 : Verifying the Man
datory and Non Mandatory Fields in the Page CUSIP Profile Orphan","The Required
Fields are NOT Present in the Page CUSIP Profile Orphan"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call click_Image("MasterFile","CUSIP Profile Orphan","Save")
' Checks if the Validation Error is dispalyed with the Mandatory Fields
strMandatoryValue = ValidationErrorDetails("MasterFile","CUSIP Profile O
rphan","Validation Error",DataTable.Value("ValidationErrorDetails","CUSIP"),"Det
ail")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7 : Verfiying the Mandatory F
ields dispalyed in the Validation Error Table","The Mandatory Fields are Display
ed in the Validation Error Table and the Mandatory Fields are " & strMandatoryVa
lue
Else
Reporter.ReportEvent micFail,"Step 7 : 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
' Clicks on the Elements in the Validation Error Table and checks if the
Corresponding field are focus
Call clkValidationErrorElement("MasterFile","CUSIP Profile Orphan","Vali
dation Error",DataTable.Value("ValidationErrorWebEditElements","CUSIP"),DataTabl
e.Value("ValidationErrorWebEditRepElements","CUSIP"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8 to 15 : Verifiyng if the Co
rresponding Filed are highlighted in Red","The Corresponding Fields are Highligh
ted in RED when clicked on the Element in the Validation Error Table"
Else
Reporter.ReportEvent micFail,"Step 8 to 15 : Verifiyng if the Co
rresponding Filed are highlighted in Red","The Corresponding Fields are NOT High
lighted in RED when clicked on the Element 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 16 : Clicked on Close Button in the


Validation Error Table","Successfully clicked on Close Button in Validation Erro
r Table"
' Entering DR Exchange Value
blnFlag = "False"
Call click_Image("MasterFile","CUSIP Profile Orphan","DRExchange")
intRowCount = Browser("MasterFile").Page("CUSIP Profile Orphan").Frame(
"lookupFrame").WebTable("Exchange").RowCount
For intRowCounter = 1 to intRowCount
intColumnCount = Browser("MasterFile").Page("CUSIP Profi
le Orphan").Frame("lookupFrame").WebTable("Exchange").ColumnCount(intRowCounter)
For intColumnCounter = 1 to intColumnCount
strCellData = Browser("MasterFile").Page
("CUSIP Profile Orphan").Frame("lookupFrame").WebTable("Exchange").GetCellData(i
ntRowCounter,intColumnCounter)
If Trim(strCellData) = DataTable.Value("
DRExchange","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,"DR Exchange","")
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 17 : 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 17 : Verfiying the Mandatory
Fields dispalyed in the Validation Error Table","The Mandatory Fields are NOT Di
splayed 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 18 : 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","RatioUnderly
ingShares",DataTable.Value("RatioUnderlyingShares","CUSIP"))
Call click_Image("MasterFile","CUSIP Profile Orphan","Save")
strMandatoryValue = Replace(strMandatoryValue,"Ratio Underlying Shares",
"")
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 19 : 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 19 : Verfiying the Mandatory
Fields dispalyed in the Validation Error Table","The Mandatory Fields are NOT Di
splayed 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 20 : Clicked on Close Button in the
Validation Error Table","Successfully clicked on Close Button in Validation Erro
r Table"
strCurrentTime = Time
strCurrentDate = Date
strDate = Split(strCurrentDate,"/" ,-1,1)
strTime = Split(strCurrentTime,":",-1,1)
strDateTimeStamp = strDate(0) &strDate(1)&strDate(2) & " "& strTime(0)
& strTime(1) & strTime(2)
CUSIPNames = "Automation_" & strDateTimeStamp
CUSIPName = Replace(CUSIPNames," ","")
Call set_WebEdit_Value("MasterFile","CUSIP Profile Orphan","CUSIPName",C
USIPName)
'Browser("MasterFile").Page("CUSIP Profile Orphan").WebEdit("BriefName")
.Set ""
Call click_Image("MasterFile","CUSIP Profile Orphan","Save")
Wait 5
intLen = Len("Name;")
intPos1 = Instr(1,strMandatoryValue,"Name;")
If intPos1 <> 0 Then
strMandatoryValue = Trim(Mid(strMandatoryValue,intLen+intPos))
End If

intPos = InStr(1,strMandatoryValue,";")
If intPos = 1 Then
strMandatoryField = Trim(Mid(strMandatoryValue,intPos+1))
Else
strMandatoryField = Trim(strMandatoryValue)
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"
Reporter.ReportEvent micWarning,"Step 21: Verfiying the Mandator
y Fields displayed in the Validation Error Table","The Mandatory Fields 'Brief N
ame' is filled automatically after filling the Name"
'Call captureScreenShot()
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")
Wait 5
strMandatoryValue = Replace(strMandatoryValue,"Brief Name","")
Wait 5
intPos = InStr(1,strMandatoryValue,";")
If intPos = 1 Then
strMandatoryField = Trim(Mid(strMandatoryValue,intPos+1))
Else
strMandatoryField = Trim(strMandatoryValue)
End If
Wait 5
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(strMandatoryValue)
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(strMandatoryValue)
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(strMandatoryValue)
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

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

Public Function MFProfileCUSIP_TC11()


Call click_WebElement("MasterFile","Depositary Receipt Division's","MasterFil
e")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","CUSIP
"))
If Browser("MasterFile").Page("Profile CUSIP Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 1 to 5: Verfiying if the Page
' Profile CUSIP Search ' is dispalyed or NOT","The Page ' Profile CUSIP Search
' is displayed successfully"
Else
Reporter.ReportEvent micFail,"Step 1 to 5: Verfiying if the Page
' Profile CUSIP Search ' is dispalyed or NOT","The Page ' Profile CUSIP Search
' is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "True"
End If
'Call ProfileCUSIPSearch("MasterFile","Profile CUSIP Search")
Call set_WebEdit_Value("MasterFile","Profile CUSIP Search","CUSIPName",D
ataTable.Value("CUSIPName","CUSIP"))
Call Select_Combo_Value("MasterFile","Profile CUSIP Search","Status",Dat
aTable.Value("Status","CUSIP"))
Call click_Image("MasterFile","Profile CUSIP Search","Search")
blnFlag = "False"
intElementCount = 0
intRowCount = Browser("MasterFile").Page("Profile CUSIP Search").WebTabl
e("CUSIP Search Results").RowCount
For intRowCounter = 1 to intRowCount
intColumnCount = Browser("MasterFile").Page("Profile CUSIP Searc
h").WebTable("CUSIP Search Results").ColumnCount(intRowCounter)
For intColumnCounter = 1 to intColumnCount
strCellData = Browser("MasterFile").Page("Profile CUSIP
Search").WebTable("CUSIP Search Results").GetCellData(intRowCounter,intColumnCou
nter)
If UCase(Trim(strCellData)) = UCase(Trim(DataTable.Value
("CUSIPName","CUSIP"))) Then
intElementCount = intElementCount +1
blnFlag = "True"
End If
Next
Next
If blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 5, 6: Verifying if the Result
s are dispalyed based on the Search Result","The Results are based on the Search
Results"
Else
Reporter.ReportEvent micFail,"Step 5, 6: Verifying if the Result
s are dispalyed based on the Search Result","The Results are NOT disaplayed for
the Search Criteria"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("MasterFile","Profile CUSIP Search","REPORTS;CUSIP;Sear
ch")
Call set_WebEdit_Value("MasterFile","Reports - CUSIP Search","CUSIPName"
,DataTable.Value("CUSIPName","CUSIP"))
Call Select_Combo_Value("MasterFile","Reports - CUSIP Search","Effective
Flag",DataTable.Value("EffectiveFlag","CUSIP"))
Call click_Image("MasterFile","Reports - CUSIP Search","Search")
Call ReportLoadWait("MasterFile","Reports - CUSIP Search Result","Item",
"Item")
intCurrentElementCount = 0
intRowCount = Browser("MasterFile").Page("Reports - CUSIP Search Result"
).WebTable("Item").RowCount
For intRowCounter = 1 to intRowCount
intColumnCount = Browser("MasterFile").Page("Reports - CUSIP Sea
rch Result").WebTable("Item").ColumnCount(intRowCounter)
For intColumnCounter = 1to intColumnCount
strAppCellData = Browser("MasterFile").Page("Reports - C
USIP Search Result").WebTable("Item").GetCellData(intRowCounter,intColumnCounter
)
If UCase(Trim(strAppCellData)) = UCase(Trim(DataTable.Va
lue("CUSIPName","CUSIP"))) Then
intCurrentElementCount = intCurrentElementCount
+ 1
End If
Next
Next
If intRowCount >= 1 Then
Reporter.ReportEvent micPass,"Step 7: Verifying if the Results a
re dispalyed based on the Search Criteria","The Results are displayed based on t
he Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 7: Verifying if the Results a
re dispalyed based on the Search Criteria","The Results are NOT displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
If intCurrentElementCount = intElementCount Then
Reporter.ReportEvent micPass,"Step 8: Verfiying if the Count of
CUSIP is Same in Profile --> CUSIP and Reports --> CUSIP","The Number of Items d
ispalyed with the CUSIP Name " & DataTable.Value("CUSIPName","CUSIP") & " is equ
al to " & intCurrentElementCount
Else
Reporter.ReportEvent micFail,"Step 8: Verfiying if the Count of
CUSIP is Same in Profile --> CUSIP and Reports --> CUSIP","The Number of Items d
ispalyed with the CUSIP Name " & DataTable.Value("CUSIPName","CUSIP") & " is NOT
equal to " & intCurrentElementCount
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("MasterFile","Reports - CUSIP Search Result",DataTable.
Value("MenuPath","CUSIP"))
Call set_WebEdit_Value("MasterFile","Profile CUSIP Search","CUSIPName",D
ataTable.Value("CUSIPName","CUSIP"))
Call Select_Combo_Value("MasterFile","Profile CUSIP Search","HomeMarketC
ountry",DataTable.Value("HomeMarketCountry","CUSIP"))
Call click_Image("MasterFile","Profile CUSIP Search","Search")
blnFlag = "False"
intElementCount = 0
intRowCounts = Browser("MasterFile").Page("Profile CUSIP Search").WebTab
le("CUSIP Search Results").RowCount
For intRowCounter = 1 to intRowCounts
intColumnCount = Browser("MasterFile").Page("Profile CUSIP Searc
h").WebTable("CUSIP Search Results").ColumnCount(intRowCounter)
For intColumnCounter = 1 to intColumnCount
strCellData = Browser("MasterFile").Page("Profile CUSIP
Search").WebTable("CUSIP Search Results").GetCellData(intRowCounter,intColumnCou
nter)
If UCase(Trim(strCellData)) = UCase(Trim(DataTable.Value
("CUSIPName","CUSIP"))) Then
intElementCount = intElementCount +1
blnFlag = "True"
End If
Next
Next
If blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 9, 10: Verifying if the Resul
ts are dispalyed based on the Search Result","The Results are based on the Searc
h Results"
Else
Reporter.ReportEvent micFail,"Step : Verifying if the Results ar
e dispalyed based on the Search Result","The Results are NOT disaplayed for the
Search Criteria"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("MasterFile","Profile CUSIP Search","REPORTS;CUSIP;Sear
ch")
Call set_WebEdit_Value("MasterFile","Reports - CUSIP Search","CUSIPName"
,DataTable.Value("CUSIPName","CUSIP"))
Call Select_Combo_Value("MasterFile","Reports - CUSIP Search","HomeCount
ry",DataTable.Value("HomeMarketCountry","CUSIP"))
Call click_Image("MasterFile","Reports - CUSIP Search","Search")
Call ReportLoadWait("MasterFile","Reports - CUSIP Search Result","Item",
"Item")
intCurrentElementCount = 0
intRowCount = Browser("MasterFile").Page("Reports - CUSIP Search Result"
).WebTable("Item").RowCount
For intRowCounter = 1 to intRowCount
intColumnCount = Browser("MasterFile").Page("Reports - CUSIP Sea
rch Result").WebTable("Item").ColumnCount(intRowCounter)
For intColumnCounter = 1to intColumnCount
strAppCellData = Browser("MasterFile").Page("Reports - C
USIP Search Result").WebTable("Item").GetCellData(intRowCounter,intColumnCounter
)
If UCase(Trim(strAppCellData)) = UCase(Trim(DataTable.Va
lue("CUSIPName","CUSIP"))) Then
intCurrentElementCount = intCurrentElementCount
+ 1
End If
Next
Next
If intRowCount >= 1 Then
Reporter.ReportEvent micPass,"Step 11: Verifying if the Results
are dispalyed based on the Search Criteria","The Results are displayed based on
the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 11: Verifying if the Results
are dispalyed based on the Search Criteria","The Results are NOT displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
If intCurrentElementCount = intElementCount Then
Reporter.ReportEvent micPass,"Step 12: Verfiying if the Count of
CUSIP is Same in Profile --> CUSIP and Reports --> CUSIP","The Number of Items
dispalyed with the CUSIP Name " & DataTable.Value("CUSIPName","CUSIP") & " is eq
ual to " & intCurrentElementCount
Else
Reporter.ReportEvent micFail,"Step 12 : Verfiying if the Count
of CUSIP is Same in Profile --> CUSIP and Reports --> CUSIP","The Number of Item
s dispalyed with the CUSIP Name " & DataTable.Value("CUSIPName","CUSIP") & " is
NOT equal to " & intCurrentElementCount
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("MasterFile","Reports - CUSIP Search Result","Home;DR H
ome")

End Function

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

Das könnte Ihnen auch gefallen