2022 Developer Survey is open! Take survey.

Questions tagged [php]

PHP is a widely used server based scripting language. To learn more please visit http://php.net/

Filter by
Sorted by
Tagged with
5 votes
0 answers
106 views

How to load test video streaming with traffic, internally?

We use centos 6, apache prefork, PHP 5, MySQL, and we have Wowza streaming engine on a different server. Nothing is on the cloud, we have on-premise servers. We'd like to test a couple of things ...
user avatar
  • 151
0 votes
1 answer
251 views

How to verify laravel default flash messages in selenium?

How can i verify any laravel default flash message in selenium? Whether it displayed or not after the execution ? I can't locate the flash message as it was showing after page load. Providing my ...
user avatar
  • 197
1 vote
2 answers
411 views

Behat tests take over an hour to run

We have a test suite of around 60 feature files, 135 scenarios, 1800 steps. We currently use the free 100 builds on semaphoreCI which occasionally successfully runs all of the tests, but quite often ...
user avatar
1 vote
0 answers
35 views

Technology limitations for web application that scrapes web pages [closed]

I am starting the development of a web platform that provides automated tasks to users, and I have been redirected to this forum after asking the same question in stackoverflow and not being accepted ...
user avatar
2 votes
0 answers
232 views

Laravel codeception api testing test structure

I want to test all my API endpoints with codeception. I started off with a more model-based approach: class UserCest { public function it_can_request_its_own_status (ApiTester $I) { ...
user avatar
  • 149
1 vote
3 answers
79 views

Testing at scale

I'm part of a team building a relatively large platform that needs high code coverage in its testing. With code coverage: 1 hour of execution Without code coverage: 10min of execution We are just at ...
user avatar
1 vote
1 answer
677 views

Selenium File Upload [duplicate]

Having an issue trying to upload a file via php unit through selenium. This is the code for my current attempt. public function testFileUpload() { $filePath = '/Users/cdolan/Desktop/...
user avatar
  • 375
1 vote
1 answer
1k views

Selenium PHP select dropdown

Trying to select a dropdown and select an item from the list. Here is the dom for the dropdown. <li id="nav-galleries" class="dropdown header-dropdown hidden-xs hidden-sm"> <a class="...
user avatar
  • 375
0 votes
2 answers
823 views

How to get all test cases from a project through testlink api?

I can only see methods to retrieve the test cases if they are bind with any plan. (getTestCasesForTestPlan). I want to retrieve all the test cases written by the user before its used in a plan. ...
user avatar
0 votes
1 answer
79 views

Legacy Code Testing with Jenkins on PHP

We are trying to integrate pull request based testing into our legacy code and the problem is there are lot of errors and warnings needs to be fixed. So, our first step is while merging new branches ...
user avatar
  • 121
1 vote
1 answer
223 views

Sonarqube Custom rule [closed]

I have a php code to check using sonarqube. I got how to create a new rule. I don't know hot to set rule for the php code. What should I do ?
user avatar
1 vote
0 answers
23 views

Error when setup mantis [closed]

I have install xampp server in my pc. and i have download mantis and trying to configuration mantis in my pc. i have sollw below step: 1)download mantis 2)paste mantis downloaded folder into the E:\...
user avatar
4 votes
3 answers
654 views

How to perform static code analysis?

I am working as QA.I want to test the static code analysis of my project. How to get start this ? Can you suggest a good tool to perform static code analysis ? My project is running in php, python, ...
user avatar
3 votes
1 answer
164 views

Testing without external data?

The plugin, that I am writing in php, is getting data from an external api. I have gathered some sample-data which the api sends (array). Now I would like to create tests to make sure that the plugin ...
user avatar
0 votes
1 answer
386 views

Behat/mink - Javascript redirect on page->open

Using behat/mink, I'm testing the "remember me" functionality. Functionally, when the user visits the main page, javascript/ajax code verifies if the user is "remembered". If yes, then the ...
user avatar
  • 183
2 votes
2 answers
9k views

How to verify no /tr /td rows exist in a table?

I am verifying text using these Xpaths, $I->CanSeeElement("//tbody[contains(tr/td/div/table/tbody/tr/td[1]/text(),$this->Secondarycustomer)]"); $I->CanSeeElement("//tbody[contains(...
user avatar
1 vote
1 answer
476 views

How to setup Behat for Magento on Mac with MAMP?

We have a Magento shop and want BDD-tests for our system - locally and later on server side. How can I setup an Behat environment on my mac with MAMP?
user avatar
  • 157
1 vote
1 answer
510 views

Why does behat call my context class twice?

When I want run my behat test like in this tutorial, I get an error message: ➜ test.dev bin/behat --suite=system PHP Fatal error: Cannot redeclare class SystemContext in /Applications/MAMP/htdocs/...
user avatar
  • 157
3 votes
3 answers
133 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 ...
user avatar
  • 133
1 vote
1 answer
40 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'] . '-' ...
user avatar
2 votes
0 answers
119 views

Response for a class (RFC) metric tools for PHP [closed]

Is there any tools to calculate Response for a class (RFC) metric for PHP? Both PhpMetrics and PHP Depend don't support it. Thanks.
user avatar
1 vote
2 answers
728 views

Automation Testing with Ranorex [closed]

I am new to automation testing. I am testing my web application (php) using ranorex automation tool. Whenever I record my test case, it is recording perfectly but when I play my test case it stops(...
user avatar
  • 11
2 votes
3 answers
278 views

Testability analysis for PHP

Is there any tool that reports on the testability of a PHP codebase? I'm familiarised with what makes the code unit-testable, but I need a way to visualize it so I can easily find which classes can ...
user avatar
1 vote
1 answer
363 views

Decoupling Unit Tests

I'm trying to learn how to write unit tests the 'proper' way and only test a specific component. (Using http://blog.stevensanderson.com/2009/08/24/writing-great-unit-tests-best-and-worst-practises/ ...
user avatar
  • 111
5 votes
1 answer
411 views

"Each PHP statement must be on a line by itself" Sonarqube pattern error

I'm analyzing a PHP code using Sonarqube, and I've noticed that in almost all files I have this error: "Each PHP statement must be on a line by itself" (DisallowMultipleStatementsSameLine) But when ...
user avatar
  • 239
0 votes
1 answer
2k 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 ...
user avatar
  • 119
1 vote
1 answer
577 views

Selenium and PHP

As I read on the net, Selenium tests should be written in the language of the App if this is possible. Our intranet-application is written in PHP. I was able to get Selenium working with PHPUnit but ...
user avatar
  • 119
5 votes
3 answers
600 views

PHPUnit Selenium-2 Test Case 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 ...
user avatar
1 vote
1 answer
241 views

WebDriver tests run on mac, but on windows the PHP session cannot be deleted, therefore cannot get past login screen

We have a CakePHP application and our WebDriver tests run fine on mac. We have moved a copy of the app and the tests to a windows machine so tests can also be developed there. This is so we are able ...
user avatar
  • 468
4 votes
4 answers
7k views

What automation tools to use with PHP development?

I've used Selenium IDE to test Drupal (PHP) sites but want to create more advanced tests with loops and such. I hear Selenium WebDriver is all the rage, but when I google it, all these terms pop up ...
user avatar
  • 49
3 votes
2 answers
359 views

Is there a way to copy a bug submitted in one mantis bug tracker instance to another?

Our problem is development has multiple mantis bug tracking databases that contain multiple projects for multiple products. From a QA perspective we would like to submit a bug only once in our version ...
user avatar
  • 31
3 votes
1 answer
908 views

Is there any automation tool for Symfony 2 framework in PHP

Is there any automation tool for Symfony 2 framework in PHP? If so, please suggest me some sites that help me study the tool.
user avatar