nimi_ummer
12 years agoNew Contributor
object caption with \\ is displayed as \
The following code is always failing:
var oExportPathField = oUnisphere.FindChild("FlexObject.automationName", "generalExportPath", 4, true);
aqObject.CheckProperty(oExportPathField, "Caption", cmpEqual, "\\\\" + sNasServerIp
+ "\\" + sShare);
with the error:
The displayed object on gui is "\\10.245.252.200\CIFSShare_2013042243" however the property checkpoint always fails.
I am using TC 9.2 and IE8 for testing. I am using JScript for my project.
How do I rectify this?
var oExportPathField = oUnisphere.FindChild("FlexObject.automationName", "generalExportPath", 4, true);
aqObject.CheckProperty(oExportPathField, "Caption", cmpEqual, "\\\\" + sNasServerIp
+ "\\" + sShare);
with the error:
The "Caption" property of the "Sys.Browser("iexplore").Page("https://10.109.13.81/index.html#lcn=neoArea:applications:12:sharedFolderDetails:cifsShareDetails&&ctxt=:::id=root%2Femc%3AEMC_UEM_ApplicationLeaf%25InstanceID%3Dres_10:id=root%2Femc%3AEMC_UEM_CIFSShareLeaf%25InstanceID%3DCIFSShare_3").Object("UxPreloader").UxPreloader("UxPreloader").Canvas("generalCanvas").Form("form").Text("generalExportPath")" object does not meet the checkpoint's condition.
Object name: | Sys.Browser("iexplore").Page("https://10.109.13.81/index.html#lcn=neoArea:applications:12:sharedFolderDetails:cifsShareDetails&&ctxt=:::id=root%2Femc%3AEMC_UEM_ApplicationLeaf%25InstanceID%3Dres_10:id=root%2Femc%3AEMC_UEM_CIFSShareLeaf%25InstanceID%3DCIFSShare_3").Object("UxPreloader").UxPreloader("UxPreloader").Canvas("generalCanvas").Form("form").Text("generalExportPath") |
---|---|
Property: | Caption |
Actual value | "\10.245.252.200\CIFSShare_2013042243" |
Expected value | "\\10.245.252.200\CIFSShare_2013042243" |
Condition | cmpEqual |
Case-sensitive | true |
The displayed object on gui is "\\10.245.252.200\CIFSShare_2013042243" however the property checkpoint always fails.
I am using TC 9.2 and IE8 for testing. I am using JScript for my project.
How do I rectify this?