Questions tagged [codeception]

Codeception stands out as a cutting-edge full-stack testing framework designed specifically for PHP. Drawing inspiration from BDD principles, it offers a comprehensive approach to creating acceptance, functional, and unit tests alike. It leverages the power of PHPUnit to deliver top-notch testing capabilities.

The Codeception method for checking JSON types in responses is not effectively validating fields

Having trouble with API test public function loginAsRegisteredUser(ApiTester $I) { $I->wantTo('Login as registered user'); $I->sendPOST('/action.php?ap=V4&p=Customer&c=Customer&a=login',['customer' => ['email' => $this-> ...

Running tests with and without javascript functionality in Codeception can be achieved by utilizing the appropriate configurations and

When it comes to Codeception acceptance tests, I find myself needing to verify various behaviors both with and without Javascript. Currently, I am able to execute all tests with Javascript enabled using Selenium, and without javascript using PhpBrowser. ...

Selecting a checkbox that lacks any specific attributes

My predicament revolves around a certain checkbox that lacks any distinguishing attributes for identification. Despite my attempts with xpath, I have not been able to successfully interact with it. Below, you will find the complete HTML code snippet where ...

Issue with setting cookie in Codeception and Selenium

My Selenium test is failing when trying to set a cookie, despite reducing the code to its simplest form. It seems that setting cookies is not working at all in this case. /** * Test if we can set simple cookies * * @param \AcceptanceTester $i * ...

Selenium ChromeDriver encountered an issue loading a resource: net::ERR_CONNECTION_CLOSED

When running acceptance tests with Codeception using WebDriver and a Docker Selenium standalone server, I encountered an error that resulted in the following log message: [Selenium browser Logs] 13:59:52.345 SEVERE - https://ssl.google-analytics.com/ga ...

Navigating between windows in Selenium with Webdriver - Handling unnamed child windows

Currently, I am conducting acceptance testing using webdriver and codeception. This is a relatively new area for me, so your patience is much appreciated. My current challenge involves switching to a child window that pops up after clicking a button: < ...

Error Encountered: Codeception WebCurlException

Currently, I am using Codeception in conjunction with Selenium Webdriver and encountering a WebCurlException Error once I execute codecept.phar. Here are the steps I've taken: 1. I initiated the selenium stand alone server jar file via the command prompt ...

Getting started with Codeception may not always be straightforward: [PHPUnitFrameworkException] Error encountered - Element index not defined

After following the Codeception Quick Start instructions diligently, I proceeded to run the initial example test using PhpBrowser... # Codeception Test Suite Configuration # # [further comments omitted] # actor: AcceptanceTester modules: enabled: ...

What is the best way to determine if an image has successfully loaded in Codeception tests?

I need to verify whether the Verisign logo images are loading correctly $I->seeElement('DIV#security IMG.verisign'); However, my current test is passing even when the image is not loaded (e.g. for a 404 error if the file name of the source is incorrec ...