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
0
votes
1answer
30 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 ...
1
vote
2answers
56 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 ...
1
vote
0answers
31 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 ...
1
vote
0answers
176 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) { $...
1
vote
3answers
66 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 ...
1
vote
1answer
488 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/...
1
vote
1answer
666 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="...
0
votes
1answer
398 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. ...
0
votes
1answer
72 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 ...
1
vote
1answer
193 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 ?
7
votes
3answers
11k views

How to deactivate a rule in SonarQube?

I want to deactivate a particular rule. I am checking my php code. Eg: This branch's code block is the same as the block for the branch This is the rule I deactivate I go through quality profile-->...
1
vote
0answers
22 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:\...
4
votes
3answers
460 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, ...
3
votes
1answer
159 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 ...
0
votes
1answer
265 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 ...
2
votes
2answers
6k 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(...
1
vote
1answer
392 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?
1
vote
1answer
347 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/...
2
votes
3answers
101 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
38 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'] . '-' ...
2
votes
0answers
105 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.
1
vote
2answers
699 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(...
2
votes
3answers
240 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 ...
1
vote
1answer
266 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/ ...
5
votes
1answer
258 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 ...
0
votes
1answer
1k 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 ...
1
vote
1answer
556 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 ...
5
votes
3answers
553 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 ...
1
vote
1answer
231 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 ...
3
votes
3answers
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 ...
3
votes
2answers
351 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 ...
3
votes
1answer
896 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.