Test execution fails after I modified variable of a ClickButton operation.
I need to modify my test that it selects button in ClickButton operation by using a variable.
When I created keyword test in Value column the value displays as "...". I want to
After I changed it to a variable and used "MappedName" value of the button from Object Spy window. I use DB Table as a variable.
I'm wondering what will happen when I change the Value using variable to let's say ToolButton5, but in the Item column it will be still ToolButton2? If it says ToolButton2 in the Item column does that mean it will always look for ToolButton2 even when the value will use as variable ToolButton5.
Then I run the test it fails, when it gets to the step where it should click on the button after I changed from "..." to the variable the error details say: "Exception. Type mismatch".
What can cause this error?
The button that you are clicking on, is it a tool bar? What is the value of your project variable? Do you want to click the button based on the project variable value?
I'm using test suite variable, and this is the value which I'm using: "Aliases.IsoSpeak.MainOptionsModule.centralWidget.uiLayoutWidget.NewProjectMenuModule.Widget3.Widget.ToolButton2" in DB Table.
No it's not a tool bar, it's a button that makes a selection of the project type.
If I understand correctly, you have declared the following,
ProjectSuite.Variables.Config_DDL_Meteor["TC_Chip_button"] = "Aliases.IsoSpeak.MainOptionsModule.centralWidget.uiLayoutWidget.NewProjectMenuModule.Widget3.Widget.ToolButton2"
and you are trying to perform a click button like so,
which will not work.
is a DB Table type variable, and I see that it's not working. In all other tests DB Table variable works fine for different operations.
This is what I want to figure out where is the issue and how can I make it works.
This is the value:
When I use object spy and select this button this is what TC displays. I don't know what other value can be used.
The variable ProjectSuite.Variables.Config_DDL_Meteor["TC_Chip_button"] has the value of "Aliases.IsoSpeak.MainOptionsModule.centralWidget.uiLayoutWidget.NewProjectMenuModule.Widget3.Widget.ToolButton2" ?