Can't select treeitems because of '/'

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

Can't select treeitems because of '/'

Postby a.bitsche » Mon Sep 11, 2006 4:49 am

It seems that ui.click(String, String) doesn't work correctly if one or more '/' are included in the paramters.
I have found this behavior , as i wanted to select a project (in the PackageExplorer) which was administrated through Subversion.
Is there a workaround available?

Note: (\\/) doesn't help.
a.bitsche
 
Posts: 31
Joined: Tue Aug 22, 2006 2:53 am
Location: Austria

Postby Phil Quitslund » Tue Sep 12, 2006 7:00 am

Interesting... the escapes _should_ work.

Could you post the snippet (and describe the tree under test -- maybe a screenshot)? With that we can work on a repro and see what might be happening.

Thanks!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Postby a.bitsche » Wed Sep 13, 2006 1:14 am

Hei phil,
here are the requested informations.

Code snippet:
Code: Select all
// This click works
ui.click("tree", "SampleProject");
// This click throws the following error
ui.click("tree", "PackageTest \\[TEST\\/tags\\/packageTest\\/V1.0\\]");
//ui.click("tree","PackageTest[a-zA-Z \\[\\].\\/]*");  // Throws an error
ui.close("Java - Eclipse Platform.shell");
ui.waitForShellShowing("Confirm Exit");
ui.click("OK.button");
ui.waitForShellDisposed("Confirm Exit");
ui.waitForShellDisposed("Eclipse Platform");

Screenshot: Workspace - Follow the link on this page

StackTrace:
com.windowtester.swt.WidgetNotFoundException: Path: PackageTest \[TEST\/tags\/packageTest\/V1.0\] not findable in tree Tree {}
at com.windowtester.event.selector.swt.TreeItemSelector.click(TreeItemSelector.java:85)
at com.windowtester.event.selector.swt.TreeItemSelector.click(TreeItemSelector.java:55)
at com.windowtester.event.selector.swt.BasicWidgetSelector.click(BasicWidgetSelector.java:123)
at com.windowtester.event.swt.UIDriver.click(UIDriver.java:223)
...
Last edited by a.bitsche on Wed Sep 13, 2006 11:44 pm, edited 1 time in total.
a.bitsche
 
Posts: 31
Joined: Tue Aug 22, 2006 2:53 am
Location: Austria

Postby Phil Quitslund » Wed Sep 13, 2006 6:26 am

I'm getting an error looking at the screenshot:

403 - Cannot display file

Maybe you could repost?

Alternatively, send it to:

wintest-support@instantiations.com

with a support request/bug report.

Thanks!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Postby a.bitsche » Wed Sep 13, 2006 11:46 pm

I have fixed the broken link. 'Hotlinking' was blocked.

Now you must follow the link on the page which is named like the topic of the post.
a.bitsche
 
Posts: 31
Joined: Tue Aug 22, 2006 2:53 am
Location: Austria

Postby Phil Quitslund » Thu Sep 14, 2006 8:49 am

How about this pattern:

"PackageTest [TEST\\/tags\\/packageTest\\/V1.0]"

does it work?

And how about this one?:

"PackageTest (\\[TEST\\/[a-zA-Z]*\\/[a-zA-Z]*\\/V[0-9]+.[0-9]+\\])"
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Postby a.bitsche » Thu Sep 14, 2006 10:41 pm

Neither of them works.
a.bitsche
 
Posts: 31
Joined: Tue Aug 22, 2006 2:53 am
Location: Austria

Postby Phil Quitslund » Fri Sep 15, 2006 5:39 am

In that case, it looks like you've found a bug.

We'll get working on a reproduction and get back to you with a fix. (We'll follow up using the support ticket you opened.)

Thanks for the catch!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Wrong field filling

Postby JLomin » Tue Feb 27, 2007 7:03 am

Hello,

Have you fixed this issue?

I have the same problem, when I click on a field and enter some text, the 'slashes' are represented as 'sevens'.
ui.enterText("/"); //Is traduced to '7'

also, '@' is translated to '"'

thanks!
JLomin
 
Posts: 11
Joined: Mon Feb 05, 2007 11:40 pm

Postby Phil Quitslund » Tue Feb 27, 2007 7:13 am

Please send a bug report to: wintest-support@instantiations.com and we'll take a look at it!

Thanks!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Postby JLomin » Wed Mar 07, 2007 7:19 am

this is the same problem covered in

viewtopic.php?t=927
JLomin
 
Posts: 11
Joined: Mon Feb 05, 2007 11:40 pm

Postby Phil Quitslund » Tue Mar 13, 2007 4:01 pm

This should be fixed. Please let us know if not!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest