Issue 3 in twin: Remote control cannot be attached to 64bit processes

31 views
Skip to first unread message

tw...@googlecode.com

unread,
Jun 14, 2014, 3:21:31 PM6/14/14
to twin-c...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3 by sergey.i...@gmail.com: Remote control cannot be attached to
64bit processes
http://code.google.com/p/twin/issues/detail?id=3

I'm testing 64bit application and encountered this issue. I launch
sharpclaws.exe
and ide.jar. When I select Attach in the IDE I get error "Could not find
any process with path C:\path\to\my\app.exe to bind to". The same problem
when I try to get access via my java application.


What steps will reproduce the problem?

1. The application that is being tested is already running

2. Sharpclaws.xml was changed to attach to the application

<param name="app.my_app.name">my_app</param>
<param name="app.my_app.path">C:\path\to\my\app.exe</param>
<param name="app.my_app.launch-strategy">attach</param>

3. Code snippet from my java application that perform tests

Application app = new Application(new URL("http://127.0.0.1:4444"));
app.open("my_app", null);
Window wnd = app.getWindow();

What is the expected output? What do you see instead?
Exception occurs:
System.Exception: Could not find any process with path
C:\path\to\my\app.exe to bind to
at Twin.Model.Session..ctor(Unknown Source)
at Twin.Model.SessionFactory.Create(Unknown Source)
at Twin.View.Sessions.Create(Unknown Source)
at Twin.Generic.JSONResponder.Respond(Unknown Source)
at Twin.Generic.JSONResponder.Respond(Unknown Source)
at org.ebayopensource.twin.Application.open(Application.java:147)
at org.ebayopensource.twin.Application.open(Application.java:131)
at org.ebayopensource.twin.Application.open(Application.java:118)

What version of the product are you using? On what operating system?
twin1.0, Windows 7 Home Premium

Please provide any additional information below.
When I launch the application that is being tested rather then attach, the
application launches and the following exception occurs in my java app:

org.ebayopensource.twin.TwinNoSuchElementException: Found no children of
Desktop(id=null)@null matching controlType=Window after waiting 30.0
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.ebayopensource.twin.TwinError.create(TwinError.java:59)
at org.ebayopensource.twin.TwinError.create(TwinError.java:52)
at org.ebayopensource.twin.ElementImpl.getElements(ElementImpl.java:465)
at org.ebayopensource.twin.ElementImpl.waitForChild(ElementImpl.java:414)
at org.ebayopensource.twin.Application.getWindow(Application.java:287)



--
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

tw...@googlecode.com

unread,
Jun 15, 2014, 7:02:09 AM6/15/14
to twin-c...@googlegroups.com

Comment #1 on issue 3 by sergey.i...@gmail.com: Remote control cannot be
Tested on 32bit version of the application that is being tested: remote
control successfully attaches to the application and I have ability to get
controls and perform actions.

tw...@googlecode.com

unread,
Feb 23, 2015, 6:01:42 AM2/23/15
to twin-c...@googlegroups.com

Comment #2 on issue 3 by nikhilag...@gmail.com: Remote control cannot be
attached to 64bit processes
https://code.google.com/p/twin/issues/detail?id=3

Thanks guys....as I am new to TWIN Automation so could you please suggest
me some documents to use TWIN automation framework. Also could you please
let me know the step by step process for automating windows application
using TWIN autom
ation tool?

tw...@googlecode.com

unread,
Feb 23, 2015, 6:14:12 AM2/23/15
to twin-c...@googlegroups.com

Comment #3 on issue 3 by nikhilag...@gmail.com: Remote control cannot be
Does TWIN automation tool supports Windows 8.1 64 bit O/S ?
Reply all
Reply to author
Forward
0 new messages