Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Run test from jenkins(test automation)
Run test from jenkins [message #1170358] Mon, 04 November 2013 15:38 Go to next message
imad sabaany is currently offline imad sabaanyFriend
Messages: 17
Registered: August 2013
Junior Member
Hi All,
I have bath file "runtest.bat" that run from commad line and it works alright.
Now I try to run my tests from jenkins. but I have a problem with this.
the test stuck at the middle.
Is there something that I should do in order to make it works?

Thanks,
Imad
Re: Run test from jenkins [message #1171641 is a reply to message #1170358] Tue, 05 November 2013 11:30 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Does
http://wiki.eclipse.org/SWTBot/Automate_test_execution#Windows_hints_2 help?

--
Mickael Istria
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: Run test from jenkins [message #1171731 is a reply to message #1171641] Tue, 05 November 2013 12:48 Go to previous messageGo to next message
imad sabaany is currently offline imad sabaanyFriend
Messages: 17
Registered: August 2013
Junior Member
Yeah, I work on it.
I also found a page that explain about Automation on Windows.it's related to squish, but I thinks it's also relevant to swtbot test:
http://kb.froglogic.com/display/KB/Automation+on+Windows
Thanks Smile
Re: Run test from jenkins [message #1173088 is a reply to message #1171731] Wed, 06 November 2013 09:28 Go to previous messageGo to next message
imad sabaany is currently offline imad sabaanyFriend
Messages: 17
Registered: August 2013
Junior Member
Hi All,
Now I have a problem when I use keystrokes in jenkins. for example when I try to press TAB:
importShell.bot().comboBox(0).pressShortcut(Keystrokes.TAB);
it did not work.
Do you have any idea what I can do to make it work?
**the jenkins is not running as windows service.
Thanks,
Imad
Re: Run test from jenkins [message #1173225 is a reply to message #1173088] Wed, 06 November 2013 11:23 Go to previous message
imad sabaany is currently offline imad sabaanyFriend
Messages: 17
Registered: August 2013
Junior Member
this the error I get:
assertion failed: Could not post keyevent.
org.eclipse.swtbot.swt.finder.exceptions.AssertionFailedException: assertion failed: Could not post keyevent.
at org.eclipse.swtbot.swt.finder.utils.internal.Assert.isTrue(Assert.java:95)
at org.eclipse.swtbot.swt.finder.keyboard.SWTKeyboardStrategy.pressKey(SWTKeyboardStrategy.java:50)
at org.eclipse.swtbot.swt.finder.keyboard.AbstractKeyboardStrategy.pressKeys(AbstractKeyboardStrategy.java:56)
at org.eclipse.swtbot.swt.finder.keyboard.Keyboard.pressKeys(Keyboard.java:157)
at org.eclipse.swtbot.swt.finder.keyboard.Keyboard.pressShortcut(Keyboard.java:123)
at

[Updated on: Wed, 06 November 2013 11:24]

Report message to a moderator

Previous Topic:SWTBOT - Insert Key
Next Topic:How to click a button until the condition is true.?
Goto Forum:
  


Current Time: Tue Mar 19 10:53:02 GMT 2024

Powered by FUDForum. Page generated in 0.02441 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top