You are on page 1of 40

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

==========================
' Name of the Script : MFProfileUnderlyingSecuri
ty
' Scope of the Script : This test script covers 1
3 test cases related to MasterFile Profile Underlying Security
' Author : Mohan Gummadi
' Description : MFProfileUnderlyingS
ecurity
' Date and / or Version : 13-02-2009,version 1.0
'===============================================================================
============================
Sub MFProfileUnderlyingSecurity()
'****Declaration of Environmental Variable
Environment.Value("Execution_Log")="True"
Environment.Value("TestCase_Log")="True"
'''''''''Test case count
Const TC_COUNT =13
strVar = Environment("TestDir")
strIndVar = Split(strVar,"\",-1,1)
strBound = UBound(strIndVar)
strAllPath =""
For intPathCounter = 0 to strBound - 1
strAllPath = strAllPath & strIndVar(intPathCount
er) &"\"
Next
strPath = Trim(strPath)
strDataPath = strAllPath & "DataTables\"
strLibPath = strAllPath & "Function_Library\"
'****Adding MFLogin sheet to the dataTable and Importing the Input DataT
able
DataTable.AddSheet "MFLogin"
DataTable.ImportSheet strDataPath & "Login.xls","MFLogin","MFLog
in"
DataTable.AddSheet "UnderlyingSecurity"
DataTable.ImportSheet strDataPath & "MasterFileProfile.xls","Und
erlyingSecurity","UnderlyingSecurity"
DataTable.AddSheet "ReportHeader"
DataTable.ImportSheet strDataPath & "MasterFileProfile.xls","Rep
ortHeader","ReportHeader"
'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)
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_pas
sword","")
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("UnderlyingSecurity").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'***************************************** TC Driver Strat *****
**************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"
If DataTable("TestRunFlag","UnderlyingSecurity") = "Y" T
hen ''If run flag is Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TES
T CASE - '" & DataTable("TestCaseID","UnderlyingSecurity") & "' ########### ","E
xecution of Test Case '" & DataTable("TestCaseDesc","UnderlyingSecurity") & "' S
tarted"
strFuncName = "MFProfileUnderlyingSecurity_TC" &
intTCCount & "()"
Execute "Call " & strFuncName
If Environment.Value("Execution_Log") = "True"
Then
Call Execution_log("",Datatable.
Value("TestCaseID", "UnderlyingSecurity"), Datatable.Value("TestCaseDesc", "Unde
rlyingSecurity"), "PASS")
Else
Call Execution_log("",Datatable.
Value("TestCaseID", "UnderlyingSecurity"), Datatable.Value("TestCaseDesc", "Unde
rlyingSecurity"), "FAIL")
End If
Reporter.ReportEvent micDone,"######### END OF T
EST CASE - '" & DataTable("TestCaseID","UnderlyingSecurity") & "###########","Th
e Test Case Execution Completed"
End If
strPrevious=Trim(DataTable.Value("TestCaseID","Underlyin
gSecurity"))
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("UnderlyingSecurity").SetCurrentRow(E
nvironment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","UnderlyingSec
urity"))
While strPrevious = strNext
Environment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("UnderlyingSecurity").SetCurr
entRow(Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","Under
lyingSecurity"))
Wend
Next
Call logoutfromApp("MasterFile","Depositary Receipt Division's"
)
'***************************************** TC Driver End *******
************************************************

End Sub
'**********************************************Test Case 1 to Test Case 13******
********************************************
Public Function MFProfileUnderlyingSecurity_TC1()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Click on p
rofile Link","The Profile Link list is containing Underlying Security"
Else
Reporter.ReportEvent micFail,"Step 1: Click on p
rofile Link","The Profile Link list is not containing Underlying Security"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call pageCheck_WebEditOR("MasterFile","Profile - Underlying Secu
rity Search","IssuerName;UnderlyingISIN;UnderlyingSecurityName;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Profile - Underlying Secu
rity Search","CountryofExchange;Status;Type")
Call chkReportHeaderGeneric("MasterFile","Profile - Underlying S
ecurity Search","MFProfileUnderlyingSecurity","ReportHeader","UnderlyingSecurity
Search")
Call pageCheck_ImageOR("MasterFile","Profile - Underlying Securi
ty Search","Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Click on U
nderlying Security","Fields are displayed correctly in underlying security searc
h"
Else
Reporter.ReportEvent micFail,"Step 5: Click on U
nderlying Security","Fields are not displayed correctly in underlying security s
earch"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Underlying Security Sea
rch","Home;DR Home")
End Function

'*******************************************************************************
*****
Public Function MFProfileUnderlyingSecurity_TC2()
Environment.Value("TestCase_Log")="True"
'Step #1
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(5)
Then
Reporter.ReportEvent micPass,"DR Home page is di
splayed or not","DR Home page is displayed"
Else
Reporter.ReportEvent micPass,"DR Home page is di
splayed or not","DR Home page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("Depositary Receipt Division's").W
ebElement( "MasterFile").Exist(5) Then
Reporter.ReportEvent micPass,"Verify MasterFile
link is displayed in ADR home or not","MasterFile link is displayed"
Else
Reporter.ReportEvent micFail,"Verify MasterFile
link is displayed in ADR home or not","MasterFile link is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: From the H
ome menu, select DR Home","DR Home page are displayed with the corresponding lin
ks"
Else
Reporter.ReportEvent micFail,"Step 1: From the H
ome menu, select DR Home","DR Home page are not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Browser("MasterFile").Page("Depositary Receipt Division's").WebE
lement("MasterFile").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on M
aster File","Master File screen is displayed with Welcome Message and the Built
Date"
Else
Reporter.ReportEvent micFail,"Step 2: Click on M
aster File","Master File screen is not displayed with Welcome Message and the Bu
ilt Date"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","UnderlyingSecurity"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on P
rofile Link","The Profile Link list is containing Underlying Security"
Else
Reporter.ReportEvent micFail,"Step 3: Click on P
rofile Link","The Profile Link list is not containing Underlying Security"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call pageCheck_WebEditOR("MasterFile","Profile - Underlying Secu
rity Search","IssuerName;UnderlyingISIN;UnderlyingSecurityName;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Profile - Underlying Secu
rity Search","CountryofExchange;Status;Type")
Call chkReportHeaderGeneric("MasterFile","Profile - Underlying S
ecurity Search","MFProfileUnderlyingSecurity","ReportHeader","UnderlyingSecurity
Search")
Call pageCheck_ImageOR("MasterFile","Profile - Underlying Securi
ty Search","Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on U
nderlying Security","Fields are displayed correctly in underlying security searc
h"
Else
Reporter.ReportEvent micFail,"Step 4: Click on U
nderlying Security","Fields are not displayed correctly in underlying security s
earch"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Clear").Click
Call FieldCheckClear_NotClear("MasterFile","Profile - Underlying
Security Search","WebEdit","INPUT","Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Click on t
he 'Clear' button","The search field values are cleared"
Else
Reporter.ReportEvent micFail,"Step 5: Click on t
he 'Clear' button","The search field values are not cleared"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call set_WebEdit_Value ("MasterFile","Profile - Underlying Secur
ity Search","IssuerName",DataTable.Value("IssuerName","UnderlyingSecurity"))
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Search").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Enter Eg A
bsa in Issuer Name Edit box and click Search","Search result are displayed accor
ding to search criteria"
Else
Reporter.ReportEvent micFail,"Step 6: Enter Eg A
bsa in Issuer Name Edit box and click Search","Search result are not displayed a
ccording to search criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Underlying Security Sea
rch","Home;DR Home")
End Function
'*******************************************************************************
*****
Public Function MFProfileUnderlyingSecurity_TC3()
Environment.Value("TestCase_Log")="True"
Browser("MasterFile").Page("Depositary Receipt Division's").WebE
lement("MasterFile").Click
'Step #1
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Clear").Click
Call FieldCheckClear_NotClear("MasterFile","Profile - Underlying
Security Search","WebEdit","INPUT","Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Click on t
he 'Clear' button","The search field values are cleared"
Else
Reporter.ReportEvent micFail,"Step 1: Click on t
he 'Clear' button","The search field values are not cleared"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call set_WebEdit_Value ("MasterFile","Profile - Underlying Security Sear
ch","IssuerName",DataTable.Value("IssuerName","UnderlyingSecurity"))
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Search").Click
Call CARelationshipManagerchkReportValues("MasterFile","Profile
- Underlying Security Search","UnderlyingSecuritySearch","Name",DataTable.Value(
"IssuerName","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter Eg A
bsa in Issuer Name Edit box and click Search","Search result are displayed accor
ding to search criteria"
Else
Reporter.ReportEvent micFail,"Step 2: Enter Eg A
bsa in Issuer Name Edit box and click Search","Search result are not displayed a
ccording to search criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Underlying Security Sea
rch","Home;DR Home")
End Function
'*******************************************************************************
*****
Public Function MFProfileUnderlyingSecurity_TC4()
Environment.Value("TestCase_Log")="True"
Browser("MasterFile").Page("Depositary Receipt Division's").WebE
lement("MasterFile").Click
'Step #1
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Clear").Click
Call FieldCheckClear_NotClear("MasterFile","Profile - Underlying
Security Search","WebEdit","INPUT","Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Click on t
he 'Clear' button","The search field values are cleared"
Else
Reporter.ReportEvent micFail,"Step 1: Click on t
he 'Clear' button","The search field values are not cleared"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call select_Combo_Value("MasterFile","Profile - Underlying Security Sear
ch","Type",DataTable.Value("Type","UnderlyingSecurity"))
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Search").Click
Call CARelationshipManagerchkReportValues("MasterFile","Profile
- Underlying Security Search","UnderlyingSecuritySearch","Type",DataTable.Value(
"Type","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select Typ
e as 'Common' from the drop down containing (Common/Ordinary/Preferred) and clic
k Search","Search result are displayed according to search criteria"
Else
Reporter.ReportEvent micFail,"Step 2: Select Typ
e as 'Common' from the drop down containing (Common/Ordinary/Preferred) and clic
k Search","Search result are not displayed according to search criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_MenuOR("MasterFile","Profile - Underlying Security S
earch","Home;DR Home")
End Function

'*******************************************************************************
*****
Public Function MFProfileUnderlyingSecurity_TC5()
Environment.Value("TestCase_Log")="True"
Browser("MasterFile").Page("Depositary Receipt Division's").WebE
lement("MasterFile").Click
'Step #1
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Clear").Click
Call FieldCheckClear_NotClear("MasterFile","Profile - Underlying
Security Search","WebEdit","INPUT","Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Click on t
he 'Clear' button","The search field values are cleared"
Else
Reporter.ReportEvent micFail,"Step 1: Click on t
he 'Clear' button","The search field values are not cleared"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call select_Combo_Value("MasterFile","Profile - Underlying Security Sear
ch","Status",DataTable.Value("Status","UnderlyingSecurity"))
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Search").Click
Call CARelationshipManagerchkReportValues("MasterFile","Profile
- Underlying Security Search","UnderlyingSecuritySearch","Status",DataTable.Valu
e("Status","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select Sta
tus 'Committed' from the drop down containing (Committed/Effective/Terminated) i
n Profile - Underlying Security Search screen and click Search","Search result a
re displayed according to search criteria"
Else
Reporter.ReportEvent micFail,"Step 2: Select Sta
tus 'Committed' from the drop down containing (Committed/Effective/Terminated) i
n Profile - Underlying Security Search screen and click Search","Search result a
re not displayed according to search criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Underlying Security Sea
rch","Home;DR Home")
End Function
'*******************************************************************************
*****
Public Function MFProfileUnderlyingSecurity_TC6()
Environment.Value("TestCase_Log")="True"
Browser("MasterFile").Page("Depositary Receipt Division's").WebE
lement("MasterFile").Click
'Step #1
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Clear").Click
Call FieldCheckClear_NotClear("MasterFile","Profile - Underlying
Security Search","WebEdit","INPUT","Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Click on t
he 'Clear' button","The search field values are cleared"
Else
Reporter.ReportEvent micFail,"Step 1: Click on t
he 'Clear' button","The search field values are not cleared"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call select_Combo_Value("MasterFile","Profile - Underlying Security Sear
ch","CountryofExchange",DataTable.Value("CountryofExchange","UnderlyingSecurity"
))
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Search").Click
Call CARelationshipManagerchkReportValues("MasterFile","Profile
- Underlying Security Search","UnderlyingSecuritySearch","Country of Exchange",D
ataTable.Value("CountryofExchange","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Select cou
ntry of Exchange from the list and click Search","Search result are displayed ac
cording to search criteria"
Else
Reporter.ReportEvent micFail,"Step 2: Select cou
ntry of Exchange from the list and click Search","Search result are not displaye
d according to search criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Underlying Security Sea
rch","Home;DR Home")
End Function

'*******************************************************************************
*****
Public Function MFProfileUnderlyingSecurity_TC7()
Environment.Value("TestCase_Log")="True"
Browser("MasterFile").Page("Depositary Receipt Division's").WebE
lement("MasterFile").Click
'Step #1
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Clear").Click
Call FieldCheckClear_NotClear("MasterFile","Profile - Underlying
Security Search","WebEdit","INPUT","Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Click on t
he 'Clear' button","The search field values are cleared"
Else
Reporter.ReportEvent micFail,"Step 1: Click on t
he 'Clear' button","The search field values are not cleared"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call set_WebEdit_Value ("MasterFile","Profile - Underlying Security Sear
ch","UnderlyingISIN",DataTable.Value("UnderlyingISIN","UnderlyingSecurity"))
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Search").Click
Call CARelationshipManagerchkReportValues("MasterFile","Profile
- Underlying Security Search","UnderlyingSecuritySearch","Underlying ISIN",DataT
able.Value("UnderlyingISIN","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter Unde
rlying ISIN Edit box and click Search","Search result are displayed according to
search criteria"
Else
Reporter.ReportEvent micFail,"Step 2: Enter Unde
rlying ISIN Edit box and click Search","Search result are not displayed accordin
g to search criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Underlying Security Sea
rch","Home;DR Home")
End Function

'*******************************************************************************
*****
Public Function MFProfileUnderlyingSecurity_TC8()
Environment.Value("TestCase_Log")="True"
Browser("MasterFile").Page("Depositary Receipt Division's").WebE
lement("MasterFile").Click
'Step #1
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Clear").Click
Call FieldCheckClear_NotClear("MasterFile","Profile - Underlying
Security Search","WebEdit","INPUT","Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Click on t
he 'Clear' button","The search field values are cleared"
Else
Reporter.ReportEvent micFail,"Step 1: Click on t
he 'Clear' button","The search field values are not cleared"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call set_WebEdit_Value ("MasterFile","Profile - Underlying Security Sear
ch","UnderlyingSEDOL",DataTable.Value("UnderlyingSEDOL","UnderlyingSecurity"))
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Search").Click
Call CARelationshipManagerchkReportValues("MasterFile","Profile
- Underlying Security Search","UnderlyingSecuritySearch","Underlying SEDOL",Data
Table.Value("UnderlyingSEDOL","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter Unde
rlying SEDOL Edit box and click Search","Search result are displayed according t
o search criteria"
Else
Reporter.ReportEvent micFail,"Step 2: Enter Unde
rlying SEDOL Edit box and click Search","Search result are not displayed accordi
ng to search criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Underlying Security Sea
rch","Home;DR Home")
End Function

'*******************************************************************************
*****
Public Function MFProfileUnderlyingSecurity_TC9()
Environment.Value("TestCase_Log")="True"
'Step #1
If Browser("MasterFile").Page("Depositary Receipt Division's").E
xist(5) Then
Reporter.ReportEvent micPass,"DR Home page is di
splayed or not","DR Home page is displayed"
Browser("MasterFile").Page("Depositary Receipt D
ivision's").WebElement("MasterFile").Click
Else
Reporter.ReportEvent micPass,"DR Home page is di
splayed or not","DR Home page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: From the H
ome menu, select DR Home","DR Home page are displayed with the corresponding lin
ks"
Else
Reporter.ReportEvent micFail,"Step 1: From the H
ome menu, select DR Home","DR Home page are not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Profile - Underlying Security Sea
rch","IssuerName;UnderlyingISIN;UnderlyingSecurityName;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Profile - Underlying Secu
rity Search","CountryofExchange;Status;Type")
Call chkReportHeaderGeneric("MasterFile","Profile - Underlying S
ecurity Search","MFProfileUnderlyingSecurity","ReportHeader","UnderlyingSecurity
Search")
Call pageCheck_ImageOR("MasterFile","Profile - Underlying Securi
ty Search","Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on U
nderlying Security","Fields are displayed correctly in underlying security searc
h"
Else
Reporter.ReportEvent micFail,"Step 2: Click on U
nderlying Security","Fields are not displayed correctly in underlying security s
earch"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call set_WebEdit_Value ("MasterFile","Profile - Underlying Secur
ity Search","UnderlyingSecurityName",DataTable.Value("UnderlyingSecurityName","U
nderlyingSecurity"))
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Search").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Search for
'Underlying Security name'","Search result are displayed according to search cr
iteria"
Else
Reporter.ReportEvent micFail,"Step 3: Search for
'Underlying Security name'","Search result are not displayed according to searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Search for
'Underlying Security name' for eg 'abc'","Search Result is displayed"
Else
Reporter.ReportEvent micFail,"Step 3: Search for
'Underlying Security name' for eg 'abc'","Search Result is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call ClickPencilIconGeneric("MasterFile","Profile - Underlying S
ecurity Search","UnderlyingSecuritySearch","Name",DataTable.Value("SelectUnderly
ingSecName","UnderlyingSecurity"))
strDetail=Trim(Browser("MasterFile").Page("Underlying Security P
rofile").WebElement("DetailTab").GetROProperty("innertext"))
strUnder=Trim(Browser("MasterFile").Page("Underlying Security Pr
ofile").WebElement("UnderlyingSecurityRelatedTab").GetROProperty("innertext"))
If strDetail="Detail" And strUnder="Underlying Security Related"
Then
Reporter.ReportEvent micPass,"Verify the 'Detail
' and 'Underlying Security Related' tabs are displayed in Underlying Security Pr
ofile page","'Detail' and 'Underlying Security Related' tabs are displayed"
Else
Reporter.ReportEvent micFail,"Verify the 'Detail' and 'Underlyin
g Security Related' tabs are displayed in Underlying Security Profile page","'De
tail' and 'Underlying Security Related' tabs are not displayed"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: From the r
esults click the pencil icon adjacent to Underlying Security name. Select an Ent
erprise which already has an Underlying security name","Underlying Security Prof
ile screen is displayed with Detail and Underlying Security related tabs"
Else
Reporter.ReportEvent micFail,"Step 4: From the r
esults click the pencil icon adjacent to Underlying Security name. Select an Ent
erprise which already has an Underlying security name","Underlying Security Prof
ile screen is not displayed with Detail and Underlying Security related tabs"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Browser("MasterFile").Page("Underlying Security Profile").Image(
"SaveProfile").Click
blnErrorflag=Browser("MasterFile").Page("Underlying Security Pro
file").WebTable("ServerError").Exist(10)
If blnErrorflag="True" Then
Reporter.ReportEvent micDone,"Verify the validat
ion error table is displayed or not when mandatory fields are not filled in deta
ils tab","Validation error table is displayed with list of 2 fields - 'ShareForm
' and 'Unlisted'"
Else
Reporter.ReportEvent micWarning,"Verify the vali
dation error table is displayed or not when mandatory fields are not filled in d
etails tab","Validation error table is not displayed with list of 2 fields - 'Sh
areForm' and 'Unlisted'"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
intValCount=Browser("MasterFile").Page("Underlying Security Prof
ile").WebTable("ValidationError").RowCount
strShareForm=Trim(Browser("MasterFile").Page("Underlying Securit
y Profile").WebTable("ValidationError").GetCellData(5,2))
strUnlisted=Trim(Browser("MasterFile").Page("Underlying Security
Profile").WebTable("ValidationError").GetCellData(6,2))
If strShareForm="Share Form" And strUnlisted="Unlisted" Then
Reporter.ReportEvent micPass,"Verify 'Share Form
' and 'Unlisted' fields are displayed or not in validation error table","'Share
Form and Unlisted fields are displayed in validation error table"
Else
Reporter.ReportEvent micFail,"Verify 'Share Form
' and 'Unlisted' fields are displayed or not in validation error table","'Share
Form and Unlisted fields are not displayed in validation error table"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Do not fil
l anything and click on save","A validation window is popup saying Type : Field
required and Share Form: Field required."
Else
Reporter.ReportEvent micFail,"Step 5: Do not fil
l anything and click on save","A validation window is not popup saying Type : Fi
eld required and Share Form: Field required."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Browser("MasterFile").Page("Underlying Security Profile").WebEle
ment("ValidationShareForm").Click
Reporter.ReportEvent micDone,"Click on the mandatory field 'Shar
e Form' in the validation error table","'Share Form' filed is hilighted in the
details tab"
Browser("MasterFile").Page("Underlying Security Profile").WebLis
t("UnderSecurityProfile_ShareForm").Select DataTable.Value("MandatoryShareForm",
"UnderlyingSecurity")
Browser("MasterFile").Page("Underlying Security Profile").Image(
"Save Profile").Click
blnErrorflag=Browser("MasterFile").Page("Underlying Security Pro
file").WebTable("ValidationError").Exist(10)
If blnErrorflag="True" Then
intValFirstCount=Browser("MasterFile").Page("Und
erlying Security Profile").WebTable("ValidationError").RowCount
If intValCount = (intValFirstCount + 1) Then
Reporter.ReportEvent micPass,"Ve
rify the validation error table is displayed or not when mandatory fields are no
t filled in details tab","Validation error table is displayed with 1 field - 'Un
listed'"
End If
Else
Reporter.ReportEvent micFail,"Verify the validat
ion error table is displayed or not when mandatory fields are not filled in deta
ils tab","Validation error table is not displayed with 1 field - 'Unlisted'"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("Underlying Security Profile").WebEle
ment("ValidationUnlisted").Click
Reporter.ReportEvent micDone,"Click on the mandatory field 'Unli
sted' in the validation error table","'Unlisted' filed is hilighted in the deta
ils tab"
Browser("MasterFile").Page("Underlying Security Profile").WebLis
t("UnderSecurityProfile_UnListed").Select DataTable.Value("MandatoryUnlisted","U
nderlyingSecurity")
Browser("MasterFile").Page("Underlying Security Profile").Image(
"Save Profile").Click
Wait(5)
Browser("MasterFile").Page("Underlying Security Profile").WebEle
ment("ValidationUnderlyingExchange").Click
Reporter.ReportEvent micDone,"Click on the mandatory field 'Unde
rlying Exchange' in the validation error table","'Underlying Exchange' filed is
hilighted in the details tab"
Browser("MasterFile").Page("Underlying Security Profile").Image(
"ExchangeInfo").Click
Browser("MasterFile").Page("Underlying Security Profile").Frame(
"lookupFrame").WebElement("html tag:=TD","innertext:=" & DataTable.Value("Mandat
oryUnderlyingExchange","UnderlyingSecurity")).Click
Browser("MasterFile").Page("Underlying Security Profile").Image("Save Pr
ofile").Click
blnErrorflagMan=Browser("MasterFile").Page("Underlying Security
Profile").WebTable("ValidationError").Exist(2)
If blnErrorflagMan="False" Then
Reporter.ReportEvent micPass,"Verify the validat
ion error table is displayed or not when mandatory fields are filled in details
tab","Validation error table is not displayed"
Else
Reporter.ReportEvent micFail,"Verify the validat
ion error table is displayed or not when mandatory fields are filled in details
tab","Validation error table is displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Click on e
ach field and enter the values.","The values are accepted"
Else
Reporter.ReportEvent micFail,"Step 6: Click on e
ach field and enter the values.","The values are not accepted"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call pageCheck_WebEditOR("MasterFile","Underlying Security Profi
le","Comments;CommonCode;CountryofExchange;Currency;LocalCode;MaturityDate;Name;
ParValue;PSET;ShareClass;SharesOutstanding;UnderlyingExchange;UnderlyingISIN;Und
erlyingSEDOL;UnderlyingTickerSymbol;Yield")
Call pageCheck_WebListOR("MasterFile","Underlying Security Profi
le","CapitalStructure;Status;Type;UnderSecurityProfile_ShareForm;UnderSecurityPr
ofile_Unlisted")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Verify the
fields displayed in the Underlying Security Profile page","All the fields are d
isplayed correctly"
Else
Reporter.ReportEvent micFail,"Step 7: Verify the
fields displayed in the Underlying Security Profile page","All the fields are n
ot displayed correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
strName=Trim(Browser("MasterFile").Page("Underlying Security Pro
file").WebEdit("Name").GetROProperty("value"))
If Instr(DataTable.Value("SelectUnderlyingSecName","UnderlyingSe
curity"),strName) <> 0 Then
Reporter.ReportEvent micPass,"Verify the default
value in the name field","By default " & DataTable.Value("SelectUnderlyingSecNa
me","UnderlyingSecurity") & "value is displayed"
Else
Reporter.ReportEvent micFail,"Verify the default
value in the name field","By default " & DataTable.Value("SelectUnderlyingSecNa
me","UnderlyingSecurity") & "value is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
strStatus=Trim(Browser("MasterFile").Page("Underlying Security P
rofile").WebList("Status").GetROProperty("all items"))
strStatusDefault=Trim(Browser("MasterFile").Page("Underlying Sec
urity Profile").WebList("Status").GetROProperty("selection"))
If Instr(strStatus,strStatusDefault) <> 0 Then
Reporter.ReportEvent micPass,"verify the default
value in the status field","By default " & strStatusDefault & " is selected in
the status field"
Else
Reporter.ReportEvent micFail,"verify the default
value in the status field","By default " & strStatusDefault & " is not selected
in the status field"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
strCapital=Trim(Browser("MasterFile").Page("Underlying Security
Profile").WebList("CapitalStructure").GetROProperty("value"))
If strCapital="Equity" Then
Reporter.ReportEvent micPass,"verify the default
value in the status fieldd","By default " & strCapital & " is selected in the s
tatus field"
Else
Reporter.ReportEvent micFail,"verify the default
value in the status fieldd","By default " & strCapital & " is not selected in t
he status field"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
strOrdinary=Trim(Browser("MasterFile").Page("Underlying Security
Profile").WebList("Type").GetROProperty("value"))
If strOrdinary="Ordinary" Then
Reporter.ReportEvent micPass,"verify the default
value in the status fieldd","By default " & strOrdinary & " is selected in the
status field"
Else
Reporter.ReportEvent micFail,"verify the default
value in the status fieldd","By default " & strOrdinary & " is not selected in
the status field"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Verify the
default values of the fields displayed in the Underlying Security Profile page"
,"All the default values are displayed correctly"
Else
Reporter.ReportEvent micFail,"Step 8: Verify the
default values of the fields displayed in the Underlying Security Profile page"
,"All the default values are not displayed correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call chkWebEditReadOnly("MasterFile","Underlying Security Profil
e","name;CountryofExchange","ReadOnly")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Verify Cou
ntry and Country of Exchange fields are greyed out or not","Name and Country of
Exchange fields are greyed out"
Else
Reporter.ReportEvent micFail,"Step 9: Verify Cou
ntry and Country of Exchange fields are greyed out or not","Name and Country of
Exchange fields are not greyed out"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call Select_Combo_Value("MasterFile","Underlying Security Profil
e","Status",DataTable.Value("DetailStatus","UnderlyingSecurity"))
Call set_WebEdit_Value ("MasterFile","Underlying Security Profil
e","UnderlyingISIN",DataTable.Value("DetailUnderlyingISIN","UnderlyingSecurity")
)
Call Select_Combo_Value("MasterFile","Underlying Security Profil
e","CapitalStructure",DataTable.Value("DetailCapitalStructure","UnderlyingSecuri
ty"))
Browser("MasterFile").Page("Underlying Security Profile").Image(
"ExchangeInfo").Click
Browser("MasterFile").Page("Underlying Security Profile").WebEle
ment("html tag:=TD","innertext:="&DataTable.Value("DetailCountryofExchange","Und
erlyingSecurity")).Click
Call Select_Combo_Value("MasterFile","Underlying Security Profil
e","UnderSecurityProfile_UnListed",DataTable.Value("DetailUnlisted","UnderlyingS
ecurity"))
Call set_WebEdit_Value ("MasterFile","Underlying Security Profil
e","UnderlyingSEDOL",DataTable.Value("DetailSEDOL","UnderlyingSecurity"))
Call Select_Combo_Value("MasterFile","Underlying Security Profil
e","Type",DataTable.Value("DetailType","UnderlyingSecurity"))
Browser("MasterFile").Page("Underlying Security Profile").Image(
"ShareInfo").Click
Browser("MasterFile").Page("Underlying Security Profile").WebEle
ment("html tag:=TD","innertext:=" & DataTable.Value("DetailShareClass","Underlyi
ngSecurity")).Click
Call set_WebEdit_Value ("MasterFile","Underlying Security Profil
e","CINS",DataTable.Value("DetailCINS","UnderlyingSecurity"))
Browser("MasterFile").Page("Underlying Security Profile").Image(
"CurrencyInfo").Click
Browser("MasterFile").Page("Underlying Security Profile").WebEle
ment("html tag:=TD","innertext:=" & DataTable.Value("DetailCurrency","Underlying
Security")).Click
Call set_WebEdit_Value ("MasterFile","Underlying Security Profil
e","UnderlyingTickerSymbol",DataTable.Value("DetailTickerSymbol","UnderlyingSecu
rity"))
Call set_WebEdit_Value ("MasterFile","Underlying Security Profil
e","ParValue",DataTable.Value("DetailParValue","UnderlyingSecurity"))
Call set_WebEdit_Value ("MasterFile","Underlying Security Profil
e","LocalCode",DataTable.Value("DetailLocalCode","UnderlyingSecurity"))
Call set_WebEdit_Value ("MasterFile","Underlying Security Profil
e","BoardLot",DataTable.Value("DetailBoardLot","UnderlyingSecurity"))
Call set_WebEdit_Value ("MasterFile","Underlying Security Profil
e","CommonCode",DataTable.Value("DetailCommonCode","UnderlyingSecurity"))
Call set_WebEdit_Value ("MasterFile","Underlying Security Profil
e","SharesOutstanding",DataTable.Value("DetailShares","UnderlyingSecurity"))
Browser("MasterFile").Page("Underlying Security Profile").Image(
"ExchangePSET").Click
Browser("MasterFile").Page("Underlying Security Profile").WebEle
ment("html tag:=TD","index:=0","innertext:=" & DataTable.Value("DetailPSET","Und
erlyingSecurity")).Click
Browser("MasterFile").Page("Underlying Security Profile").Image(
"SaveProfile").Click
strNameText=Trim(Browser("MasterFile").Page("Underlying Security
Profile").WebEdit("Name").GetROProperty("value"))
If strNameText=DataTable.Value("RelatedUnderlyingSecName","Under
lyingSecurity") Then
Reporter.ReportEvent micPass,"verify the process
of creation of new underlying security creation","New underlying security is cr
eated successfully"
Else
Reporter.ReportEvent micFail,"verify the process
of creation of new underlying security creation","New underlying security is no
t created successfully"
Environment.Value("TestCase_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Verify th
e process of new underlying security creation","New underlying security is creat
ed successfully"
Else
Reporter.ReportEvent micFail,"St
ep 10: Verify the process of new underlying security creation","New underlying s
ecurity is not created successfully"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("NewUnderlyingSecurity")=strNameText
Environment.Value("NewUnderlyingISIN")=DataTable.Value("DetailUn
derlyingISIN","UnderlyingSecurity")
Environment.Value("OldCapitalStructure")=DataTable.Value("Detail
CapitalStructure","UnderlyingSecurity")
Environment.Value("OldShareForm")=DataTable.Value("MandatoryShar
eForm","UnderlyingSecurity")
'Step #11
Browser("MasterFile").Page("Underlying Security Profile").WebEle
ment("UnderlyingSecurityRelatedTab").Click
Browser("MasterFile").Page("Underlying Security Profile").WebBut
ton("Add").Click
Call chkReportHeaderGeneric("MasterFile","Underlying Security Pr
ofile","UnderlyingSecurityProfile","ReportHeader","UnderlyingSecurityRelated")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Verify th
e fields in Underlying Security Related tab","All the fields are displayed corre
ctly"
Else
Reporter.ReportEvent micFail,"Step 11: Verify th
e fields in Underlying Security Related tab","All the fields are not displayed c
orrectly"
Environment.Value("TestCase_Log")="True"
End If
'Step #12
Browser("MasterFile").Page("Underlying Security Profile").Image(
"NameInfo").Click
Browser("MasterFile").Page("Underlying Security Profile").Frame(
"lookupFrame").WebElement("html tag:=TD","index:=0","innertext:=" & DataTable.Va
lue("RelatedUnderlyingSecName","UnderlyingSecurity")).Click
Call chkWebEditReadOnly("MasterFile","Underlying Security Profil
e","NewName;NewType;NewISIN;NewSEDOL;NewShareClass","ReadOnly")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12: Verify Cl
ick on ? Icon against the 'Name' and select the result displayed.","Results are
displayed successfully"
Else
Reporter.ReportEvent micFail,"Step 12: Verify Cl
ick on ? Icon against the 'Name' and select the result displayed","Results are n
ot displayed successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #13
Browser("MasterFile").Page("Underlying Security Profile").WebEdi
t("NewPrimaryRatio").Set DataTable.Value("NewPrimaryRatio","UnderlyingSecurity")
Browser("MasterFile").Page("Underlying Security Profile").WebEdi
t("NewPrimaryRatio").Set DataTable.Value("NewSecondaryRatio","UnderlyingSecurity
")
Browser("MasterFile").Page("Underlying Security Profile").Image(
"SaveProfile").Click
If Browser("MasterFile").Page("Underlying Security Profile").WebTable("S
erverError").Exist(5) Then
strServerErrorText=Trim(Browser("MasterFile").Pa
ge("Underlying Security Profile").WebElement("ServerErrorWarning").GetROProperty
("innertext"))
Reporter.ReportEvent micFail,"Verify the new Und
erlying Security is created or not","New Underlying Security is not created succ
essfully due to server error - " & Mid(strServerErrorText,1,195)
Call select_Menu("MasterFile","Underlying Securi
ty Profile","Home;DR Home")
Environment.Value("Execution_Log")="False"
Exit Function
End If
Call chkFlagImage("MasterFile","Underlying Security Profile","Un
derlyingISIN;UnderlyingExchange;UnderlyingSEDOL;CountryofExchange;CINS;Underlyin
gTickerSymbol;LocalCode;CommonCode;PSET;ShareClass;Status;CapitalStructure;Unlis
ted;Type;ShareForm;Currency;ParValue;Boardlot;SharesOutstanding","Exist")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13: Fill the
above details and click the save button","Yellow Flags are displayed successful
ly"
Else
Reporter.ReportEvent micFail,"St
ep 13:Fill the above details and click the save button","Yellow Flags are not d
isplayed successfully"
Environment.Value("TestCase_Log")="True"
End If
End Function

'*******************************************************************************
*****
Public Function MFProfileUnderlyingSecurity_TC10()
Environment.Value("TestCase_Log")="True"
'Step #1
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(5)
Then
Reporter.ReportEvent micPass,"DR Home page is di
splayed or not","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"DR Home page is di
splayed or not","DR Home page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: From the H
ome menu, select DR Home","DR Home page are displayed with the corresponding lin
ks"
Else
Reporter.ReportEvent micFail,"Step 1: From the H
ome menu, select DR Home","DR Home page are not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Browser("MasterFile").Page("Depositary Receipt Division's").WebE
lement("MasterFile").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on M
aster File","Master File screen is displayed with Welcome Message and the Built
Date"
Else
Reporter.ReportEvent micFail,"Step 2: Click on M
aster File","Master File screen is not displayed with Welcome Message and the Bu
ilt Date"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","UnderlyingSecurity"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on P
rofile Link","The Profile Link list is containing Underlying Security"
Else
Reporter.ReportEvent micFail,"Step 3: Click on P
rofile Link","The Profile Link list is not containing Underlying Security"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call pageCheck_WebEditOR("MasterFile","Profile - Underlying Secu
rity Search","IssuerName;UnderlyingISIN;UnderlyingSecurityName;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Profile - Underlying Secu
rity Search","CountryofExchange;Status;Type")
Call chkReportHeaderGeneric("MasterFile","Profile - Underlying S
ecurity Search","MFProfileUnderlyingSecurity","ReportHeader","UnderlyingSecurity
Search")
Call pageCheck_ImageOR("MasterFile","Profile - Underlying Securi
ty Search","Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on U
nderlying Security","Fields are displayed correctly in underlying security searc
h"
Else
Reporter.ReportEvent micFail,"Step 4: Click on U
nderlying Security","Fields are not displayed correctly in underlying security s
earch"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Browser("MasterFile").Page("Profile - Underlying Security Search
").WebEdit("UnderlyingsecurityName").Set DataTable.Value("UnderlyingSecurityName
","UnderlyingSecurity")
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Search").Click
Call CARelationshipManagerchkReportValues("MasterFile","Profile
- Underlying Security Search","UnderlyingSecuritySearch","Name",DataTable.Value(
"UnderlyingSecurityName","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Enter Unde
rlying Security Name Edit and click Search","Search result are displayed accord
ing to search criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Enter Unde
rlying Security Name and click Search","Search result are not displayed accordin
g to search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call ClickPencilIconGeneric("MasterFile","Profile - Underlying S
ecurity Search","UnderlyingSecuritySearch","Name",DataTable.Value("SelectUnderly
ingSecName","UnderlyingSecurity"))
strDetail=Trim(Browser("MasterFile").Page("Underlying Security P
rofile").WebElement("DetailTab").GetROProperty("innertext"))
strUnder=Trim(Browser("MasterFile").Page("Underlying Security Pr
ofile").WebElement("UnderlyingSecurityRelatedTab").GetROProperty("innertext"))
If strDetail="Detail" And strUnder="Underlying Security Related"
Then
Reporter.ReportEvent micPass,"Verify the 'Detail
' and 'Underlying Security Related' tabs are displayed in Underlying Security Pr
ofile page","'Detail' and 'Underlying Security Related' tabs are displayed"
Else
Reporter.ReportEvent micFail,"Verify the 'Detail' and 'Underlyin
g Security Related' tabs are displayed in Underlying Security Profile page","'De
tail' and 'Underlying Security Related' tabs are not displayed"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: From the r
esults click the pencil icon adjacent to Underlying Security name. Select an Ent
erprise which already has an Underlying security name","Underlying Security Prof
ile screen is displayed with Detail and Underlying Security related tabs"
Else
Reporter.ReportEvent micFail,"Step 6: From the r
esults click the pencil icon adjacent to Underlying Security name. Select an Ent
erprise which already has an Underlying security name","Underlying Security Prof
ile screen is not displayed with Detail and Underlying Security related tabs"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Browser("MasterFile").Page("Underlying Security Profile").Image(
"SaveProfile").Click
blnErrorflag=Browser("MasterFile").Page("Underlying Security Pro
file").WebTable("ValidationError").Exist(10)
If blnErrorflag="True" Then
Reporter.ReportEvent micDone,"Verify the validat
ion error table is displayed or not when mandatory fields are not filled in deta
ils tab","Validation error table is displayed with list of 2 fields - 'ShareForm
' and 'Unlisted'"
Else
Reporter.ReportEvent micWarning,"Verify the vali
dation error table is displayed or not when mandatory fields are not filled in d
etails tab","Validation error table is not displayed with list of 2 fields - 'Sh
areForm' and 'Unlisted'"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
intValCount=Browser("MasterFile").Page("Underlying Security Prof
ile").WebTable("ValidationError").RowCount
strShareForm=Trim(Browser("MasterFile").Page("Underlying Securit
y Profile").WebTable("ValidationError").GetCellData(5,2))
strUnlisted=Trim(Browser("MasterFile").Page("Underlying Security
Profile").WebTable("ValidationError").GetCellData(6,2))
If strShareForm="Share Form" And strUnlisted="Unlisted" Then
Reporter.ReportEvent micPass,"Verify 'Share Form
' and 'Unlisted' fields are displayed or not in validation error table","'Share
Form and Unlisted fields are displayed in validation error table"
Else
Reporter.ReportEvent micFail,"Verify 'Share Form
' and 'Unlisted' fields are displayed or not in validation error table","'Share
Form and Unlisted fields are not displayed in validation error table"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Do not fil
l anything and click on save","A validation window is popup saying Type : Field
required and Share Form: Field required."
Else
Reporter.ReportEvent micFail,"Step 7: Do not fil
l anything and click on save","A validation window is not popup saying Type : Fi
eld required and Share Form: Field required."
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Browser("MasterFile").Page("Underlying Security Profile").WebEle
ment("ValidationShareForm").Click
Reporter.ReportEvent micDone,"Click on the mandatory field 'Shar
e Form' in the validation error table","'Share Form' filed is hilighted in the
details tab"
Browser("MasterFile").Page("Underlying Security Profile").WebLis
t("UnderSecurityProfile_ShareForm").Select DataTable.Value("MandatoryShareForm",
"UnderlyingSecurity")
Browser("MasterFile").Page("Underlying Security Profile").Image(
"SaveProfile").Click
blnErrorflag=Browser("MasterFile").Page("Underlying Security Pro
file").WebTable("ValidationError").Exist(10)
If blnErrorflag="True" Then
intValFirstCount=Browser("MasterFile").Page("Und
erlying Security Profile").WebTable("ValidationError").RowCount
If intValCount = (intValFirstCount + 1) Then
Reporter.ReportEvent micPass,"Ve
rify the validation error table is displayed or not when mandatory fields are no
t filled in details tab","Validation error table is displayed with 1 field - 'Un
listed'"
End If
Else
Reporter.ReportEvent micFail,"Verify the validat
ion error table is displayed or not when mandatory fields are not filled in deta
ils tab","Validation error table is not displayed with 1 field - 'Unlisted'"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("Underlying Security Profile").WebElement("Va
lidationUnlisted").Click
Reporter.ReportEvent micDone,"Click on the mandatory field 'Unli
sted' in the validation error table","'Unlisted' filed is hilighted in the deta
ils tab"
Browser("MasterFile").Page("Underlying Security Profile").WebLis
t("UnderSecurityProfile_UnListed").Select DataTable.Value("MandatoryUnlisted","U
nderlyingSecurity")
Browser("MasterFile").Page("Underlying Security Profile").Image(
"SaveProfile").Click
Wait(5)
blnErrorflag=Browser("MasterFile").Page("Underlying Security Pro
file").WebTable("ValidationError").Exist(10)
If blnErrorflag="True" Then
intValFirstCount=Browser("MasterFile").Page("Und
erlying Security Profile").WebTable("ValidationError").RowCount
If intValCount = (intValFirstCount + 1) Then
Reporter.ReportEvent micPass,"Ve
rify the validation error table is displayed or not when mandatory fields are no
t filled in details tab","Validation error table is displayed with 1 field - 'Un
derlying Exchange'"
End If
Else
Reporter.ReportEvent micFail,"Verify the validat
ion error table is displayed or not when mandatory fields are not filled in deta
ils tab","Validation error table is not displayed with 1 field - 'Underlying Exc
hange'"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("Underlying Security Profile").WebEle
ment("ValidationUnderlyingExchange").Click
Browser("MasterFile").Page("Underlying Security Profile").Image(
"UnderlyingExchange").Click
Browser("MasterFile").Page("Underlying Security Profile").Frame(
"lookupFrame").WebElement("innertext:=" & DataTable.Value("MandatoryUnderlyingEx
change","UnderlyingSecurity")).Click
Browser("MasterFile").Page("Underlying Security Profile").Image(
"SaveProfile").Click
blnErrorflagMan=Browser("MasterFile").Page("Underlying Security
Profile").WebTable("ValidationError").Exist(2)
If blnErrorflagMan="False" Then
Reporter.ReportEvent micPass,"Verify the validat
ion error table is displayed or not when mandatory fields are filled in details
tab","Validation error table is not displayed"
Else
Reporter.ReportEvent micFail,"Verify the validat
ion error table is displayed or not when mandatory fields are filled in details
tab","Validation error table is displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Click on e
ach field and enter the values.","The values are accepted"
Else
Reporter.ReportEvent micFail,"Step 8: Click on e
ach field and enter the values.","The values are not accepted"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Browser("MasterFile").Page("Underlying Security Profile").WebLis
t("Status").Select DataTable.Value("Status","UnderlyingSecurity")
strStatusText=Trim( Browser("MasterFile").Page("Underlying Secur
ity Profile").WebList("Status").GetROProperty("value"))
If strStatusText=DataTable.Value("Status","UnderlyingSecurity")
Then
Reporter.ReportEvent micPass,"Verify the profil
e status","Profile status is changed successfully"
Else
Reporter.ReportEvent micPass,"Verify the profil
e status","Profile status is not changed successfully"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: After Savi
ng the details for Underlying Security Profile change the Status from Committed
to Effective","The Status of the Underlying Security profile is Effective"
Else
Reporter.ReportEvent micFail,"Step 9: After Savi
ng the details for Underlying Security Profile change the Status from Committed
to Effective","The Status of the Underlying Security profile is not Effective"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","Underlying Security Profile","Hom
e;DR Home")
If Browser("MasterFile").Page("Depositary Receipt Division's").E
xist(5) Then
Reporter.ReportEvent micPass,"DR Home page is di
splayed or not","DR Home page is displayed"
Else
Reporter.ReportEvent micPass,"DR Home page is di
splayed or not","DR Home page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR Home","DR Home page are displayed with the corresponding li
nks"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR Home","DR Home page are not displayed with the correspondin
g links"
Environment.Value("TestCase_Log")="True"
End If
End Function

'*******************************************************************************
*****
Public Function MFProfileUnderlyingSecurity_TC11()
Environment.Value("TestCase_Log")="True"
'Step #1
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(5)
Then
Reporter.ReportEvent micPass,"DR Home page is di
splayed or not","DR Home page is displayed"
Else
Reporter.ReportEvent micPass,"DR Home page is di
splayed or not","DR Home page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: From the H
ome menu, select DR Home","DR Home page are displayed with the corresponding lin
ks"
Else
Reporter.ReportEvent micFail,"Step 1: From the H
ome menu, select DR Home","DR Home page are not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Browser("MasterFile").Page("Depositary Receipt Division's").WebE
lement("MasterFile").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on M
aster File","Master File screen is displayed with Welcome Message and the Built
Date"
Else
Reporter.ReportEvent micFail,"Step 2: Click on M
aster File","Master File screen is not displayed with Welcome Message and the Bu
ilt Date"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on P
rofile Link","The Profile Link list is containing Underlying Security"
Else
Reporter.ReportEvent micFail,"Step 3: Click on P
rofile Link","The Profile Link list is not containing Underlying Security"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call set_WebEdit_Value ("MasterFile","Profile - Underlying Secur
ity Search","IssuerName",DataTable.Value("IssuerName","UnderlyingSecurity"))
Call Select_Combo_Value("MasterFile","Profile - Underlying Secur
ity Search","Status",DataTable.Value("Status","UnderlyingSecurity"))
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Search").Click
Call CARelationshipManagerchkReportValues("MasterFile","Profile
- Underlying Security Search","UnderlyingSecuritySearch","Name",DataTable.Value(
"IssuerName","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Enter sear
ch criteria and click Search","Search result are displayed according to search c
riteria"
Else
Reporter.ReportEvent micFail,"Step 4: Enter sear
ch criteria and click Search","Search result are not displayed according to sear
ch criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
intRecordCount=Browser("MasterFile").Page("Profile - Underlying
Security Search").WebTable("UnderlyingSecuritySearch").RowCount
intRowCounter=1
For intCounter=1 To intRecordCount
strSecondCell=Trim(Browser("MasterFile").Page("P
rofile - Underlying Security Search").WebTable("UnderlyingSecuritySearch").GetCe
llData(intCounter,2))
If strSecondCell <> "ERROR: The specified cell
does not exist." Then
intRowCounter=intRowCounter+1
End If
Next
intSpecificRecords=intRowCounter-2
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Verify and
count the number of records displayed in the results screen","The number of rec
ords are noted"
Else
Reporter.ReportEvent micFail,"Step 5: Verify and
count the number of records displayed in the results screen","The number of rec
ords are noted"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call select_Menu("MasterFile","Profile - Underlying Security Sea
rch","Reports;Underlying Security")
Call set_WebEdit_Value ("MasterFile","Reports - Underlying Secur
ity Search","ReportName",DataTable.Value("IssuerName","UnderlyingSecurity"))
Call Select_Combo_Value("MasterFile","Reports - Underlying Secur
ity Search","ReportStatus",DataTable.Value("Status","UnderlyingSecurity"))
Browser("MasterFile").Page("Reports - Underlying Security Search
").Image("Search").Click
intReportCount=Browser("MasterFile").Page("Reports - Underlying
Security Search Results").WebTable("Item").RowCount
intReportRecords=intReportCount-1
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Navigate t
o Reports -->Underlying Security Search Screen -> Enter search criteria and gen
erate the report","The Results satisfying the criteria are displayed on the Unde
rlying Security search Results page"
Else
Reporter.ReportEvent micFail,"Step 6: Navigate t
o Reports -->Underlying Security Search Screen -> Enter search criteria and gen
erate the report","The Results satisfying the criteria are not displayed on the
Underlying Security search Results page"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
If intSpecificRecords=intReportRecords Then
Reporter.ReportEvent micPass,"verify the number
of profile records are matched with report records are not","Number of records a
re matched"
Else
Reporter.ReportEvent micfail,"verify the number
of profile records are matched with report records are not","Number of records a
re not matched"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Verify and
count the number of records displayed in the results screen","The number of rec
ords and the details are match with the results displayed in the Profile -->Unde
rlying SecuritySearch results"
Else
Reporter.ReportEvent micFail,"Step 7: Verify and
count the number of records displayed in the results screen","The number of rec
ords and the details are not match with the results displayed in the Profile -->
Underlying SecuritySearch results"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("UnderlyingSecurity").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step #8
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results",DataTable.Value("MenuPath","UnderlyingSecurity"))
Call set_WebEdit_Value ("MasterFile","Profile - Underlying Secur
ity Search","IssuerName",DataTable.Value("IssuerName","UnderlyingSecurity"))
Call Select_Combo_Value("MasterFile","Profile - Underlying Secur
ity Search","Status",DataTable.Value("Status","UnderlyingSecurity"))
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Search").Click
Call CARelationshipManagerchkReportValues("MasterFile","Profile
- Underlying Security Search","UnderlyingSecuritySearch","Name",DataTable.Value(
"IssuerName","UnderlyingSecurity"))
intRecordCount=Browser("MasterFile").Page("Profile - Underlying Securit
y Search").WebTable("UnderlyingSecuritySearch").RowCount
intRowCounter=1
For intCounter=1 To intRecordCount
strSecondCell=Trim(Browser("MasterFile").Page("P
rofile - Underlying Security Search").WebTable("UnderlyingSecuritySearch").GetCe
llData(intCounter,2))
If strSecondCell <> "ERROR: The specified cell
does not exist." Then
intRowCounter=intRowCounter+1
End If
Next
intSpecificRecords=intRowCounter-2
Call select_Menu("MasterFile","Profile - Underlying Security Sea
rch","Reports;Underlying Security")
Call set_WebEdit_Value ("MasterFile","Reports - Underlying Secur
ity Search","ReportName",DataTable.Value("IssuerName","UnderlyingSecurity"))
Call Select_Combo_Value("MasterFile","Reports - Underlying Secur
ity Search","ReportStatus",DataTable.Value("Status","UnderlyingSecurity"))
Browser("MasterFile").Page("Reports - Underlying Security Search
").Image("Search").Click
intReportCount=Browser("MasterFile").Page("Reports - Underlying
Security Search Results").WebTable("Item").RowCount
intReportRecords=intReportCount-1
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Navigate t
o Reports -->Underlying Security Search Screen -> Enter search criteria and gen
erate the report","The Results satisfying the criteria are displayed on the Unde
rlying Security search Results page"
Else
Reporter.ReportEvent micFail,"Step 8:Navigate to
Reports -->Underlying Security Search Screen -> Enter search criteria and gene
rate the report","The Results satisfying the criteria are not displayed on the U
nderlying Security search Results page"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
If intSpecificRecords=intReportRecords Then
Reporter.ReportEvent micPass,"verify the number
of profile records are matched with report records are not","Number of records a
re matched"
Else
Reporter.ReportEvent micfail,"verify the number
of profile records are matched with report records are not","Number of records a
re not matched"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Verify and
count the number of records displayed in the results screen","The number of rec
ords and the details are match with the results displayed in the Profile -->Unde
rlying SecuritySearch results"
Else
Reporter.ReportEvent micFail,"Step 9: Verify and
count the number of records displayed in the results screen","The number of rec
ords and the details are not match with the results displayed in the Profile -->
Underlying SecuritySearch results"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("UnderlyingSecurity").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step #10
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results",DataTable.Value("MenuPath","UnderlyingSecurity"))
Call set_WebEdit_Value ("MasterFile","Profile - Underlying Secur
ity Search","IssuerName",DataTable.Value("IssuerName","UnderlyingSecurity"))
Call Select_Combo_Value("MasterFile","Profile - Underlying Secur
ity Search","Status",DataTable.Value("Status","UnderlyingSecurity"))
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Search").Click
Call CARelationshipManagerchkReportValues("MasterFile","Profile
- Underlying Security Search","UnderlyingSecuritySearch","Name",DataTable.Value(
"IssuerName","UnderlyingSecurity"))
intRecordCount=Browser("MasterFile").Page("Profile - Underlying Securit
y Search").WebTable("UnderlyingSecuritySearch").RowCount
intRowCounter=1
For intCounter=1 To intRecordCount
strSecondCell=Trim(Browser("MasterFile").Page("P
rofile - Underlying Security Search").WebTable("UnderlyingSecuritySearch").GetCe
llData(intCounter,2))
If strSecondCell <> "ERROR: The specified cell
does not exist." Then
intRowCounter=intRowCounter+1
End If
Next
intSpecificRecords=intRowCounter-2
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Enter sear
ch criteria and click Search","Search result are displayed according to search c
riteria"
Else
Reporter.ReportEvent micFail,"Step 8: Enter sear
ch criteria and click Search","Search result are not displayed according to sear
ch criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Underlying Security Sea
rch","Reports;Underlying Security")
Call set_WebEdit_Value ("MasterFile","Reports - Underlying Secur
ity Search","ReportName",DataTable.Value("IssuerName","UnderlyingSecurity"))
Call Select_Combo_Value("MasterFile","Reports - Underlying Secur
ity Search","ReportStatus",DataTable.Value("Status","UnderlyingSecurity"))
Browser("MasterFile").Page("Reports - Underlying Security Search
").Image("Search").Click
intReportCount=Browser("MasterFile").Page("Reports - Underlying
Security Search Results").WebTable("Item").RowCount
intReportRecords=intReportCount-1
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Navigate
to Reports -->Underlying Security Search Screen -> Enter search criteria and g
enerate the report","The Results satisfying the criteria are displayed on the Un
derlying Security search Results page"
Else
Reporter.ReportEvent micFail,"Step 10: Navigate
to Reports -->Underlying Security Search Screen -> Enter search criteria and ge
nerate the report","The Results satisfying the criteria are not displayed on the
Underlying Security search Results page"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
If intSpecificRecords=intReportRecords Then
Reporter.ReportEvent micPass,"verify the number
of profile records are matched with report records are not","Number of records a
re matched"
Else
Reporter.ReportEvent micfail,"verify the number
of profile records are matched with report records are not","Number of records a
re not matched"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Verify an
d count the number of records displayed in the results screen","The number of re
cords and the details are match with the results displayed in the Profile -->Und
erlying SecuritySearch results"
Else
Reporter.ReportEvent micFail,"Step 11: Verify an
d count the number of records displayed in the results screen","The number of re
cords and the details are not match with the results displayed in the Profile --
>Underlying SecuritySearch results"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","Home;DR Home")
End Function
'*******************************************************************************
*****
Public Function MFProfileUnderlyingSecurity_TC12()
Environment.Value("TestCase_Log")="True"
'Step #1
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(5)
Then
Reporter.ReportEvent micPass,"DR Home page is di
splayed or not","DR Home page is displayed"
Else
Reporter.ReportEvent micPass,"DR Home page is di
splayed or not","DR Home page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: From the H
ome menu, select DR Home","DR Home page are displayed with the corresponding lin
ks"
Else
Reporter.ReportEvent micFail,"Step 1: From the H
ome menu, select DR Home","DR Home page are not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Browser("MasterFile").Page("Depositary Receipt Division's").WebE
lement("MasterFile").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on M
aster File","Master File screen is displayed with Welcome Message and the Built
Date"
Else
Reporter.ReportEvent micFail,"Step 2: Click on M
aster File","Master File screen is not displayed with Welcome Message and the Bu
ilt Date"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on P
rofile Link","The Profile Link list is containing Underlying Security"
Else
Reporter.ReportEvent micFail,"Step 3: Click on P
rofile Link","The Profile Link list is not containing Underlying Security"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Profile - Underlying Secu
rity Search","IssuerName;UnderlyingISIN;UnderlyingSecurityName;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Profile - Underlying Secu
rity Search","CountryofExchange;Status;Type")
Call chkReportHeaderGeneric("MasterFile","Profile - Underlying S
ecurity Search","MFProfileUnderlyingSecurity","ReportHeader","UnderlyingSecurity
Search")
Call pageCheck_ImageOR("MasterFile","Profile - Underlying Securi
ty Search","Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on U
nderlying Security","Fields are displayed correctly in underlying security searc
h"
Else
Reporter.ReportEvent micFail,"Step 4: Click on U
nderlying Security","Fields are not displayed correctly in underlying security s
earch"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call set_WebEdit_Value ("MasterFile","Profile - Underlying Security Sear
ch","IssuerName",DataTable.Value("IssuerName","UnderlyingSecurity"))
Browser("MasterFile").Page("Profile - Underlying Security Search").Image
("Search").Click
Call CARelationshipManagerchkReportValues("MasterFile","Profile
- Underlying Security Search","UnderlyingSecuritySearch","Name",DataTable.Value(
"IssuerName","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Enter sear
ch criteria and click Search","Search result are displayed according to search c
riteria"
Else
Reporter.ReportEvent micFail,"Step 5: Enter sear
ch criteria and click Search","Search result are not displayed according to sear
ch criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Browser("MasterFile").Page("Profile - Underlying Security Search
").WebElement("innertext:=" & DataTable.Value("SelectUnderlyingSecName","Underly
ingSecurity"),"html tag:=TD","index:=2").Click
Call pageCheck_ImageOR("MasterFile","Underlying Security Profile","CADRE
vents;RelatedProfiles;ProfileAudit;PreviewProfile;DeleteProfile;SaveProfile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Verify the
buttons displayed in the underlying security profile page","All the correspondi
ng buttons are displayed and accessible"
Else
Reporter.ReportEvent micFail,"Step 6: Verify the
buttons displayed in the underlying security profile page","All the correspondi
ng buttons are not displayed and accessible"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call fnc_wait(Browser("MasterFile").Page("Underlying Security Pr
ofile").Image("RelatedProfiles"))
Browser("MasterFile").Page("Underlying Security Profile").Image(
"RelatedProfiles").Click
If Browser("MasterFile").Page("Underlying Security Profile").Fra
me("lookupFrame").WebElement("RelatedProfiles").Exist(10) Then
Reporter.ReportEvent micPass,"Verify the related
profile page is opened or not","Related profile page is opened"
Else
Reporter.ReportEvent micFail,"Verify the related
profile page is opened or not","Related profile page is not opened"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Click on t
he Related button","Related button- On clicking the button, all the related prof
iles are listed. All the contents of the Related button can be clicked and it t
akes the user to the corresponding screen"
Else
Reporter.ReportEvent micFail,"Step 7: Click on t
he Related button","Related profiles frame is not opened"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Browser("MasterFile").Page("Underlying Security Profile").Image(
"PreviewProfile").Click
blnPrint=Browser("MasterFile").Page("Underlying Security Profile
").Frame("Frame").Image("PrintProfile").Exist(5)
If blnPrint="True" Then
Reporter.ReportEvent micPass,"verify the printer
friendly document page is opened or not","Printer friendly document page is ope
ned"
Else
Reporter.ReportEvent micFail,"verify the printer
friendly document page is opened or not","Printer friendly document page is not
opened"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Verify the
printer friendly document page is opened or not","Printer friendly document pag
e is opened"
Else
Reporter.ReportEvent micFail,"Step 8: Verify the
printer friendly document page is opened or not","Printer friendly document pag
e is not opened"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
blnBack=Browser("MasterFile").Page("Underlying Security Profile"
).Frame("Frame").Image("Back").Exist(5)
If blnBack="True" Then
Reporter.ReportEvent micPass,"verify Return butt
on is displayed or not in Printer friendly document page","Return button is disp
layed"
Else
Reporter.ReportEvent micFail,"verify Return butt
on is displayed or not in Printer friendly document page","Return button is not
displayed"
End If
Browser("MasterFile").Page("Underlying Security Profile").Frame(
"Frame").Image("Back").Click
blnReturn=Browser("MasterFile").Page("Underlying Security Profil
e").Exist(5)
If blnReturn="True" Then
Reporter.ReportEvent micPass,"verify on clicking
Return button, Underlying security profile page is opened or not","Underlying s
ecurity profile page is opened"
Else
Reporter.ReportEvent micFail,"verify on clicking
Return button, Underlying security profile page is opened or not","Underlying s
ecurity profile page is not opened"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Return But
ton- Return Button will appear only after Preview is clicked in step above","Ret
urn brings the user back to the previous screen"
Else
Reporter.ReportEvent micFail,"Step 9: Return But
ton- Return Button will appear only after Preview is clicked in step above","Ret
urn not brings the user back to the previous screen"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Browser("MasterFile").Page("Underlying Security Profile").Image(
"DeleteProfile").Click
If Dialog("text:=Microsoft Internet Explorer").Exist(3) Then
Dialog("text:=Microsoft Internet Explorer").WinB
utton("text:=OK").Click
End If
Browser("MasterFile").Back
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Click Del
ete-To delete a particular profile on clicking","Profile is deleted successfully
"
Else
Reporter.ReportEvent micFail,"Step 10: Click Del
ete-To delete a particular profile on clicking","Profile is not deleted successf
ully"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Browser("MasterFile").Page("Underlying Security Profile").Image(
"SaveProfile").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Click Sav
e- To save a profile after entering or modifying details","Saved a profile after
entering or modifying details"
Else
Reporter.ReportEvent micFail,"Step 11: Click Sav
e- To save a profile after entering or modifying details","Not Saved a profile a
fter entering or modifying details"
Environment.Value("TestCase_Log")="True"
End If
'Step #12
Call select_Menu("MasterFile","Underlying Security Profile","Hom
e; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12: From the
Home menu, select DR Home","DR Home page should be displayed with the correspond
ing links"
Else
Reporter.ReportEvent micFail,"Step 12: From the
Home menu, select DR Home","DR Home page should not be displayed with the corres
ponding links"
Environment.Value("TestCase_Log")="True"
End If

End Function
'*******************************************************************************
************************
Public Function MFProfileUnderlyingSecurity_TC13()
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
'Step #1
Call Login("MasterFile","Login Page","Approver","MFLogin")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Login as a
Ca_Approver","MF home page not opens"
Else
Reporter.ReportEvent micFail,"Step 1: Login as a
Ca_Approver","MF home page not opens"
Environment.Value("TestCase_Log")="True"
End If
'Step #2 To Step #5
Call ApprovalFunction("MasterFile","Underlying Security", "Name;
Status;Last User Updated;Last Updated",Environment.Value("NewUnderlyingSecurity"
),"Approved","Approved","Pending Approval")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2 To 5: Appro
ve Underlying Security created in TC9 ",NewUnderlyingSecurity & "is approved suc
cessfully"
Else
Reporter.ReportEvent micFail,"Step 2 To 5: Appr
ove Underlying Security created in TC9 ",NewUnderlyingSecurity & "is not approve
d successfully"
Environment.Value("TestCase_Log")="True"
End If
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
'Step #6
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call Login("MasterFile","Login Page","User","MFLogin")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Login as a
Ca_User ","The user is logged in"
Else
Reporter.ReportEvent micFail,"Step 6: Login as
a Ca_User ","The user is not logged in"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Browser("MasterFile").Page("Depositary Receipt Division's").WebE
lement("MasterFile").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Click on M
aster File","Master File screen is displayed with Welcome Message and the Built
Date"
Else
Reporter.ReportEvent micFail,"Step 7: Click on
Master File","Master File screen is not displayed with Welcome Message and the B
uilt Date"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Click on p
rofile Link ","The Profile Link list should contain Underlying Security"
Else
Reporter.ReportEvent micFail,"Step 8: Click on
profile Link ","The Profile Link list should not contain Underlying Security"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Profile - Underlying Secu
rity Search","IssuerName;UnderlyingISIN;UnderlyingSecurityName;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Profile - Underlying Secu
rity Search","CountryofExchange;Status;Type")
Call chkReportHeaderGeneric("MasterFile","Profile - Underlying S
ecurity Search","MFProfileUnderlyingSecurity","ReportHeader","UnderlyingSecurity
Search")
Call pageCheck_ImageOR("MasterFile","Profile - Underlying Securi
ty Search","Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Click on U
nderlying Security","Fields are displayed correctly in underlying security searc
h"
Else
Reporter.ReportEvent micFail,"Step 9: Click on U
nderlying Security","Fields are not displayed correctly in underlying security s
earch"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call set_WebEdit_Value ("MasterFile","Profile - Underlying Secur
ity Search","UnderlyingISIN",Environment.Value("NewUnderlyingISIN"))
Browser("MasterFile").Page("Profile - Underlying Security Search").Image
("Search").Click
Call CARelationshipManagerchkReportValues("MasterFile","Profile
- Underlying Security Search","UnderlyingSecuritySearch","Name",NewUnderlyingSec
urity)
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Search fo
r the same 'Underlying Security name' aprroved in steps","Search result are di
splayed according to search criteria"
Else
Reporter.ReportEvent micFail,"Step 10: Search fo
r the same 'Underlying Security name' aprroved in steps","Search result are no
t displayed according to search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Browser("MasterFile").Page("Profile - Underlying Security Search").WebEl
ement("innertext:=" & Environment.Value("NewUnderlyingSecurity"),"html tag:=TD",
"index:=0").Click
Browser("MasterFile").Page("Underlying Security Profile").WebLis
t("CapitalStructure").Select DataTable.Value("DetailCapitalStructure","Underlyin
gSecurity")
Browser("MasterFile").Page("Underlying Security Profile").WebLis
t("ShareForm").Select DataTable.Value("MandatoryShareForm","UnderlyingSecurity")
Browser("MasterFile").Page("Underlying Security Profile").Image(
"Save Profile").Click
Call chkFlagImage("MasterFile","Underlying Security Profile","De
tail","Share Form;Capital Structure","Exist")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Click on
the Underlying Security name approved above and change the valuesof fields in De
tails tab","The values should be saved and a yellow flag appears against the fie
lds"
Else
Reporter.ReportEvent micFail,"Step 11: Click on
the Underlying Security name approved above and change the valuesof fields in De
tails tab","The values should be saved and a yellow flag not appears against the
fields"
Environment.Value("TestCase_Log")="True"
End If
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
'Step #12
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call Login("MasterFile","Login Page","Approver","MFLogin")
Call ApprovalFunction("MasterFile","Underlying Security", "Name;
Status;Last User Updated;Last Updated",Environment.Value("NewUnderlyingSecurity"
),"Approved","Approved","Pending Approval")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12: Logout an
d login as Ca_Approver and approve the fields by following the steps 2 to 6 abov
e","The values should be approved"
Else
Reporter.ReportEvent micFail,"Step 12: Logout an
d login as Ca_Approver and approve the fields by following the steps 2 to 6 abov
e","The values should not be approved"
Environment.Value("TestCase_Log")="True"
End If
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
'Step #13
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL","MFLogin
"))
Call Login("MasterFile","Login Page","User","MFLogin")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13: Login as
a Ca_User ","The user is logged in"
Else
Reporter.ReportEvent micFail,"Step 13: Login as
a Ca_User ","The user is not logged in"
Environment.Value("TestCase_Log")="True"
End If
'Step #14
Browser("MasterFile").Page("Depositary Receipt Division's").WebE
lement("MasterFile").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14: Click on
Master File","Master File screen is displayed with Welcome Message and the Built
Date"
Else
Reporter.ReportEvent micFail,"Step 14: Click on
Master File","Master File screen is not displayed with Welcome Message and the
Built Date"
Environment.Value("TestCase_Log")="True"
End If
'Step #15
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 15: Click on
profile Link ","The Profile Link list should contain Underlying Security"
Else
Reporter.ReportEvent micFail,"Step 15: Click on
profile Link ","The Profile Link list should not contain Underlying Security"
Environment.Value("TestCase_Log")="True"
End If
'Step #16
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Profile - Underlying Secu
rity Search","IssuerName;UnderlyingISIN;UnderlyingSecurityName;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Profile - Underlying Secu
rity Search","CountryofExchange;Status;Type")
Call chkReportHeaderGeneric("MasterFile","Profile - Underlying S
ecurity Search","MFProfileUnderlyingSecurity","ReportHeader","UnderlyingSecurity
Search")
Call pageCheck_ImageOR("MasterFile","Profile - Underlying Securi
ty Search","Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 16: Click on
Underlying Security","Fields are displayed correctly in underlying security sear
ch"
Else
Reporter.ReportEvent micFail,"Step 16: Click on
Underlying Security","Fields are not displayed correctly in underlying security
search"
Environment.Value("TestCase_Log")="True"
End If
'Step #17
Call set_WebEdit_Value ("MasterFile","Profile - Underlying Secur
ity Search","UnderlyingISIN",Environment.Value("NewUnderlyingISIN"))
Browser("MasterFile").Page("Profile - Underlying Security Search").Image
("Search").Click
Call CARelationshipManagerchkReportValues("MasterFile","Profile
- Underlying Security Search","UnderlyingSecuritySearch","Name",NewUnderlyingSec
urity)
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 17: Search fo
r the same 'Underlying Security name' aprroved in steps","Search result are di
splayed according to search criteria"
Else
Reporter.ReportEvent micFail,"Step 17: Search fo
r the same 'Underlying Security name' aprroved in steps","Search result are no
t displayed according to search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #18
Browser("MasterFile").Page("Profile - Underlying Security Search
").WebElement("innertext:=" & Environment.Value("NewUnderlyingSecurity"),"html t
ag:=TD","index:=0").Click
strUnderlyingSecurityProfile=Trim(Browser("MasterFile").Page("Un
derlying Security Profile").WebElement("UnderlyingSecurityProfile").GetROPropert
y("innertext"))
If strUnderlyingSecurityProfile="Underlying Security Profile" T
hen
Reporter.ReportEvent micPass,"Verify Underlying
security profile page is displayed or not","Underlying security profile page is
displayed"
Else
Reporter.ReportEvent micFail,"Verify Underlying
security profile page is displayed or not","Underlying security profile page is
not displayed"
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 18: Click on
the Underlying Security name which is approved in the steps above","The 'Underly
ing Security Profile' screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 18: Click on
the Underlying Security name which is approved in the steps above","The 'Underly
ing Security Profile' screen is not displayed"
Environment.Value("TestCase_Log")="True"
End If

'Step #19
Browser("MasterFile").Page("Underlying Security Profile").Image(
"ProfileAudit").Click
For index = 1 to 2
intRowCount = Browser("MasterFile").Page("Underl
ying Security Profile").Frame("lookupFrame").WebTable("index:= " & Index).RowCou
nt
For intRowCounter = 1 To intRowCount
strFieldName = Browser("MasterFi
le").Page("Underlying Security Profile").Frame("lookupFrame").WebTable("index:=
" & Index).GetCellData(intRowCounter, 1)
If strFieldName = "Share Form" T
hen
strNewValue = Br
owser("MasterFile").Page("Underlying Security Profile").Frame("lookupFrame").Web
Table("index:= " & Index).GetCellData(intRowCounter, 2)
strOldValue = Br
owser("MasterFile").Page("Underlying Security Profile").Frame("lookupFrame").Web
Table("index:= " & Index).GetCellData(intRowCounter, 3)
If strOldValue =
Environment.Value("OldShareForm") And strNewValue = DataTable.Value("MandatoryS
hareForm","UnderlyingSecurity") Then
Reporter.ReportEvent micPass, "Verfiying the Old and New Values", "The Old Value
is " & Environment.Value("OldShareForm") & " and New Value is " & DataTable.Val
ue("MandatoryShareForm","UnderlyingSecurity") & " in the Field " & strFieldName
Else
Reporter.ReportEvent micFail, "Verfiying the Old and New Values", "The Old Value
is Not " & Environment.Value("OldShareForm") & " Or New Value is Not " & Data
Table.Value("MandatoryShareForm","UnderlyingSecurity") & " in the Field " & strF
ieldName
Environment.Value("TestCase_Log") = "False"
Environment.Value("Execution_Log") = "False"
End If
End If
If strFieldName = "Capital Struc
ture" Then
strNewValue = Br
owser("MasterFile").Page("Underlying Security Profile").Frame("lookupFrame").Web
Table("index:= " & Index).GetCellData(intRowCounter, 2)
strOldValue = Br
owser("MasterFile").Page("Underlying Security Profile").Frame("lookupFrame").Web
Table("index:= " & Index).GetCellData(intRowCounter, 3)
If strOldValue =
Environment.Value("OldCapitalStructure") And strNewValue = DataTable.Value("Det
ailCapitalStructure","UnderlyingSecurity") Then
Reporter.ReportEvent micPass, "Verfiying the Old and New Values", "The Old Value
is " & Environment.Value("OldCapitalStructure") & " and New Value is " & DataTa
ble.Value("DetailCapitalStructure","UnderlyingSecurity") & " in the Field " & st
rFieldName
Else
Reporter.ReportEvent micFail, "Verfiying the Old and New Values", "The Old Value
is Not " & Environment.Value("OldCapitalStructure") & " Or New Value is Not "
& DataTable.Value("DetailCapitalStructure","UnderlyingSecurity") & " in the Fi
eld " & strFieldName
Environment.Value("TestCase_Log") = "False"
Environment.Value("Execution_Log") = "False"
End If
End If
If Instr(1,strFieldName,"Approve
d By") <> 0 Then
strApproverName
= Environment.Value("ApproverUser")
strCheck = Split
(strApproverName," ",-1,1)
strFinalApprover
Name = strCheck(1) & " , " & strCheck(0)
If instr(1,strFi
eldName,strFinalApproverName) <> 0 Then
Reporter.ReportEvent micPass,"Verfiying the Approval Details","The Details are A
pproved by the User ' " & strFinalApproverName
Else
Reporter.ReportEvent micFail,"Verifying the Approval Details","The Details are N
ot Approved by the User ' " & strFinalApproverName
Environment.Value("Execution_Log") = "False"
End If
End If
If Instr(1,strFieldName,"Updated
By") <> 0 Then
strUserName = En
vironment.Value("NormalUser")
strChecks = Spli
t(strUserName," ",-1,1)
strFinalUserName
= strChecks(1) & " , " & strChecks(0)
If instr(1,strFi
eldName,strFinalUserName) <> 0 Then
Reporter.ReportEvent micPass,"Verfiying the User Details","The Updated User is "
& strFinalUserName
Else
Reporter.ReportEvent micFail,"Verfiying the User Details","The Updated User is N
OT " & strFinalUserName
Environment.Value("Execution_Log") = "False"
End If
End If
Next
Next
Call select_Menu("MasterFile","Underlying Security Profile","Hom
e;DR Home" )
End Function

You might also like