Forum Discussion
chdittmer
12 years agoOccasional Contributor
The AWTAccessbileName changes from "Start" to "Stop".
I have tried changin the "Start" (As the togglebutton is currently mapped) to a wildcard in the name mapping but then it seems to not be able to find the object at all.
I have been able to narrow down the failure to a very specific case. As I mentioned the button can change from Stop to Start if the conditions are right, the only time the test seems to fail is when this does not happen.
So, in other words most of the time the Togglebutton will change from Stop (toggled) to Start (untoggeled), TE sees that it is in the state I want it to be and the test continues without an action taking place. When it does not change from that Stop to Start state the test fails when it tries to put it in the correct state by clicking the button.
There are other parts of the test where this button is clicked (both Toggled and untoggled state) when it explicitly cannot have it's state changed without the button being clicked, during these times the script does not fail.
The function I use to click this button looks something like this:
function ClickButton(state)
{
Aliasses.[namemapping].ToggleButton.ClickButton(state); }
I have tried changin the "Start" (As the togglebutton is currently mapped) to a wildcard in the name mapping but then it seems to not be able to find the object at all.
I have been able to narrow down the failure to a very specific case. As I mentioned the button can change from Stop to Start if the conditions are right, the only time the test seems to fail is when this does not happen.
So, in other words most of the time the Togglebutton will change from Stop (toggled) to Start (untoggeled), TE sees that it is in the state I want it to be and the test continues without an action taking place. When it does not change from that Stop to Start state the test fails when it tries to put it in the correct state by clicking the button.
There are other parts of the test where this button is clicked (both Toggled and untoggled state) when it explicitly cannot have it's state changed without the button being clicked, during these times the script does not fail.
The function I use to click this button looks something like this:
function ClickButton(state)
{
Aliasses.[namemapping].ToggleButton.ClickButton(state); }