Inconsistent Behavior in Java Class identification
I have an Application which has a custom chart control embedded under container objects
To be able to use that control I have
> Show all classes is enabled
> container classes added to Ignore List
> The Custom Chart control class added to JAVAEX.INI
The problem I am facing is
When I initially start the Silktest it doesnt show the Custom chart control.
however if I press Ctrl+Alt and the I choose Resume Recording The controls start showing up
Same is the case if I go to Record Custom Class and just point my mouse on the control
Do nothing and close the dialogue and again come back to Record Window Declaration
Surprisingly now I can see the Custom Control
Because of this non stable and non deterministic nature of identification my test cases fail if I Run it first time however they pass after rerunning them
Whats the solution to this
I have seen so many posts on this but no one solution that details how to get out of this problem
Re: Inconsistent Behavior in Java Class identification
You have the correct config setup. Try below steps...
- Add your custom chart control name to [classlist] section in JavaEx.ini
- Uncheck "Select All Classes" and "Select All Methods" in Record Class dialog
- Don't use Ignore list
Silk Agent takes a while to establish communication with the JVM and interact with Java controls. Here are couple of hints that may help you...
- A panel which is parent of the custom Chart control might also need to be recognized by Silk. Sometimes, the panels mask Java controls. So, you may want to record class of the panel and add it to [classlist] in Javaex.ini. I had seen this happening with Toolbar controls.
- In some cases where a button acts as link, until you move your mouse pointer onto the button co-ordinates Silk can't recognize the object.
Which JRE you are using? Which Silk version you are using?