Skip to content

PHPUnit\Framework\Exception Undefined offset: 43 on running the mftf default tests #757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rajateshr opened this issue Jul 14, 2020 · 3 comments

Comments

@rajateshr
Copy link

Details:Chrome driver version: 83,Mftf version: Magento Functional Testing Framework CLI 2.6.5,PHP 7.2.31,Magento version:2.3.5-p1, Selenium Server version is:selenium-server-standalone-3.141.59, Chrome browser version: 83.0.4103.116

Test data in .env file:
MAGENTO_BASE_URL=http://localhost/magento2/
MAGENTO_BACKEND_NAME=admin
MAGENTO_ADMIN_USERNAME=admin
MAGENTO_ADMIN_PASSWORD=admin123
BROWSER=chrome
MODULE_WHITELIST=Magento_Framework,Magento_ConfigurableProductWishlist,Magento_ConfigurableProductCatalogSearch

Under command prompt,I run the mftf test using the command:C:\xampp\htdocs\magento2\vendor\bin>mftf run:test AdminLoginTest

I am getting the below error as:
UndefinedOffsetIssue
UndefinedOffsetIssue1

PHPUnit\Framework\Exception Undefined offset: 43

Scenario --
ERROR


15x DEPRECATION: Calling the "Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()" method with the event name as the first argument is deprecated since Symfony 4.3, pass it as the second argument and provide the event object as the first argument instead. C:\xampp\htdocs\magento2\vendor\symfony\event-dispatcher\EventDispatcher.php:58

Scenario Steps:

  1. // Entering Action Group [loginAsAdmin] LoginAsAdmin

#1 C:\xampp\htdocs\magento2\vendor\magento\magento2-functional-testing-framework\src\Magento\FunctionalTestingFramework\Codeception\Subscriber\Console.php:236
#2 C:\xampp\htdocs\magento2\vendor\magento\magento2-functional-testing-framework\src\Magento\FunctionalTestingFramework\Codeception\Subscriber\Console.php:165
#3 C:\xampp\htdocs\magento2\vendor\magento\magento2-functional-testing-framework\src\Magento\FunctionalTestingFramework\Codeception\Subscriber\Console.php:130
#4 C:\xampp\htdocs\magento2\vendor\symfony\event-dispatcher\EventDispatcher.php:264
#5 C:\xampp\htdocs\magento2\vendor\symfony\event-dispatcher\EventDispatcher.php:239
#6 C:\xampp\htdocs\magento2\vendor\symfony\event-dispatcher\EventDispatcher.php:73
#7 C:\xampp\htdocs\magento2\dev\tests\acceptance\tests\functional\Magento\FunctionalTest_generated\default\AdminLoginTestCest.php:35
#8 Magento\AcceptanceTest_default\Backend\AdminLoginTestCest->AdminLoginTest

ERRORS!
Tests: 1, Assertions: 0, Errors: 1.

@m2-assistant
Copy link

m2-assistant bot commented Jul 14, 2020

Hi @rajateshr. Thank you for your report.
To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


@jilu1
Copy link
Contributor

jilu1 commented Jul 27, 2020

@rajateshr We have Jenkins builds for almost all branches and did not seem to have this issue. I think it maybe an environment or setup issue. Have you gone through steps documented in https://github.com/magento/magento2-functional-testing-framework/blob/develop/docs/getting-started.md before running the test?

@jilu1
Copy link
Contributor

jilu1 commented Dec 15, 2020

@rajateshr
Feel free to reopen if you still has this issue.

@jilu1 jilu1 closed this as completed Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants