PHPUnit_Extensions_Selenium2TestCase vs PHPUnit_Extensions_SeleniumTestCase

599 views
Skip to first unread message

wil...@ordercloud.co.za

unread,
Jul 15, 2013, 12:54:14 PM7/15/13
to seleniu...@googlegroups.com
Hi Guys

I am new to Selenium and not to sure what the difference is between the above mentioned two. I have "selenium-server-standalone-2.33.0.jar" running with phpunit 3.7 in Yii framework. Yii comes with built in support for selenium and extends PHPUnit_Extensions_SeleniumTestCase class. 

Now this actually works quite great and I can run basic test cases (assert elements are present), but what I actually am also trying to do is insert details into a form and then submit it. I have seen examples of it this, but it uses the "PHPUnit_Extensions_Selenium2TestCase" class and I have tried to use it but it doesn't seem to work with the stand alone server...

I am new to selenium and it feels like I am missing something, will appreciate any help, even if it is telling me that I am an idiot...

David

unread,
Jul 16, 2013, 3:25:08 PM7/16/13
to seleniu...@googlegroups.com
PHPUnit_Extensions_SeleniumTestCase = for use with Selenium RC (will use RC interface, even if you use latest Selenium server JAR)

PHPUnit_Extensions_Selenium2TestCase = for use with Selenium 2 / WebDriver

So depends on which Selenium you want to use. The server JAR supports both. What problems you have with the Selenium2 version? Please post/clarify.

arpa...@gmail.com

unread,
Nov 19, 2013, 6:53:16 AM11/19/13
to seleniu...@googlegroups.com
I am finding some problems with both these classes. some methods do not work in PHPUnit_Extensions_SeleniumTestCase and it is very confusing as to why is such happening.

Bruce MacKenzie

unread,
Nov 20, 2013, 11:25:35 AM11/20/13
to seleniu...@googlegroups.com
I've played with this for the last few months and have come across some solutions.
The difference between Selenium2 and Selenium is Selenium uses Selenium Remote Control (RC) which is older and deprecated. Selenium2 is for web driver which is what people are continuing to develop. Personally  I like the older, you have more options in the test scripts.
What I would suggest is ad on selenium IDE to fire fox, get the php developers add on. Now record your test. Through options you can change your programing to phpunit which will change it to a SeleniumTestCase. Whith a little tweaking this will be good to go.
If you really want the Selenium2 there is a nice converter which takes the IDE HTML and converts it to a Selenium2TestCase, it works great but not all the commands are available so it takes a lot more tweaking.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/1932e5b0-a0dc-4b56-899b-87edf4aa377f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages