1,470 questions
0
votes
0
answers
119
views
How can I retrieve the HTTP response code without actual verification?
I'm searching for a way to get the HTTP response code in Codeception without actually verifying it in API tests (end-to-end).
Composer.json:
"codeception/codeception": ">=5.1.2&...
-1
votes
1
answer
150
views
PHP 8.5: "register_argc_argv must be set to On for running Codeception"
When running Codeception in PHP 8.5, I'm getting:
PHP Fatal error: Uncaught Codeception\Exception\ConfigurationException: register_argc_argv must be set to On for running Codeception
0
votes
0
answers
49
views
Using JSON Schema's external references ($ref) with Codeception's seeResponseIsValidOnJsonSchema()
I'm trying to validate responses in Codeception using seeResponseIsValidOnJsonSchema() method which uses JSON Schema for PHP library. The problem is that it looks like JSON Schema "external" ...
0
votes
1
answer
53
views
Codeception method seeResponseContainsJson returns an error when trying to match data containing Russian letters
My Test:
$I->wantTo("Create new claim");
$I->haveHttpHeader('accept', 'application/json');
$I->haveHttpHeader('content-type', 'application/json; charset=utf-8');
$I->...
0
votes
1
answer
130
views
Selenium doesn't pick the right MUI-X Datepicker (SSR related bug?)
I encountered a problem using codeception with selenium. I tried to write an acceptance test for some forms and with codeception using selenium. But i'm struggling with the MUI-X Datepickers.
The ...
0
votes
2
answers
38
views
Interactive Console while running unit test in Codeception
We have 2 scenarios:
Account Binding (registering a bank account number to a service)
Verify OTP (input the otp code sent via customer's mobile phone)
Some response from the Account Binding used in ...
0
votes
0
answers
59
views
Mailcatcher HTTP/1 is not supported
I am using Mailcatcher when doing testing with codeception in an Github Actions.
Installing it like this:
- name: Install & run mailcatcher
run: |
sudo gem install mailcatcher --no-...
0
votes
0
answers
164
views
Testing with PHP Infection
I cover my project with unit tests. I'm using infection and codeception v5. Also I install bypass-finals extension, cause project has a lot of final classes. I guess because of the presence of final ...
2
votes
1
answer
99
views
Codeception: Acceptance test is running as the first test in the test group, where API test is defined as the first test in the group: How to resolve?
I use Codeception framework and Netbeans IDE for my test automation using PHP.
I would like to run 2 tests one after another in a group, where the API test will run first and after the successful run ...
0
votes
1
answer
177
views
Codeception: Symfony fixtures are not being autowired
I have a pretty simple repository test case:
class AmaRepositoryCest
{
public function _before(FunctionalTester $I)
{
$I->loadFixtures(AmaFixture::class);
}
public function ...
0
votes
1
answer
163
views
get php version which codeception tests are running
I'm trying to upgrade my project's php version from php 7.4 to php 8.1,
Now I changed the php version in my composer.json to php 8.1 like that:
"require": {
"php": "^8.1&...
-1
votes
2
answers
95
views
The test does not see the data from the fixture
I have a fixture to fill in the test user
namespace Tests\Fixture;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Persistence\ObjectManager;
use App\Entity\User;
final class UserFixture ...
1
vote
1
answer
142
views
Use Symfony TestContainer in an environment not called "test"
I write a unit test in CodeCception, my config Unit.suite.yml
actor: UnitTester
modules:
enabled:
- Asserts
- Symfony:
environment: 'autotest'
step_decorators: ~
I have a ...
1
vote
1
answer
127
views
not able to setup api testing codeception for yii2
I am working on project built in yii2 and the front end is angular 12 and i am trying to integrate api testing in my project (locally), i am following the documentation but not able to integrate it ...
0
votes
0
answers
59
views
testing a link with codeception
I'm using codeception for the first time, and I'm trying to test a symfony route that has parameters. When I run the test, it doesn't get to the page and the test fails. I've never used codeception, ...