-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Magento Test Framework giving the failure results for Magento 2.1.0 ce #6227
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
Comments
Hi @shahankit783, Could you, please, change your hostname from 'localhost' to something like 'localhost.com', cURL isn't not working correctly in this case. Also, could you tell what is the version of your web browser and selenium server? One more item, pay attention to the app_backend_url, it must be exact the same as the url after login to the Magento admin, if it contains index.php in it, it must be also specified in the phpunit.xml. |
Hello, Chrome Browser: Version 52.0.2743.116 m (64-bit) app_backend_url :- http://localhost.com:8080/magento2.1.0ce/admin_iaa328/ |
Could you, please, use stable selenium server releases: http://selenium-release.storage.googleapis.com/index.html (for example, 2.53) |
I have tried to run it with selenium-server-standalone-2.53.1.jar with chrome browser. The most common error in all failure test cases is "Exception: Configuration settings are not applied! Url: http://localhost.com:8080/magento2.1.0ce/admin_iaa328/admin/system_config/save/section/admin" Manually URL which i fired in browser :- after login it will redirected to below URL: It might be possible that i am missing some of the configuration settings in magento 2.1.ce. I have followed the configuration and settings from following URL only: If magento needs to be configured manually for different modules, then can you please suggest which are the settings that needs to be apply before running MTF. PS: I am novice in magento and i am working with MTF to verify the magento provided testcases. |
Add '/' at the end of the backend url I guess, it's mistake, but the host name according to your words should be localhost.con, not localhost. Also, have you set your credentials to log in to the admin? Could you, please, attach the curl response error. It should be in the folder dev/tests/functional/var/log/magento /module/test_case/variation/curl-response |
Yes in phpunit.xml it is the same as you have mentioned . app_backend_url ="http://localhost.com:8080/magento2.1.0ce/admin_iaa328/" |
What is about curl response? |
Yes, I have applied the same settings as mentioned in that guide. The following is stack of error: PHPUnit 4.1.0 by Sebastian Bergmann. Configuration read from D:\wamp64\www\magento2.1.0ce\dev\tests\functional\phpunit.xml Time: 52.57 seconds, Memory: 55.75MB There was 1 error:
D:\wamp64\www\magento2.1.0ce\dev\tests\functional\tests\app\Magento\Config\Test\Handler\ConfigData\Curl.php:126 |
It's not a curl response, it's stack trace response. |
Please see the attached file which shows Curl Response. From the Curl Response as you can see it is trying to go to the "http://localhost:8080/magento2.1.0ce/pub/static/frontend/Magento/luma/en_US" url , but as it is not found it gives 404 error. |
According to response to send request to "http://localhost:8080/magento2.1.0ce/" not to "http://localhost.com:8080/magento2.1.0ce/" |
When i manually run the both URLs ("http://localhost:8080/magento2.1.0ce/" or "http://localhost.com:8080/magento2.1.0ce/") in browser it works same and fine. But when you read the Curl_Response file it shows the base URL is"http://localhost:8080/magento2.1.0ce/pub/static/frontend/Magento/luma/en_US". so Until pub URL is working. but after that the URL is not working. |
Have you reinstalled Magento after changing host name or updated Magento base URLs? |
when i tried to change the URLs , I observed that localhost:8080 works same as localhost.com:8080 from WAMP server. So I have just changed the URLs in configuration file only |
Please, check whether the localhost.com is specified as a Magento backend url, if not change it and flush cache. |
Yes, it is localhost.com only. Please see the below file configurations: phpunit.xml : config.xml : And I haven't made any changes in credentials.xml . |
I meant in Magento application, not in functional test configuration. |
Yes , I have made the changes in Base URLs under Stores->Configuration->General->Web. But it gives the same error as it was giving earlier. |
The base URL should be localhost.com, like in phpunit.xml (Or it was previously localhost.com?) |
Yes it is same as phpunit.xml In Configuration file: In Magento application: |
Thank you so much for spending your valuable time to fix this issue and helping me out from this problem. It started executing test cases. PS: Though it is failing , at least it started running. Thank you again Dmytro!!! :) |
[Arrows] Fixes for 2.4 (pr95) (2.4-develop)
When I tried to run the default testcases of magento 2.1.0 ce using MTF , only few of the test cases are passing rest of all are failing. I had also changed the xml file configurations for the same
Preconditions
Test Run Steps:
1)Go to Magento Root Directory:
cd magento2.1\dev\tests\functional
Now run the test case execution by following command:
vendor\bin\phpunit
I am also running the specific group by following command:
**vendor\bin\phpunit --group "Bundle_Product_(CS)"
Expected result
Most of the test cases should "PASS" as per the Dev-docs.
Actual result
Failure Error:
Though there are many failure reasons but the very common Exception it shows is : "Configuration settings are not applied! Url: http://localhost:8080/magento2.1.0ce/admin_iaa328/admin/system_config/save/section/admin"
Please find the attached zip file in which i have added 3 configuration files (modified for running test cases)
Config_files.zip
Please provide the solution or the steps for configuration (if I missed any)
Thanks!!!!
The text was updated successfully, but these errors were encountered: