Comment #2 on issue 470 by jitud...@gmail.com: [SwingLibrary]Using Keyword "Select Window" Or "Select Dialog" can not select JFrame
http://code.google.com/p/robotframework/issues/detail?id=470

I am having the following problem. I have a application can be started y java -jar myapps.jar

I have written the following code:
--------------------------------------------------------------------------------
| *Setting*  |     *Value*     |
| Library    | OperatingSystem |
| Library    | BuiltIn         |
| Library    | String          |
| Library    | RemoteApplications  |

| *Variable*     |  *Value*   |

| *Test Case* | *Action* | *Argument* | *Argument* | *Argument* |

| | Start Application | myjavaapp | java -jar myapps.jar | 10 seconds | ..\\SwingLib\\ |
|                               | Application Should Be Connected |
|                               | Take Library Into Use | SwingLibrary |
|                               | ${window}=    | List Windows |
|                               | Log   | ${window} |
|                               | Select Window | ^N.* |
|                               | Close Application | myjavaapp |

--------------------------------------------------------------------------------

Command to run: java -cp ..\robotframework\robotframework-2.8.1.jar;..\robotframework\remoteapplications-2.0.jar org.robotframework.RobotFramework test.txt

Even though the application launched but the swinglibrary is not able to identify the window...

KEYWORD: RemoteApplications.Take Library Into Use SwingLibrary
Documentation:  

Takes given library into use.
Start / End / Elapsed: 20140620 01:01:28.014 / 20140620 01:01:29.248 / 00:00:01.234 01:01:29.245 INFO Jun 20, 2014 1:01:28 AM org.robotframework.remoteapplications.org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [org/robotframework/remoteapplications/client/clientContext.xml]

KEYWORD: RemoteApplications.Select Window ^N.*
Start / End / Elapsed: 20140620 01:01:29.250 / 20140620 01:01:39.379 / 00:00:10.129 01:01:39.364 INFO Jun 20, 2014 1:01:30 AM org.robotframework.remoteapplications.org.springframework.remoting.rmi.RmiServiceExporter getRegistry INFO: Looking for RMI registry at port '59476' Jun 20, 2014 1:01:31 AM org.robotframework.remoteapplications.org.springframework.remoting.rmi.RmiServiceExporter getRegistry INFO: Could not detect RMI registry - creating new one Jun 20, 2014 1:01:31 AM org.robotframework.remoteapplications.org.springframework.remoting.rmi.RmiServiceExporter prepare INFO: Binding service 'robotrmiservice' to RMI registry: RegistryImpl[UnicastServerRef [liveRef: [endpoint:[10.244.145.65:59476](local),objID:[0:0:0, 0]]]] 01:01:39.378 FAIL TestFailedException: caused by: java.lang.RuntimeException: Frame with name or title '^N.*'



can anyone help me.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to