Professional Documents
Culture Documents
==========================
' Name of the Script : MasterFile Profile Company
' Scope of the Script : This test script covers 18 te
st cases related to the MF Profile --> Company
' Author : Bhagya
Rekha
' Description : MasterFile Profile Compan
y
' Date and / or Version : 06-11-2008,version 1.0
'===============================================================================
============================
Sub MFProfileCompany()
'****Declaration of Environmental Variable
Environment.Value("Execution_Log")= "True"
'''''''''Test case count
Const TC_COUNT = 97
strVar = Environment("TestDir")
strIndVar = Split(strVar,"\",-1,1)
strBound = UBound(strIndVar)
strAllPath =""
For intCounter = 0 to strBound - 1
strAllPath = strAllPath & strIndVar(intCounter)
&"\"
Next
strPath = Trim(strPath)
strDataPath = strAllPath & "DataTables\"
strLibPath = strAllPath & "Function_Library\"
' Including the Library files where all the Scripts are saved
'ExecuteFile strLibPath & "MFProfileCompanyTC.vbs"
'****Adding MFLogin sheet to the dataTable and Importing the Inp
ut DataTable
DataTable.AddSheet "MFLogin"
DataTable.ImportSheet strDataPath & "Login.xls","MFLogin","MFLog
in"
DataTable.AddSheet "Company"
DataTable.ImportSheet strDataPath & "MasterFileProfile.xls","Com
pany","Company"
DataTable.AddSheet "ReportHeader"
DataTable.ImportSheet strDataPath & "MasterFileProfile.xls","Rep
ortHeader","ReportHeader"
DataTable.AddSheet "HomePageVerification"
DataTable.ImportSheet strDataPath & "MasterFileProfile.xls","Hom
ePageVerification","HomePageVerification"
' Logs the Scenario name Execution in a .csv file
Call Execution_log(DataTable.Value("Scenario_Name", "Master"), "
", "", "")
'****Invoking IE and navigating to the ADR Login page
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
'****Checking the username, password and login objects in the lo
gin page
Call pageCheck_WebEdit("MasterFile","Login Page","username;j_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")
Call Login("MasterFile","Login Page","Approver","MFLogin")
Environment.Value("DATATABLE_ROW")=1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
'***************************************** TC Driver Strat *****
**************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"
If DataTable("TestRunFlag","Company")="Y" Then
''If run flag is Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TES
T CASE - '" & DataTable("TestCaseID","Company") & "' ########### ","Execution of
Test Case '" & DataTable("TestCaseDesc","Company") & "' Started"
strFuncName = DataTable.Value("FunctionName","Co
mpany") ''Formation of function name
''Call Function
Execute "Call " & strFuncName
If Environment.Value("Execution_Log") = "True"
Then
Call Execution_log("",Datatable.
Value("TestCaseID", "Company"), Datatable.Value("TestCaseDesc", "Company"), "PAS
S")
Else
Call Execution_log("",Datatable.
Value("TestCaseID", "Company"), Datatable.Value("TestCaseDesc", "Company"), "FAI
L")
End If
Reporter.ReportEvent micDone,"######### END OF T
EST CASE - '" & DataTable("TestCaseID","Company") & "###########","The Test Case
Execution Completed"
End If
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("Company").SetCurrentRow(Environment.
Value("DATATABLE_ROW"))
Next
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
'***************************************** TC Driver End *******
************************************************
End Sub
'===============================================================================
==========================
' Name of the Script : MasterFileCompanyProfile-Advi
ser
' Author : Bhagya
Rekha
' Description : Master File Company
' Date and / or Version : 21-10-2008,version 1.0
'===============================================================================
============================
Public Function MFProfileCompanyAdviser_TC1()
Environment.Value("TestCase_Log")="True"
'Step #2
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call Login("MasterFile","Login Page","User","MFLogin")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigate t
o DR Home page after successful login.","Successfully verified the links - " & D
ataTable.Value("HomePageLinks","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Navigate t
o DR Home page after successful login.","The links - '" & DataTable.Value("HomeP
ageLinks","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date has been Display
ed. "
Else
Reporter.ReportEvent micFail,"Step 3: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date is not Displayed
"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"PROFILE")
Call check_Menu("MasterFile",DataTable.Value("PageName","Company
"),DataTable.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on P
rofile in MasterFile page ","Successfully checked the Profile Link menu - " & Da
taTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 4: Click on P
rofile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Compa
ny") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
Call pageCheck_CompanyProfileSearch("MasterFile","Profile - Comp
any Search","Company Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Prof
ile menu select Company-Adviser.","Expected Default values and fields are displa
yed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Prof
ile menu select Company-Adviser.","Expected Default values and fields are not di
splayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyAdviser_TC2()
Environment.Value("TestCase_Log")="True"
'Step #a_2
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step a_2: Click on
MasterFile in DR Home page.","Welcome Message and the Built Date has been Displ
ayed."
Else
Reporter.ReportEvent micFail,"Step a_2: Click on
MasterFile in DR Home page.","Welcome Message and the Built Date is not Display
ed"
Environment.Value("TestCase_Log")="True"
End If
'Step #a_3
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"PROFILE")
Call check_Menu("MasterFile",DataTable.Value("PageName","Company
"),DataTable.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step a_3: Click on
Profile in MasterFile page ","Successfully checked the Profile Link menu - " &
DataTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step a_3: Click on
Profile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Com
pany") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #a_4
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist
(2) Then
blnFlag = "True"
Else
blnFlag = "False"
End If
If Environment.Value("TestCase_Log")="True" And blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step a_4: Under Pr
ofile menu select Company-Adviser, Profile - Company Search screen should be dis
played.","The Profile - Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step a_4: Under Pr
ofile menu select Company-Adviser, Profile - Company Search screen should be dis
played.","The Profile - Company Search screen is not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #a_5
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step a_5: Enter va
lue in Enterprise Name Edit box and click Search.","Search result displayed acco
rding to search criteria."
Else
Reporter.ReportEvent micFail,"Step a_5: Enter Va
lue in Enterprise Name Edit box and click Search.","Search result not displayed
according to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #b_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step b_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step b_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #b_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Adviser")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"CompanyName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step b_2: Enter va
lue in Company Name Edit box and click Search.","Search result displayed accordi
ng to search criteria."
Else
Reporter.ReportEvent micFail,"Step b_2: Enter Va
lue in Company Name Edit box and click Search.","Search result not displayed acc
ording to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #c_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step c_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step c_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #c_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Adviser")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"Type")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step c_2: Select v
alue in Type Web List and click Search.","Search result displayed according to s
earch criteria."
Else
Reporter.ReportEvent micFail,"Step c_2: Select v
alue in Type Web List and click Search.","Search result not displayed according
to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #d_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step d_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step d_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #d_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Adviser")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"CountryOfIncorporation")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step d_2: Select v
alue in Country of Incorporation Web List and click Search.","Search result disp
layed according to search criteria."
Else
Reporter.ReportEvent micFail,"Step d_2: Select v
alue in Country of Incorporation Web List and click Search.","Search result not
displayed according to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #e_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step e_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step e_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #e_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Adviser")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"CID")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step e_2: Enter Va
lue in CID Edit box and click Search.","Search result displayed according to sea
rch criteria."
Else
Reporter.ReportEvent micFail,"Step e_2: Enter Va
lue in CID Edit box and click Search.","Search result not displayed according to
search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #f_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step f_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step f_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #f_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Adviser")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"Status")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step f_2: Select v
alue in Status Web List and click Search.","Search result displayed according to
search criteria."
Else
Reporter.ReportEvent micFail,"Step f_2: Select v
alue in Status Web List and click Search.","Search result not displayed accordin
g to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #g_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step g_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step g_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #g_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Adviser")
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","Mnemonic")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step g_2: Enter Va
lue in Mnemonic Edit box and click Search.","Search result displayed according t
o search criteria."
Else
Reporter.ReportEvent micFail,"Step g_2: Enter Va
lue in Mnemonic Edit box and click Search.","Search result not displayed accordi
ng to search criteria."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Company Search","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyAdviser_TC3()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Enter valu
e in Enterprise Name Edit box and click Search.","Search result is displayed."
Else
Reporter.ReportEvent micFail,"Step 1: Enter Valu
e in Enterprise Name Edit box and click Search.","Search result not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call ClickPencilIcon("MasterFile","Profile - Company Search",Dat
aTable.Value("strPencilIconSelectValue","Company"))
Call pageCheck_WebElement("MasterFile",DataTable.Value("PageName","Compa
ny"),DataTable.Value("strChkTabName","Company"),"")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking t
he Pencil icon adjacent to Selected Enterprise Name.","Adviser Profile screen is
displayed with Tabs - " &DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking t
he Pencil icon adjacent to Selected Enterprise Name.","Adviser Profile screen is
displayed with Tabs - " &DataTable.Value("strChkTabName","Company")
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Details")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Checking t
he fields in Details Tab."," Expected Fields are present in Details Tab"
Else
Reporter.ReportEvent micFail,"Step 3: Checking t
he fields in Details Tab."," Expected Fields are not present in Details Tab"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
strDefaultValue = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"Details_Name;Details_MarketingName")
strStatusValue = get_WebList_Value("MasterFile","Adviser Profile
","Details_Status")
If Environment.Value("TestCase_Log")="True" And strDefaultValue
= "Details_Name;"&DataTable.Value("EnterpriseName","Company")&":Details_Marketin
gName;"&DataTable.Value("EnterpriseName","Company")&":" And strStatusValue = "Co
mmitted" Then
Reporter.ReportEvent micPass,"Step 4: Checking t
he Default Values in Details Tab.","Details tab has been displayed with expected
Default Values- " &strDefaultValue &"Details_Status;" &strStatusValue
Else
Reporter.ReportEvent micFail,"Step 4: Checking D
efault Values in Details Tab.","Details tab is not displayed with expected Defau
lt Values."
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Details")
Call FillDetailsTab("MasterFile",DataTable.Value("PageName","Com
pany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Checking a
nd Entering the Details in Details Tab.","Details has been saved"
Else
Reporter.ReportEvent micFail,"Step 5: Checking a
nd Entering the Details in Details Tab.","Details has not been saved"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Roles")
Call chkMFProfileHeader("MasterFile",DataTable.Value("PageName",
"Company"),"Roles","CompanyRoles")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Checking t
he headers in Roles tab.","Expected Headers- " & DataTable.Value("CompanyRoles",
"ReportHeader") &" has been displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Checking t
he headers in Roles tab.","Expected Headers are not displayed in Roles Tab."
Environment.Value("TestCase_Log")="True"
End If
'step #7
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Roles_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Roles")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Checking t
he Fields in Roles Tab.","Expected Fields in Roles Tab has been displayed"
Else
Reporter.ReportEvent micFail,"Step 7: Checking t
he Fields in Roles Tab.","Expected Fields in Roles Tab has not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step#8
Call FillRolesTab("MasterFile",DataTable.Value("PageName","Compa
ny"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Entering t
he Details in Roles Tab.","Details in Roles Tab has been Enterted"
Else
Reporter.ReportEvent micFail,"Step 8: Entering t
he Details in Roles Tab.","Details in Roles Tab has not been Enterted"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Products")
Call chkMFProfileHeader("MasterFile",DataTable.Value("PageName",
"Company"),"Products","CompanyProducts")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Checking t
he headers in Products tab.","Expected Headers- " & DataTable.Value("CompanyProd
ucts","ReportHeader") &" has been displayed"
Else
Reporter.ReportEvent micFail,"Step 9: Checking t
he headers in Products tab.","Expected Headers are not displayed in Products Tab
."
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Products_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Products")
Call FillProductsTab("MasterFile",DataTable.Value("PageName","Co
mpany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Checking
and Entering the Fields in Products Tab.","Expected Fields in Products Tab has b
een displayed and values has been entered"
Else
Reporter.ReportEvent micFail,"Step 10: Checking
and Entering the Fields in Products Tab.","Expected Fields in Products Tab has n
ot displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call selectTab("MasterFile",DataTable.Value("PageName","Company")," Com
ments")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Comments")
Call FillCommentsTab("MasterFile",DataTable.Value("PageName","Co
mpany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Checking
and Entering the Details in Comments Tab.","Details in Comments Tab has been sav
ed"
Else
Reporter.ReportEvent micFail,"Step 11: Checking
and Entering the Details in Comments Tab.","Details in Comments Tab has not been
saved"
Environment.Value("TestCase_Log")="True"
End If
'Step #12
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value
("PageName","Company"),"Details")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value
("PageName","Company"),"Roles")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value
("PageName","Company"),"Products")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value
("PageName","Company"),"Comments")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12: Checking
if Details has been saved or not.","All the entered values are saved."
Else
Reporter.ReportEvent micFail,"Step 12: Checking
if Details has been saved or not.","All the entered values not saved."
Environment.Value("TestCase_Log")="True"
End If
'Deleting the Profile
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Delete Profile")
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call fnc_wait(Browser("MasterFile").Page("Profile - Company Sear
ch").WebEdit("EnterpriseName"))
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFProfileCompanyAdviser_TC4()
Environment.Value("TestCase_Log")= "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call set_WebEdit_Value("MasterFile","Profile - Company Search","
EnterpriseName",DataTable.Value("EnterpriseName","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 1: Enter valu
e in Enterprise Name Edit box and click Search.","Search result is displayed."
Else
Reporter.ReportEvent micFail,"Step 1: Enter Valu
e in Enterprise Name Edit box and click Search.","Search result not displayed."
Environment.Value("TestCase_Log")= "True"
End If
'Step #2
Call ClickPencilIcon("MasterFile","Profile - Company Search",Dat
aTable.Value("strPencilIconSelectValue","Company"))
Call pageCheck_WebElement("MasterFile",DataTable.Value("PageName
","Company"),DataTable.Value("strChkTabName","Company"),"")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking t
he Pencil icon adjacent to Selected Enterprise Name.","Adviser Profile screen is
displayed with Tabs - " &DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking t
he Pencil icon adjacent to Selected Enterprise Name.","Adviser Profile screen is
displayed with Tabs - " &DataTable.Value("strChkTabName","Company")
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Details")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 3: Checking t
he fields in Details Tab."," Expected Fields are present in Details Tab"
Else
Reporter.ReportEvent micFail,"Step 3: Checking t
he fields in Details Tab."," Expected Fields are not present in Details Tab"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
strDefaultValue = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"Details_Name;Details_MarketingName")
strStatusValue = get_WebList_Value("MasterFile",DataTable.Value(
"PageName","Company"),"Details_Status")
If Environment.Value("TestCase_Log")= "True" And strDefaultValue
= "Details_Name;"&DataTable.Value("EnterpriseName","Company")&":Details_Marketi
ngName;"&DataTable.Value("EnterpriseName","Company")&":" And strStatusValue = "C
ommitted" Then
Reporter.ReportEvent micPass,"Step 4: Checking t
he Default Values in Details Tab.","Details tab has been displayed with expected
Default Values- " &strDefaultValue &"Details_Status;" &strStatusValue
Else
Reporter.ReportEvent micFail,"Step 4: Checking D
efault Values in Details Tab.","Details tab is not displayed with expected Defau
lt Values."
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call FillDetailsTab("MasterFile",DataTable.Value("PageName","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Checking a
nd Entering the Details in Details Tab.","Details has been saved"
Else
Reporter.ReportEvent micFail,"Step 5: Checking a
nd Entering the Details in Details Tab.","Details has not been saved"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Roles")
Call chkMFProfileHeader("MasterFile",DataTable.Value("PageName",
"Company"),"Roles","CompanyRoles")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Checking t
he headers in Roles tab.","Expected Headers- " & DataTable.Value("CompanyRoles",
"ReportHeader") &" has been displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Checking t
he headers in Roles tab.","Expected Headers are not displayed in Roles Tab."
Environment.Value("TestCase_Log")="True"
End If
'step #7
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Roles_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Roles")
Call FillRolesTab("MasterFile",DataTable.Value("PageName","Compa
ny"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Checking a
nd Entering the Details in Roles Tab.","Expected Fields in Roles Tab has been di
splayed"
Else
Reporter.ReportEvent micFail,"Step 7: Checking a
nd Entering the Details in Roles Tab.","Expected Fields in Roles Tab has not dis
played"
Environment.Value("TestCase_Log")="True"
End If
'Step#8
Call selectTab("MasterFile",DataTable.Value("PageName","Company")," Det
ail")
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Details_Status","Effective")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Selecting
Details_Status has Effective.","The value Effective has accepted."
Else
Reporter.ReportEvent micFail,"Step 8: Selecting
Details_Status has Effective.","The value Effective not accepted"
Environment.Value("TestCase_Log")="True"
End If
'Step # 9
strData = "02;Dec;2008"
strValue = Split(strData,";",-1,1)
strDateValue = strValue(0)
strMonthValue = strValue(1)
strYearValue = strValue(2)
Call click_Image("MasterFile",DataTable.Value("PageName","Company"),"Det
ails_EffectiveDate")
Call ClickIcon_SetDate("MasterFile",DataTable.Value("PageName","
Company"),strMonthValue,strYearValue,strDateValue)
strFinalValue = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).WebEdit("Details_EffectiveDate").GetROProperty("value")
strChangedValue = SearchCriteriaDateFormat(strData)
If strChangedValue = strFinalValue And Environment.Value("TestC
ase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 9: Selecting
Details_EffectiveDate less than current date.","Less than current date has been
set in Details_EffectiveDate"
Else
Reporter.ReportEvent micFail,"Step 9: Selecting
Details_EffectiveDate has Effective.","The date not accepted"
Environment.Value("TestCase_Log")="True"
End If
'Step # 10
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
strStatusValue = get_WebList_Value("MasterFile",DataTable.Value(
"PageName","Company"),"Details_Status")
If strStatusValue = "Effective" And Environment.Value("TestCase_
Log")= "True" Then
Reporter.ReportEvent micDone,"Step 10: The statu
s should be changed to Effective.","The status changed to Effective"
Else
Reporter.ReportEvent micFail,"Step 10: The statu
s should be changed to Effective.","The status changed to Effective"
Environment.Value("TestCase_Log")= "True"
End If
'Step # 11
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Details_Status","Terminated")
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Details_TerminationDate")
'Clicking on the today button in the From date field
Set objDesc1 = Description.Create
objDesc1("micclass").Value = "WebElement"
objDesc1("html tag").Value = "FONT"
Set strObject = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).frame("PopCalFrame").ChildObjects(objDesc1)
For i= 0 to strObject.Count-1
temp = strObject(i).GetROProperty("innertext")
If instr(1,temp,"Today:") Then
strObject(i).click
End If
Next
'verifying whether the todate value is today's date
FromDatevalue=get_WebEdit_Value("MasterFile",DataTable.Value("Pa
geName","Company"),"Details_TerminationDate")
newFromDatevalue=cdate(FromDatevalue)
If newFromDatevalue=date And Environment.Value("TestCase_Log")=
"True" Then
Reporter.ReportEvent micDone,"Step 11: The Today
button is to be clicked in from date and checked if the current date appears","
The date gets filled properly"
Else
Reporter.ReportEvent micFail,"Step 11: The Today
button is to be clicked in from date and checked if the current date appears","
The current date does not appear"
Environment.Value("TestCase_Log")= "True"
End If
'Step #12
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Roles")
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Roles_Status","Inactive")
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Detail")
strStatusValue = get_WebList_Value("MasterFile","Adviser Profile
","Details_Status")
If strStatusValue = "Terminated" And Environment.Value("TestCase
_Log")= "True" Then
Reporter.ReportEvent micDone,"Step 12: The statu
s should be changed to Terminated.","The status changed to Terminated"
Else
Reporter.ReportEvent micFail,"Step 12: The statu
s should be changed to Terminated.","The status changed to Terminated"
Environment.Value("TestCase_Log")= "True"
End If
'Step #13
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"PROFILE")
Call check_Menu("MasterFile",DataTable.Value("PageName","Company
"),DataTable.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13: Click on
Profile in MasterFile page ","Successfully checked the Profile Link menu - " & D
ataTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 13: Click on
Profile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Comp
any") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #14
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist(
2) And Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14: The Compa
ny Search screen should be displayed.","The Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step 14: The Compa
ny Search screen should be displayed.","The Company Search screen is displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #15
Call ProfileCompanySearchCriteria("MasterFile","Profile - Company Search
")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","CompanyName")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","Status")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 15: The statu
s of the Company Searched, should be terminated.","The status of the Company Sea
rched, is terminated."
Else
Reporter.ReportEvent micFail,"Step 15: The statu
s of the Company Searched, should be terminated.","The status of the Company Sea
rched, is not terminated."
Environment.Value("TestCase_Log")="True"
End If
'Deleting the Profile
Call SearchEnterpriseName("MasterFile","Profile - Company Search","Compa
ny Search Results",DataTable.Value("EnterpriseName","Company"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Delete Profile")
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call fnc_wait(Browser("MasterFile").Page("Profile - Company Sear
ch").WebEdit("EnterpriseName"))
Call select_Menu("MasterFile","Profile - Company Search","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
Public Function MFProfileCompanyAdviser_TC5()
Environment.Value("TestCase_Log")="True"
'Step #2
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date has been Display
ed."
Else
Reporter.ReportEvent micFail,"Step 2: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date is not Displayed
"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile","PROFILE")
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on P
rofile in MasterFile page ","Successfully checked the Profile Link menu - " & Da
taTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 3: Click on P
rofile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Compa
ny") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist
(2) Then
blnFlag = "True"
Else
blnFlag = "False"
End If
If Environment.Value("TestCase_Log")="True" And blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 4: Under Prof
ile menu select Company-Adviser, Profile - Company Search screen should be displ
ayed.","The Profile - Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step 4: Under Prof
ile menu select Company-Adviser, Profile - Company Search screen should be displ
ayed.","The Profile - Company Search screen is not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Enter valu
e in Enterprise Name Edit box and click Search.","Search result displayed accord
ing to search criteria."
Else
Reporter.ReportEvent micFail,"Step 5: Enter Valu
e in Enterprise Name Edit box and click Search.","Search result not displayed ac
cording to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call SearchEnterpriseName("MasterFile","Profile - Company Search","Compa
ny Search Results",DataTable.Value("EnterpriseName","Company"))
Call pageCheck_WebElement("MasterFile",DataTable.Value("PageName
","Company"),DataTable.Value("strChkTabName","Company"),"")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Clicking t
he Company name(blue link).","Adviser Profile screen is displayed with Tabs - "
&DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 6: Clicking t
he Company name(blue link).","Adviser Profile screen is displayed with Tabs - "
&DataTable.Value("strChkTabName","Company")
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call pageCheck_ImageOR("MasterFile",DataTable.Value("PageName","
Company"),"Related Profiles;Contact Roles;Preview Profile;Delete Profile;Save Pr
ofile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: All the co
rresponding buttons should be displayed.","The Expected Images are displayed in
Adviser Profile screen."
Else
Reporter.ReportEvent micFail,"Step 7: All the co
rresponding buttons should be displayed.","The Expected Images are not displayed
in Adviser Profile screen."
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).Image("Related Profiles").Submit
Wait(10)
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Related Profiles")
'blnExistFlag = "False"
blnExistFlag = Browser("MasterFile").Page(DataTable.Value("PageN
ame","Company")).Frame("lookupFrame").Exist(10)
If blnExistFlag = "False" Then
Call click_Image("MasterFile",DataTable.Value("P
ageName","Company"),"Related Profiles")
End If
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("PageName","Com
pany")).Frame("lookupFrame"))
If Browser("MasterFile").Page(DataTable.Value("PageName","Company")).Fra
me("lookupFrame").WebElement("Related Profiles").Exist(2) Then
Reporter.ReportEvent micPass," Verifying if the
Related Profile Window is Opened or NOT","The Related Profile Window is Opened w
ith the Header Related Profiles"
strLink = Browser("MasterFile").Page("Adviser Pr
ofile").Frame("lookupFrame").WebTable("DR Profile").GetCellData(2,3)
Browser("MasterFile").Page("Adviser Profile").Fr
ame("lookupFrame").WebElement("html tag:=TD","innertext:="&strLink).Click
Reporter.ReportEvent micPass,"Capturing the Link
- "&strLink&" present in the Related Profile and Clicking on the Link","Succesf
ully Clicked on the Link"
If Browser("MasterFile").Page("DR Profile").Exis
t(2) And Environment.Value("TestCase_Log") = "True" Then
Browser("MasterFile").Back
Reporter.ReportEvent micPass,"St
ep : 8 Verifying if the DR Profile is Opened or NOT","The DR Profile Page is Ope
ned."
Else
Reporter.ReportEvent micFail,"St
ep : 8 Verifying if the DR Profile is Opened or NOT","The DR Profile Page is not
Opened."
Environment.Value("Execution_Log
") = "False"
End If
Else
Reporter.ReportEvent micFail," Verifying if the
Related Profile Window is Opened or NOT","The Related Profile Window is not Open
ed"
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).WebEdit("Details_Name").Click
Wait(2)
'Step #9
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).Image("Contact Roles").Submit
Wait(10)
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Contact Roles")
'blnExistFlag = "False"
blnExistFlag = Browser("MasterFile").Page(DataTable.Value("PageN
ame","Company")).Frame("lookupFrame").Exist(10)
If blnExistFlag = "False" Then
Call click_Image("MasterFile",DataTable.Value("P
ageName","Company"),"Contact Roles")
Wait(5)
End If
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("PageName","Com
pany")).Frame("lookupFrame"))
If Browser("MasterFile").Page(DataTable.Value("PageName","Company")).Fra
me("lookupFrame").WebElement("Company Contact Roles").Exist(20) And Environment.
Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Verifying
if the Contact Roles Window is Opened or NOT","The Contact Roles Window is Opene
d with the Header Company Contact Roles."
Else
Reporter.ReportEvent micFail,"Step 9: Verifying
if the Contact Roles Window is Opened or NOT","The Contact Roles Window isnot Op
ened."
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).WebEdit("Details_Name").Click
Wait(2)
'Step #10,11 and 12
strIntialAppValue = GetAllFieldValue("MasterFile",DataTable.Valu
e("PageName","Company"),"WebEdit","INPUT")
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Preview Profile")
Wait(5)
blnReturnImage = Browser("MasterFile").Page(DataTable.Value("PageName","
Company")).Frame("Frame").Image("Return").Exist(2)
blnPrintImage = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).Frame("Frame").Image("Print").Exist(2)
If blnReturnImage = "True" AND blnPrintImage = "True" Then
Reporter.ReportEvent micPass,"Step 10: Verfying
if the Print and Return Button are Present or NOT","The Print and Return Button
are Present"
Else
Reporter.ReportEvent micFail,"Step 10: Verfying
if the Print and Return Button are Present or NOT","The Print OR Return Button i
s NOT Present"
Environment.Value("TestCase_Log")="True"
End If
If blnPrintImage = "True" Then
blnPrintImage = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).Frame("Frame").Image("Print").Click
If Dialog("Print").Exist(2) Then
Reporter.ReportEvent micWarning,
"Step 11: Verifying if the Print Dialog Exists or NOT","The Print Dialog Exist a
nd Please Check for the Print document Manually"
Dialog("Print").Close
Else
Reporter.ReportEvent micFail,"St
ep 11: Verifying if the Print Dialog Exists or NOT","The Print Dialog does NOT E
xist"
Environment.Value("TestCase_Log")="T
rue"
End If
End If
If blnReturnImage = "True" Then
Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).Frame("Frame").Image("Return").Click
blnPageFlag = Browser("MasterFile").Page(DataTab
le.Value("PageName","Company")).Exist(2)
strFinalAppValue = GetAllFieldValue("MasterFile"
,DataTable.Value("PageName","Company"),"WebEdit","INPUT")
If blnPageFlag = "True" AND (Trim(strFinalAppVal
ue) = Trim(strIntialAppValue)) Then
Reporter.ReportEvent micPass,"St
ep 12: Verifying if the Page 'Adviser Profile' is Displayed with the Details of
the Adviser","The Page 'Adviser Profile' is dispalyed with the deatils of the Ad
viser"
Else
Reporter.ReportEvent micFail,"St
ep 12: Verifying if the Page 'Adviser Profile' is Displayed with the Details of
the Adviser","The Page 'Adviser Profile' is Not dispalyed with the deatils of th
e Adviser"
Environment.Value("TestCase_Log"
)="True"
End If
End If
'Step #13
Call click_Image("MasterFile",DataTable.Value("PageName","Company"),"Del
ete Profile")
If Browser("MasterFile").Dialog("DeleteRowConformation").Exist(2
) Then
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"St
ep 13: Should delete a particular profile on clicking","Deletes a particular pro
file on clicking"
Else
Reporter.ReportEvent micFail,"St
ep 13: Should delete a particular profile on clicking","Deletes a particular pro
file on clicking"
Environment.Value("TestCase_Log"
)="True"
End If
Browser("MasterFile").Dialog("DeleteRowConformat
ion").WinButton("Cancel").Click
End If
'Step #14
Call set_WebEdit_Value ("MasterFile",DataTable.Value("PageName",
"Company"),"Details_WebAddress",DataTable.Value("Details_WebAddress","Company"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
strValue = get_WebEdit_Value ("MasterFile",DataTable.Value("Page
Name","Company"),"Details_WebAddress")
If strValue = DataTable.Value("Details_WebAddress","Company") AN
D Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14: Should sa
ve a profile after entering or modifying details","Saves a profile after modifyi
ng details"
Else
Reporter.ReportEvent micFail,"Step 14: Should sa
ve a profile after entering or modifying details","Profile not saved after modif
ying details"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=====
Public Function MFProfileCompanyAdviser_TC6()
Environment.Value("TestCase_Log")="True"
'Step #1 To 5
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 to 5: Enter
value in Enterprise Name Edit box and click Search.","Search result is displaye
d."
Else
Reporter.ReportEvent micFail,"Step 1 to 5: Enter
Value in Enterprise Name Edit box and click Search.","Search result not display
ed."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call ClickPencilIcon("MasterFile","Profile - Company Search",Dat
aTable.Value("strPencilIconSelectValue","Company"))
Call pageCheck_WebElement("MasterFile","Adviser Profile",DataTab
le.Value("strChkTabName","Company"),"")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Clicking o
n Pencil Icon and select - " & DataTable.Value("strPencilIconSelectValue","Compa
ny"),"Tabs displayed are - " & DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 6: Clicking o
n Pencil Icon and select - " & DataTable.Value("strPencilIconSelectValue","Compa
ny"),"Tabs are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call click_Image("MasterFile","Adviser Profile","Save Profile")
Call ValidationErrorDetails("MasterFile","Adviser Profile","Vali
dation Error","Country of Incorporation;Roles","Detail")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: The list
of errors for missing fields appear.","The expected pop up message appeared when
tried to save without entering all the values"
Else
Reporter.ReportEvent micFail,"Step 7: The list
of errors for missing fields appear.","The expected pop up message not appeared
when tried to save without entering all the values"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call ErrorValidationCompanyAdviser("MasterFile","Adviser Profil
e")
strValue = get_WebList_Value("MasterFile","Adviser Profile","Details_St
atus")
If Environment.Value("TestCase_Log")="True" and strValue = "Ef
fective" Then
Reporter.ReportEvent micPass,"Step 8: The statu
s of the New Adviser should be changed to Effective","The status of the New Advi
ser changed to Effective"
Else
Reporter.ReportEvent micFail,"Step 8: The statu
s of the New Adviser should be changed to Effective","The status of the New Advi
ser is not changed to Effective"
Environment.Value("TestCase_Log")="True"
End If
'Deleting the Profile
Call click_Image("MasterFile","Adviser Profile","Delete Profile"
)
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call fnc_wait(Browser("MasterFile").Page("Profile - Company Sear
ch").WebEdit("EnterpriseName"))
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++
Public Function MFProfileCompanyAdviser_TC7()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
Call select_Combo_Value("MasterFile","Profile - Company Search",
"CountryOfIncorporation",DataTable.Value("CountryOfIncorporation","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
strRecordDataInProfile = GetDataInCompanyProfile("MasterFile","P
rofile - Company Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Enter Det
ails in Profile - Company Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 1: Enter Det
ails in Profile - Company Search and click on Search.","The records not populate
"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call select_Menu("MasterFile","Profile - Company Search",DataTab
le.Value("MenuPath1","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("Reports_SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Adviser Sea
rch Results").WebElement("As of:"))
strRecordDataInReports = GetDataInCompanyReports("MasterFile","R
eports - Adviser Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter Det
ails in Reports - Company Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 2: Enter Det
ails in Reports - Company Search and click on Search.","The records not populate
"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
blnFlage = "True"
For intCount = 0 to 5
If strRecordDataInReports(intCount) <> "" Then
intLen = Len(strRecordDataInReports(intCount))
intPosValue = InStr(intLen,strRe
cordDataInReports(intCount),";")
If intPosValue <> 0 Then
strRecordDataInR
eports(intCount) = Mid(strRecordDataInReports(intCount),1,intLen-1)
End If
strTemp = Split(strRecordDataInR
eports(intCount),";",-1,1)
For intStringCounter = 0 to UBou
nd(strTemp)
If Instr(strReco
rdDataInProfile(intCount),strTemp(intStringCounter)) <> 0 Then
blnFlage = "True"
Else
blnFlage = "False"
Exit For
End If
Next
If blnFlage = "False" Then
Exit For
End If
End If
Next
If Environment.Value("TestCase_Log")= "True" and blnFlage = "T
rue" Then
Reporter.ReportEvent micPass,"Step 3: Comparing
the Records in Profile and Reports.","The records displayed in both screens mat
ch"
Else
Reporter.ReportEvent micFail,"Step 3: Comparing
the Records in Profile and Reports.","The records displayed in both screens doe
s not match"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile","Reports - Adviser Search Results",DataTab
le.Value("MenuPath","Company"))
Call select_Combo_Value("MasterFile","Profile - Company Search",
"Status",DataTable.Value("Status","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
strRecordDataInProfile = GetDataInCompanyProfile("MasterFile","P
rofile - Company Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Enter Det
ails in Profile - Company Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 4: Enter Det
ails in Profile - Company Search and click on Search.","The records not populate
"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("MasterFile","Profile - Company Search",DataTab
le.Value("MenuPath1","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"CompanyStatus",DataTable.Value("Reports_Status","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Adviser Sea
rch Results").WebElement("As of:"))
strRecordDataInReports = GetDataInCompanyReports("MasterFile","R
eports - Adviser Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Enter Det
ails in Reports - Company Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 5: Enter Det
ails in Reports - Company Search and click on Search.","The records not populate
"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
blnFlage = "True"
For intCount = 0 to 5
If strRecordDataInReports(intCount) <> "" Then
intLen = Len(strRecordDataInReports(intCount))
intPosValue = InStr(intLen,strRe
cordDataInReports(intCount),";")
If intPosValue <> 0 Then
strRecordDataInR
eports(intCount) = Mid(strRecordDataInReports(intCount),1,intLen-1)
End If
strTemp = Split(strRecordDataInR
eports(intCount),";",-1,1)
For intStringCounter = 0 to UBou
nd(strTemp)
If Instr(strReco
rdDataInProfile(intCount),strTemp(intStringCounter)) <> 0 Then
blnFlage = "True"
Else
blnFlage = "False"
Exit For
End If
Next
If blnFlage = "False" Then
Exit For
End If
End If
Next
If Environment.Value("TestCase_Log")= "True" and blnFlage = "T
rue" Then
Reporter.ReportEvent micPass,"Step 6: Comparing
the Records in Profile and Reports.","The records displayed in both screens mat
ch"
Else
Reporter.ReportEvent micFail,"Step 6: Comparing
the Records in Profile and Reports.","The records displayed in both screens doe
s not match"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Reports - Adviser Search Results"
,"HOME;DR Home")
End Function
'==============================================================================
===========================
' Name of the Script : MasterFileCompanyProfile-Brok
er
' Author : Bhagya
Rekha
' Description : Master File Company
' Date and / or Version : 24-10-2008,version 1.0
'===============================================================================
============================
Public Function MFProfileCompanyBroker_TC1()
Environment.Value("TestCase_Log")="True"
'Step #2
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call Login("MasterFile","Login Page","User","MFLogin")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigate t
o DR Home page after successful login.","Successfully verified the links - " & D
ataTable.Value("HomePageLinks","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Navigate t
o DR Home page after successful login.","The links - '" & DataTable.Value("HomeP
ageLinks","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date has been Display
ed. "
Else
Reporter.ReportEvent micFail,"Step 3: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date is not Displayed
"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"PROFILE")
Call check_Menu("MasterFile",DataTable.Value("PageName","Company
"),DataTable.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on P
rofile in MasterFile page ","Successfully checked the Profile Link menu - " & Da
taTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 4: Click on P
rofile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Compa
ny") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
Call pageCheck_CompanyProfileSearch("MasterFile","Profile - Comp
any Search","Company Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Prof
ile menu select Company-Broker.","Expected Default values and fields are display
ed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Prof
ile menu select Company-Broker.","Expected Default values and fields are not dis
played in search criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyBroker_TC2()
Environment.Value("TestCase_Log")="True"
'Step #a_2
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step a_2: Click on
MasterFile in DR Home page.","Welcome Message and the Built Date has been Displ
ayed."
Else
Reporter.ReportEvent micFail,"Step a_2: Click on
MasterFile in DR Home page.","Welcome Message and the Built Date is not Display
ed"
Environment.Value("TestCase_Log")="True"
End If
'Step #a_3
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"PROFILE")
Call check_Menu("MasterFile",DataTable.Value("PageName","Company
"),DataTable.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step a_3: Click on
Profile in MasterFile page ","Successfully checked the Profile Link menu - " &
DataTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step a_3: Click on
Profile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Com
pany") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #a_4
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist
(2) Then
blnFlag = "True"
Else
blnFlag = "False"
End If
If Environment.Value("TestCase_Log")="True" And blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step a_4: Under Pr
ofile menu select Company-Broker, Profile - Company Search screen should be disp
layed.","The Profile - Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step a_4: Under Pr
ofile menu select Company-Broker, Profile - Company Search screen should be disp
layed.","The Profile - Company Search screen is not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #a_5
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step a_5: Enter va
lue in Enterprise Name Edit box and click Search.","Search result displayed acco
rding to search criteria."
Else
Reporter.ReportEvent micFail,"Step a_5: Enter Va
lue in Enterprise Name Edit box and click Search.","Search result not displayed
according to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #b_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step b_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step b_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #b_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Broker")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"CompanyName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step b_2: Enter va
lue in Company Name Edit box and click Search.","Search result displayed accordi
ng to search criteria."
Else
Reporter.ReportEvent micFail,"Step b_2: Enter Va
lue in Company Name Edit box and click Search.","Search result not displayed acc
ording to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #c_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step c_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step c_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #c_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Broker")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"Type")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step c_2: Select v
alue in Type Web List and click Search.","Search result displayed according to s
earch criteria."
Else
Reporter.ReportEvent micFail,"Step c_2: Select v
alue in Type Web List and click Search.","Search result not displayed according
to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #d_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step d_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step d_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #d_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Broker")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"CountryOfIncorporation")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step d_2: Select v
alue in Country of Incorporation Web List and click Search.","Search result disp
layed according to search criteria."
Else
Reporter.ReportEvent micFail,"Step d_2: Select v
alue in Country of Incorporation Web List and click Search.","Search result not
displayed according to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #e_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step e_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step e_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #e_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Broker")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"CID")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step e_2: Enter Va
lue in CID Edit box and click Search.","Search result displayed according to sea
rch criteria."
Else
Reporter.ReportEvent micFail,"Step e_2: Enter Va
lue in CID Edit box and click Search.","Search result not displayed according to
search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #f_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step f_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step f_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #f_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Broker")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"Status")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step f_2: Select v
alue in Status Web List and click Search.","Search result displayed according to
search criteria."
Else
Reporter.ReportEvent micFail,"Step f_2: Select v
alue in Status Web List and click Search.","Search result not displayed accordin
g to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #g_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step g_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step g_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #g_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Broker")
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","Mnemonic")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step g_2: Enter Va
lue in Mnemonic Edit box and click Search.","Search result displayed according t
o search criteria."
Else
Reporter.ReportEvent micFail,"Step g_2: Enter Va
lue in Mnemonic Edit box and click Search.","Search result not displayed accordi
ng to search criteria."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyBroker_TC3()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Enter valu
e in Enterprise Name Edit box and click Search.","Search result is displayed."
Else
Reporter.ReportEvent micFail,"Step 1: Enter Valu
e in Enterprise Name Edit box and click Search.","Search result not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call ClickPencilIcon("MasterFile","Profile - Company Search",Dat
aTable.Value("strPencilIconSelectValue","Company"))
Call pageCheck_WebElement("MasterFile",DataTable.Value("PageName
","Company"),DataTable.Value("strChkTabName","Company"),"")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking t
he Pencil icon adjacent to Selected Enterprise Name.","Broker Profile screen is
displayed with Tabs - " &DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking t
he Pencil icon adjacent to Selected Enterprise Name.","Broker Profile screen is
displayed with Tabs - " &DataTable.Value("strChkTabName","Company")
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Details")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Checking t
he fields in Details Tab."," Expected Fields are present in Details Tab"
Else
Reporter.ReportEvent micFail,"Step 3: Checking t
he fields in Details Tab."," Expected Fields are not present in Details Tab"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
strDefaultValue = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"Details_Name;Details_MarketingName")
strStatusValue = get_WebList_Value("MasterFile",DataTable.Value(
"PageName","Company"),"Details_Status")
If Environment.Value("TestCase_Log")="True" And strDefaultValue
= "Details_Name;"&DataTable.Value("EnterpriseName","Company")&":Details_Marketin
gName;"&DataTable.Value("EnterpriseName","Company")&":" And strStatusValue = "Co
mmitted" Then
Reporter.ReportEvent micPass,"Step 4: Checking t
he Default Values in Details Tab.","Details tab has been displayed with expected
Default Values- " &strDefaultValue &"Details_Status;" &strStatusValue
Else
Reporter.ReportEvent micFail,"Step 4: Checking D
efault Values in Details Tab.","Details tab is not displayed with expected Defau
lt Values."
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Details")
Call FillDetailsTab("MasterFile",DataTable.Value("PageName","Com
pany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Checking a
nd Entering the Details in Details Tab.","Details has been Entered"
Else
Reporter.ReportEvent micFail,"Step 5: Checking a
nd Entering the Details in Details Tab.","Details has not been Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," BNY Contacts")
Call chkMFProfileHeader("MasterFile",DataTable.Value("PageName",
"Company"),"BNY Contacts","CompanyBNYContacts")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Checking t
he headers in BNY Contacts tab.","Expected Headers- " & DataTable.Value("Company
BNYContacts","ReportHeader") &" has been displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Checking t
he headers in BNY Contacts tab.","Expected Headers are not displayed in BNYConta
cts Tab."
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"BNY Contacts_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"BNY Contact")
Call FillBNYContactsTab("MasterFile",DataTable.Value("PageName",
"Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Checking a
nd Entering the Details in BNYContacts Tab.","Details in BNYContacts Tab has bee
n Entered"
Else
Reporter.ReportEvent micFail,"Step 4: Checking a
nd Entering the Details in BNYContacts Tab.","Details in BNYContacts Tab has not
been Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Roles")
'Call chkMFProfileHeader("MasterFile",DataTable.Value("PageName"
,"Company"),"Roles","CompanyBrokerRoles")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Checking t
he headers in Roles tab.","Expected Headers- " & DataTable.Value("CompanyRoles",
"ReportHeader") &" has been displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Checking t
he headers in Roles tab.","Expected Headers are not displayed in Roles Tab."
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Roles_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("PageName","C
ompany"),"Roles")
Call FillRolesTab("MasterFile",DataTable.Value("PageName","Compa
ny"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Checking a
nd Entering the Details in Roles Tab.","Details in Roles Tab has been Entered"
Else
Reporter.ReportEvent micFail,"Step 9: Checking a
nd Entering the Details in Roles Tab.","Details in Roles Tab has not been Entere
d"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Products")
Call chkMFProfileHeader("MasterFile",DataTable.Value("PageName",
"Company"),"Products","CompanyProducts")
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Products_Add")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Checking
the headers in Products tab.","Expected Headers- " & DataTable.Value("CompanyPro
ducts","ReportHeader") &" has been displayed"
Else
Reporter.ReportEvent micFail,"Step 10: Checking
the headers in Products tab.","Expected Headers are not displayed in Products Ta
b."
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Products")
Call FillProductsTab("MasterFile",DataTable.Value("PageName","Co
mpany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Checking
and Entering the Details in Products Tab.","Details in Products Tab has been Ent
ered"
Else
Reporter.ReportEvent micFail,"Step 11: Checking
and Entering the Details in Products Tab.","Details in Products Tab has not bee
n Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #12
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Comments")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Comments")
Call FillCommentsTab("MasterFile",DataTable.Value("PageName","Co
mpany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12: Checking
and Entering the Details in Comments Tab.","Details in Comments Tab has been Ent
ered"
Else
Reporter.ReportEvent micFail,"Step 12: Checking
and Entering the Details in Comments Tab.","Details in Comments Tab has not been
Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #13
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value
("PageName","Company"),"Details")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value
("PageName","Company"),"BNY Contact")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value("PageNa
me","Company"),"Products")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value
("PageName","Company"),"Comments")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13: Checking
if Details has been saved or not.","All the entered values are saved."
Else
Reporter.ReportEvent micFail,"Step 13: Checking
if Details has been saved or not.","All the entered values not saved."
Environment.Value("TestCase_Log")="True"
End If
'Deleting the Profile
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Delete Profile")
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call fnc_wait(Browser("MasterFile").Page("Profile - Company Sear
ch").WebEdit("EnterpriseName"))
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
Public Function MFProfileCompanyBroker_TC4()
Environment.Value("TestCase_Log")= "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call set_WebEdit_Value("MasterFile","Profile - Company Search","
EnterpriseName",DataTable.Value("EnterpriseName","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 1: Enter valu
e in Enterprise Name Edit box and click Search.","Search result is displayed."
Else
Reporter.ReportEvent micFail,"Step 1: Enter Valu
e in Enterprise Name Edit box and click Search.","Search result not displayed."
Environment.Value("TestCase_Log")= "True"
End If
'Step #2
Call ClickPencilIcon("MasterFile","Profile - Company Search",Dat
aTable.Value("strPencilIconSelectValue","Company"))
Call pageCheck_WebElement("MasterFile",DataTable.Value("PageName
","Company"),DataTable.Value("strChkTabName","Company"),"")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking t
he Pencil icon adjacent to Selected Enterprise Name.","Adviser Profile screen is
displayed with Tabs - " &DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking t
he Pencil icon adjacent to Selected Enterprise Name.","Adviser Profile screen is
displayed with Tabs - " &DataTable.Value("strChkTabName","Company")
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Details")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 3: Checking t
he fields in Details Tab."," Expected Fields are present in Details Tab"
Else
Reporter.ReportEvent micFail,"Step 3: Checking t
he fields in Details Tab."," Expected Fields are not present in Details Tab"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
strDefaultValue = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"Details_Name;Details_MarketingName")
strStatusValue = get_WebList_Value("MasterFile",DataTable.Value(
"PageName","Company"),"Details_Status")
If Environment.Value("TestCase_Log")= "True" And strDefaultValue
= "Details_Name;"&DataTable.Value("EnterpriseName","Company")&":Details_Marketi
ngName;"&DataTable.Value("EnterpriseName","Company")&":" And strStatusValue = "C
ommitted" Then
Reporter.ReportEvent micPass,"Step 4: Checking t
he Default Values in Details Tab.","Details tab has been displayed with expected
Default Values- " &strDefaultValue &"Details_Status;" &strStatusValue
Else
Reporter.ReportEvent micFail,"Step 4: Checking D
efault Values in Details Tab.","Details tab is not displayed with expected Defau
lt Values."
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call FillDetailsTab("MasterFile",DataTable.Value("PageName","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Checking a
nd Entering the Details in Details Tab.","Details has been saved"
Else
Reporter.ReportEvent micFail,"Step 5: Checking a
nd Entering the Details in Details Tab.","Details has not been saved"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Roles")
'Call chkMFProfileHeader("MasterFile",DataTable.Value("PageName"
,"Company"),"Roles","CompanyBrokerRoles")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Checking t
he headers in Roles tab.","Expected Headers- " & DataTable.Value("CompanyRoles",
"ReportHeader") &" has been displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Checking t
he headers in Roles tab.","Expected Headers are not displayed in Roles Tab."
Environment.Value("TestCase_Log")="True"
End If
'step #7
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Roles_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Roles")
Call FillRolesTab("MasterFile",DataTable.Value("PageName","Compa
ny"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Checking a
nd Entering the Details in Roles Tab.","Expected Fields in Roles Tab has been di
splayed"
Else
Reporter.ReportEvent micFail,"Step 7: Checking a
nd Entering the Details in Roles Tab.","Expected Fields in Roles Tab has not dis
played"
Environment.Value("TestCase_Log")="True"
End If
'Step#8
Call selectTab("MasterFile",DataTable.Value("PageName","Company")," Det
ail")
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Details_Status","Effective")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Selecting
Details_Status has Effective.","The value Effective has accepted."
Else
Reporter.ReportEvent micFail,"Step 8: Selecting
Details_Status has Effective.","The value Effective not accepted"
Environment.Value("TestCase_Log")="True"
End If
'Step # 9
strData = "02;Dec;2008"
strValue = Split(strData,";",-1,1)
strDateValue = strValue(0)
strMonthValue = strValue(1)
strYearValue = strValue(2)
Call click_Image("MasterFile",DataTable.Value("PageName","Company"),"Det
ails_EffectiveDate")
Call ClickIcon_SetDate("MasterFile",DataTable.Value("PageName","
Company"),strMonthValue,strYearValue,strDateValue)
strFinalValue = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).WebEdit("Details_EffectiveDate").GetROProperty("value")
strChangedValue = SearchCriteriaDateFormat(strData)
If strChangedValue = strFinalValue And Environment.Value("TestC
ase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 9: Selecting
Details_EffectiveDate less than current date.","Less than current date has been
set in Details_EffectiveDate"
Else
Reporter.ReportEvent micFail,"Step 9: Selecting
Details_EffectiveDate has Effective.","The date not accepted"
Environment.Value("TestCase_Log")="True"
End If
'Step # 10
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
strStatusValue = get_WebList_Value("MasterFile",DataTable.Value(
"PageName","Company"),"Details_Status")
If strStatusValue = "Effective" And Environment.Value("TestCase_
Log")= "True" Then
Reporter.ReportEvent micDone,"Step 10: The statu
s should be changed to Effective.","The status changed to Effective"
Else
Reporter.ReportEvent micFail,"Step 10: The statu
s should be changed to Effective.","The status changed to Effective"
Environment.Value("TestCase_Log")= "True"
End If
'Step # 11
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Details_Status","Terminated")
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Details_TerminationDate")
'Clicking on the today button in the From date field
Set objDesc1 = Description.Create
objDesc1("micclass").Value = "WebElement"
objDesc1("html tag").Value = "FONT"
Set strObject = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).frame("PopCalFrame").ChildObjects(objDesc1)
For i= 0 to strObject.Count-1
temp = strObject(i).GetROProperty("innertext")
If instr(1,temp,"Today:") Then
strObject(i).click
End If
Next
'verifying whether the todate value is today's date
FromDatevalue=get_WebEdit_Value("MasterFile",DataTable.Value("Pa
geName","Company"),"Details_TerminationDate")
newFromDatevalue=cdate(FromDatevalue)
If newFromDatevalue=date And Environment.Value("TestCase_Log")=
"True" Then
Reporter.ReportEvent micDone,"Step 11: The Today
button is to be clicked in from date and checked if the current date appears","
The date gets filled properly"
Else
Reporter.ReportEvent micFail,"Step 11: The Today
button is to be clicked in from date and checked if the current date appears","
The current date does not appear"
Environment.Value("TestCase_Log")= "True"
End If
'Step #12
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Roles")
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Roles_Status","Inactive")
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Detail")
strStatusValue = get_WebList_Value("MasterFile","Broker Profile"
,"Details_Status")
If strStatusValue = "Terminated" And Environment.Value("TestCase
_Log")= "True" Then
Reporter.ReportEvent micDone,"Step 12: The statu
s should be changed to Terminated.","The status changed to Terminated"
Else
Reporter.ReportEvent micFail,"Step 12: The statu
s should be changed to Terminated.","The status changed to Terminated"
Environment.Value("TestCase_Log")= "True"
End If
'Step #13
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"PROFILE")
Call check_Menu("MasterFile",DataTable.Value("PageName","Company
"),DataTable.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13: Click on
Profile in MasterFile page ","Successfully checked the Profile Link menu - " & D
ataTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 13: Click on
Profile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Comp
any") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #14
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist(
2) And Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14: The Compa
ny Search screen should be displayed.","The Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step 14: The Compa
ny Search screen should be displayed.","The Company Search screen is displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #15
Call ProfileCompanySearchCriteria("MasterFile","Profile - Company Search
")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","CompanyName")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","Status")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 15: The statu
s of the Company Searched, should be terminated.","The status of the Company Sea
rched, is terminated."
Else
Reporter.ReportEvent micFail,"Step 15: The statu
s of the Company Searched, should be terminated.","The status of the Company Sea
rched, is not terminated."
Environment.Value("TestCase_Log")="True"
End If
'Deleting the Profile
Call SearchEnterpriseName("MasterFile","Profile - Company Search","Compa
ny Search Results",DataTable.Value("EnterpriseName","Company"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Delete Profile")
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call fnc_wait(Browser("MasterFile").Page("Profile - Company Sear
ch").WebEdit("EnterpriseName"))
Call select_Menu("MasterFile","Profile - Company Search","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyBroker_TC5()
Environment.Value("TestCase_Log")="True"
'Step #2
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date has been Display
ed."
Else
Reporter.ReportEvent micFail,"Step 2: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date is not Displayed
"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile","PROFILE")
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on P
rofile in MasterFile page ","Successfully checked the Profile Link menu - " & Da
taTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 3: Click on P
rofile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Compa
ny") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist
(2) Then
blnFlag = "True"
Else
blnFlag = "False"
End If
If Environment.Value("TestCase_Log")="True" And blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 4: Under Prof
ile menu select Company-Broker, Profile - Company Search screen should be displa
yed.","The Profile - Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step 4: Under Prof
ile menu select Company-Broker, Profile - Company Search screen should be displa
yed.","The Profile - Company Search screen is not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Enter valu
e in Enterprise Name Edit box and click Search.","Search result displayed accord
ing to search criteria."
Else
Reporter.ReportEvent micFail,"Step 5: Enter Valu
e in Enterprise Name Edit box and click Search.","Search result not displayed ac
cording to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",DataTable.Value("EnterpriseName","Company"))
Call pageCheck_WebElement("MasterFile",DataTable.Value("PageName
","Company"),DataTable.Value("strChkTabName","Company"),"")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Clicking t
he Company name(blue link).","Broker Profile screen is displayed with Tabs - " &
DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 6: Clicking t
he Company name(blue link).","Broker Profile screen is displayed with Tabs - " &
DataTable.Value("strChkTabName","Company")
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call pageCheck_ImageOR("MasterFile",DataTable.Value("PageName","
Company"),"Related Profiles;Contact Roles;Preview Profile;Delete Profile;Save Pr
ofile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: All the co
rresponding buttons should be displayed.","The Expected Images are displayed in
Broker Profile screen."
Else
Reporter.ReportEvent micFail,"Step 7: All the co
rresponding buttons should be displayed.","The Expected Images are not displayed
in Broker Profile screen."
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).Image("Related Profiles").Submit
Wait(10)
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Related Profiles")
blnExistFlag = Browser("MasterFile").Page(DataTable.Value("PageName","Co
mpany")).Frame("lookupFrame").Exist(10)
If blnExistFlag = "False" Then
Call click_Image("MasterFile",DataTable.Value("P
ageName","Company"),"Related Profiles")
End If
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("PageName","Com
pany")).Frame("lookupFrame"))
If Browser("MasterFile").Page(DataTable.Value("PageName","Company")).Fra
me("lookupFrame").WebElement("Related Profiles").Exist(2) Then
Reporter.ReportEvent micPass,"Step : 8 Verifying
if the Related Profile Window is Opened or NOT","The Related Profile Window is
Opened with the Header Related Profiles"
Else
Reporter.ReportEvent micFail,"Step : 8 Verifyin
g if the Related Profile Window is Opened or NOT","The Related Profile Window is
not Opened"
End If
Wait(2)
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).WebEdit("Details_Name").Click
Wait(2)
'Step #9
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).Image("Contact Roles").Submit
Wait(10)
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Contact Roles")
blnExistFlag = Browser("MasterFile").Page(DataTable.Value("PageN
ame","Company")).Frame("lookupFrame").Exist(10)
If blnExistFlag = "False" Then
Call click_Image("MasterFile",DataTable.Value("P
ageName","Company"),"Contact Roles")
Wait(5)
End If
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("PageName","Com
pany")).Frame("lookupFrame"))
If Browser("MasterFile").Page(DataTable.Value("PageName","Company")).Fra
me("lookupFrame").WebElement("Company Contact Roles").Exist(2) And Environment.V
alue("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Verifying
if the Contact Roles Window is Opened or NOT","The Contact Roles Window is Opene
d with the Header Company Contact Roles."
Else
Reporter.ReportEvent micFail,"Step 9: Verifying
if the Contact Roles Window is Opened or NOT","The Contact Roles Window isnot Op
ened."
End If
Wait(2)
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).WebEdit("Details_Name").Click
Wait(2)
'Step #10,11 and 12
strIntialAppValue = GetAllFieldValue("MasterFile",DataTable.Valu
e("PageName","Company"),"WebEdit","INPUT")
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Preview Profile")
blnReturnImage = Browser("MasterFile").Page(DataTable.Value("PageName","
Company")).Frame("Frame").Image("Return").Exist(2)
blnPrintImage = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).Frame("Frame").Image("Print").Exist(2)
If blnReturnImage = "True" AND blnPrintImage = "True" Then
Reporter.ReportEvent micPass,"Step 10: Verfying
if the Print and Return Button are Present or NOT","The Print and Return Button
are Present"
Else
Reporter.ReportEvent micFail,"Step 10: Verfying
if the Print and Return Button are Present or NOT","The Print OR Return Button i
s NOT Present"
Environment.Value("TestCase_Log")="True"
End If
If blnPrintImage = "True" Then
blnPrintImage = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).Frame("Frame").Image("Print").Click
If Dialog("Print").Exist(2) Then
Reporter.ReportEvent micWarning,
"Step 11: Verifying if the Print Dialog Exists or NOT","The Print Dialog Exist a
nd Please Check for the Print document Manually"
Dialog("Print").Close
Else
Reporter.ReportEvent micFail,"St
ep 11: Verifying if the Print Dialog Exists or NOT","The Print Dialog does NOT E
xist"
Environment.Value("TestCase_Log"
)="True"
End If
End If
If blnReturnImage = "True" Then
Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).Frame("Frame").Image("Return").Click
blnPageFlag = Browser("MasterFile").Page(DataTab
le.Value("PageName","Company")).Exist(2)
strFinalAppValue = GetAllFieldValue("MasterFile"
,DataTable.Value("PageName","Company"),"WebEdit","INPUT")
If blnPageFlag = "True" AND (Trim(strFinalAppVal
ue) = Trim(strIntialAppValue)) Then
Reporter.ReportEvent micPass,"St
ep 12: Verifying if the Page 'Broker Profile' is Displayed with the Details of t
he Broker ","The Page 'Broker Profile' is dispalyed with the deatils of the Brok
er"
Else
Reporter.ReportEvent micFail,"St
ep 12: Verifying if the Page 'Broker Profile' is Displayed with the Details of t
he Broker","The Page 'Broker Profile' is Not dispalyed with the deatils of the B
roker"
Environment.Value("TestCase_Log"
)="True"
End If
End If
'Step #13
Call click_Image("MasterFile",DataTable.Value("PageName","Company"),"Del
ete Profile")
If Browser("MasterFile").Dialog("DeleteRowConformation").Exist(2
) Then
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"St
ep 13: Should delete a particular profile on clicking","Deletes a particular pro
file on clicking"
Else
Reporter.ReportEvent micFail,"St
ep 13: Should delete a particular profile on clicking","Deletes a particular pro
file on clicking"
Environment.Value("TestCase_Log"
)="True"
End If
Browser("MasterFile").Dialog("DeleteRowConformat
ion").WinButton("Cancel").Click
End If
'Step #14
Call set_WebEdit_Value ("MasterFile",DataTable.Value("PageName",
"Company"),"Details_WebAddress",DataTable.Value("Details_WebAddress","Company"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
strValue = get_WebEdit_Value ("MasterFile",DataTable.Value("Page
Name","Company"),"Details_WebAddress")
If strValue = DataTable.Value("Details_WebAddress","Company") AN
D Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14: Should sa
ve a profile after entering or modifying details","Saves a profile after modifyi
ng details"
Else
Reporter.ReportEvent micFail,"Step 14: Should sa
ve a profile after entering or modifying details","Profile not saved after modif
ying details"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=====
Public Function MFProfileCompanyBroker_TC6()
Environment.Value("TestCase_Log")="True"
'Step #1 to 3
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 to 3: Enter
value in Enterprise Name Edit box and click Search.","Search result is displaye
d."
Else
Reporter.ReportEvent micFail,"Step 1 to 3: Enter
Value in Enterprise Name Edit box and click Search.","Search result not display
ed."
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call ClickPencilIcon("MasterFile","Profile - Company Search",Dat
aTable.Value("strPencilIconSelectValue","Company"))
Call pageCheck_WebElement("MasterFile","Broker Profile",DataTabl
e.Value("strChkTabName","Company"),"")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Clicking o
n Pencil Icon and select - " & DataTable.Value("strPencilIconSelectValue","Compa
ny"),"Tabs displayed are - " & DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 4: Clicking o
n Pencil Icon and select - " & DataTable.Value("strPencilIconSelectValue","Compa
ny"),"Tabs are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call click_Image("MasterFile","Broker Profile","Save Profile")
Call ValidationErrorDetails("MasterFile","Broker Profile","Valid
ation Error","Country of Incorporation","Detail")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: The list
of errors for missing fields appear.","The expected pop up message appeared when
tried to save without entering all the values"
Else
Reporter.ReportEvent micFail,"Step 5: The list
of errors for missing fields appear.","The expected pop up message not appeared
when tried to save without entering all the values"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call ErrorValidationCompanyBroker("MasterFile","Broker Profile"
)
strValue = get_WebList_Value("MasterFile","Broker Profile","Details_Sta
tus")
If Environment.Value("TestCase_Log")="True" and strValue = "Ef
fective" Then
Reporter.ReportEvent micPass,"Step 6: The statu
s of the New Broker should be changed to Effective","The status of the New Broke
r changed to Effective"
Else
Reporter.ReportEvent micFail,"Step 6: The statu
s of the New Broker should be changed to Effective","The status of the New Broke
r is not changed to Effective"
Environment.Value("TestCase_Log")="True"
End If
'Deleting the Profile
Call click_Image("MasterFile","Broker Profile","Delete Profile")
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call fnc_wait(Browser("MasterFile").Page("Profile - Company Sear
ch").WebEdit("EnterpriseName"))
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++
Public Function MFProfileCompanyBroker_TC7()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
Call select_Combo_Value("MasterFile","Profile - Company Search",
"CountryOfIncorporation",DataTable.Value("CountryOfIncorporation","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
strRecordDataInProfile = GetDataInCompanyProfile("MasterFile","P
rofile - Company Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Enter Det
ails in Profile - Company Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 1: Enter Det
ails in Profile - Company Search and click on Search.","The records not populate
"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call select_Menu("MasterFile","Profile - Company Search",DataTab
le.Value("MenuPath1","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Reports_Company","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"Region",DataTable.Value("Reports_Region","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("Reports_SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Broker Sear
ch Results").WebElement("As of:"))
strRecordDataInReports = GetDataInCompanyReports("MasterFile","R
eports - Broker Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter Det
ails in Reports - Broker Search Results and click on Search.","The records popul
ate"
Else
Reporter.ReportEvent micFail,"Step 2: Enter Det
ails in Reports - Broker Search Results and click on Search.","The records not p
opulate"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
blnFlage = "True"
For intCount = 0 to 5
If strRecordDataInReports(intCount) <> "" Then
intLen = Len(strRecordDataInReports(intCount))
intPosValue = InStr(intLen,strRe
cordDataInReports(intCount),";")
If intPosValue <> 0 Then
strRecordDataInR
eports(intCount) = Mid(strRecordDataInReports(intCount),1,intLen-1)
End If
strTemp = Split(strRecordDataInR
eports(intCount),";",-1,1)
For intStringCounter = 0 to UBou
nd(strTemp)
If Instr(strReco
rdDataInProfile(intCount),strTemp(intStringCounter)) <> 0 Then
blnFlage = "True"
Else
blnFlage = "False"
Exit For
End If
Next
If blnFlage = "False" Then
Exit For
End If
End If
Next
If Environment.Value("TestCase_Log")= "True" and blnFlage = "T
rue" Then
Reporter.ReportEvent micPass,"Step 3: Comparing
the Records in Profile and Reports.","The records displayed in both screens mat
ch"
Else
Reporter.ReportEvent micFail,"Step 3: Comparing
the Records in Profile and Reports.","The records displayed in both screens doe
s not match"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile","Reports - Broker Search Results",DataTabl
e.Value("MenuPath","Company"))
Call select_Combo_Value("MasterFile","Profile - Company Search","Status"
,DataTable.Value("Status","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
strRecordDataInProfile = GetDataInCompanyProfile("MasterFile","P
rofile - Company Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Enter Det
ails in Profile - Company Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 4: Enter Det
ails in Profile - Company Search and click on Search.","The records not populate
"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("MasterFile","Profile - Company Search",DataTab
le.Value("MenuPath1","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Reports_Company","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"CompanyStatus",DataTable.Value("Reports_Status","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Broker Sear
ch Results").WebElement("As of:"))
strRecordDataInReports = GetDataInCompanyReports("MasterFile","R
eports - Broker Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Enter Det
ails in Reports - Broker Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 5: Enter Det
ails in Reports - Broker Search and click on Search.","The records not populate"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
blnFlage = "True"
For intCount = 0 to 5
If strRecordDataInReports(intCount) <> "" Then
intLen = Len(strRecordDataInReports(intCount))
intPosValue = InStr(intLen,strRe
cordDataInReports(intCount),";")
If intPosValue <> 0 Then
strRecordDataInR
eports(intCount) = Mid(strRecordDataInReports(intCount),1,intLen-1)
End If
strTemp = Split(strRecordDataInR
eports(intCount),";",-1,1)
For intStringCounter = 0 to UBou
nd(strTemp)
If Instr(strReco
rdDataInProfile(intCount),strTemp(intStringCounter)) <> 0 Then
blnFlage = "True"
Else
blnFlage = "False"
Exit For
End If
Next
If blnFlage = "False" Then
Exit For
End If
End If
Next
If Environment.Value("TestCase_Log")= "True" and blnFlage = "T
rue" Then
Reporter.ReportEvent micPass,"Step 6: Comparing
the Records in Profile and Reports.","The records displayed in both screens mat
ch"
Else
Reporter.ReportEvent micFail,"Step 6: Comparing
the Records in Profile and Reports.","The records displayed in both screens doe
s not match"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Reports - Broker Search Results",
"HOME;DR Home")
End Function
'===============================================================================
==========================
' Name of the Script : MasterFileCompanyProfile-Vend
or
' Author : Bhagya
Rekha
' Description : Master File Company
' Date and / or Version : 21-10-2008,version 1.0
'===============================================================================
============================
Public Function MFProfileCompanyVendor_TC1()
Environment.Value("TestCase_Log")="True"
'Step #2
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call Login("MasterFile","Login Page","User","MFLogin")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigate t
o DR Home page after successful login.","Successfully verified the links - " & D
ataTable.Value("HomePageLinks","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Navigate t
o DR Home page after successful login.","The links - '" & DataTable.Value("HomeP
ageLinks","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date has been Display
ed. "
Else
Reporter.ReportEvent micFail,"Step 3: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date is not Displayed
"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"PROFILE")
Call check_Menu("MasterFile",DataTable.Value("PageName","Company
"),DataTable.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on P
rofile in MasterFile page ","Successfully checked the Profile Link menu - " & Da
taTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 4: Click on P
rofile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Compa
ny") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
Call pageCheck_CompanyProfileSearch("MasterFile","Profile - Comp
any Search","Company Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Prof
ile menu select Company-Vendor.","Expected Default values and fields are display
ed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Prof
ile menu select Company-Vendor.","Expected Default values and fields are not dis
played in search criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyVendor_TC2()
Environment.Value("TestCase_Log")="True"
'Step #a_2
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step a_2: Click on
MasterFile in DR Home page.","Welcome Message and the Built Date has been Displ
ayed."
Else
Reporter.ReportEvent micFail,"Step a_2: Click on
MasterFile in DR Home page.","Welcome Message and the Built Date is not Display
ed"
Environment.Value("TestCase_Log")="True"
End If
'Step #a_3
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"PROFILE")
Call check_Menu("MasterFile",DataTable.Value("PageName","Company
"),DataTable.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step a_3: Click on
Profile in MasterFile page ","Successfully checked the Profile Link menu - " &
DataTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step a_3: Click on
Profile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Com
pany") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #a_4
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist
(2) Then
blnFlag = "True"
Else
blnFlag = "False"
End If
If Environment.Value("TestCase_Log")="True" And blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step a_4: Under Pr
ofile menu select Company-Vendor, Profile - Company Search screen should be disp
layed.","The Profile - Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step a_4: Under Pr
ofile menu select Company-Vendor, Profile - Company Search screen should be disp
layed.","The Profile - Company Search screen is not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #a_5
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step a_5: Enter va
lue in Enterprise Name Edit box and click Search.","Search result displayed acco
rding to search criteria."
Else
Reporter.ReportEvent micFail,"Step a_5: Enter Va
lue in Enterprise Name Edit box and click Search.","Search result not displayed
according to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #b_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step b_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step b_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #b_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Vendor")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"CompanyName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step b_2: Enter va
lue in Company Name Edit box and click Search.","Search result displayed accordi
ng to search criteria."
Else
Reporter.ReportEvent micFail,"Step b_2: Enter Va
lue in Company Name Edit box and click Search.","Search result not displayed acc
ording to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #c_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step c_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step c_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #c_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Vendor")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"Type")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step c_2: Select v
alue in Type Web List and click Search.","Search result displayed according to s
earch criteria."
Else
Reporter.ReportEvent micFail,"Step c_2: Select v
alue in Type Web List and click Search.","Search result not displayed according
to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #d_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step d_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step d_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #d_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Vendor")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"CountryOfIncorporation")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step d_2: Select v
alue in Country of Incorporation Web List and click Search.","Search result disp
layed according to search criteria."
Else
Reporter.ReportEvent micFail,"Step d_2: Select v
alue in Country of Incorporation Web List and click Search.","Search result not
displayed according to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #e_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step e_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step e_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #e_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Vendor")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"CID")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step e_2: Enter Va
lue in CID Edit box and click Search.","Search result displayed according to sea
rch criteria."
Else
Reporter.ReportEvent micFail,"Step e_2: Enter Va
lue in CID Edit box and click Search.","Search result not displayed according to
search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #f_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step f_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step f_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #f_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Vendor")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"Status")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step f_2: Select v
alue in Status Web List and click Search.","Search result displayed according to
search criteria."
Else
Reporter.ReportEvent micFail,"Step f_2: Select v
alue in Status Web List and click Search.","Search result not displayed accordin
g to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #g_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step g_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step g_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #g_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Vendor")
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","Mnemonic")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step g_2: Enter Va
lue in Mnemonic Edit box and click Search.","Search result displayed according t
o search criteria."
Else
Reporter.ReportEvent micFail,"Step g_2: Enter Va
lue in Mnemonic Edit box and click Search.","Search result not displayed accordi
ng to search criteria."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyVendor_TC3()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Enter valu
e in Enterprise Name Edit box and click Search.","Search result is displayed."
Else
Reporter.ReportEvent micFail,"Step 1: Enter Valu
e in Enterprise Name Edit box and click Search.","Search result not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call ClickPencilIcon("MasterFile","Profile - Company Search",Dat
aTable.Value("strPencilIconSelectValue","Company"))
Call pageCheck_WebElement("MasterFile",DataTable.Value("PageName
","Company"),DataTable.Value("strChkTabName","Company"),"")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking t
he Pencil icon adjacent to Selected Enterprise Name.","Vendor Profile screen is
displayed with Tabs - " &DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking t
he Pencil icon adjacent to Selected Enterprise Name.","Vendor Profile screen is
displayed with Tabs - " &DataTable.Value("strChkTabName","Company")
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Details")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Checking t
he fields in Details Tab."," Expected Fields are present in Details Tab"
Else
Reporter.ReportEvent micFail,"Step 3: Checking t
he fields in Details Tab."," Expected Fields are not present in Details Tab"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
strDefaultValue = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"Details_Name;Details_MarketingName")
strStatusValue = get_WebList_Value("MasterFile",DataTable.Value(
"PageName","Company"),"Details_Status")
If Environment.Value("TestCase_Log")="True" And strDefaultValue
= "Details_Name;"&DataTable.Value("EnterpriseName","Company")&":Details_Marketin
gName;"&DataTable.Value("EnterpriseName","Company")&":" And strStatusValue = "Co
mmitted" Then
Reporter.ReportEvent micPass,"Step 4: Checking t
he Default Values in Details Tab.","Details tab has been displayed with expected
Default Values- " &strDefaultValue &"Details_Status;" &strStatusValue
Else
Reporter.ReportEvent micFail,"Step 4: Checking D
efault Values in Details Tab.","Details tab is not displayed with expected Defau
lt Values."
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call chkWebEditReadOnly("MasterFile",DataTable.Value("PageName",
"Company"),"Details_TerminationDate","ReadOnly")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: The Termin
ation Date field should be Greyed out","The Termination Date field is Greyed out
."
Else
Reporter.ReportEvent micFail,"Step 5: The Termin
ation Date field should be Greyed out","The Termination Date field is not Greyed
out."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Details")
Call FillDetailsTab("MasterFile",DataTable.Value("PageName","Com
pany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Checking a
nd Entering the Details in Details Tab.","Details has been Entered"
Else
Reporter.ReportEvent micFail,"Step 6: Checking a
nd Entering the Details in Details Tab.","Details has not been Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," BNY Contacts")
Call chkMFProfileHeader("MasterFile",DataTable.Value("PageName",
"Company"),"BNY Contacts","CompanyBNYContacts")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Checking t
he headers in BNY Contacts tab.","Expected Headers- " & DataTable.Value("Company
BNYContacts","ReportHeader") &" has been displayed"
Else
Reporter.ReportEvent micFail,"Step 7: Checking t
he headers in BNY Contacts tab.","Expected Headers are not displayed in BNYConta
cts Tab."
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"BNY Contacts_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"BNY Contact")
Call Click_Image("MasterFile","Vendor Profile","Info_Role")
intRowCount = Browser("MasterFile").Page("Vendor Profile").Frame
("lookupFrame").WebTable("AvailableRoles").RowCount
For intRowCounter = 2 to intRowCount
Call Click_Image("MasterFile","Vendor Profile","
Info_Role")
strAppData = Browser("MasterFile").Page("Vendor
Profile").Frame("lookupFrame").WebTable("AvailableRoles").GetCellData(intRowCoun
ter,1)
Browser("MasterFile").Page("Vendor Profile").Web
Element("html tag:=TD","innertext:="& strAppData,"index:=0").Click
Call Click_Image("MasterFile","Vendor Profile","
Info_Contact")
intContactRow = Browser("MasterFile").Page("Vend
or Profile").Frame("lookupFrame").WebTable("BNYContact").RowCount
If intContactRow > 1 Then
Exit For
End If
Next
Call FillBNYContactsTab("MasterFile",DataTable.Value("PageName",
"Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Checking a
nd Entering the Details in BNYContacts Tab.","Details in BNYContacts Tab has bee
n Entered"
Else
Reporter.ReportEvent micFail,"Step 8: Checking a
nd Entering the Details in BNYContacts Tab.","Details in BNYContacts Tab has not
been Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Products")
Call chkMFProfileHeader("MasterFile",DataTable.Value("PageName",
"Company"),"Products","CompanyProducts")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Checking t
he headers in Products tab.","Expected Headers- " & DataTable.Value("CompanyProd
ucts","ReportHeader") &" has been displayed"
Else
Reporter.ReportEvent micFail,"Step 9: Checking t
he headers in Products tab.","Expected Headers are not displayed in Products Tab
."
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Products_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Products")
Call FillProductsTab("MasterFile",DataTable.Value("PageName","Co
mpany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Checking
and Entering the Details in Products Tab.","Details in Products Tab has been Ent
ered"
Else
Reporter.ReportEvent micFail,"Step 10: Checking
and Entering the Details in Products Tab.","Details in Products Tab has not bee
n Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Comments")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Comments")
Call FillCommentsTab("MasterFile",DataTable.Value("PageName","Co
mpany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Checking
and Entering the Details in Comments Tab.","Details in Comments Tab has been sav
ed"
Else
Reporter.ReportEvent micFail,"Step 11: Checking
and Entering the Details in Comments Tab.","Details in Comments Tab has not been
saved"
Environment.Value("TestCase_Log")="True"
End If
'Step #12
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value
("PageName","Company"),"Details")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value
("PageName","Company"),"BNY Contact")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value("PageNa
me","Company"),"Products")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value
("PageName","Company"),"Comments")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12: Checking
if Details has been saved or not.","All the entered values are saved."
Else
Reporter.ReportEvent micFail,"Step 12: Checking
if Details has been saved or not.","All the entered values not saved."
Environment.Value("TestCase_Log")="True"
End If
'Deleting the Profile
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Delete Profile")
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call fnc_wait(Browser("MasterFile").Page("Profile - Company Sear
ch").WebEdit("EnterpriseName"))
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
Public Function MFProfileCompanyVendor_TC4()
Environment.Value("TestCase_Log")= "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call ClickPencilIcon("MasterFile","Profile - Company Search",Dat
aTable.Value("strPencilIconSelectValue","Company"))
Call FillDetailsTab("MasterFile",DataTable.Value("PageName","Com
pany"))
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," BNY Contacts")
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"BNY Contacts_Add")
Call Click_Image("MasterFile","Vendor Profile","Info_Role")
intRowCount = Browser("MasterFile").Page("Vendor Profile").Frame
("lookupFrame").WebTable("AvailableRoles").RowCount
For intRowCounter = 2 to intRowCount
Call Click_Image("MasterFile","Vendor Profile","
Info_Role")
strAppData = Browser("MasterFile").Page("Vendor
Profile").Frame("lookupFrame").WebTable("AvailableRoles").GetCellData(intRowCoun
ter,1)
Browser("MasterFile").Page("Vendor Profile").Web
Element("html tag:=TD","innertext:="& strAppData,"index:=0").Click
Call Click_Image("MasterFile","Vendor Profile","
Info_Contact")
intContactRow = Browser("MasterFile").Page("Vend
or Profile").Frame("lookupFrame").WebTable("BNYContact").RowCount
If intContactRow > 1 Then
Exit For
End If
Next
Call FillBNYContactsTab("MasterFile",DataTable.Value("PageName",
"Company"))
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Products")
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Products_Add")
Call FillProductsTab("MasterFile",DataTable.Value("PageName","Co
mpany"))
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Comments")
Call FillCommentsTab("MasterFile",DataTable.Value("PageName","Co
mpany"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 1: Executing
testcase 3 ","Testcase 3 has been Executed"
Else
Reporter.ReportEvent micFail,"Step 1: Executing
testcase 3 ","Testcase 3 not Executed"
Environment.Value("TestCase_Log")= "True"
End If
'Step#2
Call selectTab("MasterFile",DataTable.Value("PageName","Company")," Det
ail")
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Details_Status","Effective")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Selecting
Details_Status has Effective.","The value Effective has accepted."
Else
Reporter.ReportEvent micFail,"Step 2: Selecting
Details_Status has Effective.","The value Effective not accepted"
Environment.Value("TestCase_Log")="True"
End If
'Step # 3
strData = "02;Dec;2008"
strValue = Split(strData,";",-1,1)
strDateValue = strValue(0)
strMonthValue = strValue(1)
strYearValue = strValue(2)
Wait(5)
Call click_Image("MasterFile",DataTable.Value("PageName","Company"),"Det
ails_EffectiveDate")
Call ClickIcon_SetDate("MasterFile",DataTable.Value("PageName","
Company"),strMonthValue,strYearValue,strDateValue)
strFinalValue = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).WebEdit("Details_EffectiveDate").GetROProperty("value")
strChangedValue = SearchCriteriaDateFormat(strData)
If strChangedValue = strFinalValue And Environment.Value("TestC
ase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 3: Selecting
Details_EffectiveDate less than current date.","Less than current date has been
set in Details_EffectiveDate"
Else
Reporter.ReportEvent micFail,"Step 3: Selecting
Details_EffectiveDate has Effective.","The date not accepted"
Environment.Value("TestCase_Log")="True"
End If
'Step # 4
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
strStatusValue = get_WebList_Value("MasterFile",DataTable.Value(
"PageName","Company"),"Details_Status")
If strStatusValue = "Effective" And Environment.Value("TestCase_
Log")= "True" Then
Reporter.ReportEvent micDone,"Step 4: The status
should be changed to Effective.","The status changed to Effective"
Else
Reporter.ReportEvent micFail,"Step 4: The status
should be changed to Effective.","The status changed to Effective"
Environment.Value("TestCase_Log")= "True"
End If
'Step # 5
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Details_Status","Terminated")
Wait(3)
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Details_TerminationDate")
Wait(3)
'Clicking on the today button in the From date field
Set objDesc1 = Description.Create
objDesc1("micclass").Value = "WebElement"
objDesc1("html tag").Value = "FONT"
Set strObject = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).frame("PopCalFrame").ChildObjects(objDesc1)
For i= 0 to strObject.Count-1
temp = strObject(i).GetROProperty("innertext")
If instr(1,temp,"Today:") Then
strObject(i).click
Wait(1)
End If
Next
'verifying whether the todate value is today's date
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
FromDatevalue=get_WebEdit_Value("MasterFile",DataTable.Value("Pa
geName","Company"),"Details_TerminationDate")
newFromDatevalue=cdate(FromDatevalue)
If newFromDatevalue=date And Environment.Value("TestCase_Log")=
"True" Then
Reporter.ReportEvent micDone,"Step 5: The Today
button is to be clicked in from date and checked if the current date appears","T
he date gets filled properly"
Else
Reporter.ReportEvent micFail,"Step 5: The Today
button is to be clicked in from date and checked if the current date appears","T
he current date does not appear"
Environment.Value("TestCase_Log")= "True"
End If
'Step #6
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"PROFILE")
Call check_Menu("MasterFile",DataTable.Value("PageName","Company
"),DataTable.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Click on P
rofile in MasterFile page ","Successfully checked the Profile Link menu - " & Da
taTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 6: Click on P
rofile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Compa
ny") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist(
2) And Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: The Compan
y Search screen should be displayed.","The Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step 7: The Compan
y Search screen should be displayed.","The Company Search screen is displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call ProfileCompanySearchCriteria("MasterFile","Profile - Company Search
")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","CompanyName")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","Status")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 8: The status
of the Company Searched, should be terminated.","The status of the Company Sear
ched, is terminated."
Else
Reporter.ReportEvent micFail,"Step 8: The status
of the Company Searched, should be terminated.","The status of the Company Sear
ched, is not terminated."
Environment.Value("TestCase_Log")="True"
End If
'Deleting the Profile
Call SearchEnterpriseName("MasterFile","Profile - Company Search","Compa
ny Search Results",DataTable.Value("EnterpriseName","Company"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Delete Profile")
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call fnc_wait(Browser("MasterFile").Page("Profile - Company Sear
ch").WebEdit("EnterpriseName"))
Call select_Menu("MasterFile","Profile - Company Search","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyVendor_TC5()
Environment.Value("TestCase_Log")="True"
'Step #2
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date has been Display
ed."
Else
Reporter.ReportEvent micFail,"Step 2: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date is not Displayed
"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile","PROFILE")
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on P
rofile in MasterFile page ","Successfully checked the Profile Link menu - " & Da
taTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 3: Click on P
rofile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Compa
ny") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist
(2) Then
blnFlag = "True"
Else
blnFlag = "False"
End If
If Environment.Value("TestCase_Log")="True" And blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 4: Under Prof
ile menu select Company-Vendor, Profile - Company Search screen should be displa
yed.","The Profile - Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step 4: Under Prof
ile menu select Company-Vendor, Profile - Company Search screen should be displa
yed.","The Profile - Company Search screen is not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Enter valu
e in Enterprise Name Edit box and click Search.","Search result displayed accord
ing to search criteria."
Else
Reporter.ReportEvent micFail,"Step 5: Enter Valu
e in Enterprise Name Edit box and click Search.","Search result not displayed ac
cording to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",DataTable.Value("EnterpriseName","Company"))
Call pageCheck_WebElement("MasterFile",DataTable.Value("PageName
","Company"),DataTable.Value("strChkTabName","Company"),"")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Clicking t
he Company name(blue link).","Vendor Profile screen is displayed with Tabs - " &
DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 6: Clicking t
he Company name(blue link).","Vendor Profile screen is displayed with Tabs - " &
DataTable.Value("strChkTabName","Company")
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call pageCheck_ImageOR("MasterFile",DataTable.Value("PageName","
Company"),"Related Profiles;Contact Roles;Preview Profile;Delete Profile;Save Pr
ofile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: All the co
rresponding buttons should be displayed.","The Expected Images are displayed in
Vendor Profile screen."
Else
Reporter.ReportEvent micFail,"Step 7: All the co
rresponding buttons should be displayed.","The Expected Images are not displayed
in Vendor Profile screen."
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).Image("Related Profiles").Submit
Wait(10)
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Related Profiles")
blnExistFlag = Browser("MasterFile").Page(DataTable.Value("PageN
ame","Company")).Frame("lookupFrame").Exist(10)
If blnExistFlag = "False" Then
Call click_Image("MasterFile",DataTable.Value("P
ageName","Company"),"Related Profiles")
End If
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("PageName","Com
pany")).Frame("lookupFrame"))
If Browser("MasterFile").Page(DataTable.Value("PageName","Company")).Fra
me("lookupFrame").WebElement("Related Profiles").Exist(2) Then
Reporter.ReportEvent micPass,"Step : 8 Verifying
if the Related Profile Window is Opened or NOT","The Related Profile Window is
Opened with the Header Related Profiles"
Else
Reporter.ReportEvent micFail,"Step : 8 Verifyin
g if the Related Profile Window is Opened or NOT","The Related Profile Window is
not Opened"
End If
Wait(2)
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).WebEdit("Details_Name").Click
Wait(2)
'Step #9
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).Image("Contact Roles").Submit
Wait(10)
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Contact Roles")
blnExistFlag = Browser("MasterFile").Page(DataTable.Value("PageN
ame","Company")).Frame("lookupFrame").Exist(10)
If blnExistFlag = "False" Then
Call click_Image("MasterFile",DataTable.Value("P
ageName","Company"),"Contact Roles")
Wait(5)
End If
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("PageName","Com
pany")).Frame("lookupFrame"))
If Browser("MasterFile").Page(DataTable.Value("PageName","Company")).Fra
me("lookupFrame").WebElement("Company Contact Roles").Exist(2) And Environment.V
alue("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Verifying
if the Contact Roles Window is Opened or NOT","The Contact Roles Window is Opene
d with the Header Company Contact Roles."
Else
Reporter.ReportEvent micFail,"Step 9: Verifying
if the Contact Roles Window is Opened or NOT","The Contact Roles Window isnot Op
ened."
End If
Wait(2)
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).WebEdit("Details_Name").Click
Wait(2)
'Step #10,11 and 12
strIntialAppValue = GetAllFieldValue("MasterFile",DataTable.Valu
e("PageName","Company"),"WebEdit","INPUT")
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Preview Profile")
blnReturnImage = Browser("MasterFile").Page(DataTable.Value("PageName","
Company")).Frame("Frame").Image("Return").Exist(2)
blnPrintImage = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).Frame("Frame").Image("Print").Exist(2)
If blnReturnImage = "True" AND blnPrintImage = "True" Then
Reporter.ReportEvent micPass,"Step 10: Verfying
if the Print and Return Button are Present or NOT","The Print and Return Button
are Present"
Else
Reporter.ReportEvent micFail,"Step 10: Verfying
if the Print and Return Button are Present or NOT","The Print OR Return Button i
s NOT Present"
Environment.Value("TestCase_Log")="True"
End If
If blnPrintImage = "True" Then
blnPrintImage = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).Frame("Frame").Image("Print").Click
If Dialog("Print").Exist(2) Then
Reporter.ReportEvent micWarning,
"Step 11: Verifying if the Print Dialog Exists or NOT","The Print Dialog Exist a
nd Please Check for the Print document Manually"
Dialog("Print").Close
Else
Reporter.ReportEvent micFail,"St
ep 11: Verifying if the Print Dialog Exists or NOT","The Print Dialog does NOT E
xist"
Environment.Value("TestCase_Log"
)="True"
End If
End If
If blnReturnImage = "True" Then
Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).Frame("Frame").Image("Return").Click
blnPageFlag = Browser("MasterFile").Page(DataTab
le.Value("PageName","Company")).Exist(2)
strFinalAppValue = GetAllFieldValue("MasterFile"
,DataTable.Value("PageName","Company"),"WebEdit","INPUT")
If blnPageFlag = "True" AND (Trim(strFinalAppVal
ue) = Trim(strIntialAppValue)) Then
Reporter.ReportEvent micPass,"St
ep 12: Verifying if the Page 'Vendor Profile' is Displayed with the Details of t
he Vendor ","The Page 'Vendor Profile' is dispalyed with the deatils of the Vend
or"
Else
Reporter.ReportEvent micFail,"St
ep 12: Verifying if the Page 'Vendor Profile' is Displayed with the Details of t
he Vendor","The Page 'Vendor Profile' is Not dispalyed with the deatils of the V
endor"
Environment.Value("TestCase_Log"
)="True"
End If
End If
'Step #13
Call click_Image("MasterFile",DataTable.Value("PageName","Company"),"Del
ete Profile")
If Browser("MasterFile").Dialog("DeleteRowConformation").Exist(2
) Then
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"St
ep 13: Should delete a particular profile on clicking","Deletes a particular pro
file on clicking"
Else
Reporter.ReportEvent micFail,"St
ep 13: Should delete a particular profile on clicking","Deletes a particular pro
file on clicking"
Environment.Value("TestCase_Log"
)="True"
End If
Browser("MasterFile").Dialog("DeleteRowConformat
ion").WinButton("Cancel").Click
End If
'Step #14
Call set_WebEdit_Value ("MasterFile",DataTable.Value("PageName",
"Company"),"Details_WebAddress",DataTable.Value("Details_WebAddress","Company"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
strValue = get_WebEdit_Value ("MasterFile",DataTable.Value("Page
Name","Company"),"Details_WebAddress")
If strValue = DataTable.Value("Details_WebAddress","Company") AN
D Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14: Should sa
ve a profile after entering or modifying details","Saves a profile after modifyi
ng details"
Else
Reporter.ReportEvent micFail,"Step 14: Should sa
ve a profile after entering or modifying details","Profile not saved after modif
ying details"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyVendor_TC6()
Environment.Value("TestCase_Log")="True"
'Step #1 to 3
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 to 3: Enter
value in Enterprise Name Edit box and click Search.","Search result is displaye
d."
Else
Reporter.ReportEvent micFail,"Step 1 to 3: Enter
Value in Enterprise Name Edit box and click Search.","Search result not display
ed."
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call ClickPencilIcon("MasterFile","Profile - Company Search",Dat
aTable.Value("strPencilIconSelectValue","Company"))
Call pageCheck_WebElement("MasterFile","Vendor Profile",DataTabl
e.Value("strChkTabName","Company"),"")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Clicking o
n Pencil Icon and select - " & DataTable.Value("strPencilIconSelectValue","Compa
ny"),"Tabs displayed are - " & DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 4: Clicking o
n Pencil Icon and select - " & DataTable.Value("strPencilIconSelectValue","Compa
ny"),"Tabs are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call click_Image("MasterFile","Vendor Profile","Save Profile")
Call ValidationErrorDetails("MasterFile","Vendor Profile","Valid
ation Error","Type;Service Description;Country of Incorporation","Detail")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: The list
of errors for missing fields appear.","The expected pop up message appeared when
tried to save without entering all the values"
Else
Reporter.ReportEvent micFail,"Step 5: The list
of errors for missing fields appear.","The expected pop up message not appeared
when tried to save without entering all the values"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call ErrorValidationCompanyVendor("MasterFile","Vendor Profile"
)
strValue = get_WebList_Value("MasterFile","Vendor Profile","Details_Sta
tus")
If Environment.Value("TestCase_Log")="True" and strValue = "Ef
fective" Then
Reporter.ReportEvent micPass,"Step 6: The statu
s of the New Vendor should be changed to Effective","The status of the New Vendo
r changed to Effective"
Else
Reporter.ReportEvent micFail,"Step 6: The statu
s of the New Vendor should be changed to Effective","The status of the New Vendo
r is not changed to Effective"
Environment.Value("TestCase_Log")="True"
End If
'Deleting the Profile
Call click_Image("MasterFile","Vendor Profile","Delete Profile")
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call fnc_wait(Browser("MasterFile").Page("Profile - Company Sear
ch").WebEdit("EnterpriseName"))
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++
Public Function MFProfileCompanyVendor_TC7()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
Call select_Combo_Value("MasterFile","Profile - Company Search",
"CountryOfIncorporation",DataTable.Value("CountryOfIncorporation","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
strRecordDataInProfile = GetDataInCompanyProfile("MasterFile","P
rofile - Company Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Enter Det
ails in Profile - Company Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 1: Enter Det
ails in Profile - Company Search and click on Search.","The records not populate
"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call select_Menu("MasterFile","Profile - Company Search",DataTab
le.Value("MenuPath1","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Reports_Company","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"Region",DataTable.Value("Reports_Region","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("Reports_SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Vendor Sear
ch Results").WebElement("As of:"))
strRecordDataInReports = GetDataInCompanyReports("MasterFile","R
eports - Vendor Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter Det
ails in Reports - Vendor Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 2: Enter Det
ails in Reports - Vendor Search and click on Search.","The records not populate"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
blnFlage = "True"
For intCount = 0 to 5
If strRecordDataInReports(intCount) <> "" Then
intLen = Len(strRecordDataInReports(intCount))
intPosValue = InStr(intLen,strRe
cordDataInReports(intCount),";")
If intPosValue <> 0 Then
strRecordDataInR
eports(intCount) = Mid(strRecordDataInReports(intCount),1,intLen-1)
End If
strTemp = Split(strRecordDataInR
eports(intCount),";",-1,1)
For intStringCounter = 0 to UBou
nd(strTemp)
If Instr(strReco
rdDataInProfile(intCount),strTemp(intStringCounter)) <> 0 Then
blnFlage = "True"
Else
blnFlage = "False"
Exit For
End If
Next
If blnFlage = "False" Then
Exit For
End If
End If
Next
If Environment.Value("TestCase_Log")= "True" and blnFlage = "T
rue" Then
Reporter.ReportEvent micPass,"Step 3: Comparing
the Records in Profile and Reports.","The records displayed in both screens mat
ch"
Else
Reporter.ReportEvent micFail,"Step 3: Comparing
the Records in Profile and Reports.","The records displayed in both screens doe
s not match"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile","Reports - Vendor Search Results",DataTabl
e.Value("MenuPath","Company"))
Call select_Combo_Value("MasterFile","Profile - Company Search","Status"
,DataTable.Value("Status","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
strRecordDataInProfile = GetDataInCompanyProfile("MasterFile","P
rofile - Company Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Enter Det
ails in Profile - Company Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 4: Enter Det
ails in Profile - Company Search and click on Search.","The records not populate
"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("MasterFile","Profile - Company Search",DataTab
le.Value("MenuPath1","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Reports_Company","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"CompanyStatus",DataTable.Value("Reports_Status","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Vendor Sear
ch Results").WebElement("As of:"))
strRecordDataInReports = GetDataInCompanyReports("MasterFile","R
eports - Vendor Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Enter Det
ails in Reports - Vendor Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 5: Enter Det
ails in Reports - Vendor Search and click on Search.","The records not populate"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
blnFlage = "True"
For intCount = 0 to 5
If strRecordDataInReports(intCount) <> "" Then
intLen = Len(strRecordDataInReports(intCount))
intPosValue = InStr(intLen,strRe
cordDataInReports(intCount),";")
If intPosValue <> 0 Then
strRecordDataInR
eports(intCount) = Mid(strRecordDataInReports(intCount),1,intLen-1)
End If
strTemp = Split(strRecordDataInR
eports(intCount),";",-1,1)
For intStringCounter = 0 to UBou
nd(strTemp)
If Instr(strReco
rdDataInProfile(intCount),strTemp(intStringCounter)) <> 0 Then
blnFlage = "True"
Else
blnFlage = "False"
Exit For
End If
Next
If blnFlage = "False" Then
Exit For
End If
End If
Next
If Environment.Value("TestCase_Log")= "True" and blnFlage = "T
rue" Then
Reporter.ReportEvent micPass,"Step 6: Comparing
the Records in Profile and Reports.","The records displayed in both screens mat
ch"
Else
Reporter.ReportEvent micFail,"Step 6: Comparing
the Records in Profile and Reports.","The records displayed in both screens doe
s not match"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Reports - Vendor Search Results",
"HOME;DR Home")
End Function
'==============================================================================
===========================
' Name of the Script : MasterFileCompanyProfile-Subc
ompany
' Author : Bhagya
Rekha
' Description : Master File Company
' Date and / or Version : 24-10-2008,version 1.0
'===============================================================================
============================
Public Function MFProfileCompanySubcompany_TC1()
Environment.Value("TestCase_Log")="True"
'Step #2
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call Login("MasterFile","Login Page","User","MFLogin")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigate t
o DR Home page after successful login.","Successfully verified the links - " & D
ataTable.Value("HomePageLinks","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Navigate t
o DR Home page after successful login.","The links - '" & DataTable.Value("HomeP
ageLinks","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date has been Display
ed. "
Else
Reporter.ReportEvent micFail,"Step 3: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date is not Displayed
"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"PROFILE")
Call check_Menu("MasterFile",DataTable.Value("PageName","Company
"),DataTable.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on P
rofile in MasterFile page ","Successfully checked the Profile Link menu - " & Da
taTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 4: Click on P
rofile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Compa
ny") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
Call pageCheck_CompanyProfileSearch("MasterFile","Profile - Comp
any Search","Company Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Prof
ile menu select Company-Subcompany.","Expected Default values and fields are dis
played in search criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Prof
ile menu select Company-Subcompany.","Expected Default values and fields are not
displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanySubcompany_TC2()
Environment.Value("TestCase_Log")="True"
'Step #a_2
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step a_2: Click on
MasterFile in DR Home page.","Welcome Message and the Built Date has been Displ
ayed."
Else
Reporter.ReportEvent micFail,"Step a_2: Click on
MasterFile in DR Home page.","Welcome Message and the Built Date is not Display
ed"
Environment.Value("TestCase_Log")="True"
End If
'Step #a_3
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"PROFILE")
Call check_Menu("MasterFile",DataTable.Value("PageName","Company
"),DataTable.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step a_3: Click on
Profile in MasterFile page ","Successfully checked the Profile Link menu - " &
DataTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step a_3: Click on
Profile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Com
pany") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #a_4
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist
(2) Then
blnFlag = "True"
Else
blnFlag = "False"
End If
If Environment.Value("TestCase_Log")="True" And blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step a_4: Under Pr
ofile menu select Company-Subcompany, Profile - Company Search screen should be
displayed.","The Profile - Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step a_4: Under Pr
ofile menu select Company-Subcompany, Profile - Company Search screen should be
displayed.","The Profile - Company Search screen is not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #a_5
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step a_5: Enter va
lue in Enterprise Name Edit box and click Search.","Search result displayed acco
rding to search criteria."
Else
Reporter.ReportEvent micFail,"Step a_5: Enter Va
lue in Enterprise Name Edit box and click Search.","Search result not displayed
according to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #b_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step b_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step b_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #b_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Subcompany")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"CompanyName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step b_2: Enter va
lue in Company Name Edit box and click Search.","Search result displayed accordi
ng to search criteria."
Else
Reporter.ReportEvent micFail,"Step b_2: Enter Va
lue in Company Name Edit box and click Search.","Search result not displayed acc
ording to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #c_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step c_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step c_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #c_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Subcompany")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"Type")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step c_2: Select v
alue in Type Web List and click Search.","Search result displayed according to s
earch criteria."
Else
Reporter.ReportEvent micFail,"Step c_2: Select v
alue in Type Web List and click Search.","Search result not displayed according
to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #d_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step d_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step d_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #d_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Subcompany")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"CountryOfIncorporation")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step d_2: Select v
alue in Country of Incorporation Web List and click Search.","Search result disp
layed according to search criteria."
Else
Reporter.ReportEvent micFail,"Step d_2: Select v
alue in Country of Incorporation Web List and click Search.","Search result not
displayed according to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #e_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step e_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step e_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #e_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Subcompany")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"CID")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step e_2: Enter Va
lue in CID Edit box and click Search.","Search result displayed according to sea
rch criteria."
Else
Reporter.ReportEvent micFail,"Step e_2: Enter Va
lue in CID Edit box and click Search.","Search result not displayed according to
search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #f_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step f_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step f_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #f_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Subcompany")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"Status")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step f_2: Select v
alue in Status Web List and click Search.","Search result displayed according to
search criteria."
Else
Reporter.ReportEvent micFail,"Step f_2: Select v
alue in Status Web List and click Search.","Search result not displayed accordin
g to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #g_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step g_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step g_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #g_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Subcompany")
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","Mnemonic")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step g_2: Enter Va
lue in Mnemonic Edit box and click Search.","Search result displayed according t
o search criteria."
Else
Reporter.ReportEvent micFail,"Step g_2: Enter Va
lue in Mnemonic Edit box and click Search.","Search result not displayed accordi
ng to search criteria."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanySubcompany_TC3()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Enter valu
e in Enterprise Name Edit box and click Search.","Search result is displayed."
Else
Reporter.ReportEvent micFail,"Step 1: Enter Valu
e in Enterprise Name Edit box and click Search.","Search result not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call ClickPencilIcon("MasterFile","Profile - Company Search",Dat
aTable.Value("strPencilIconSelectValue","Company"))
Call pageCheck_WebElement("MasterFile",DataTable.Value("PageName
","Company"),DataTable.Value("strChkTabName","Company"),"")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking t
he Pencil icon adjacent to Selected Enterprise Name.","Subcompany Profile screen
is displayed with Tabs - " &DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking t
he Pencil icon adjacent to Selected Enterprise Name.","Subcompany Profile screen
is displayed with Tabs - " &DataTable.Value("strChkTabName","Company")
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Subcompany")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Checking t
he fields in Details Tab."," Expected Fields are present in Details Tab"
Else
Reporter.ReportEvent micFail,"Step 3: Checking t
he fields in Details Tab."," Expected Fields are not present in Details Tab"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
strDefaultValue = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"Subcompany_Name;Subcompany_MarketingName")
strStatusValue = get_WebList_Value("MasterFile",DataTable.Value(
"PageName","Company"),"Subcompany_Status")
If Environment.Value("TestCase_Log")="True" And strDefaultValue
= "Subcompany_Name;"&DataTable.Value("EnterpriseName","Company")&":Subcompany_Ma
rketingName;"&DataTable.Value("Subcompany_MarketingName","Company")&":" And strS
tatusValue = "Committed" Then
Reporter.ReportEvent micPass,"Step 4: Checking t
he Default Values in Details Tab.","Details tab has been displayed with expected
Default Values- " &strDefaultValue &"Subcompany_Status;" &strStatusValue
Else
Reporter.ReportEvent micFail,"Step 4: Checking D
efault Values in Details Tab.","Details tab is not displayed with expected Defau
lt Values."
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call chkWebEditReadOnly("MasterFile",DataTable.Value("PageName",
"Company"),"Subcompany_TerminationDate","ReadOnly")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: The Termin
ation Date field should be Greyed out","The Termination Date field is Greyed out
."
Else
Reporter.ReportEvent micFail,"Step 5: The Termin
ation Date field should be Greyed out","The Termination Date field is not Greyed
out."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Subcompany")
Call FillSubcompanyTab("MasterFile",DataTable.Value("PageName","
Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Checking a
nd Entering the Details in Subcompany Tab.","Details has been Entered"
Else
Reporter.ReportEvent micFail,"Step 6: Checking a
nd Entering the Details in Subcompany Tab.","Details has not been Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Products")
Call chkMFProfileHeader("MasterFile",DataTable.Value("PageName",
"Company"),"Products","CompanyProducts")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Checking t
he headers in Products tab.","Expected Headers- " & DataTable.Value("CompanyProd
ucts","ReportHeader") &" has been displayed"
Else
Reporter.ReportEvent micFail,"Step 7: Checking t
he headers in Products tab.","Expected Headers are not displayed in Products Tab
."
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Products_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Products")
Call FillProductsTab("MasterFile","Subcompany Profile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Checking a
nd Entering the Details in Products Tab.","Details in Products Tab has been Ente
red"
Else
Reporter.ReportEvent micFail,"Step 8: Checking a
nd Entering the Details in Products Tab.","Details in Products Tab has not been
Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Comments")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Comments")
Call FillCommentsTab("MasterFile","Subcompany Profile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Checking a
nd Entering the Details in Comments Tab.","Details in Comments Tab has been Ente
red"
Else
Reporter.ReportEvent micFail,"Step 9: Checking a
nd Entering the Details in Comments Tab.","Details in Comments Tab has not been
Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call click_Image("MasterFile","Subcompany Profile","Save Profile
")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value("PageNa
me","Company"),"Subcompany")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value("PageNa
me","Company"),"Products")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value
("PageName","Company"),"Comments")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Checking
if Details has been saved or not.","All the entered values are saved."
Else
Reporter.ReportEvent micFail,"Step 10: Checking
if Details has been saved or not.","All the entered values not saved."
Environment.Value("TestCase_Log")="True"
End If
'Deleting the Profile
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Delete Profile")
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call fnc_wait(Browser("MasterFile").Page("Profile - Company Sear
ch").WebEdit("EnterpriseName"))
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
Public Function MFProfileCompanySubcompany_TC4()
Environment.Value("TestCase_Log")= "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call ClickPencilIcon("MasterFile","Profile - Company Search",Dat
aTable.Value("strPencilIconSelectValue","Company"))
Call FillSubcompanyTab("MasterFile",DataTable.Value("PageName","
Company"))
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Products")
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Products_Add")
Call FillProductsTab("MasterFile","Subcompany Profile")
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Comments")
Call FillCommentsTab("MasterFile","Subcompany Profile")
Call click_Image("MasterFile","Subcompany Profile","Save Profile
")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 1: Executing
testcase 3.","Testcase 3 has been Executed"
Else
Reporter.ReportEvent micFail,"Step 1: Executing
testcase 3.","Testcase 3 not Executed"
Environment.Value("TestCase_Log")= "True"
End If
'Step#2
Call selectTab("MasterFile",DataTable.Value("PageName","Company")," Sub
company")
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Subcompany_Status","Effective")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Selecting
Details_Status has Effective.","The value Effective has accepted."
Else
Reporter.ReportEvent micFail,"Step 2: Selecting
Details_Status has Effective.","The value Effective not accepted"
Environment.Value("TestCase_Log")="True"
End If
'Step # 3
strData = "02;Dec;2008"
strValue = Split(strData,";",-1,1)
strDateValue = strValue(0)
strMonthValue = strValue(1)
strYearValue = strValue(2)
Call click_Image("MasterFile",DataTable.Value("PageName","Company"),"Sub
company_EffectiveDate")
Call ClickIcon_SetDate("MasterFile",DataTable.Value("PageName","
Company"),strMonthValue,strYearValue,strDateValue)
strFinalValue = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).WebEdit("Subcompany_EffectiveDate").GetROProperty("value")
strChangedValue = SearchCriteriaDateFormat(strData)
If strChangedValue = strFinalValue And Environment.Value("TestC
ase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 3: Selecting
Details_EffectiveDate less than current date.","Less than current date has been
set in Details_EffectiveDate"
Else
Reporter.ReportEvent micFail,"Step 3: Selecting
Details_EffectiveDate has Effective.","The date not accepted"
Environment.Value("TestCase_Log")="True"
End If
'Step # 4
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
strStatusValue = get_WebList_Value("MasterFile",DataTable.Value(
"PageName","Company"),"Subcompany_Status")
If strStatusValue = "Effective" And Environment.Value("TestCase_
Log")= "True" Then
Reporter.ReportEvent micDone,"Step 4: The status
should be changed to Effective.","The status changed to Effective"
Else
Reporter.ReportEvent micFail,"Step 4: The status
should be changed to Effective.","The status changed to Effective"
Environment.Value("TestCase_Log")= "True"
End If
'Step # 5
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Subcompany_Status","Terminated")
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Subcompany_TerminationDate")
'Clicking on the today button in the From date field
Set objDesc1 = Description.Create
objDesc1("micclass").Value = "WebElement"
objDesc1("html tag").Value = "FONT"
Set strObject = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).Frame("PopCalFrame").ChildObjects(objDesc1)
For i= 0 to strObject.Count-1
temp = strObject(i).GetROProperty("innertext")
If instr(1,temp,"Today:") Then
strObject(i).click
End If
Next
'verifying whether the todate value is today's date
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
FromDatevalue=get_WebEdit_Value("MasterFile",DataTable.Value("Pa
geName","Company"),"Subcompany_TerminationDate")
newFromDatevalue=cdate(FromDatevalue)
If newFromDatevalue=date And Environment.Value("TestCase_Log")=
"True" Then
Reporter.ReportEvent micDone,"Step 5: The Today
button is to be clicked in from date and checked if the current date appears","T
he date gets filled properly"
Else
Reporter.ReportEvent micFail,"Step 5: The Today
button is to be clicked in from date and checked if the current date appears","T
he current date does not appear"
Environment.Value("TestCase_Log")= "True"
End If
'Step #6
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"PROFILE")
Call check_Menu("MasterFile",DataTable.Value("PageName","Company
"),DataTable.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Click on P
rofile in MasterFile page ","Successfully checked the Profile Link menu - " & Da
taTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 6: Click on P
rofile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Compa
ny") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist(
2) And Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: The Compan
y Search screen should be displayed.","The Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step 7: The Compan
y Search screen should be displayed.","The Company Search screen is displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call ProfileCompanySearchCriteria("MasterFile","Profile - Company Search
")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","CompanyName")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","Status")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 8: The status
of the Company Searched, should be terminated.","The status of the Company Sear
ched, is terminated."
Else
Reporter.ReportEvent micFail,"Step 8: The status
of the Company Searched, should be terminated.","The status of the Company Sear
ched, is not terminated."
Environment.Value("TestCase_Log")="True"
End If
'Deleting the Profile
Call SearchEnterpriseName("MasterFile","Profile - Company Search","Compa
ny Search Results",DataTable.Value("EnterpriseName","Company"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Delete Profile")
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call fnc_wait(Browser("MasterFile").Page("Profile - Company Sear
ch").WebEdit("EnterpriseName"))
Call select_Menu("MasterFile","Profile - Company Search","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanySubcompany_TC5()
Environment.Value("TestCase_Log")="True"
'Step #2
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date has been Display
ed."
Else
Reporter.ReportEvent micFail,"Step 2: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date is not Displayed
"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile","PROFILE")
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on P
rofile in MasterFile page ","Successfully checked the Profile Link menu - " & Da
taTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 3: Click on P
rofile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Compa
ny") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist
(2) Then
blnFlag = "True"
Else
blnFlag = "False"
End If
If Environment.Value("TestCase_Log")="True" And blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 4: Under Prof
ile menu select Company-Subcompany, Profile - Company Search screen should be di
splayed.","The Profile - Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step 4: Under Prof
ile menu select Company-Subcompany, Profile - Company Search screen should be di
splayed.","The Profile - Company Search screen is not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Enter valu
e in Enterprise Name Edit box and click Search.","Search result displayed accord
ing to search criteria."
Else
Reporter.ReportEvent micFail,"Step 5: Enter Valu
e in Enterprise Name Edit box and click Search.","Search result not displayed ac
cording to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",DataTable.Value("EnterpriseName","Company"))
Call pageCheck_WebElement("MasterFile",DataTable.Value("PageName
","Company"),DataTable.Value("strChkTabName","Company"),"")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Clicking t
he Company name(blue link).","Subcompany Profile screen is displayed with Tabs -
" &DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 6: Clicking t
he Company name(blue link).","Subcompany Profile screen is displayed with Tabs -
" &DataTable.Value("strChkTabName","Company")
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call pageCheck_ImageOR("MasterFile",DataTable.Value("PageName","
Company"),"Related Profiles;Contact Roles;Preview Profile;Delete Profile;Save Pr
ofile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: All the co
rresponding buttons should be displayed.","The Expected Images are displayed in
Subcompany Profile screen."
Else
Reporter.ReportEvent micFail,"Step 7: All the co
rresponding buttons should be displayed.","The Expected Images are not displayed
in Subcompany Profile screen."
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).Image("Related Profiles").Submit
Wait(10)
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Related Profiles")
blnExistFlag = Browser("MasterFile").Page(DataTable.Value("PageN
ame","Company")).Frame("lookupFrame").Exist(10)
If blnExistFlag = "False" Then
Call click_Image("MasterFile",DataTable.Value("P
ageName","Company"),"Related Profiles")
End If
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("PageName","Com
pany")).Frame("lookupFrame"))
If Browser("MasterFile").Page(DataTable.Value("PageName","Company")).Fra
me("lookupFrame").WebElement("Related Profiles").Exist(2) Then
Reporter.ReportEvent micPass,"Step : 8 Verifying
if the Related Profile Window is Opened or NOT","The Related Profile Window is
Opened with the Header Related Profiles"
Else
Reporter.ReportEvent micFail,"Step : 8 Verifyin
g if the Related Profile Window is Opened or NOT","The Related Profile Window is
not Opened"
End If
Wait(2)
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).WebEdit("Subcompany_Name").Click
Wait(2)
'Step #9
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).Image("Contact Roles").Submit
Wait(10)
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Contact Roles")
blnExistFlag = Browser("MasterFile").Page(DataTable.Value("PageN
ame","Company")).Frame("lookupFrame").Exist(10)
If blnExistFlag = "False" Then
Call click_Image("MasterFile",DataTable.Value("P
ageName","Company"),"Contact Roles")
Wait(5)
End If
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("PageName","Com
pany")).Frame("lookupFrame"))
If Browser("MasterFile").Page(DataTable.Value("PageName","Company")).Fra
me("lookupFrame").WebElement("Company Contact Roles").Exist(2) And Environment.V
alue("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Verifying
if the Contact Roles Window is Opened or NOT","The Contact Roles Window is Opene
d with the Header Company Contact Roles."
Else
Reporter.ReportEvent micFail,"Step 9: Verifying
if the Contact Roles Window is Opened or NOT","The Contact Roles Window isnot Op
ened."
End If
Wait(2)
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).WebEdit("Subcompany_Name").Click
Wait(2)
'Step #10,11 and 12
strIntialAppValue = GetAllFieldValue("MasterFile",DataTable.Valu
e("PageName","Company"),"WebEdit","INPUT")
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Preview Profile")
blnReturnImage = Browser("MasterFile").Page(DataTable.Value("PageName","
Company")).Frame("Frame").Image("Return").Exist(2)
blnPrintImage = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).Frame("Frame").Image("Print").Exist(2)
If blnReturnImage = "True" AND blnPrintImage = "True" Then
Reporter.ReportEvent micPass,"Step 10: Verfying
if the Print and Return Button are Present or NOT","The Print and Return Button
are Present"
Else
Reporter.ReportEvent micFail,"Step 10: Verfying
if the Print and Return Button are Present or NOT","The Print OR Return Button i
s NOT Present"
Environment.Value("TestCase_Log")="True"
End If
If blnPrintImage = "True" Then
blnPrintImage = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).Frame("Frame").Image("Print").Click
If Dialog("Print").Exist(2) Then
Reporter.ReportEvent micWarning,
"Step 11: Verifying if the Print Dialog Exists or NOT","The Print Dialog Exist a
nd Please Check for the Print document Manually"
Dialog("Print").Close
Else
Reporter.ReportEvent micFail,"St
ep 11: Verifying if the Print Dialog Exists or NOT","The Print Dialog does NOT E
xist"
Environment.Value("TestCase_Log"
)="True"
End If
End If
If blnReturnImage = "True" Then
Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).Frame("Frame").Image("Return").Click
blnPageFlag = Browser("MasterFile").Page(DataTab
le.Value("PageName","Company")).Exist(2)
strFinalAppValue = GetAllFieldValue("MasterFile"
,DataTable.Value("PageName","Company"),"WebEdit","INPUT")
If blnPageFlag = "True" AND (Trim(strFinalAppVal
ue) = Trim(strIntialAppValue)) Then
Reporter.ReportEvent micPass,"St
ep 12: Verifying if the Page 'Subcompany Profile' is Displayed with the Details
of the Initial Depositor ","The Page 'Initial Depositor Profile' is dispalyed wi
th the deatils of the Initial Depositor"
Else
Reporter.ReportEvent micFail,"St
ep 12: Verifying if the Page 'Subcompany Profile' is Displayed with the Details
of the Initial Depositor","The Page 'Initial Depositor Profile' is Not dispalyed
with the deatils of the Initial Depositor"
Environment.Value("TestCase_Log"
)="True"
End If
End If
'Step #13
Call click_Image("MasterFile",DataTable.Value("PageName","Company"),"Del
ete Profile")
If Browser("MasterFile").Dialog("DeleteRowConformation").Exist(2
) Then
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"St
ep 13: Should delete a particular profile on clicking","Deletes a particular pro
file on clicking"
Else
Reporter.ReportEvent micFail,"St
ep 13: Should delete a particular profile on clicking","Deletes a particular pro
file on clicking"
Environment.Value("TestCase_Log"
)="True"
End If
Browser("MasterFile").Dialog("DeleteRowConformat
ion").WinButton("Cancel").Click
End If
'Step #14
Call set_WebEdit_Value ("MasterFile",DataTable.Value("PageName",
"Company"),"Subcompany_WebAddress",DataTable.Value("Subcompany_WebAddress","Comp
any"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
strValue = get_WebEdit_Value ("MasterFile",DataTable.Value("Page
Name","Company"),"Subcompany_WebAddress")
If strValue = DataTable.Value("Subcompany_WebAddress","Company")
AND Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14: Should sa
ve a profile after entering or modifying details","Saves a profile after modifyi
ng details"
Else
Reporter.ReportEvent micFail,"Step 14: Should sa
ve a profile after entering or modifying details","Profile not saved after modif
ying details"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanySubcompany_TC6()
Environment.Value("TestCase_Log")="True"
'Step #1 to 3
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 to 3: Enter
value in Enterprise Name Edit box and click Search.","Search result is displaye
d."
Else
Reporter.ReportEvent micFail,"Step 1 to 3: Enter
Value in Enterprise Name Edit box and click Search.","Search result not display
ed."
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call ClickPencilIcon("MasterFile","Profile - Company Search",Dat
aTable.Value("strPencilIconSelectValue","Company"))
Call pageCheck_WebElement("MasterFile","Subcompany Profile",Data
Table.Value("strChkTabName","Company"),"")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Clicking o
n Pencil Icon and select - " & DataTable.Value("strPencilIconSelectValue","Compa
ny"),"Tabs displayed are - " & DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 4: Clicking o
n Pencil Icon and select - " & DataTable.Value("strPencilIconSelectValue","Compa
ny"),"Tabs are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call click_Image("MasterFile","Subcompany Profile","Save Profile
")
Call ValidationErrorDetails("MasterFile","Subcompany Profile","V
alidation Error","Parent Company;Country of Incorporation","Subcompany")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: The list
of errors for missing fields appear.","The expected pop up message appeared when
tried to save without entering all the values"
Else
Reporter.ReportEvent micFail,"Step 5: The list
of errors for missing fields appear.","The expected pop up message not appeared
when tried to save without entering all the values"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call ErrorValidationCompanySubcompany("MasterFile","Subcompany
Profile")
strValue = get_WebList_Value("MasterFile","Subcompany Profile","Subcomp
any_Status")
If Environment.Value("TestCase_Log")="True" and strValue = "Ef
fective" Then
Reporter.ReportEvent micPass,"Step 6: The statu
s of the New Subcompany should be changed to Effective","The status of the New S
ubcompany changed to Effective"
Else
Reporter.ReportEvent micFail,"Step 6: The statu
s of the New Subcompany should be changed to Effective","The status of the New S
ubcompany is not changed to Effective"
Environment.Value("TestCase_Log")="True"
End If
'Deleting the Profile
Call click_Image("MasterFile","Subcompany Profile","Delete Profi
le")
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call fnc_wait(Browser("MasterFile").Page("Profile - Company Sear
ch").WebEdit("EnterpriseName"))
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++
Public Function MFProfileCompanySubcompany_TC7()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
Call select_Combo_Value("MasterFile","Profile - Company Search",
"CountryOfIncorporation",DataTable.Value("CountryOfIncorporation","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
strRecordDataInProfile = GetDataInCompanyProfile("MasterFile","P
rofile - Company Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Enter Det
ails in Profile - Company Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 1: Enter Det
ails in Profile - Company Search and click on Search.","The records not populate
"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call select_Menu("MasterFile","Profile - Company Search",DataTab
le.Value("MenuPath1","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Reports_Company","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"Region",DataTable.Value("Reports_Region","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("Reports_SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Subcompany
Search Results").WebElement("As of:"))
strRecordDataInReports = GetDataInCompanyReports("MasterFile","R
eports - Subcompany Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter Det
ails in Reports - Subcompany Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 2: Enter Det
ails in Reports - Subcompany Search and click on Search.","The records not popul
ate"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
blnFlage = "True"
For intCount = 0 to 5
If strRecordDataInReports(intCount) <> "" Then
intLen = Len(strRecordDataInReports(intCount))
intPosValue = InStr(intLen,strRe
cordDataInReports(intCount),";")
If intPosValue <> 0 Then
strRecordDataInR
eports(intCount) = Mid(strRecordDataInReports(intCount),1,intLen-1)
End If
strTemp = Split(strRecordDataInR
eports(intCount),";",-1,1)
For intStringCounter = 0 to UBou
nd(strTemp)
If Instr(strReco
rdDataInProfile(intCount),strTemp(intStringCounter)) <> 0 Then
blnFlage = "True"
Else
blnFlage = "False"
Exit For
End If
Next
If blnFlage = "False" Then
Exit For
End If
End If
Next
If Environment.Value("TestCase_Log")= "True" and blnFlage = "T
rue" Then
Reporter.ReportEvent micPass,"Step 3: Comparing
the Records in Profile and Reports.","The records displayed in both screens mat
ch"
Else
Reporter.ReportEvent micFail,"Step 3: Comparing
the Records in Profile and Reports.","The records displayed in both screens doe
s not match"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile","Reports - Subcompany Search Results",Data
Table.Value("MenuPath","Company"))
Call select_Combo_Value("MasterFile","Profile - Company Search","Status"
,DataTable.Value("Status","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
strRecordDataInProfile = GetDataInCompanyProfile("MasterFile","P
rofile - Company Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Enter Det
ails in Profile - Company Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 4: Enter Det
ails in Profile - Company Search and click on Search.","The records not populate
"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("MasterFile","Profile - Company Search",DataTab
le.Value("MenuPath1","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Reports_Company","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"CompanyStatus",DataTable.Value("Reports_Status","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Subcompany
Search Results").WebElement("As of:"))
strRecordDataInReports = GetDataInCompanyReports("MasterFile","R
eports - Subcompany Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Enter Det
ails in Reports - Subcompany Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 5: Enter Det
ails in Reports - Subcompany Search and click on Search.","The records not popul
ate"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
blnFlage = "True"
For intCount = 0 to 5
If strRecordDataInReports(intCount) <> "" Then
intLen = Len(strRecordDataInReports(intCount))
intPosValue = InStr(intLen,strRe
cordDataInReports(intCount),";")
If intPosValue <> 0 Then
strRecordDataInR
eports(intCount) = Mid(strRecordDataInReports(intCount),1,intLen-1)
End If
strTemp = Split(strRecordDataInR
eports(intCount),";",-1,1)
For intStringCounter = 0 to UBou
nd(strTemp)
If Instr(strReco
rdDataInProfile(intCount),strTemp(intStringCounter)) <> 0 Then
blnFlage = "True"
Else
blnFlage = "False"
Exit For
End If
Next
If blnFlage = "False" Then
Exit For
End If
End If
Next
If Environment.Value("TestCase_Log")= "True" and blnFlage = "T
rue" Then
Reporter.ReportEvent micPass,"Step 6: Comparing
the Records in Profile and Reports.","The records displayed in both screens mat
ch"
Else
Reporter.ReportEvent micFail,"Step 6: Comparing
the Records in Profile and Reports.","The records displayed in both screens doe
s not match"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Reports - Subcompany Search Resul
ts","HOME;DR Home")
End Function
'===============================================================================
==========================
' Name of the Script : MasterFileCompanyProfile-Depo
sitary
' Author : Bhagya
Rekha
' Description : Master File Company
' Date and / or Version : 21-10-2008,version 1.0
'===============================================================================
============================
Public Function MFProfileCompanyDepositary_TC1()
Environment.Value("TestCase_Log")="True"
'Step #2
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call Login("MasterFile","Login Page","User","MFLogin")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigate t
o DR Home page after successful login.","Successfully verified the links - " & D
ataTable.Value("HomePageLinks","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Navigate t
o DR Home page after successful login.","The links - '" & DataTable.Value("HomeP
ageLinks","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date has been Display
ed. "
Else
Reporter.ReportEvent micFail,"Step 3: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date is not Displayed
"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile","MasterFile","PROFILE")
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on P
rofile in MasterFile page ","Successfully checked the Profile Link menu - " & Da
taTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 4: Click on P
rofile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Compa
ny") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyProfileSearch("MasterFile","Profile - Comp
any Search","Company Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Prof
ile menu select Company-Depositary.","Expected Default values and fields are dis
played in search criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Prof
ile menu select Company-Depositary.","Expected Default values and fields are not
displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyDepositary_TC2()
Environment.Value("TestCase_Log")="True"
'Step #a_2
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step a_2: Click on
MasterFile in DR Home page.","Welcome Message and the Built Date has been Displ
ayed."
Else
Reporter.ReportEvent micFail,"Step a_2: Click on
MasterFile in DR Home page.","Welcome Message and the Built Date is not Display
ed"
Environment.Value("TestCase_Log")="True"
End If
'Step #a_3
Call select_Menu("MasterFile","MasterFile","PROFILE")
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step a_3: Click on
Profile in MasterFile page ","Successfully checked the Profile Link menu - " &
DataTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step a_3: Click on
Profile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Com
pany") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #a_4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist
(2) Then
blnFlag = "True"
Else
blnFlag = "False"
End If
If Environment.Value("TestCase_Log")="True" And blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step a_4: Under Pr
ofile menu select Company-Depositary, Profile - Company Search screen should be
displayed.","The Profile - Depository Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step a_4: Under Pr
ofile menu select Company-Depositary, Profile - Company Search screen should be
displayed.","The Profile - Depositary Search screen is not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #a_5
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step a_5: Enter va
lue in Enterprise Name Edit box and click Search.","Search result displayed acco
rding to search criteria."
Else
Reporter.ReportEvent micFail,"Step a_5: Enter Va
lue in Enterprise Name Edit box and click Search.","Search result not displayed
according to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #b_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step b_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step b_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #b_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Depositary")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"CompanyName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step b_2: Enter va
lue in Company Name Edit box and click Search.","Search result displayed accordi
ng to search criteria."
Else
Reporter.ReportEvent micFail,"Step b_2: Enter Va
lue in Company Name Edit box and click Search.","Search result not displayed acc
ording to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #c_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step c_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step c_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #c_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Depositary")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"Type")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step c_2: Select v
alue in Type Web List and click Search.","Search result displayed according to s
earch criteria."
Else
Reporter.ReportEvent micFail,"Step c_2: Select v
alue in Type Web List and click Search.","Search result not displayed according
to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #d_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step d_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step d_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #d_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Depositary")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"CountryOfIncorporation")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step d_2: Select v
alue in Country of Incorporation Web List and click Search.","Search result disp
layed according to search criteria."
Else
Reporter.ReportEvent micFail,"Step d_2: Select v
alue in Country of Incorporation Web List and click Search.","Search result not
displayed according to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #e_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step e_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step e_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #e_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Depositary")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"CID")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step e_2: Enter Va
lue in CID Edit box and click Search.","Search result displayed according to sea
rch criteria."
Else
Reporter.ReportEvent micFail,"Step e_2: Enter Va
lue in CID Edit box and click Search.","Search result not displayed according to
search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #f_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step f_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step f_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #f_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Depositary")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"Status")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step f_2: Select v
alue in Status Web List and click Search.","Search result displayed according to
search criteria."
Else
Reporter.ReportEvent micFail,"Step f_2: Select v
alue in Status Web List and click Search.","Search result not displayed accordin
g to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #g_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step g_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step g_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #g_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Depositary")
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","Mnemonic")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step g_2: Enter Va
lue in Mnemonic Edit box and click Search.","Search result displayed according t
o search criteria."
Else
Reporter.ReportEvent micFail,"Step g_2: Enter Va
lue in Mnemonic Edit box and click Search.","Search result not displayed accordi
ng to search criteria."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyDepositary_TC3()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Enter valu
e in Enterprise Name Edit box and click Search.","Search result is displayed."
Else
Reporter.ReportEvent micFail,"Step 1: Enter Valu
e in Enterprise Name Edit box and click Search.","Search result not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call ClickPencilIcon("MasterFile","Profile - Company Search",Dat
aTable.Value("strPencilIconSelectValue","Company"))
Call pageCheck_WebElement("MasterFile",DataTable.Value("PageName
","Company"),DataTable.Value("strChkTabName","Company"),"")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking t
he Pencil icon adjacent to Selected Enterprise Name.","Depositary Profile screen
is displayed with Tabs - " &DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking t
he Pencil icon adjacent to Selected Enterprise Name.","Depositary Profile screen
is displayed with Tabs - " &DataTable.Value("strChkTabName","Company")
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Details")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Checking t
he fields in Details Tab."," Expected Fields are present in Details Tab"
Else
Reporter.ReportEvent micFail,"Step 3: Checking t
he fields in Details Tab."," Expected Fields are not present in Details Tab"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
strDefaultValue = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"Details_Name;Details_MarketingName")
strStatusValue = get_WebList_Value("MasterFile",DataTable.Value(
"PageName","Company"),"Details_Status")
If Environment.Value("TestCase_Log")="True" And strDefaultValue
= "Details_Name;"&DataTable.Value("EnterpriseName","Company")&":Details_Marketin
gName;"&DataTable.Value("EnterpriseName","Company")&":" And strStatusValue = "Co
mmitted" Then
Reporter.ReportEvent micPass,"Step 4: Checking t
he Default Values in Details Tab.","Details tab has been displayed with expected
Default Values- " &strDefaultValue &"Details_Status;" &strStatusValue
Else
Reporter.ReportEvent micFail,"Step 4: Checking D
efault Values in Details Tab.","Details tab is not displayed with expected Defau
lt Values."
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Details")
Call FillDetailsTab("MasterFile",DataTable.Value("PageName","Com
pany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Checking a
nd Entering the Details in Details Tab.","Details has been Entered"
Else
Reporter.ReportEvent micFail,"Step 5: Checking a
nd Entering the Details in Details Tab.","Details has not been Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Roles")
Call chkMFProfileHeader("MasterFile",DataTable.Value("PageName",
"Company"),"Roles","CompanyDepositaryRoles")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Checking t
he headers in Roles tab.","Expected Headers- " & DataTable.Value("CompanyRoles",
"ReportHeader") &" has been displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Checking t
he headers in Roles tab.","Expected Headers are not displayed in Roles Tab."
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Roles_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("PageName","C
ompany"),"Roles")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Checking t
he Fields in Roles Tab.","Expected Fields in Roles Tab has been displayed"
Else
Reporter.ReportEvent micFail,"Step 7: Checking t
he Fields in Roles Tab.","Expected Fields in Roles Tab are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call FillRolesTab("MasterFile",DataTable.Value("PageName","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Entering t
he Details in Roles Tab.","Details in Roles Tab has been Entered"
Else
Reporter.ReportEvent micFail,"Step 8: Entering t
he Details in Roles Tab.","Details in Roles Tab has not been Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Products")
Call chkMFProfileHeader("MasterFile",DataTable.Value("PageName",
"Company"),"Products","CompanyProducts")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Checking t
he headers in Products tab.","Expected Headers- " & DataTable.Value("CompanyProd
ucts","ReportHeader") &" has been displayed"
Else
Reporter.ReportEvent micFail,"Step 9: Checking t
he headers in Products tab.","Expected Headers are not displayed in Products Tab
."
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Products_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Products")
Call FillProductsTab("MasterFile",DataTable.Value("PageName","Co
mpany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Checking
and Entering the Details in Products Tab.","Details in Products Tab has been Ent
ered"
Else
Reporter.ReportEvent micFail,"Step 10: Checking
and Entering the Details in Products Tab.","Details in Products Tab has not bee
n Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Comments")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Comments")
Call FillCommentsTab("MasterFile",DataTable.Value("PageName","Co
mpany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Checking
and Entering the Details in Comments Tab.","Details in Comments Tab has been Ent
ered"
Else
Reporter.ReportEvent micFail,"Step 11: Checking
and Entering the Details in Comments Tab.","Details in Comments Tab has not been
Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #12
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value
("PageName","Company"),"Details")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value("PageNa
me","Company"),"Roles")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value
("PageName","Company"),"Products")
Call chkSavedValuesInCompanyProfile("MasterFile",DataTable.Value
("PageName","Company"),"Comments")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12: Checking
if Details has been saved or not.","All the entered values are saved."
Else
Reporter.ReportEvent micFail,"Step 12: Checking
if Details has been saved or not.","All the entered values not saved."
Environment.Value("TestCase_Log")="True"
End If
'Deleting the Profile
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Delete Profile")
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call fnc_wait(Browser("MasterFile").Page("Profile - Company Sear
ch").WebEdit("EnterpriseName"))
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
Public Function MFProfileCompanyDepositary_TC4()
Environment.Value("TestCase_Log")= "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call ClickPencilIcon("MasterFile","Profile - Company Search",Dat
aTable.Value("strPencilIconSelectValue","Company"))
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Details")
Call FillDetailsTab("MasterFile",DataTable.Value("PageName","Com
pany"))
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Roles")
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Roles_Add")
Call FillRolesTab("MasterFile",DataTable.Value("PageName","Compa
ny"))
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Products")
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Products_Add")
Call FillProductsTab("MasterFile",DataTable.Value("PageName","Co
mpany"))
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Comments")
Call FillCommentsTab("MasterFile",DataTable.Value("PageName","Co
mpany"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 1: Executing
testcase 3.","Testcase 3 has been Executed"
Else
Reporter.ReportEvent micFail,"Step 1: Executing
testcase 3.","Testcase 3 not Executed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #2
Call selectTab("MasterFile",DataTable.Value("PageName","Company")," Det
ail")
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Details_Status","Effective")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Selecting
Details_Status has Effective.","The value Effective has accepted."
Else
Reporter.ReportEvent micFail,"Step 2: Selecting
Details_Status has Effective.","The value Effective not accepted"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
strData = "02;Dec;2008"
strValue = Split(strData,";",-1,1)
strDateValue = strValue(0)
strMonthValue = strValue(1)
strYearValue = strValue(2)
Call click_Image("MasterFile",DataTable.Value("PageName","Company"),"Det
ails_EffectiveDate")
Call ClickIcon_SetDate("MasterFile",DataTable.Value("PageName","
Company"),strMonthValue,strYearValue,strDateValue)
strFinalValue = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).WebEdit("Details_EffectiveDate").GetROProperty("value")
strChangedValue = SearchCriteriaDateFormat(strData)
If strChangedValue = strFinalValue And Environment.Value("TestC
ase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 3: Selecting
Details_EffectiveDate less than current date.","Less than current date has been
set in Details_EffectiveDate"
Else
Reporter.ReportEvent micFail,"Step 3: Selecting
Details_EffectiveDate has Effective.","The date not accepted"
Environment.Value("TestCase_Log")="True"
End If
'Step # 4
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
strStatusValue = get_WebList_Value("MasterFile",DataTable.Value(
"PageName","Company"),"Details_Status")
If strStatusValue = "Effective" And Environment.Value("TestCase_
Log")= "True" Then
Reporter.ReportEvent micDone,"Step 4: The status
should be changed to Effective.","The status changed to Effective"
Else
Reporter.ReportEvent micFail,"Step 4: The status
should be changed to Effective.","The status changed to Effective"
Environment.Value("TestCase_Log")= "True"
End If
'Step #5
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Details_Status","Terminated")
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Details_TerminationDate")
'Clicking on the today button in the From date field
Set objDesc1 = Description.Create
objDesc1("micclass").Value = "WebElement"
objDesc1("html tag").Value = "FONT"
Set strObject = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).frame("PopCalFrame").ChildObjects(objDesc1)
For i= 0 to strObject.Count-1
temp = strObject(i).GetROProperty("innertext")
If instr(1,temp,"Today:") Then
strObject(i).click
End If
Next
'verifying whether the todate value is today's date
FromDatevalue=get_WebEdit_Value("MasterFile",DataTable.Value("Pa
geName","Company"),"Details_TerminationDate")
newFromDatevalue=cdate(FromDatevalue)
If newFromDatevalue=date And Environment.Value("TestCase_Log")=
"True" Then
Reporter.ReportEvent micDone,"Step 5: The Today
button is to be clicked in from date and checked if the current date appears","T
he date gets filled properly"
Else
Reporter.ReportEvent micFail,"Step 5: The Today
button is to be clicked in from date and checked if the current date appears","T
he current date does not appear"
Environment.Value("TestCase_Log")= "True"
End If
'Step #6
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Roles")
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Roles_Status","Inactive")
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Detail")
strStatusValue = get_WebList_Value("MasterFile",DataTable.Value(
"PageName","Company"),"Details_Status")
If strStatusValue = "Terminated" And Environment.Value("TestCase
_Log")= "True" Then
Reporter.ReportEvent micDone,"Step 6: The status
should be changed to Terminated.","The status changed to Terminated"
Else
Reporter.ReportEvent micFail,"Step 6: The status
should be changed to Terminated.","The status changed to Terminated"
Environment.Value("TestCase_Log")= "True"
End If
'Step #7
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"PROFILE")
Call check_Menu("MasterFile",DataTable.Value("PageName","Company
"),DataTable.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Click on P
rofile in MasterFile page ","Successfully checked the Profile Link menu - " & Da
taTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 7: Click on P
rofile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Compa
ny") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist(
2) And Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: The Compan
y Search screen should be displayed.","The Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step 8: The Compan
y Search screen should be displayed.","The Company Search screen is displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call ProfileCompanySearchCriteria("MasterFile","Profile - Company Search
")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","CompanyName")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","Status")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 9: The status
of the Company Searched, should be terminated.","The status of the Company Sear
ched, is terminated."
Else
Reporter.ReportEvent micFail,"Step 9: The status
of the Company Searched, should be terminated.","The status of the Company Sear
ched, is not terminated."
Environment.Value("TestCase_Log")="True"
End If
'Deleting the Profile
Call SearchEnterpriseName("MasterFile","Profile - Company Search","Compa
ny Search Results",DataTable.Value("EnterpriseName","Company"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Delete Profile")
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call fnc_wait(Browser("MasterFile").Page("Profile - Company Sear
ch").WebEdit("EnterpriseName"))
Call select_Menu("MasterFile","Profile - Company Search","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyDepositary_TC5()
Environment.Value("TestCase_Log")="True"
'Step #2
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date has been Display
ed."
Else
Reporter.ReportEvent micFail,"Step 2: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date is not Displayed
"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile","PROFILE")
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on P
rofile in MasterFile page ","Successfully checked the Profile Link menu - " & Da
taTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 3: Click on P
rofile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Compa
ny") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist
(2) Then
blnFlag = "True"
Else
blnFlag = "False"
End If
If Environment.Value("TestCase_Log")="True" And blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 4: Under Prof
ile menu select Company-Depositary, Profile - Company Search screen should be di
splayed.","The Profile - Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step 4: Under Prof
ile menu select Company-Depositary, Profile - Company Search screen should be di
splayed.","The Profile - Company Search screen is not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Enter valu
e in Enterprise Name Edit box and click Search.","Search result displayed accord
ing to search criteria."
Else
Reporter.ReportEvent micFail,"Step 5: Enter Valu
e in Enterprise Name Edit box and click Search.","Search result not displayed ac
cording to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call SearchEnterpriseName("MasterFile","Profile - Company Search","Compa
ny Search Results",DataTable.Value("EnterpriseName","Company"))
Call pageCheck_WebElement("MasterFile",DataTable.Value("PageName
","Company"),DataTable.Value("strChkTabName","Company"),"")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Clicking t
he Company name(blue link).","Depositary Profile screen is displayed with Tabs -
" &DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 6: Clicking t
he Company name(blue link).","Depositary Profile screen is displayed with Tabs -
" &DataTable.Value("strChkTabName","Company")
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call pageCheck_ImageOR("MasterFile",DataTable.Value("PageName","
Company"),"Related Profiles;Contact Roles;Preview Profile;Delete Profile;Save Pr
ofile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: All the co
rresponding buttons should be displayed.","The Expected Images are displayed in
Depositary Profile screen."
Else
Reporter.ReportEvent micFail,"Step 7: All the co
rresponding buttons should be displayed.","The Expected Images are not displayed
in Depositary Profile screen."
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).Image("Related Profiles").Submit
Wait(10)
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Related Profiles")
blnExistFlag = Browser("MasterFile").Page(DataTable.Value("PageN
ame","Company")).Frame("lookupFrame").Exist(20)
If blnExistFlag = "False" Then
Call click_Image("MasterFile",DataTable.Value("P
ageName","Company"),"Related Profiles")
End If
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("PageName","Com
pany")).Frame("lookupFrame"))
' If Browser("MasterFile").Page(DataTable.Value("PageName","Company")).Fr
ame("lookupFrame").WebElement("Related Profiles").Exist(2) Then
' Reporter.ReportEvent micPass,"Step : 8 Verifying
if the Related Profile Window is Opened or NOT","The Related Profile Window is
Opened with the Header Related Profiles"
' Else
' Reporter.ReportEvent micFail,"Step : 8 Verifyin
g if the Related Profile Window is Opened or NOT","The Related Profile Window is
not Opened"
' End If
If Browser("MasterFile").Page(DataTable.Value("PageName","Company")).Fra
me("lookupFrame").WebElement("Related Profiles").Exist(2) Then
Reporter.ReportEvent micPass," Verifying if the
Related Profile Window is Opened or NOT","The Related Profile Window is Opened w
ith the Header Related Profiles"
strLink = Browser("MasterFile").Page(DataTable.V
alue("PageName","Company")).Frame("lookupFrame").WebTable("DR Profile").GetCellD
ata(2,3)
Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).Frame("lookupFrame").WebElement("html tag:=TD","innertext:="&s
trLink).Click
Reporter.ReportEvent micPass,"Capturing the Link
- "&strLink&" present in the Related Profile and Clicking on the Link","Succesf
ully Clicked on the Link"
If Browser("MasterFile").Page("DR Profile").Exist(2) And Enviro
nment.Value("TestCase_Log") = "True" Then
Call fnc_wait(Browser("MasterFil
e").Page("DR Profile").WebEdit("Details_Name"))
Browser("MasterFile").Back
Reporter.ReportEvent micPass,"St
ep : 8 Verifying if the DR Profile is Opened or NOT","The DR Profile Page is Ope
ned."
Else
Reporter.ReportEvent micFail,"St
ep : 8 Verifying if the DR Profile is Opened or NOT","The DR Profile Page is not
Opened."
Environment.Value("TestCase_Log"
)="True"
End If
Else
Reporter.ReportEvent micFail," Verifying if the
Related Profile Window is Opened or NOT","The Related Profile Window is not Open
ed"
End If
Wait(2)
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).WebEdit("Details_Name").Click
Wait(5)
'Step #9
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).Image("Contact Roles").Submit
Wait(10)
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Contact Roles")
blnExistFlag = Browser("MasterFile").Page(DataTable.Value("PageN
ame","Company")).Frame("lookupFrame").Exist(10)
If blnExistFlag = "False" Then
Call click_Image("MasterFile",DataTable.Value("P
ageName","Company"),"Contact Roles")
Wait(5)
End If
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("PageName","Com
pany")).Frame("lookupFrame"))
If Browser("MasterFile").Page(DataTable.Value("PageName","Company")).Fra
me("lookupFrame").WebElement("Company Contact Roles").Exist(2) And Environment.V
alue("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Verifying
if the Contact Roles Window is Opened or NOT","The Contact Roles Window is Opene
d with the Header Company Contact Roles."
Else
Reporter.ReportEvent micFail,"Step 9: Verifying
if the Contact Roles Window is Opened or NOT","The Contact Roles Window isnot Op
ened."
Environment.Value("TestCase_Log")="True"
End If
Wait(2)
Browser("MasterFile").Page(DataTable.Value("PageName","Company")
).WebEdit("Details_Name").Click
Wait(2)
'Step #10,11 and 12
strIntialAppValue = GetAllFieldValue("MasterFile",DataTable.Valu
e("PageName","Company"),"WebEdit","INPUT")
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Preview Profile")
blnReturnImage = Browser("MasterFile").Page(DataTable.Value("PageName","
Company")).Frame("Frame").Image("Return").Exist(2)
blnPrintImage = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).Frame("Frame").Image("Print").Exist(2)
If blnReturnImage = "True" AND blnPrintImage = "True" Then
Reporter.ReportEvent micPass,"Step 10: Verfying
if the Print and Return Button are Present or NOT","The Print and Return Button
are Present"
Else
Reporter.ReportEvent micFail,"Step 10: Verfying
if the Print and Return Button are Present or NOT","The Print OR Return Button i
s NOT Present"
Environment.Value("TestCase_Log")="True"
End If
If blnPrintImage = "True" Then
blnPrintImage = Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).Frame("Frame").Image("Print").Click
If Dialog("Print").Exist(2) Then
Reporter.ReportEvent micWarning,
"Step 11: Verifying if the Print Dialog Exists or NOT","The Print Dialog Exist a
nd Please Check for the Print document Manually"
Dialog("Print").Close
Else
Reporter.ReportEvent micFail,"St
ep 11: Verifying if the Print Dialog Exists or NOT","The Print Dialog does NOT E
xist"
Environment.Value("TestCase_Log"
)="True"
End If
End If
If blnReturnImage = "True" Then
Browser("MasterFile").Page(DataTable.Value("Page
Name","Company")).Frame("Frame").Image("Return").Click
blnPageFlag = Browser("MasterFile").Page(DataTab
le.Value("PageName","Company")).Exist(2)
strFinalAppValue = GetAllFieldValue("MasterFile"
,DataTable.Value("PageName","Company"),"WebEdit","INPUT")
If blnPageFlag = "True" AND (Trim(strFinalAppVal
ue) = Trim(strIntialAppValue)) Then
Reporter.ReportEvent micPass,"St
ep 12: Verifying if the Page 'Depositary Profile' is Displayed with the Details
of the Depositary","The Page 'Depositary Profile' is dispalyed with the deatils
of the Depositary"
Else
Reporter.ReportEvent micFail,"St
ep 12: Verifying if the Page 'Depositary Profile' is Displayed with the Details
of the Depositary","The Page 'Depositary Profile' is Not dispalyed with the deat
ils of the Depositary"
Environment.Value("TestCase_Log"
)="True"
End If
End If
'Step #13
Call click_Image("MasterFile",DataTable.Value("PageName","Company"),"Del
ete Profile")
If Browser("MasterFile").Dialog("DeleteRowConformation").Exist(2
) Then
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"St
ep 13: Should delete a particular profile on clicking","Deletes a particular pro
file on clicking"
Else
Reporter.ReportEvent micFail,"St
ep 13: Should delete a particular profile on clicking","Deletes a particular pro
file on clicking"
Environment.Value("TestCase_Log"
)="True"
End If
Browser("MasterFile").Dialog("DeleteRowConformat
ion").WinButton("Cancel").Click
End If
'Step #14
Call set_WebEdit_Value ("MasterFile",DataTable.Value("PageName",
"Company"),"Details_WebAddress",DataTable.Value("Details_WebAddress","Company"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
strValue = get_WebEdit_Value ("MasterFile",DataTable.Value("Page
Name","Company"),"Details_WebAddress")
If strValue = DataTable.Value("Details_WebAddress","Company") AN
D Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14: Should sa
ve a profile after entering or modifying details","Saves a profile after modifyi
ng details"
Else
Reporter.ReportEvent micFail,"Step 14: Should sa
ve a profile after entering or modifying details","Profile not saved after modif
ying details"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyDepositary_TC6()
Environment.Value("TestCase_Log")="True"
'Step #1 to 3
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 to 3: Enter
value in Enterprise Name Edit box and click Search.","Search result is displaye
d."
Else
Reporter.ReportEvent micFail,"Step 1 to 3: Enter
Value in Enterprise Name Edit box and click Search.","Search result not display
ed."
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call ClickPencilIcon("MasterFile","Profile - Company Search",Dat
aTable.Value("strPencilIconSelectValue","Company"))
Call pageCheck_WebElement("MasterFile","Depositary Profile",Data
Table.Value("strChkTabName","Company"),"")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Clicking o
n Pencil Icon and select - " & DataTable.Value("strPencilIconSelectValue","Compa
ny"),"Tabs displayed are - " & DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 4: Clicking o
n Pencil Icon and select - " & DataTable.Value("strPencilIconSelectValue","Compa
ny"),"Tabs are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call click_Image("MasterFile","Depositary Profile","Save Profile
")
Call ValidationErrorDetails("MasterFile","Depositary Profile","V
alidation Error","Country of Incorporation;Roles","Detail")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: The list
of errors for missing fields appear.","The expected pop up message appeared when
tried to save without entering all the values"
Else
Reporter.ReportEvent micFail,"Step 5: The list
of errors for missing fields appear.","The expected pop up message not appeared
when tried to save without entering all the values"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call ErrorValidationCompanyAdviser("MasterFile","Depositary Pro
file")
strValue = get_WebList_Value("MasterFile","Depositary Profile","Details
_Status")
If Environment.Value("TestCase_Log")="True" and strValue = "Ef
fective" Then
Reporter.ReportEvent micPass,"Step 6: The statu
s of the New Depositary should be changed to Effective","The status of the New D
epositary changed to Effective"
Else
Reporter.ReportEvent micFail,"Step 6: The statu
s of the New Depositary should be changed to Effective","The status of the New D
epositary is not changed to Effective"
Environment.Value("TestCase_Log")="True"
End If
'Deleting the Profile
Call click_Image("MasterFile","Depositary Profile","Delete Profi
le")
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call fnc_wait(Browser("MasterFile").Page("Profile - Company Sear
ch").WebEdit("EnterpriseName"))
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyDepositary_TC7()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
Call select_Combo_Value("MasterFile","Profile - Company Search",
"CountryOfIncorporation",DataTable.Value("CountryOfIncorporation","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
strRecordDataInProfile = GetDataInCompanyProfile("MasterFile","P
rofile - Company Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Enter Det
ails in Profile - Company Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 1: Enter Det
ails in Profile - Company Search and click on Search.","The records not populate
"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call select_Menu("MasterFile","Profile - Company Search",DataTab
le.Value("MenuPath1","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Reports_Company","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"Region",DataTable.Value("Reports_Region","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("Reports_SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Depositary
Search Results").WebElement("As of:"))
strRecordDataInReports = GetDataInCompanyReports("MasterFile","R
eports - Depositary Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Enter Det
ails in Reports - Depositary Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 2: Enter Det
ails in Reports - Depositary Search and click on Search.","The records not popul
ate"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
blnFlage = "True"
For intCount = 0 to 5
If strRecordDataInReports(intCount) <> "" Then
intLen = Len(strRecordDataInReports(intCount))
intPosValue = InStr(intLen,strRe
cordDataInReports(intCount),";")
If intPosValue <> 0 Then
strRecordDataInR
eports(intCount) = Mid(strRecordDataInReports(intCount),1,intLen-1)
End If
strTemp = Split(strRecordDataInR
eports(intCount),";",-1,1)
For intStringCounter = 0 to UBou
nd(strTemp)
If Instr(strReco
rdDataInProfile(intCount),strTemp(intStringCounter)) <> 0 Then
blnFlage = "True"
Else
blnFlage = "False"
Exit For
End If
Next
If blnFlage = "False" Then
Exit For
End If
End If
Next
If Environment.Value("TestCase_Log")= "True" and blnFlage = "T
rue" Then
Reporter.ReportEvent micPass,"Step 3: Comparing
the Records in Profile and Reports.","The records displayed in both screens mat
ch"
Else
Reporter.ReportEvent micFail,"Step 3: Comparing
the Records in Profile and Reports.","The records displayed in both screens doe
s not match"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile","Reports - Depositary Search Results",Data
Table.Value("MenuPath","Company"))
Call select_Combo_Value("MasterFile","Profile - Company Search","Status"
,DataTable.Value("Status","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
strRecordDataInProfile = GetDataInCompanyProfile("MasterFile","P
rofile - Company Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Enter Det
ails in Profile - Company Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 4: Enter Det
ails in Profile - Company Search and click on Search.","The records not populate
"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("MasterFile","Profile - Company Search",DataTab
le.Value("MenuPath1","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Reports_Company","Company"))
Call select_Combo_Value("MasterFile","Reports - Company Search",
"CompanyStatus",DataTable.Value("Reports_Status","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Depositary
Search Results").WebElement("As of:"))
strRecordDataInReports = GetDataInCompanyReports("MasterFile","Reports -
Depositary Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Enter Det
ails in Reports - Depositary Search and click on Search.","The records populate"
Else
Reporter.ReportEvent micFail,"Step 5: Enter Det
ails in Reports - Depositary Search and click on Search.","The records not popul
ate"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
blnFlage = "True"
For intCount = 0 to 5
If strRecordDataInReports(intCount) <> "" Then
intLen = Len(strRecordDataInReports(intCount))
intPosValue = InStr(intLen,strRe
cordDataInReports(intCount),";")
If intPosValue <> 0 Then
strRecordDataInR
eports(intCount) = Mid(strRecordDataInReports(intCount),1,intLen-1)
End If
strTemp = Split(strRecordDataInR
eports(intCount),";",-1,1)
For intStringCounter = 0 to UBou
nd(strTemp)
If Instr(strReco
rdDataInProfile(intCount),strTemp(intStringCounter)) <> 0 Then
blnFlage = "True"
Else
blnFlage = "False"
Exit For
End If
Next
If blnFlage = "False" Then
Exit For
End If
End If
Next
If Environment.Value("TestCase_Log")= "True" and blnFlage = "T
rue" Then
Reporter.ReportEvent micPass,"Step 6: Comparing
the Records in Profile and Reports.","The records displayed in both screens mat
ch"
Else
Reporter.ReportEvent micFail,"Step 6: Comparing
the Records in Profile and Reports.","The records displayed in both screens doe
s not match"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Reports - Depositary Search Resul
ts","HOME;DR Home")
End Function
'===============================================================================
==========================
' Name of the Script : MasterFileCompanyProfile-Issu
er
' Author : Bhagya
Rekha
' Description : Master File Company
' Date and / or Version : 24-10-2008,version 1.0
'===============================================================================
============================
Public Function MFProfileCompanyIssuer_TC1()
Environment.Value("TestCase_Log")="True"
'Step #2
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call Login("MasterFile","Login Page","User","MFLogin")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigate t
o DR Home page after successful login.","Successfully verified the links - " & D
ataTable.Value("HomePageLinks","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Navigate t
o DR Home page after successful login.","The links - '" & DataTable.Value("HomeP
ageLinks","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date has been Display
ed. "
Else
Reporter.ReportEvent micFail,"Step 3: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date is not Displayed
"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"PROFILE")
Call check_Menu("MasterFile",DataTable.Value("PageName","Company
"),DataTable.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on P
rofile in MasterFile page ","Successfully checked the Profile Link menu - " & Da
taTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 4: Click on P
rofile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Compa
ny") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
Call pageCheck_CompanyProfileSearch("MasterFile","Profile - Comp
any Search","Company Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Prof
ile menu select Company-Issuer.","Expected Default values and fields are display
ed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Prof
ile menu select Company-Issuer.","Expected Default values and fields are not dis
played in search criteria"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyIssuer_TC2()
Environment.Value("TestCase_Log")="True"
'Step #a_2
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step a_2: Click on
MasterFile in DR Home page.","Welcome Message and the Built Date has been Displ
ayed."
Else
Reporter.ReportEvent micFail,"Step a_2: Click on
MasterFile in DR Home page.","Welcome Message and the Built Date is not Display
ed"
Environment.Value("TestCase_Log")="True"
End If
'Step #a_3
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),"PROFILE")
Call check_Menu("MasterFile",DataTable.Value("PageName","Company
"),DataTable.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step a_3: Click on
Profile in MasterFile page ","Successfully checked the Profile Link menu - " &
DataTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step a_3: Click on
Profile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Com
pany") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #a_4
Call select_Menu("MasterFile",DataTable.Value("PageName","Compan
y"),DataTable.Value("MenuPath","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist
(2) Then
blnFlag = "True"
Else
blnFlag = "False"
End If
If Environment.Value("TestCase_Log")="True" And blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step a_4: Under Pr
ofile menu select Company-Issuer, Profile - Company Search screen should be disp
layed.","The Profile - Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step a_4: Under Pr
ofile menu select Company-Issuer, Profile - Company Search screen should be disp
layed.","The Profile - Company Search screen is not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #a_5
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step a_5: Enter va
lue in Enterprise Name Edit box and click Search.","Search result displayed acco
rding to search criteria."
Else
Reporter.ReportEvent micFail,"Step a_5: Enter Va
lue in Enterprise Name Edit box and click Search.","Search result not displayed
according to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #b_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step b_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step b_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #b_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Issuer")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"CompanyName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step b_2: Enter va
lue in Company Name Edit box and click Search.","Search result displayed accordi
ng to search criteria."
Else
Reporter.ReportEvent micFail,"Step b_2: Enter Va
lue in Company Name Edit box and click Search.","Search result not displayed acc
ording to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #c_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step c_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step c_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #c_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Issuer")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"Type")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step c_2: Select v
alue in Type Web List and click Search.","Search result displayed according to s
earch criteria."
Else
Reporter.ReportEvent micFail,"Step c_2: Select v
alue in Type Web List and click Search.","Search result not displayed according
to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #d_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step d_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step d_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #d_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Issuer")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"CountryOfIncorporation")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step d_2: Select v
alue in Country of Incorporation Web List and click Search.","Search result disp
layed according to search criteria."
Else
Reporter.ReportEvent micFail,"Step d_2: Select v
alue in Country of Incorporation Web List and click Search.","Search result not
displayed according to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #e_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step e_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step e_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #e_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Issuer")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"CID")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step e_2: Enter Va
lue in CID Edit box and click Search.","Search result displayed according to sea
rch criteria."
Else
Reporter.ReportEvent micFail,"Step e_2: Enter Va
lue in CID Edit box and click Search.","Search result not displayed according to
search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #f_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step f_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step f_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #f_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Issuer")
Call ProfileCompanySearchCriteria("MasterFile",DataTable.Value("
PageName","Company"))
Call searchCompanyInProfileCompany("MasterFile",DataTable.Value(
"PageName","Company"),"Status")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step f_2: Select v
alue in Status Web List and click Search.","Search result displayed according to
search criteria."
Else
Reporter.ReportEvent micFail,"Step f_2: Select v
alue in Status Web List and click Search.","Search result not displayed accordin
g to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #g_1
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+
1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Clear")
strData = GetMultipleValue_WebEdit("MasterFile",DataTable.Value(
"PageName","Company"),"CID;CompanyName;EnterpriseName;Mnemonic")
Call pageCheck_DefaultValue("MasterFile",DataTable.Value("PageName","Com
pany"),"","WebList","SELECT",Datatable.Value("strChkDefaultValue","Company"))
If Environment.Value("TestCase_Log")="True" AND strData = "CID;:Company
Name;:EnterpriseName;:Mnemonic;:" Then
Reporter.ReportEvent micPass,"Step g_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Else
Reporter.ReportEvent micFail,"Step g_1: All the
values in the search fields should be cleared.","All the values in the search fi
elds cleared."
Environment.Value("TestCase_Log")="True"
End If
'Step #g_2
Call select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Type","Issuer")
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","Mnemonic")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step g_2: Enter Va
lue in Mnemonic Edit box and click Search.","Search result displayed according t
o search criteria."
Else
Reporter.ReportEvent micFail,"Step g_2: Enter Va
lue in Mnemonic Edit box and click Search.","Search result not displayed accordi
ng to search criteria."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyIssuer_TC3()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Enter valu
e in Enterprise Name Edit box and click Search.","Search result is displayed."
Else
Reporter.ReportEvent micFail,"Step 1: Enter Valu
e in Enterprise Name Edit box and click Search.","Search result not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call ClickPencilIcon("MasterFile","Profile - Company Search",Dat
aTable.Value("strPencilIconSelectValue","Company"))
Call pageCheck_WebTableOR("MasterFile","Issuer Profile",DataTable.Value(
"strChkTabName","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking t
he Pencil icon adjacent to Selected Enterprise Name.","Issuer Profile screen is
displayed with Tabs - " &DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking t
he Pencil icon adjacent to Selected Enterprise Name.","Issuer Profile screen is
displayed with Tabs - " &DataTable.Value("strChkTabName","Company")
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Details")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Checking t
he fields in Details Tab."," Expected Fields are present in Details Tab"
Else
Reporter.ReportEvent micFail,"Step 3: Checking t
he fields in Details Tab."," Expected Fields are not present in Details Tab"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
strDefaultValue = GetMultipleValue_WebEdit("MasterFile",DataTabl
e.Value("PageName","Company"),"Details_Name;Details_MarketCapitalization;Details
_Status")
If Environment.Value("TestCase_Log")="True" And strDefaultValue = "Detai
ls_Name;"&DataTable.Value("EnterpriseName","Company")&":Details_MarketCapitaliza
tion;0:Details_Status;Committed:" Then
Reporter.ReportEvent micPass,"Step 4: Checking t
he Default Values in Details Tab.","Details tab has been displayed with expected
Default Values- " &strDefaultValue
Else
Reporter.ReportEvent micFail,"Step 4: Checking D
efault Values in Details Tab.","Details tab is not displayed with expected Defau
lt Values."
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call chkEditableWebEdit("MasterFile",DataTable.Value("PageName",
"Company"),"Details_EffectiveDate")
Call chkEditableWebEdit("MasterFile",DataTable.Value("PageName",
"Company"),"Details_TerminationDate")
Call chkEditableWebEdit("MasterFile",DataTable.Value("PageName",
"Company"),"Details_EffectiveDepositaries")
Call chkEditableWebEdit("MasterFile",DataTable.Value("PageName",
"Company"),"Details_EffectiveS/U")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Checking t
he Greyed out Fields","The Fields Details_EffectiveDate, Details_TerminationDate
, Details_EffectiveDepositaries, Details_EffectiveS/U are Grayed out"
Else
Reporter.ReportEvent micFail,"Step 5: Checking t
he Greyed out Fields","The Fields Details_EffectiveDate, Details_TerminationDate
, Details_EffectiveDepositaries, Details_EffectiveS/U are not Grayed out"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call FillDetailsTab("MasterFile",DataTable.Value("PageName","Com
pany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Entering t
he Details in Details Tab.","Details has been Entered"
Else
Reporter.ReportEvent micFail,"Step 5: Entering t
he Details in Details Tab.","Details has not been Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," BNY Contacts")
Call chkMFProfileHeader("MasterFile",DataTable.Value("PageName",
"Company"),"BNY Contacts","CompanyBNYContacts")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Checking t
he headers in BNY Contacts tab.","Expected Headers- " & DataTable.Value("Company
BNYContacts","ReportHeader") &" has been displayed"
Else
Reporter.ReportEvent micFail,"Step 7: Checking t
he headers in BNY Contacts tab.","Expected Headers are not displayed in BNYConta
cts Tab."
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"BNY Contacts_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("PageName","C
ompany"),"BNY Contact")
Call FillBNYContactsTab("MasterFile",DataTable.Value("PageName",
"Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Checking a
nd Entering the Details in BNYContacts Tab.","Details in BNYContacts Tab has bee
n Entered"
Else
Reporter.ReportEvent micFail,"Step 8: Checking a
nd Entering the Details in BNYContacts Tab.","Details in BNYContacts Tab has not
been Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Und. Sec. Markets")
Call chkMFProfileHeader("MasterFile",DataTable.Value("PageName",
"Company"),"Underlying Security Market","CompanyUnderlyingSecurityMarket")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Checking t
he headers in Underlying Security Market tab.","Expected Headers- " & DataTable.
Value("CompanyUnderlyingSecurityMarket","ReportHeader") &" has been displayed"
Else
Reporter.ReportEvent micFail,"Step 9: Checking t
he headers in Underlying Security Market tab.","Expected Headers are not display
ed in Underlying Security Market Tab."
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"UnderlyingSecurityMarket_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("PageName","C
ompany"),"UnderlyingSecurityMarket")
Call FillUnderlyingSecurityMarketTab("MasterFile",DataTable.Valu
e("PageName","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Checking
and Entering the Details in UnderlyingSecurityMarket Tab.","Details in Underlyin
gSecurityMarket Tab has been Entered"
Else
Reporter.ReportEvent micFail,"Step 10: Checking
and Entering the Details in UnderlyingSecurityMarket Tab.","Details in Underlyin
gSecurityMarket Tab has not been Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Custodians")
Call chkMFProfileHeader("MasterFile",DataTable.Value("PageName",
"Company"),"Custodian","CompanyCustodian")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Checking
the headers in Custodian tab.","Expected Headers- " & DataTable.Value("CompanyCu
stodian","ReportHeader") &" has been displayed"
Else
Reporter.ReportEvent micFail,"Step 11: Checking
the headers in Custodian tab.","Expected Headers are not displayed in Custodian
Tab."
Environment.Value("TestCase_Log")="True"
End If
'Step #12
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Custodians_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Custodians")
Call FillCustodianTab("MasterFile",DataTable.Value("PageName","C
ompany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12: Checking
and Entering the Details in Custodian Tab.","Details in Custodian Tab has been E
ntered"
Else
Reporter.ReportEvent micFail,"Step 12: Checking
and Entering the Details in Custodian Tab.","Details in Custodian Tab has not be
en Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #13
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Advisers")
Call chkMFProfileHeader("MasterFile",DataTable.Value("PageName",
"Company"),"Advisers","CompanyAdviser")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13: Checking
the headers in Advisers Tab.","Expected Headers- " & DataTable.Value("CompanyAdv
iser","ReportHeader") &" has been displayed"
Else
Reporter.ReportEvent micFail,"Step 13: Checking
the headers in Advisers Tab.","Expected Headers are not displayed in Advisers Ta
b."
Environment.Value("TestCase_Log")="True"
End If
'Step #14
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Advisers_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Advisers")
Call FillAdviserTab("MasterFile",DataTable.Value("PageName","Com
pany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14: Checking
and Entering the Details in Adviser Tab.","Details in Adviser Tab has been saved
"
Else
Reporter.ReportEvent micFail,"Step 14: Checking
and Entering the Details in Adviser Tab.","Details in Adviser Tab has not been s
aved"
Environment.Value("TestCase_Log")="True"
End If
'Step #15
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Products")
Call chkMFProfileHeader("MasterFile",DataTable.Value("PageName",
"Company"),"Products","CompanyProducts")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 15: Checking
the headers in Products Tab.","Expected Headers- " & DataTable.Value("CompanyAdv
iser","ReportHeader") &" has been displayed"
Else
Reporter.ReportEvent micFail,"Step 15: Checking
the headers in Products Tab.","Expected Headers are not displayed in Products Ta
b."
Environment.Value("TestCase_Log")="True"
End If
'Step #16
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Products_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Products")
Call FillProductsTab("MasterFile",DataTable.Value("PageName","Co
mpany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 16: Checking
and Entering the Details in Products Tab.","Details in Products Tab has been sav
ed"
Else
Reporter.ReportEvent micFail,"Step 16: Checking
and Entering the Details in Products Tab.","Details in Products Tab has not bee
n saved"
Environment.Value("TestCase_Log")="True"
End If
'Step #17
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," DR Services")
Call chkMFProfileHeader("MasterFile",DataTable.Value("PageName",
"Company"),"DR Services","CompanyDRServices")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 17: Checking
the headers in DR Services Tab.","Expected Headers- " & DataTable.Value("Company
DRServices","ReportHeader") &" has been displayed"
Else
Reporter.ReportEvent micFail,"Step 17: Checking
the headers in DR Services Tab.","Expected Headers are not displayed in DR Servi
ces Tab."
Environment.Value("TestCase_Log")="True"
End If
'Step #18
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"DR Services_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"DR Services")
Call FillDRServiceTab("MasterFile",DataTable.Value("PageName","C
ompany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 18: Checking
and Entering the Details in DRService Tab.","Details in DRService Tab has been s
aved"
Else
Reporter.ReportEvent micFail,"Step 18: Checking
and Entering the Details in DRService Tab.","Details in DRService Tab has not b
een saved"
Environment.Value("TestCase_Log")="True"
End If
'Step #19
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Comments")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Comments")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 19: Checking
the Fields in Comments Tab.","Expected Fields in Comments Tab are displayed"
Else
Reporter.ReportEvent micFail,"Step 19: Checking
the Fields in Comments Tab.","Expected Fields in Comments Tab are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #20
Call FillCommentsTab("MasterFile",DataTable.Value("PageName","Co
mpany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 20: Entering
the Details in Comments Tab.","Details in Comments Tab has been Entered"
Else
Reporter.ReportEvent micFail,"Step 20: Entering
the Details in Comments Tab.","Details in Comments Tab has not been Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #21
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Detail")
Call chkFlagImage("MasterFile",DataTable.Value("PageName","Compa
ny"),"Detail","Web Address;Country of Management;Industry","Exist")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 21: Entering
the Details and checking for Flag Image.","Yellow flag is displayed"
Else
Reporter.ReportEvent micFail,"Step 21: Entering
the Details and checking for Flag Image.","Yellow flag is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #22
Call logoutfromApp("MasterFile",DataTable.Value("PageName","Comp
any"))
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call Login("MasterFile","Login Page","Approver","MFLogin")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 22: Navigate
to DR Home page after successful login.","Successfully login the application"
Else
Reporter.ReportEvent micFail,"Step 22: Navigate
to DR Home page after successful login.","Unable to login the application"
Environment.Value("TestCase_Log")= "True"
End If
'Step #23 to 28
Call ApprovalFunction("MasterFile","Issuer","Name;Last User Upda
ted;Last Updated",DataTable.Value("EnterpriseName","Company"),"Testing","Approve
d",DataTable.Value("ApprovalStatus","Company"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 23 to 28: Ver
fiying if all the Modified Fields are Approved or NOT","All the Modified Fields
are Approved"
Else
Reporter.ReportEvent micFail,"Step 23 to 28: Ver
fiying if the Approval functionality","Any of the steps from 3 to 18 might have
Failed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #29
Call logoutfromApp("MasterFile","Approval Queue Item Search")
If Browser("MasterFile").Exist(2) And Environment.Value("TestCas
e_Log")="False" Then
Reporter.ReportEvent micFail,"Step :29 Verifying
if the Application is LoggedOuted or NOT","The Application is still Open"
Environment.Value("TestCase_Log")= "True"
Else
Reporter.ReportEvent micPass,"Step :29 Verifying
if the Application is LoggedOuted or NOT","The Application is LoggedOut Success
fully"
End If
'Step #30
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call Login("MasterFile","Login Page","User","MFLogin")
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",DataTable.Value("EnterpriseName","Company"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 30: Search an
d open the particular Issuer which was Approved", "Approved issuer profile is op
ened"
Else
Reporter.ReportEvent micFail,"Step 30: Search an
d open the particular Issuer which was Approved", "Approved issuer profile is no
t opened"
Environment.Value("TestCase_Log")= "True"
End If
'Step #31
Call chkFlagImage("MasterFile",DataTable.Value("PageName","Compa
ny"),"Detail","Web Address;Country of Management;Industry","Not Exist")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 31: Checking
for Flag Image.","Yellow flag is not displayed"
Else
Reporter.ReportEvent micFail,"Step 31: Checking
for Flag Image.","Yellow flag is displayed"
Environment.Value("TestCase_Log")="True"
End If
'Deleting the Profile
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Delete Profile")
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call fnc_wait(Browser("MasterFile").Page("Profile - Company Sear
ch").WebEdit("EnterpriseName"))
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
Public Function MFProfileCompanyIssuer_TC4()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date has been Display
ed."
Else
Reporter.ReportEvent micFail,"Step 1: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date is not Displayed
"
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist
(2) Then
blnFlag = "True"
Else
blnFlag = "False"
End If
If Environment.Value("TestCase_Log")="True" And blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 2: Under Prof
ile menu select Company-Issuer, Profile - Company Search screen should be displa
yed.","The Profile - Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step 2: Under Prof
ile menu select Company-Issuer, Profile - Company Search screen should be displa
yed.","The Profile - Company Search screen is not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Enter valu
e in Enterprise Name Edit box and click Search.","Search result displayed accord
ing to search criteria."
Else
Reporter.ReportEvent micFail,"Step 3: Enter Valu
e in Enterprise Name Edit box and click Search.","Search result not displayed ac
cording to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",DataTable.Value("EnterpriseName","Company"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 4: Search and
open the particular Issuer which was Approved", "Approved issuer profile is ope
ned"
Else
Reporter.ReportEvent micFail,"Step 4: Search and
open the particular Issuer which was Approved", "Approved issuer profile is not
opened"
Environment.Value("TestCase_Log")= "True"
End If
' 'Step #1 to 4
' Call select_Menu("MasterFile","Issuer Profile","HOME;DR Home")
' Call MFProfileCompanyIssuer_TC3()
' If Environment.Value("TestCase_Log")= "True" Then
' Reporter.ReportEvent micPass,"Step 1 to 4: Execu
ting testcase 3 and opening the Approved Issuer Profile","Testcase 3 has been Ex
ecuted"
' Else
' Reporter.ReportEvent micFail,"Step 1 to 4: Execu
ting testcase 3 and opening the Approved Issuer Profile.","Testcase 3 not Execut
ed"
' Environment.Value("TestCase_Log")= "True"
' End If
'Step #5
Call fnc_wait(Browser("MasterFile").Page("Issuer Profile").WebEd
it("Details_EffectiveS/U"))
Call click_WebElement("MasterFile","Issuer Profile","DR Search")
If Browser("MasterFile").Page("Profile - DR Search").Exist(2) An
d Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Profile -
DR Search screen must be opened","Profile - DR Search screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 5: Profile -
DR Search screen must be opened","Profile - DR Search screen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Browser("MasterFile").Page("Profile - DR Search").WebTable("DRSe
archResults").WebElement("html tag:=TD","innertext:="&DataTable.Value("Details_N
ame","Company")).Click
If Browser("MasterFile").Page("DR Profile").Exist(2) And Environment.Val
ue("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: DR Profile
screen must be opened","DR Profile screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: DR Profile
screen must be opened","DR Profile screen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Combo_Value("MasterFile","DR Profile","Details_Statu
s","Terminated")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Selecting
Details_Status has Terminated.","The value Terminated has accepted."
Else
Reporter.ReportEvent micFail,"Step 7: Selecting
Details_Status has Terminated.","The value Terminated not accepted"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Wait(5)
Call click_Image("MasterFile","DR Profile","Details_TerminationD
ate")
strDataTableValue = DataTable.Value("Details_TerminationDate","C
ompany")
strValue = Split(strDataTableValue,";",-1,1)
strDateValue = strValue(0)
strMonthValue = strValue(1)
strYearValue = strValue(2)
Call click_Image("MasterFile","DR Profile","Details_TerminationDate")
Call ClickIcon_SetDate("MasterFile","DR Profile",strMonthValue,s
trYearValue,strDateValue)
strFinalValue = Browser("MasterFile").Page("DR Profile").WebEdit
("Details_TerminationDate").GetROProperty("value")
strDate = SearchCriteriaDateFormat(DataTable("Details_Terminatio
nDate","Company"))
If strDate = strFinalValue Then
Reporter.ReportEvent micDone,"Step 8: Setting th
e date in Details_TerminationDate Field","The date gets filled properly"
Else
Reporter.ReportEvent micFail,"Step 8: Setting th
e date in Details_TerminationDate Field","The current date does not appear"
Environment.Value("TestCase_Log")= "True"
End If
' 'Clicking on the today button in the From date field
' Set objDesc1 = Description.Create
' objDesc1("micclass").Value = "WebElement"
' objDesc1("html tag").Value = "FONT"
' Set strObject = Browser("MasterFile").Page("DR Profile").frame("
PopCalFrame").ChildObjects(objDesc1)
' For i= 0 to strObject.Count-1
' temp = strObject(i).GetROProperty("innertext")
' If instr(1,temp,"Today:") Then
' strObject(i).click
' End If
' Next
' 'verifying whether the todate value is today's date
' FromDatevalue=get_WebEdit_Value("MasterFile","DR Profile","Detai
ls_TerminationDate")
' newFromDatevalue=cdate(FromDatevalue)
'Step #9
Call click_Image("MasterFile","DR Profile","Details_TerminationReason")
Browser("MasterFile").Page("DR Profile").Frame("lookupFrame").WebElement
("html tag:=TD","innertext:="&DataTable("SetQuestionMarkValue1","Company")).Clic
k
Call fnc_wait(Browser("MasterFile").Page("DR Profile").WebEdit("
Details_TerminationReason"))
strFinalValue = Browser("MasterFile").Page("DR Profile").WebEdit("Detail
s_TerminationReason").GetROProperty("value")
If Environment.Value("TestCase_Log")="True" And DataTable("SetQuestionM
arkValue1","Company") = strFinalValue Then
Reporter.ReportEvent micPass,"Step 9: Setting a
value in Termination Reason ","Data entered in Termination Reason."
Else
Reporter.ReportEvent micFail,"Step 9: Setting a
value in Termination Reason ","Data not entered in Termination Reason."
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call click_Image("MasterFile","DR Profile","Save")
strStatusValue = get_WebList_Value("MasterFile","DR Profile","Details_St
atus")
If strStatusValue = "Terminated" And Environment.Value("TestCase
_Log")= "True" Then
Reporter.ReportEvent micDone,"Step 10: The statu
s should be changed to Terminated.","The status changed to Terminated"
Else
Reporter.ReportEvent micFail,"Step 10: The statu
s should be changed to Terminated.","The status changed to Terminated"
Environment.Value("TestCase_Log")= "True"
End If
'Step #11
Call logoutfromApp("MasterFile",DataTable.Value("PageName","Comp
any"))
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call Login("MasterFile","Login Page","Approver","MFLogin")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 11: Navigate
to DR Home page after successful login.","Successfully login the application"
Else
Reporter.ReportEvent micFail,"Step 11: Navigate
to DR Home page after successful login.","Unable to login the application"
Environment.Value("TestCase_Log")= "True"
End If
'Step #12 to 17
Call ApprovalFunction("MasterFile","DR Profile","Name;Type;Depos
itary;S/U;Origin;Structure;Last User Updated;Last Updated",DataTable.Value("Deta
ils_Name","Company"),"Testing","Approved",DataTable.Value("ApprovalStatus","Comp
any"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 12 to 17: Ver
fiying if all the Modified Fields are Approved or NOT","All the Modified Fields
are Approved"
Else
Reporter.ReportEvent micFail,"Step 12 to 17: Ver
fiying if the Approval functionality","Any of the steps from 3 to 18 might have
Failed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #18
Call logoutfromApp("MasterFile","Approval Queue Item Search")
If Browser("MasterFile").Exist(2) And Environment.Value("TestCas
e_Log")="False" Then
Reporter.ReportEvent micFail,"Step :18 Verifying
if the Application is LoggedOuted or NOT","The Application is still Open"
Environment.Value("TestCase_Log")= "True"
Else
Reporter.ReportEvent micPass,"Step :18 Verifying
if the Application is LoggedOuted or NOT","The Application is LoggedOut Success
fully"
End If
'Step #19 to 21
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call Login("MasterFile","Login Page","User","MFLogin")
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",DataTable.Value("EnterpriseName","Company"))
Call fnc_wait(Browser("MasterFile").Page("Issuer Profile").WebEd
it("Details_Name"))
Call click_WebElement("MasterFile","Issuer Profile","DR Search")
Call fnc_wait(Browser("MasterFile").Page("Profile - DR Search").
WebEdit("DRName"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 19 to 21: Sea
rch and open the particular Issuer which was Approved", "Approved issuer profile
is opened"
Else
Reporter.ReportEvent micFail,"Step 19 to 21: Sea
rch and open the particular Issuer which was Approved", "Approved issuer profile
is not opened"
Environment.Value("TestCase_Log")= "True"
End If
'Step #22
Browser("MasterFile").Page("Profile - DR Search").WebTable("DRSe
archResults").WebElement("html tag:=TD","innertext:="&DataTable.Value("Details_N
ame","Company")).Click
strStatusValue = get_WebList_Value("MasterFile","DR Profile","De
tails_Status")
If strStatusValue = "Terminated" And Environment.Value("TestCase
_Log")= "True" Then
Reporter.ReportEvent micDone,"Step 22: The statu
s should be changed to Terminated.","The status changed to Terminated"
Else
Reporter.ReportEvent micFail,"Step 22: The statu
s should be changed to Terminated.","The status changed to Terminated"
Environment.Value("TestCase_Log")= "True"
End If
Call select_Menu("MasterFile","DR Profile","HOME;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyIssuer_TC5()
Environment.Value("TestCase_Log")="True"
'Step #2
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date has been Display
ed."
Else
Reporter.ReportEvent micFail,"Step 2: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date is not Displayed
"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile","PROFILE")
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on P
rofile in MasterFile page ","Successfully checked the Profile Link menu - " & Da
taTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 3: Click on P
rofile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Compa
ny") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist
(2) Then
blnFlag = "True"
Else
blnFlag = "False"
End If
If Environment.Value("TestCase_Log")="True" And blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 4: Under Prof
ile menu select Company-Issuer, Profile - Company Search screen should be displa
yed.","The Profile - Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step 4: Under Prof
ile menu select Company-Issuer, Profile - Company Search screen should be displa
yed.","The Profile - Company Search screen is not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Enter valu
e in Enterprise Name Edit box and click Search.","Search result displayed accord
ing to search criteria."
Else
Reporter.ReportEvent micFail,"Step 5: Enter Valu
e in Enterprise Name Edit box and click Search.","Search result not displayed ac
cording to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call ClickPencilIcon("MasterFile","Profile - Company Search",Dat
aTable.Value("strPencilIconSelectValue","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Clicking t
he Pencil icon adjacent to Selected Enterprise Name.","Issuer Profile screen is
displayed with Tabs - " &DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 6: Clicking t
he Pencil icon adjacent to Selected Enterprise Name.","Issuer Profile screen is
displayed with Tabs - " &DataTable.Value("strChkTabName","Company")
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call FillDetailsTab("MasterFile",DataTable.Value("PageName","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Entering t
he Details in Details Tab.","Details has been Entered"
Else
Reporter.ReportEvent micFail,"Step 7: Entering t
he Details in Details Tab.","Details has not been Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," BNY Contacts")
Call click_WebButton("MasterFile",DataTable.Value("PageName","Company"),
"BNY Contacts_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("PageName","C
ompany"),"BNY Contact")
Call FillBNYContactsTab("MasterFile",DataTable.Value("PageName",
"Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Checking a
nd Entering the Details in BNYContacts Tab.","Details in BNYContacts Tab has bee
n Entered"
Else
Reporter.ReportEvent micFail,"Step 8: Checking a
nd Entering the Details in BNYContacts Tab.","Details in BNYContacts Tab has not
been Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Und. Sec. Markets")
Call click_WebButton("MasterFile",DataTable.Value("PageName","Company"),
"UnderlyingSecurityMarket_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("PageName","C
ompany"),"UnderlyingSecurityMarket")
Call FillUnderlyingSecurityMarketTab("MasterFile",DataTable.Valu
e("PageName","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Checking a
nd Entering the Details in UnderlyingSecurityMarket Tab.","Details in Underlying
SecurityMarket Tab has been Entered"
Else
Reporter.ReportEvent micFail,"Step 9: Checking a
nd Entering the Details in UnderlyingSecurityMarket Tab.","Details in Underlying
SecurityMarket Tab has not been Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Custodians")
Call click_WebButton("MasterFile",DataTable.Value("PageName","Company"),
"Custodians_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Custodians")
Call FillCustodianTab("MasterFile",DataTable.Value("PageName","C
ompany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Checking
and Entering the Details in Custodian Tab.","Details in Custodian Tab has been E
ntered"
Else
Reporter.ReportEvent micFail,"Step 10: Checking
and Entering the Details in Custodian Tab.","Details in Custodian Tab has not be
en Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Advisers")
Call click_WebButton("MasterFile",DataTable.Value("PageName","Company"),
"Advisers_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Advisers")
Call FillAdviserTab("MasterFile",DataTable.Value("PageName","Com
pany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Checking
and Entering the Details in Adviser Tab.","Details in Adviser Tab has been saved
"
Else
Reporter.ReportEvent micFail,"Step 11: Checking
and Entering the Details in Adviser Tab.","Details in Adviser Tab has not been s
aved"
Environment.Value("TestCase_Log")="True"
End If
'Step #12
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Products")
Call click_WebButton("MasterFile",DataTable.Value("PageName","Company"),
"Products_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Products")
Call FillProductsTab("MasterFile",DataTable.Value("PageName","Co
mpany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12: Checking
and Entering the Details in Products Tab.","Details in Products Tab has been sav
ed"
Else
Reporter.ReportEvent micFail,"Step 12: Checking
and Entering the Details in Products Tab.","Details in Products Tab has not bee
n saved"
Environment.Value("TestCase_Log")="True"
End If
'Step #13
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," DR Services")
Call click_WebButton("MasterFile",DataTable.Value("PageName","Company"),
"DR Services_Add")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"DR Services")
Call FillDRServiceTab("MasterFile",DataTable.Value("PageName","C
ompany"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13: Checking
and Entering the Details in DRService Tab.","Details in DRService Tab has been s
aved"
Else
Reporter.ReportEvent micFail,"Step 13: Checking
and Entering the Details in DRService Tab.","Details in DRService Tab has not b
een saved"
Environment.Value("TestCase_Log")="True"
End If
'Step #14
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Comments")
Call pageCheck_CompanyProfile("MasterFile",DataTable.Value("Page
Name","Company"),"Comments")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14: Checking
the Fields in Comments Tab.","Expected Fields in Comments Tab are displayed"
Else
Reporter.ReportEvent micFail,"Step 14: Checking
the Fields in Comments Tab.","Expected Fields in Comments Tab are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #15
Call FillCommentsTab("MasterFile",DataTable.Value("PageName","Co
mpany"))
Call click_Image("MasterFile","Issuer Profile","Save Profile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 15: Entering
the Details in Comments Tab.","Details in Comments Tab has been Entered"
Else
Reporter.ReportEvent micFail,"Step 15: Entering
the Details in Comments Tab.","Details in Comments Tab has not been Entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #16
Call fnc_wait(Browser("MasterFile").Page("Issuer Profile").WebEd
it("Comments_Comment"))
Call click_WebElement("MasterFile","Issuer Profile","Issuer Docu
mentation")
If Browser("MasterFile").Page("Issuer Documentation").Exist(2)
And Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 16: Issuer Documentation scree
n should be displayed.","The Issuer Documentation screen is displayed."
Else
Reporter.ReportEvent micFail,"Step 16: Issuer Do
cumentation screen should be displayed.","The Issuer Documentation screen is not
displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #17
Call click_WebElement("MasterFile","Issuer Documentation","SECFilingandM
ALFOL")
Call click_WebButton("MasterFile","Issuer Documentation","Add")
Call pageCheck_CompanyProfile("MasterFile","Issuer Documentation
","SEC Filing and MAL/FOL")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 17: Checking
the Fields in SEC Filing and MAL/FOL Tab.","Expected Fields in SEC Filing and MA
L/FOL Tab are displayed"
Else
Reporter.ReportEvent micFail,"Step 17: Checking
the Fields in SEC Filing and MAL/FOL Tab.","Expected Fields in SEC Filing and MA
L/FOL Tab are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #18
Call FillSECFilingAndMAL_FOLTab("MasterFile","Issuer Documentati
on")
Call click_Image("MasterFile","Issuer Documentation","Save Profi
le")
Call chkFlagImage("MasterFile","Issuer Documentation","BusinessC
ustomerProfile","20-F Filer;12g3-2(b) Filer","Exist")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 18: After Sav
ing the Details in SECFilingAndMAL_FOL Tab, checking for Flag Image.","Yellow fl
ag is displayed"
Else
Reporter.ReportEvent micFail,"Step 18: After Sav
ing the Details in SECFilingAndMAL_FOL Tab, checking for Flag Image.","Yellow fl
ag is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #19
Call logoutfromApp("MasterFile","Issuer Documentation")
If Browser("MasterFile").Exist(2) And Environment.Value("TestCas
e_Log")="False" Then
Reporter.ReportEvent micFail,"Step :19 Verifying
if the Application is LoggedOuted or NOT","The Application is still Open"
Environment.Value("TestCase_Log")= "True"
Else
Reporter.ReportEvent micPass,"Step :19 Verifying
if the Application is LoggedOuted or NOT","The Application is LoggedOut Success
fully"
End If
'Step #20
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL","MFLogin
"))
Call Login("MasterFile","Login Page","Approver","MFLogin")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 20: Navigate
to DR Home page after successful login.","Successfully login the application"
Else
Reporter.ReportEvent micFail,"Step 20: Navigate
to DR Home page after successful login.","Unable to login the application"
Environment.Value("TestCase_Log")= "True"
End If
'Step #22 to 26
Call ApprovalFunction("MasterFile","Issuer Documentation","Issue
r;Last User Updated;Last Updated",DataTable.Value("Details_Name","Company"),"Tes
ting","Approved",DataTable.Value("ApprovalStatus","Company"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 22 to 26: Ver
fiying if all the Modified Fields are Approved or NOT","All the Modified Fields
are Approved"
Else
Reporter.ReportEvent micFail,"Step 22 to 26: Ver
fiying if the Approval functionality","Any of the steps from 3 to 18 might have
Failed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #27
Call logoutfromApp("MasterFile","Approval Queue Item Search")
If Browser("MasterFile").Exist(2) And Environment.Value("TestCas
e_Log")="False" Then
Reporter.ReportEvent micFail,"Step :27 Verifying
if the Application is LoggedOuted or NOT","The Application is still Open"
Environment.Value("TestCase_Log")= "True"
Else
Reporter.ReportEvent micPass,"Step :27 Verifying
if the Application is LoggedOuted or NOT","The Application is LoggedOut Success
fully"
End If
'Step #28
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call Login("MasterFile","Login Page","User","MFLogin")
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 28: Navigate
to DR Home page after successful login.","Successfully login the application"
Else
Reporter.ReportEvent micFail,"Step 28: Navigate
to DR Home page after successful login.","Unable to login the application"
Environment.Value("TestCase_Log")= True
End If
'Step #29
Call select_Menu("MasterFile","MasterFile","PROFILE")
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 29: Click on
Profile in MasterFile page ","Successfully checked the Profile Link menu - " & D
ataTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 29: Click on
Profile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Comp
any") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #30
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist
(2) Then
blnFlag = "True"
Else
blnFlag = "False"
End If
If Environment.Value("TestCase_Log")="True" And blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 30: Under Pro
file menu select Company-Issuer, Profile - Company Search screen should be displ
ayed.","The Profile - Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step 30: Under Pro
file menu select Company-Issuer, Profile - Company Search screen should be displ
ayed.","The Profile - Company Search screen is not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #31
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 31: Enter val
ue in Enterprise Name Edit box and click Search.","Search result displayed accor
ding to search criteria."
Else
Reporter.ReportEvent micFail,"Step 31: Enter Val
ue in Enterprise Name Edit box and click Search.","Search result not displayed a
ccording to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #32
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",DataTable.Value("EnterpriseName","Company"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 32: Search an
d open the particular Issuer which was Approved", "Approved issuer profile is op
ened"
Else
Reporter.ReportEvent micFail,"Step 32: Search an
d open the particular Issuer which was Approved", "Approved issuer profile is no
t opened"
Environment.Value("TestCase_Log")= True
End If
'Step #33
Call fnc_wait(Browser("MasterFile").Page("Issuer Profile").WebEd
it("Details_EffectiveS/U"))
Call click_WebElement("MasterFile","Issuer Profile","Issuer Docu
mentation")
If Browser("MasterFile").Page("Issuer Documentation").Exist(2)
And Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 33: Issuer Documentation scree
n should be displayed.","The Issuer Documentation screen is displayed."
Else
Reporter.ReportEvent micFail,"Step 33: Issuer Do
cumentation screen should be displayed.","The Issuer Documentation screen is not
displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #34
Call chkFlagImage("MasterFile","Issuer Documentation","BusinessC
ustomerProfile","20-F Filer;12g3-2(b) Filer","Not Exist")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 34: Checking
for Flag Image.","Yellow flag is not displayed"
Else
Reporter.ReportEvent micFail,"Step 34: Checking
for Flag Image.","Yellow flag is displayed"
Environment.Value("TestCase_Log")="True"
End If
'Deleting the Profile
Call click_Image("MasterFile","Issuer Documentation","Delete Pro
file")
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call fnc_wait(Browser("MasterFile").Page("Issuer Profile").WebEd
it("Details_Name"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Delete Profile")
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call fnc_wait(Browser("MasterFile").Page("Profile - Company Sear
ch").WebEdit("EnterpriseName"))
Call select_Menu("MasterFile","Profile - Company Search","HOME;D
R Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyIssuer_TC6()
Environment.Value("TestCase_Log")="True"
'Step #2
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date has been Display
ed."
Else
Reporter.ReportEvent micFail,"Step 2: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date is not Displayed
"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile","PROFILE")
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on P
rofile in MasterFile page ","Successfully checked the Profile Link menu - " & Da
taTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 3: Click on P
rofile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Compa
ny") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Browser("MasterFile").Page("Profile - Company Search").Exist
(2) Then
blnFlag = "True"
Else
blnFlag = "False"
End If
If Environment.Value("TestCase_Log")="True" And blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 4: Under Prof
ile menu select Company-Issuer, Profile - Company Search screen should be displa
yed.","The Profile - Company Search screen is displayed."
Else
Reporter.ReportEvent micFail,"Step 4: Under Prof
ile menu select Company-Issuer, Profile - Company Search screen should be displa
yed.","The Profile - Company Search screen is not displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Enter valu
e in Enterprise Name Edit box and click Search.","Search result displayed accord
ing to search criteria."
Else
Reporter.ReportEvent micFail,"Step 5: Enter Valu
e in Enterprise Name Edit box and click Search.","Search result not displayed ac
cording to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",DataTable.Value("EnterpriseName","Company"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 6: Search and
open the particular Issuer ", "Approved issuer profile is opened"
Else
Reporter.ReportEvent micFail,"Step 6: Search and
open the particular Issuer ", "Approved issuer profile is not opened"
Environment.Value("TestCase_Log")= "True"
End If
'Step #7
Call fnc_wait(Browser("MasterFile").Page("Issuer Profile").WebEd
it("Details_EffectiveS/U"))
Call click_WebElement("MasterFile","Issuer Profile","Issuer Docu
mentation")
If Browser("MasterFile").Page("Issuer Documentation").Exist(2)
And Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Issuer Documentation screen
should be displayed.","The Issuer Documentation screen is displayed."
Else
Reporter.ReportEvent micFail,"Step 7: Issuer Doc
umentation screen should be displayed.","The Issuer Documentation screen is not
displayed."
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call pageCheck_WebElement("MasterFile","Issuer Documentation",Da
taTable.Value("strChkTabName","Company"),"")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Checking f
or the Expected tabs.","Issuer Documentation screen is displayed with Tabs - " &
DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 8: Checking f
or the Expected tabs.","Issuer Documentation screen is displayed with Tabs - " &
DataTable.Value("strChkTabName","Company")
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call selectTab("MasterFile","Issuer Documentation"," SEC Filing
and MAL/FOL")
Call click_WebButton("MasterFile","Issuer Documentation","Add")
Call pageCheck_CompanyProfile("MasterFile","Issuer Documentation
","SEC Filing and MAL/FOL")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Checking t
he Fields in SEC Filing and MAL/FOL Tab.","Expected Fields in SEC Filing and MAL
/FOL Tab are displayed"
Else
Reporter.ReportEvent micFail,"Step 9: Checking t
he Fields in SEC Filing and MAL/FOL Tab.","Expected Fields in SEC Filing and MAL
/FOL Tab are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
strWebListValue = GetMultipleValue_WebList("MasterFile","Issuer
Documentation","20FFiler;12gFiler")
strWebEditValue = GetMultipleValue_WebEdit("MasterFile","Issuer
Documentation","NonUSGovernment;MAL_FOL")
If Environment.Value("TestCase_Log")="True" And strWebListValue
= "20FFiler;No:12gFiler;No:" And strWebEditValue = "NonUSGovernment;DE 122 652
565:MAL_FOL;No:" Then
Reporter.ReportEvent micPass,"Step 10: Checking
the Default values in SEC Filing and MAL/FOL Tab","Expected Default values are d
isplayed in SEC Filing and MAL/FOL Tab"
Else
Reporter.ReportEvent micFail,"Step 10: Checking
the Default values in SEC Filing and MAL/FOL Tab","Expected Default values are n
ot displayed in SEC Filing and MAL/FOL Tab"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call selectTab("MasterFile","Issuer Documentation"," BCP/PAF")
Call pageCheck_CompanyProfile("MasterFile","Issuer Documentation
","BCP/PAF")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Checking
the Fields in BCP/PAF Tab.","Expected Fields in BCP/PAF Tab are displayed"
Else
Reporter.ReportEvent micFail,"Step 11: Checking
the Fields in BCP/PAF Tab.","Expected Fields in BCP/PAF Tab are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #12
strWebListValue = GetMultipleValue_WebList("MasterFile","Issuer
Documentation","BCPPAF_Approval")
strWebEditValue = GetMultipleValue_WebEdit("MasterFile","Issuer
Documentation","BCPPAF_ApprovalDate;BCPPAF_DivisionApproved")
If Environment.Value("TestCase_Log")="True" And strWebListValue
= "BCPPAF_Approval;Yes:" And strWebEditValue = "BCPPAF_ApprovalDate;Feb 08, 200
6:BCPPAF_DivisionApproved;ADR:" Then
Reporter.ReportEvent micPass,"Step 12: Checking
the Default values in BCP/PAF Tab","Expected Default values are displayed in BCP
/PAF Tab"
Else
Reporter.ReportEvent micFail,"Step 12: Checking
the Default values in BCP/PAF Tab","Expected Default values are not displayed in
BCP/PAF Tab"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Issuer Documentation","HOME;DR Ho
me")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++
Public Function MFProfileCompanyIssuer_TC7()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call ClickPencilIcon("MasterFile","Profile - Company Search",Dat
aTable.Value("strPencilIconSelectValue","Company"))
Call pageCheck_WebTableOR("MasterFile","Issuer Profile",DataTable.Value(
"strChkTabName","Company"))
Call FillDetailsTab("MasterFile",DataTable.Value("PageName","Com
pany"))
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," BNY Contacts")
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"BNY Contacts_Add")
Call FillBNYContactsTab("MasterFile",DataTable.Value("PageName",
"Company"))
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Und. Sec. Markets")
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"UnderlyingSecurityMarket_Add")
Call FillUnderlyingSecurityMarketTab("MasterFile",DataTable.Valu
e("PageName","Company"))
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Custodians")
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Custodians_Add")
Call FillCustodianTab("MasterFile",DataTable.Value("PageName","C
ompany"))
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Advisers")
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Advisers_Add")
Call FillAdviserTab("MasterFile",DataTable.Value("PageName","Com
pany"))
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Products")
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"Products_Add")
Call FillProductsTab("MasterFile",DataTable.Value("PageName","Co
mpany"))
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," DR Services")
Call click_WebButton("MasterFile",DataTable.Value("PageName","Co
mpany"),"DR Services_Add")
Call FillDRServiceTab("MasterFile",DataTable.Value("PageName","C
ompany"))
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Comments")
Call FillCommentsTab("MasterFile",DataTable.Value("PageName","Co
mpany"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
Call selectTab("MasterFile",DataTable.Value("PageName","Company"
)," Detail")
Call chkFlagImage("MasterFile",DataTable.Value("PageName","Compa
ny"),"Detail","Web Address;Country of Management;Industry","Exist")
Call logoutfromApp("MasterFile",DataTable.Value("PageName","Comp
any"))
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call Login("MasterFile","Login Page","Approver","MFLogin")
Call ApprovalFunction("MasterFile","Issuer","Name;Last User Upda
ted;Last Updated",DataTable.Value("EnterpriseName","Company"),"Testing","Approve
d",DataTable.Value("ApprovalStatus","Company"))
Call logoutfromApp("MasterFile","Approval Queue Item Search")
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL","MFLogin
"))
Call Login("MasterFile","Login Page","User","MFLogin")
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",DataTable.Value("EnterpriseName","Company"))
Call chkFlagImage("MasterFile",DataTable.Value("PageName","Compa
ny"),"Detail","Web Address;Country of Management;Industry","Not Exist")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 1 : Testcase
3 should be Executed","Testcase 3 has been Executed"
Else
Reporter.ReportEvent micFail,"Step 1 : Testcase
3 should be Executed","Testcase 3 not Executed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #2
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call Login("MasterFile","Login Page","User","MFLogin")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
Call chkHomePage("MasterFile","Depositary Receipt Division's",Da
taTable.Value("HomePageLinks","HomePageVerification"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigate t
o DR Home page after successful login.","Successfully verified the links - " & D
ataTable.Value("HomePageLinks","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Navigate t
o DR Home page after successful login.","The links - '" & DataTable.Value("HomeP
ageLinks","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date has been Display
ed. "
Else
Reporter.ReportEvent micFail,"Step 3: Click on M
asterFile in DR Home page.","Welcome Message and the Built Date is not Displayed
"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile","MasterFile","PROFILE")
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on P
rofile in MasterFile page ","Successfully checked the Profile Link menu - " & Da
taTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 4: Click on P
rofile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Compa
ny") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyProfileSearch("MasterFile","Profile - Comp
any Search","Company Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Prof
ile menu select Company-Issuer.","Expected Default values and fields are display
ed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Prof
ile menu select Company-Issuer.","Expected Default values and fields are not dis
played in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Enter valu
e in Enterprise Name Edit box and click Search.","Search result displayed accord
ing to search criteria."
Else
Reporter.ReportEvent micFail,"Step 6: Enter Valu
e in Enterprise Name Edit box and click Search.","Search result not displayed ac
cording to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",DataTable.Value("EnterpriseName","Company"))
Call pageCheck_WebTableOR("MasterFile",DataTable.Value("PageName
","Company"),DataTable.Value("strChkTabName","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Clicking t
he Company name(blue link).","Issuer Profile screen is displayed with Tabs - " &
DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 7: Clicking t
he Company name(blue link).","Issuer Profile screen is displayed with Tabs - " &
DataTable.Value("strChkTabName","Company")
Environment.Value("TestCase_Log")="True"
End If
Call chkFlagImage("MasterFile",DataTable.Value("PageName","Company"),"De
tail","Web Address;Country of Management;Industry","Not Exist")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass," Checking for Flag
Image.","Yellow flag is not displayed"
Else
Call logoutfromApp("MasterFile",DataTable.Value("PageName","Comp
any"))
Call invoke_URL("MasterFile","Login Page",DataTa
ble.Value("URL","MFLogin"))
Call Login("MasterFile","Login Page","Approver",
"MFLogin")
Call ApprovalFunction("MasterFile","Issuer","Name;Last User Upda
ted;Last Updated",DataTable.Value("EnterpriseName","Company"),"Testing","Approve
d",DataTable.Value("ApprovalStatus","Company"))
Call logoutfromApp("MasterFile","Approval Queue Item Search")
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call Login("MasterFile","Login Page","User","MFL
ogin")
Call click_WebElement("MasterFile","Depositary R
eceipt Division's","MasterFile")
Call select_Menu("MasterFile","MasterFile",DataT
able.Value("MenuPath","Company"))
Call ProfileCompanySearchCriteria("MasterFile","
Profile - Company Search")
Call SearchEnterpriseName("MasterFile","Profile
- Company Search","Company Search Results",DataTable.Value("EnterpriseName","Com
pany"))
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call set_WebEdit_Value ("MasterFile",DataTable.Value("PageName",
"Company"),"Details_WebAddress",DataTable.Value("Details_WebAddress1","Company")
)
Call Select_Combo_Value("MasterFile",DataTable.Value("PageName",
"Company"),"Details_Industry",DataTable.Value("Details_Industry1","Company"))
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Save Profile")
Call chkFlagImage("MasterFile",DataTable.Value("PageName","Compa
ny"),"Detail","Web Address;Industry","Exist")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Checking f
or Yellow Flag Image.","Yellow flag is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Checking f
or Yellow Flag Image.","Yellow flag is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call logoutfromApp("MasterFile",DataTable.Value("PageName","Comp
any"))
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call Login("MasterFile","Login Page","Approver","MFLogin")
Call ApprovalFunction("MasterFile","Issuer","Name;Last User Upda
ted;Last Updated",DataTable.Value("EnterpriseName","Company"),"Testing","Approve
d",DataTable.Value("ApprovalStatus","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: The change
d values should be approved.","Succesfully Approved the Changed values in Issuer
profile"
Else
Reporter.ReportEvent micFail,"Step 9: The change
d values should be approved.","Unable to Approve the Changed values in Issuer pr
ofile"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call logoutfromApp("MasterFile","Approval Queue Item Search")
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 10: Navigate
to DR Home page after successful login.","Successfully verified the links - " &
DataTable.Value("HomePageLinks","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 10: Navigate
to DR Home page after successful login.","The links - '" & DataTable.Value("Home
PageLinks","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Call chkMFCAPage("MasterFile","Depositary Receipt Division's","
MasterFile","MasterFile","MasterFile",DataTable.Value("VersionDate","Enterprise"
))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Click on
MasterFile in DR Home page.","Welcome Message and the Built Date has been Displa
yed. "
Else
Reporter.ReportEvent micFail,"Step 11: Click on
MasterFile in DR Home page.","Welcome Message and the Built Date is not Displaye
d"
Environment.Value("TestCase_Log")="True"
End If
'Step #12
Call select_Menu("MasterFile","MasterFile","PROFILE")
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12: Click on
Profile in MasterFile page ","Successfully checked the Profile Link menu - " & D
ataTable.Value("MenuPath","Company")
Else
Reporter.ReportEvent micFail,"Step 12: Click on
Profile in MasterFile page .","The menus - '" & DataTable.Value("MenuPath","Comp
any") & "' is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #13
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyProfileSearch("MasterFile","Profile - Comp
any Search","Company Search Results")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13: Under Pro
file menu select Company-Issuer.","Expected Default values and fields are displa
yed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 13: Under Pro
file menu select Company-Issuer.","Expected Default values and fields are not di
splayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #14
Call ProfileCompanySearchCriteria("MasterFile","Profile - Compan
y Search")
Call searchCompanyInProfileCompany("MasterFile","Profile - Compa
ny Search","EnterpriseName")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14: Enter val
ue in Enterprise Name Edit box and click Search.","Search result displayed accor
ding to search criteria."
Else
Reporter.ReportEvent micFail,"Step 14: Enter Val
ue in Enterprise Name Edit box and click Search.","Search result not displayed a
ccording to search criteria."
Environment.Value("TestCase_Log")="True"
End If
'Step #15
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",DataTable.Value("EnterpriseName","Company"))
Call pageCheck_WebTableOR("MasterFile",DataTable.Value("PageName
","Company"),DataTable.Value("strChkTabName","Company"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 15: Clicking
the Company name(blue link).","Issuer Profile screen is displayed with Tabs - "
&DataTable.Value("strChkTabName","Company")
Else
Reporter.ReportEvent micFail,"Step 15: Clicking
the Company name(blue link).","Issuer Profile screen is displayed with Tabs - "
&DataTable.Value("strChkTabName","Company")
Environment.Value("TestCase_Log")="True"
End If
'Step #16
Call click_Image("MasterFile",DataTable.Value("PageName","Compan
y"),"Profile Audit")
Wait(10)
strModifiedFields = DataTable.Value("ModifiedFields","Company")
strModifiedField = Split(strModifiedFields,";",-1,1)
For intCount = 0 to UBound(strModifiedField)
intIndex = intCount + 1
If Browser("MasterFile").Page(DataTable.Value("
PageName","Company")).Frame("lookupFrame").WebTable("index:= " & intIndex).Exist
(2) Then
blnFlag = "True"
Else
blnFlag = "False"
Reporter.ReportEvent micFail,"Ve
rify if the Table Exist or NOT","The Table does NOT exist"
End If
If blnFlag = "True" Then
intRowCount = Browser("MasterFil
e").Page(DataTable.Value("PageName","Company")).Frame("lookupFrame").WebTable("i
ndex:= " & intIndex).RowCount
For intRowCounter = 1 to intRowC
ount
intColumnCount =
Browser("MasterFile").Page(DataTable.Value("PageName","Company")).Frame("lookup
Frame").WebTable("index:= " & intIndex).ColumnCount(intRowCounter)
For intColumnCou
nter = 1 to intColumnCount
strGetCellData = Browser("MasterFile").Page(DataTable.Value("PageName","Company"
)).Frame("lookupFrame").WebTable("index:= " & intIndex).GetCellData(intRowCounte
r,intColumnCounter)
'MsgBox strGetCellData
If strGetCellData = "Field" Then
strValue = Browser("MasterFile").Page(DataTable.Value("PageName","Company")).Fra
me("lookupFrame").WebTable("index:= " & intIndex).GetCellData(intRowCounter+1,in
tColumnCounter)
If strValue = "Web Address" Then
strColumn = "Details_WebAddress"
strColumn1 = "Details_WebAddress1"
Else
strColumn = "Details_Industry"
strColumn1 = "Details_Industry1"
End If
If strValue = strModifiedField(intCount) Then
Reporter.ReportEvent micPass,"Verifying if the Modified Field is Present or NOT"
,"The Modified Field " & strModifiedField(intCount) & " is Present in the table"
Else
Reporter.ReportEvent micFail,"Verifying if the Modified Field is Present or NOT"
,"The Modified Field " & strModifiedField(intCount) & " is NOT Present in the ta
ble"
Environment.Value("TestCase_Log") = "False"
Environment.Value("Execution_Log") = "False"
Exit For
End If
End If