SlideShare a Scribd company logo
1 of 3
Download to read offline
Fluentlenium Functional tests hang 
Asked by Tony Childs on 2013-04-10T18:55:29-04:00 
I've got a simple test that should start a browser and go to a URL, but it 
hangs: 
@Test 
public void runInBrowser() { 
running(testServer(9000), FIREFOX, new Callback() { 
public void invoke(TestBrowser browser) { 
browser.goTo("http://localhost:3333/admin"); 
}); 
Firefox starts and then the test just hangs without navigating to the URL 
provided. I see only the following console log (INFO) 
[37minfo [0m] play - datasource [jdbc:db2://url-removed] bound to JNDI as 
DefaultDS 
[ [37minfo [0m] o.h.a.c.Version - HCANN000001: Hibernate Commons 
Annotations {4.0.1.Final} 
[ [37minfo [0m] o.h.Version - HHH000412: Hibernate Core {4.1.7.Final} 
[ [37minfo [0m] o.h.c.Environment - HHH000206: hibernate.properties not 
found 
[ [37minfo [0m] o.h.c.Environment - HHH000021: Bytecode provider name : 
javassist 
[ [37minfo [0m] o.h.d.Dialect - HHH000400: Using dialect: 
org.hibernate.dialect.DB2Dialect 
[ [37minfo [0m] o.h.e.j.i.LobCreatorBuilder - HHH000423: Disabling 
contextual LOB creation as JDBC driver reported JDBC version [3] less than 4 
[ [37minfo [0m] o.h.e.t.i.TransactionFactoryInitiator - HHH000268: 
Transaction strategy: 
org.hibernate.engine.transaction.internal.jdbc.JdbcTransactionFactory 
[ [37minfo [0m] o.h.h.i.a.ASTQueryTranslatorFactory - HHH000397: Using 
ASTQueryTranslatorFactory 
[ [37minfo [0m] o.h.v.i.u.Version - HV000001: Hibernate Validator 
4.3.0.Final 
[ [37minfo [0m] application - Application has started 
[ [37minfo [0m] application - DEVELOPMENT 
The same test runs when I use HTMLUNIT in place of FIREFOX. Any tips would 
be appreciated. 
Thanks, 
Tony 
Archives 
Framework 
Play Framework 
Apr 10, 2013 
Week 15, 2013 
MarsHut Page 1/3
Fluentlenium Functional tests hang 
April, 2013 
Year 2013 
All Answers 
Answer by Tony Childs on 2013-04-11T13:13:57-04:00 
I've now noticed that HTMLUNIT also hangs when I go to /admin/people. I'm 
wondering if Angular.js has anything to do with it 
Answer by Max Begenau on 2013-04-11T15:17:11-04:00 
Hi Tony, 
as far as I can see AngularJS has been tested with IE8 and above. The 
default HtmlUnitDriver browser used by play is Internet Explorer 7(The current 
trunkof HtmlUnit uses IE8 as default). So yes, problems can arise from 
JavaScript (also have a look at this 
blog 
post I found). 
I encountered hangs when using HTMLUNIT with my jQuery based application, 
but in contrast to your case the FIREFOX WebDriver worked flawlessly*. You 
may try using HTMLUNIT with Firefox browser version. To do so, use: 
FluentAdapter ff10_browser = new FluentAdapter(new HtmlUnitDriver( 
BrowserVersion.FIREFOX_10)) 
*What Firefox version do you use? Selenium tries to install an Add-On to 
Firefox, but the shipped xpi is not compatible with recent browser. To 
update, add the following line to your Build.scala: 
"org.seleniumhq.selenium" % "selenium-java" % "2.31.0", 
Good luck! 
Max 
Answer by Mathilde Rigabert Leme̕e on 2013-04-11T16:18:19-04:00 
Hi Tony, 
selenium-java 2.32.0 have been released so same as Max except for the 
version 
"org.seleniumhq.selenium" % "selenium-java" % "2.32.0", 
Does that work ? 
Mathilde 
Le jeudi 11 avril 2013 00:55:29 UTC+2, Tony Childs a écrit : 
Answer by Tony Childs on 2013-04-12T15:13:01-04:00 
Turns out that it was a problem with jQuery 1.9.0. We downgraded to 1.8.3 
and it seems to be working so far. 
MarsHut Page 2/3
Fluentlenium Functional tests hang 
Tagged 
Fluentlenium Functional Tests 
Hibernate Core 
Hibernate Validator 
Public Void Invoke 
Reported Jdbc Version 
Related 
Play Framework 2.1.1 Streaming through Websockets 
Change DB Application Configuration at Runtime 
ClassCastException when testing Controller with @Authenticated and Guice 
How to modify or decorate Http.Request Object 
Help on debugging compilation errors from macros 
MyBatis-Guice configuration with Play 2.1 - Mapped Statements collection does not contain value 
Cannot get FluentLenium browser to goto localhost 
Deprecated routeAndCall() with random errors. route() produces NullPointerException 
JPA with multiple persistenceUnit 
Validate the password and confirmation passwords match 
View Online 
http://www.marshut.com/ikqpy/fluentlenium-functional-tests-hang.html 
MarsHut Page 3/3

More Related Content

What's hot

การเข ยนโปรแกรมต ดต_อฐานข_อม_ล
การเข ยนโปรแกรมต ดต_อฐานข_อม_ลการเข ยนโปรแกรมต ดต_อฐานข_อม_ล
การเข ยนโปรแกรมต ดต_อฐานข_อม_ล
Bongza Naruk
 

What's hot (14)

pdf
pdfpdf
pdf
 
ABCs of Webpagetest ( WPT )
ABCs of Webpagetest ( WPT )ABCs of Webpagetest ( WPT )
ABCs of Webpagetest ( WPT )
 
The moment my site got hacked - WordCamp Sofia
The moment my site got hacked - WordCamp SofiaThe moment my site got hacked - WordCamp Sofia
The moment my site got hacked - WordCamp Sofia
 
instaling
instalinginstaling
instaling
 
Dbm 438 week 6 ilab
Dbm 438 week 6 ilabDbm 438 week 6 ilab
Dbm 438 week 6 ilab
 
Puppet Camp Berlin 2015: Pedro Pessoa | Puppet at the center of everything - ...
Puppet Camp Berlin 2015: Pedro Pessoa | Puppet at the center of everything - ...Puppet Camp Berlin 2015: Pedro Pessoa | Puppet at the center of everything - ...
Puppet Camp Berlin 2015: Pedro Pessoa | Puppet at the center of everything - ...
 
Play Framework in EC2
Play Framework in EC2Play Framework in EC2
Play Framework in EC2
 
Groovy example in mule
Groovy example in muleGroovy example in mule
Groovy example in mule
 
Caching web contents in the browser
Caching web contents in the browserCaching web contents in the browser
Caching web contents in the browser
 
Accessing Oracle 11 g on Mac OS (10.7.5) using Oracle Virtual Box
Accessing Oracle 11 g on Mac OS (10.7.5) using Oracle Virtual Box Accessing Oracle 11 g on Mac OS (10.7.5) using Oracle Virtual Box
Accessing Oracle 11 g on Mac OS (10.7.5) using Oracle Virtual Box
 
การเข ยนโปรแกรมต ดต_อฐานข_อม_ล
การเข ยนโปรแกรมต ดต_อฐานข_อม_ลการเข ยนโปรแกรมต ดต_อฐานข_อม_ล
การเข ยนโปรแกรมต ดต_อฐานข_อม_ล
 
Integrating Tomcat And Apache On Windows
Integrating Tomcat And Apache On WindowsIntegrating Tomcat And Apache On Windows
Integrating Tomcat And Apache On Windows
 
Jetty Continuation - 이상민
Jetty Continuation - 이상민Jetty Continuation - 이상민
Jetty Continuation - 이상민
 
Installation of Joomla on Windows XP
Installation of Joomla on Windows XPInstallation of Joomla on Windows XP
Installation of Joomla on Windows XP
 

Viewers also liked (16)

PPT Day After by R
PPT Day After by RPPT Day After by R
PPT Day After by R
 
2010blast-100530124747-Blast.ppt
2010blast-100530124747-Blast.ppt2010blast-100530124747-Blast.ppt
2010blast-100530124747-Blast.ppt
 
http---cdata.nqa.sprinklr.com-DAM-5-2010blast-100530124747-Blast-cc20d154-5e0...
http---cdata.nqa.sprinklr.com-DAM-5-2010blast-100530124747-Blast-cc20d154-5e0...http---cdata.nqa.sprinklr.com-DAM-5-2010blast-100530124747-Blast-cc20d154-5e0...
http---cdata.nqa.sprinklr.com-DAM-5-2010blast-100530124747-Blast-cc20d154-5e0...
 
ppt
pptppt
ppt
 
9.EAACK---A-Secure-Intrusion-Detection-System-for-MANETs-pdf.pdf
9.EAACK---A-Secure-Intrusion-Detection-System-for-MANETs-pdf.pdf9.EAACK---A-Secure-Intrusion-Detection-System-for-MANETs-pdf.pdf
9.EAACK---A-Secure-Intrusion-Detection-System-for-MANETs-pdf.pdf
 
WishList.pdf
WishList.pdfWishList.pdf
WishList.pdf
 
Testing.ppt
Testing.pptTesting.ppt
Testing.ppt
 
New Microsoft PowerPoint Presentation2.pptx
New Microsoft PowerPoint Presentation2.pptxNew Microsoft PowerPoint Presentation2.pptx
New Microsoft PowerPoint Presentation2.pptx
 
software_testing pdf.pdf
software_testing pdf.pdfsoftware_testing pdf.pdf
software_testing pdf.pdf
 
Document.docx.docx
Document.docx.docxDocument.docx.docx
Document.docx.docx
 
from PROD1
from PROD1from PROD1
from PROD1
 
Formant. PPTX.pptx
Formant. PPTX.pptxFormant. PPTX.pptx
Formant. PPTX.pptx
 
roopa
rooparoopa
roopa
 
ata-hypothyroidism-brochure.pdf
ata-hypothyroidism-brochure.pdfata-hypothyroidism-brochure.pdf
ata-hypothyroidism-brochure.pdf
 
11.MotivationMM.pdf
11.MotivationMM.pdf11.MotivationMM.pdf
11.MotivationMM.pdf
 
all
allall
all
 

Similar to Fluentlenium Functional tests hang.pdf

1 Web Page Foundations Overview This lab walk.docx
1  Web Page Foundations Overview This lab walk.docx1  Web Page Foundations Overview This lab walk.docx
1 Web Page Foundations Overview This lab walk.docx
honey725342
 
Top SharePoint Issues SPS Event New Hampshire 2014
Top SharePoint Issues SPS Event New Hampshire 2014Top SharePoint Issues SPS Event New Hampshire 2014
Top SharePoint Issues SPS Event New Hampshire 2014
Serge Tremblay
 
SharePoint Saturday Belgium 2014 SharePoint Upgrade, real life experience and...
SharePoint Saturday Belgium 2014 SharePoint Upgrade, real life experience and...SharePoint Saturday Belgium 2014 SharePoint Upgrade, real life experience and...
SharePoint Saturday Belgium 2014 SharePoint Upgrade, real life experience and...
BIWUG
 

Similar to Fluentlenium Functional tests hang.pdf (20)

Fluentlenium Functional tests hang.pdf
Fluentlenium Functional tests hang.pdfFluentlenium Functional tests hang.pdf
Fluentlenium Functional tests hang.pdf
 
Fluentlenium Functional tests hang.pdf
Fluentlenium Functional tests hang.pdfFluentlenium Functional tests hang.pdf
Fluentlenium Functional tests hang.pdf
 
Fluentlenium Functional tests hang.pdf
Fluentlenium Functional tests hang.pdfFluentlenium Functional tests hang.pdf
Fluentlenium Functional tests hang.pdf
 
1 Web Page Foundations Overview This lab walk.docx
1  Web Page Foundations Overview This lab walk.docx1  Web Page Foundations Overview This lab walk.docx
1 Web Page Foundations Overview This lab walk.docx
 
Joomla Day Austin Part 4
Joomla Day Austin Part 4Joomla Day Austin Part 4
Joomla Day Austin Part 4
 
Creating Openbravo Workspace Widgets
Creating Openbravo Workspace WidgetsCreating Openbravo Workspace Widgets
Creating Openbravo Workspace Widgets
 
Selenium-Grid-Extras
Selenium-Grid-ExtrasSelenium-Grid-Extras
Selenium-Grid-Extras
 
Top SharePoint Issues SPS Event New Hampshire 2014
Top SharePoint Issues SPS Event New Hampshire 2014Top SharePoint Issues SPS Event New Hampshire 2014
Top SharePoint Issues SPS Event New Hampshire 2014
 
SharePoint Saturday Belgium 2014 SharePoint Upgrade, real life experience and...
SharePoint Saturday Belgium 2014 SharePoint Upgrade, real life experience and...SharePoint Saturday Belgium 2014 SharePoint Upgrade, real life experience and...
SharePoint Saturday Belgium 2014 SharePoint Upgrade, real life experience and...
 
The Rich Standard: Getting Familiar with HTML5
The Rich Standard: Getting Familiar with HTML5The Rich Standard: Getting Familiar with HTML5
The Rich Standard: Getting Familiar with HTML5
 
Executing Parallel Test Sessions with TestNG and Selenium WebDriver
Executing Parallel Test Sessions with TestNG and Selenium WebDriverExecuting Parallel Test Sessions with TestNG and Selenium WebDriver
Executing Parallel Test Sessions with TestNG and Selenium WebDriver
 
Fundamentals of HTML5
Fundamentals of HTML5Fundamentals of HTML5
Fundamentals of HTML5
 
SPSBE14 SPSBE02 SharePoint Upgrade reel life experience, best practices
SPSBE14 SPSBE02 SharePoint Upgrade reel life experience, best practicesSPSBE14 SPSBE02 SharePoint Upgrade reel life experience, best practices
SPSBE14 SPSBE02 SharePoint Upgrade reel life experience, best practices
 
Using MongoDB and a Relational Database at MongoDB Day
Using MongoDB and a Relational Database at MongoDB DayUsing MongoDB and a Relational Database at MongoDB Day
Using MongoDB and a Relational Database at MongoDB Day
 
Web browsers
Web browsersWeb browsers
Web browsers
 
Android Performance #4: Network
Android Performance #4: NetworkAndroid Performance #4: Network
Android Performance #4: Network
 
Window Shopping Browser - Bug Hunting in 2012
Window Shopping Browser - Bug Hunting in 2012Window Shopping Browser - Bug Hunting in 2012
Window Shopping Browser - Bug Hunting in 2012
 
Oracle WebLogic: Feature Timeline from WLS9 to WLS 12c
Oracle WebLogic: Feature Timeline from WLS9 to WLS 12cOracle WebLogic: Feature Timeline from WLS9 to WLS 12c
Oracle WebLogic: Feature Timeline from WLS9 to WLS 12c
 
Methodically Improving Performance of Angular Apps
Methodically Improving Performance of Angular AppsMethodically Improving Performance of Angular Apps
Methodically Improving Performance of Angular Apps
 
Selenium & PHPUnit made easy with Steward (Berlin, April 2017)
Selenium & PHPUnit made easy with Steward (Berlin, April 2017)Selenium & PHPUnit made easy with Steward (Berlin, April 2017)
Selenium & PHPUnit made easy with Steward (Berlin, April 2017)
 

More from Roopa slideshare (20)

Magnet basics
Magnet basicsMagnet basics
Magnet basics
 
what_is_science.pdf
what_is_science.pdfwhat_is_science.pdf
what_is_science.pdf
 
What is science
What is scienceWhat is science
What is science
 
roo-OB-PicklistMultiSelect
 roo-OB-PicklistMultiSelect roo-OB-PicklistMultiSelect
roo-OB-PicklistMultiSelect
 
AQ
AQAQ
AQ
 
Presentations-Tips.ppt
Presentations-Tips.pptPresentations-Tips.ppt
Presentations-Tips.ppt
 
Std10-Maths-EM-1.pdf
Std10-Maths-EM-1.pdfStd10-Maths-EM-1.pdf
Std10-Maths-EM-1.pdf
 
slide.txt
slide.txtslide.txt
slide.txt
 
new.pptx
new.pptxnew.pptx
new.pptx
 
Empty
EmptyEmpty
Empty
 
new.pptx
new.pptxnew.pptx
new.pptx
 
slide.txt
slide.txtslide.txt
slide.txt
 
slide1.rtf
slide1.rtfslide1.rtf
slide1.rtf
 
Std10-Maths-EM-1.pdf
Std10-Maths-EM-1.pdfStd10-Maths-EM-1.pdf
Std10-Maths-EM-1.pdf
 
Std10-Maths-EM-1.pdf
Std10-Maths-EM-1.pdfStd10-Maths-EM-1.pdf
Std10-Maths-EM-1.pdf
 
this is USer
this is USerthis is USer
this is USer
 
Daily inspiration
Daily inspirationDaily inspiration
Daily inspiration
 
Empty
EmptyEmpty
Empty
 
New
NewNew
New
 
slide.txt
slide.txtslide.txt
slide.txt
 

Fluentlenium Functional tests hang.pdf

  • 1. Fluentlenium Functional tests hang Asked by Tony Childs on 2013-04-10T18:55:29-04:00 I've got a simple test that should start a browser and go to a URL, but it hangs: @Test public void runInBrowser() { running(testServer(9000), FIREFOX, new Callback() { public void invoke(TestBrowser browser) { browser.goTo("http://localhost:3333/admin"); }); Firefox starts and then the test just hangs without navigating to the URL provided. I see only the following console log (INFO) [37minfo [0m] play - datasource [jdbc:db2://url-removed] bound to JNDI as DefaultDS [ [37minfo [0m] o.h.a.c.Version - HCANN000001: Hibernate Commons Annotations {4.0.1.Final} [ [37minfo [0m] o.h.Version - HHH000412: Hibernate Core {4.1.7.Final} [ [37minfo [0m] o.h.c.Environment - HHH000206: hibernate.properties not found [ [37minfo [0m] o.h.c.Environment - HHH000021: Bytecode provider name : javassist [ [37minfo [0m] o.h.d.Dialect - HHH000400: Using dialect: org.hibernate.dialect.DB2Dialect [ [37minfo [0m] o.h.e.j.i.LobCreatorBuilder - HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4 [ [37minfo [0m] o.h.e.t.i.TransactionFactoryInitiator - HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jdbc.JdbcTransactionFactory [ [37minfo [0m] o.h.h.i.a.ASTQueryTranslatorFactory - HHH000397: Using ASTQueryTranslatorFactory [ [37minfo [0m] o.h.v.i.u.Version - HV000001: Hibernate Validator 4.3.0.Final [ [37minfo [0m] application - Application has started [ [37minfo [0m] application - DEVELOPMENT The same test runs when I use HTMLUNIT in place of FIREFOX. Any tips would be appreciated. Thanks, Tony Archives Framework Play Framework Apr 10, 2013 Week 15, 2013 MarsHut Page 1/3
  • 2. Fluentlenium Functional tests hang April, 2013 Year 2013 All Answers Answer by Tony Childs on 2013-04-11T13:13:57-04:00 I've now noticed that HTMLUNIT also hangs when I go to /admin/people. I'm wondering if Angular.js has anything to do with it Answer by Max Begenau on 2013-04-11T15:17:11-04:00 Hi Tony, as far as I can see AngularJS has been tested with IE8 and above. The default HtmlUnitDriver browser used by play is Internet Explorer 7(The current trunkof HtmlUnit uses IE8 as default). So yes, problems can arise from JavaScript (also have a look at this blog post I found). I encountered hangs when using HTMLUNIT with my jQuery based application, but in contrast to your case the FIREFOX WebDriver worked flawlessly*. You may try using HTMLUNIT with Firefox browser version. To do so, use: FluentAdapter ff10_browser = new FluentAdapter(new HtmlUnitDriver( BrowserVersion.FIREFOX_10)) *What Firefox version do you use? Selenium tries to install an Add-On to Firefox, but the shipped xpi is not compatible with recent browser. To update, add the following line to your Build.scala: "org.seleniumhq.selenium" % "selenium-java" % "2.31.0", Good luck! Max Answer by Mathilde Rigabert LemeÌ•e on 2013-04-11T16:18:19-04:00 Hi Tony, selenium-java 2.32.0 have been released so same as Max except for the version "org.seleniumhq.selenium" % "selenium-java" % "2.32.0", Does that work ? Mathilde Le jeudi 11 avril 2013 00:55:29 UTC+2, Tony Childs a écrit : Answer by Tony Childs on 2013-04-12T15:13:01-04:00 Turns out that it was a problem with jQuery 1.9.0. We downgraded to 1.8.3 and it seems to be working so far. MarsHut Page 2/3
  • 3. Fluentlenium Functional tests hang Tagged Fluentlenium Functional Tests Hibernate Core Hibernate Validator Public Void Invoke Reported Jdbc Version Related Play Framework 2.1.1 Streaming through Websockets Change DB Application Configuration at Runtime ClassCastException when testing Controller with @Authenticated and Guice How to modify or decorate Http.Request Object Help on debugging compilation errors from macros MyBatis-Guice configuration with Play 2.1 - Mapped Statements collection does not contain value Cannot get FluentLenium browser to goto localhost Deprecated routeAndCall() with random errors. route() produces NullPointerException JPA with multiple persistenceUnit Validate the password and confirmation passwords match View Online http://www.marshut.com/ikqpy/fluentlenium-functional-tests-hang.html MarsHut Page 3/3