Skip to content

404 Error during the test running #45

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
DeepPopat opened this issue Mar 5, 2018 · 5 comments
Closed

404 Error during the test running #45

DeepPopat opened this issue Mar 5, 2018 · 5 comments

Comments

@DeepPopat
Copy link

I have installed Magento v2.2.2 with sample data, and then install "Magento functional testing framework" with respect to the Magento devdocs step, After that run test based on default test cases, I got 404 error in most of admin side test.

Preconditions

  1. Browser version chrome 63
  2. Selenium v2.44.0,
  3. PHP 7.0.25-0ubuntu0.16.04.1
  4. Magento 2.2.2 ,MFTF

Steps to reproduce

  1. All the magento default test successfully passed by default magento

Expected result

  1. I got 404 error in most of admin side test.

Actual result

  1. [Logs, Errors]
    screenshot-from-2018-03-05-16-24-25
@okolesnyk
Copy link
Member

okolesnyk commented Mar 6, 2018

Hello @DeepPopat
Did you specify MAGENTO_BACKEND_NAME in .env file located in <magento_root>/dev/tests/acceptance?

Here is an example file located at the same directory https://github.com/magento/magento2/blob/2.2-develop/dev/tests/acceptance/.env.example#L34

Please add your .env file so I will be able to verify basic configuration is correct.

@DeepPopat
Copy link
Author

DeepPopat commented Mar 6, 2018

Hello @okolesnyk
Yes, I specify MAGENTO_BACKEND_NAME in .env file located in <magento_root>/dev/tests/acceptance

Please guide me, if I am on the wrong way
My ".env" file is...

#Copyright © Magento, Inc. All rights reserved.
#See COPYING.txt for license details.

#*** Start of example .env ***#

MAGENTO_BASE_URL=http://127.0.0.1:32772/

MAGENTO_BACKEND_NAME=admin

MAGENTO_ADMIN_USERNAME=admin

MAGENTO_ADMIN_PASSWORD=123123q

SELENIUM_HOST=127.0.0.1

SELENIUM_PORT=4444

SELENIUM_PROTOCOL=http

SELENIUM_PATH=/wd/hub

MAGENTO_RESTAPI_SERVER_HOST=127.0.0.1

MAGENTO_RESTAPI_SERVER_PORT=32769

TESTS_BP=/Users/First_Last/GitHub/magento2ce/dev/tests/acceptance/tests/functional

FW_BP=/Users/First_Last/GitHub/magento2-functional-testing-framework

TESTS_MODULE_PATH=/Users/First_Last/GitHub/magento2ce/dev/tests/acceptance/tests/functional/Magento/FunctionalTest

MODULE_WHITELIST=Magento_NewModule

#*** End of example .env ***#

#*** Start of .env ***#

#*** Set the base URL for your Magento instance ***#
MAGENTO_BASE_URL=http://192.168.0.43/Deep/Deep/magentoCOMP/

#*** Set the Admin Username and Password for your Magento instance ***#
MAGENTO_BACKEND_NAME=admin_ynrk3r
MAGENTO_ADMIN_USERNAME=admin
MAGENTO_ADMIN_PASSWORD=Admin@123

#*** Selenium Server Protocol, Host, Port, and Path, with local defaults. Uncomment and change if not running Selenium locally.
#SELENIUM_HOST=127.0.0.1
#SELENIUM_PORT=4444
#SELENIUM_PROTOCOL=http
#SELENIUM_PATH=/wd/hub

#*** Uncomment and set host & port if your dev environment needs different value other than MAGENTO_BASE_URL for Rest API Requests ***#
#MAGENTO_RESTAPI_SERVER_HOST=
#MAGENTO_RESTAPI_SERVER_PORT=

#*** Uncomment these properties to set up a dev environment with symlinked projects ***#
#TESTS_BP=
#FW_BP=
#TESTS_MODULE_PATH=
#MODULE_WHITELIST=
#MFTF_DEBUG=true

#*** End of .env ***#

@DeepPopat
Copy link
Author

Hello Sir @okolesnyk
Can you please guide me more to fix this error?

@okolesnyk
Copy link
Member

Hi @DeepPopat
Sorry for such long response!

I think test tries to open Magento admin and waiting Login page. But probably you are already logged in. Maybe by other test or you did it manually.
Try to verify while test running and error occurs in browser test opens login form and not a admin dashboard page.

@okolesnyk okolesnyk self-assigned this Apr 5, 2018
@okolesnyk
Copy link
Member

@DeepPopat
We are closing this issue due to inactivity. If you'd like to update it, please reopen the issue.

magento-cicd2 pushed a commit that referenced this issue Mar 31, 2021
…2-functional-testing-framework-824

[Imported] fix typo in doc
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

3 participants