PHPUnit is a free framework for testing PHP-scripts.

learn more… | top users | synonyms

1
vote
2answers
561 views

Need help to get drop down in a list (phpunit+selenium2)

I am new in Phpunit and selenium2. Need help to get all the values of drop-down in a list. <select id="month" class="_5dba" title="Month" name="birthday_month" aria-label="Month"> <option ...
3
votes
3answers
357 views

PHPUnit Selenium2TestCase BadMethodCallException

I have installed selenium-server-standalone-2.33.0.jar, phpUnit, selenium extension for phpUnit. This test runs ok: $this->url('/'); $this->assertEquals('my title',$this->title()); But ...
2
votes
3answers
80 views

Which approach should be used for late tests in large projects?

I'm working in a very huge PHP project, but for many reasons the whole project was never tested until now. FYI, the project consists in a lightweight enterprise PHP framework based on Laravel. My ...
1
vote
1answer
19 views

My Application is in Php, Using XAMPP SQL [closed]

SQL have one field i.e. Date My application's UI have three drop down Day Month Year I inserted its value using CONCAT $c3date= @trim(stripslashes($_POST['c3year']. '-' . $_POST['c3month'] . ...
0
votes
1answer
804 views

Selenium: Best way to capture unexpected error?

I know how to check values and create tests and do the error handling if something fails, but what I din't found anywhere was the following: A test case tests specific things. But what when ...
3
votes
1answer
108 views

A test case needs 5 mins of wait. During these 5 mins I want to run other test cases

A test case needs 5 mins of wait. During these 5 mins I want to run other test cases. After 5 mins I want to check the necessary condition of 1st test case which is on hold for last 5 mins. How to ...
0
votes
1answer
416 views

Run the test JS and PHP in parallel via CircleCI

I use circle to run JS and PHP test (Protractor/ Phpunit). I would like use parallelism to win time but i don't know configure the parallelism. I activate the parallelism in the circle parameters (2 ...
4
votes
3answers
984 views

How do I simulate a right click using Selenium 2 and PHPUnit?

I am trying to execute a functional test using Selenium 2 and PHPUnit. In the class 'Selenium2TestCase.php', I found this code: class PHPUnit_Extensions_Selenium2TestCase_SessionCommand_Click ...
1
vote
1answer
164 views

PHPUnit Selenium2 calling a function

I am testing with PHPUnit and Selenium2. I am testing the admin panel. So, I need to add Admin Login Test into all my admin panel tests. I want to create a new Admin Login Test with a new file and I ...