melqaisi
15 years agoNew Contributor
System can't get the value in the running mode.. but in debugging it works perfectly.
Hi everybody,
I am trying to solve a problem in my test script with no hope, so I am asking for the help here :
The problem is as the following :
I have a function and this function tests some elements of the tree... and then i make some validation of some text in the tree items
if (tree["WPFObject"]("TreeViewItem", "", i)["WPFObject"]("TreeViewItem", "", x)["WPFObject"]("TreeViewItem", "", z)["WPFObject"]("Grid", "", 1)["WPFObject"]("GridViewRowPresenter", "", 1)["WPFObject"]("ContentPresenter", "", 7)["WPFObject"]("TextBlock", SLDdesc, 1)["Text"]== SLDdesc){ //Verify SLD description// TODO 2 -cVerification Of SLD Description : SLD description
Log["Message"]("SLD Description saved correctly");
if (tree["WPFObject"]("TreeViewItem", "", i)["WPFObject"]("TreeViewItem", "", x)["WPFObject"]("TreeViewItem", "", z)["WPFObject"]("Grid", "", 1)["WPFObject"]("GridViewRowPresenter", "", 1)["WPFObject"]("ContentPresenter", "", 6)["WPFObject"]("TextBlock", SLDreference, 1)["Text"] == SLDreference)
Log["Message"]("SLD Reference saved correctly");
when i run this function only it works perfectly.... and when i run it integrated with some the other functions the log messages doesn't appear to be reachable. when i make break points on the if statements it also work.
I also tried to make this to make the validation using the "Olevalue " proberty, sometimes it works and sometimes it tells me that the function return object.
Can you help me please?
Thanks,
Mohammed.
I am trying to solve a problem in my test script with no hope, so I am asking for the help here :
The problem is as the following :
I have a function and this function tests some elements of the tree... and then i make some validation of some text in the tree items
if (tree["WPFObject"]("TreeViewItem", "", i)["WPFObject"]("TreeViewItem", "", x)["WPFObject"]("TreeViewItem", "", z)["WPFObject"]("Grid", "", 1)["WPFObject"]("GridViewRowPresenter", "", 1)["WPFObject"]("ContentPresenter", "", 7)["WPFObject"]("TextBlock", SLDdesc, 1)["Text"]== SLDdesc){ //Verify SLD description// TODO 2 -cVerification Of SLD Description : SLD description
Log["Message"]("SLD Description saved correctly");
if (tree["WPFObject"]("TreeViewItem", "", i)["WPFObject"]("TreeViewItem", "", x)["WPFObject"]("TreeViewItem", "", z)["WPFObject"]("Grid", "", 1)["WPFObject"]("GridViewRowPresenter", "", 1)["WPFObject"]("ContentPresenter", "", 6)["WPFObject"]("TextBlock", SLDreference, 1)["Text"] == SLDreference)
Log["Message"]("SLD Reference saved correctly");
when i run this function only it works perfectly.... and when i run it integrated with some the other functions the log messages doesn't appear to be reachable. when i make break points on the if statements it also work.
I also tried to make this to make the validation using the "Olevalue " proberty, sometimes it works and sometimes it tells me that the function return object.
Can you help me please?
Thanks,
Mohammed.