Why is Selenium launching the first test of my test suite?

I am using a standalone Selenium v2.3.0 server for Windows XP (sp2). I notice that when I try to run my html package against Firefox, only the first test is launched, and then Selenium Runner just sits there, doing nothing. The team I use

java -debug -jar c:/selenium/selenium-server-standalone-2.3.0.jar -port 4444 -userExtensions c:/selenium/user-extensions.js -htmlSuite *chrome http://www.stage.mycliusa.com c:/selenium/test/suite.html c:/selenium/report2.html 

The contents of the HTML content file are as follows. Interestingly, when I run the same command, switching "chrome" to "* iehta", everything works fine. Any ideas why Firefox tests stop after the first test? - Dave

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta content="text/html; charset=UTF-8" http-equiv="content-type" /> <title>mycli USA Tests - Critical Path/Live/EX</title> </head> <body> <table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody> <tr><td><b>mycli USA Tests - Critical Path/Live/EX</b></td></tr> <tr><td><a href="mycliConfigNewEXJourneyAWD">mycliConfigNewEXJourneyAWD</a></td></tr> <tr><td><a href="mycliContactRetailerOldEX">mycliContactRetailerOldEX</a></td></tr> <tr><td><a href="mycliRAQOldEX35Base">mycliRAQOldEX35Base</a></td></tr> <tr><td><a href="mycliPreApprovedEX35">mycliPreApprovedEX35</a></td></tr> <tr><td><a href="mycliContactRetailerNewEX35AWD">mycliContactRetailerNewEX35AWD</a></td></tr> <tr><td><a href="mycliJMLHandraiserEX">mycliJMLHandraiserEX</a></td></tr> <tr><td><a href="mycliRABEBrochureEX">mycliRABEBrochureEX</a></td></tr> <tr><td><a href="mycliContactRetailerNewEXJourneyAWD">mycliContactRetailerNewEXJourneyAWD</a></td></tr> <tr><td><a href="mycliConfigNewEX35Base">mycliConfigNewEX35Base</a></td></tr> <tr><td><a href="mycliConfigNewEX35AWD">mycliConfigNewEX35AWD</a></td></tr> <tr><td><a href="mycliRABMailEX">mycliRABMailEX</a></td></tr> <tr><td><a href="mycliContactRetailerNewEX35Base">mycliContactRetailerNewEX35Base</a></td></tr> <tr><td><a href="mycliRABBothEX">mycliRABBothEX</a></td></tr> <tr><td><a href="mycliSATDEX">mycliSATDEX</a></td></tr> <tr><td><a href="mycliConfigOldEX35">mycliConfigOldEX35</a></td></tr> <tr><td><a href="mycliContactRetailerNewEX35Journey">mycliContactRetailerNewEX35Journey</a></td></tr> <tr><td><a href="mycliConfigNewEXJourney">mycliConfigNewEXJourney</a></td></tr> </tbody></table> </body> </html> 
+6
source share
2 answers

The problem is that Selenium (using the -htmlSuite option) cannot process files properly without the .html extension. When I renamed the files and ran the tests again, they sailed right through. This error is described here - http://code.google.com/p/selenium/issues/detail?id=1208 .

+8
source

The first function starting with "test" + fucntionName will work and therefore will call all the functions inside it, for example

this.f1 (); this.f2 ()

Inside this feature!

0
source

Source: https://habr.com/ru/post/894866/


All Articles