Forum Discussion

pjaju's avatar
pjaju
Occasional Contributor
14 years ago

Map "java" object in case of multiple java applications are open

I need to have couple of different java applications open for my automated scripts. The problem I'm facing is that both applications creates separate "Java" processes. I need to map these java processes based on its child object's properties (like WndCaption or AWTComponentName) so that both my applications can be identified easily. Currently, I am facing problem because if both my applications are open, TC is identifying only one java process. Can i set the mapping based on the child's properties/method's values?

3 Replies

  • pjaju's avatar
    pjaju
    Occasional Contributor
    I think I've found a way. I used Conditional Mode and used the CommandLine property to distinguish both the java processes. In the commandline property, i used wildcard (*).

    Property             Condition     Value

    ProcessName      Equals            java

    AND

    CommandLine     Equals            *Management Kit*



    Property             Condition     Value

    ProcessName      Equals            java

    AND

    CommandLine     Equals            *Explorer*



    Is this the right way or should I try something else to be "sure"?