Questions tagged [php]
PHP is a widely used server based scripting language. To learn more please visit http://php.net/
33
questions
1
vote
3
answers
60
views
Is this way to automated test for php upgrade feasible?
We are upgrading from php 7 to php 8 on our backend. There is a smoke-test automation in place to verify the expected functionaly.
I am thinking if it is feasible to read our php code base and look ...
5
votes
1
answer
151
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 ...
0
votes
1
answer
344
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
2
answers
652
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
0
answers
37
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 ...
2
votes
0
answers
238
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
3
answers
86
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
1
answer
744
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
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="...
0
votes
2
answers
1k
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
1
answer
85
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
1
answer
237
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 ?
1
vote
0
answers
24
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
3
answers
675
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
1
answer
172
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
1
answer
423
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
2
answers
10k
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
1
answer
497
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
1
answer
556
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/...
3
votes
3
answers
145
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
1
answer
41
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'] . '-' ...
3
votes
0
answers
136
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.
RFC is related to Software Quality [3].
1
vote
2
answers
732
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
3
answers
291
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
1
answer
369
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
1
answer
465
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
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 ...
1
vote
1
answer
581
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
3
answers
623
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
1
answer
254
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 ...
4
votes
4
answers
8k
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
2
answers
365
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
1
answer
911
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.