cancel
Showing results for 
Search instead for 
Did you mean: 

MFTF is not entering the frontend url but chrome driver is launching on running the command 'mftf ru

MFTF is not entering the frontend url but chrome driver is launching on running the command 'mftf ru

I have ran the below command to run one MFTF default frontend test case:

C:\xampp\htdocs\magento2app\vendor\bin>mftf run:test EndToEndB2CLoggedInUserTest --remove

Data in .env file:

MAGENTO_BASE_URL=http://localhost/magento2app/MAGENTO_BACKEND_NAME=admin
MAGENTO_ADMIN_USERNAME=admin
MAGENTO_ADMIN_PASSWORD=admin123
BROWSER=ChromeMODULE_WHITELIST=Magento_Framework,ConfigurableProductWishlist,ConfigurableProductCatalogSearch,EndToEndB2CGuestUserTest,StorefrontCreateCustomerTest,StorefrontForgotPasswordTest,AdminLoginTestELASTICSEARCH_VERSION=7

 

Command for running chromedriver:

C:\Selenium>java -Dwebdriver.chrome.driver=C:/Selenium/chromedriver.exe -jar selenium-server-standalone-3.141.59.jar

 

OutPut: Chrome browser is launching successfully.But url is not entering

Console error logs:

EndToEndB2CLoggedInUserTestCest: End to end b2 c logged in user testSignature: Magento\AcceptanceTest\_SearchEngineMysqlSuite\Backend\EndToEndB2CLoggedInUserTestCest:EndToEndB2CLoggedInUserTest
Test: tests\functional\Magento\FunctionalTest\_generated\SearchEngineMysqlSuite\EndToEndB2CLoggedInUserTestCest.php:EndToEndB2CLoggedInUserTest
Scenario --

/******** Beginning execution of SearchEngineMysqlSuite suite before block ********/

/******** Execution of SearchEngineMysqlSuite suite before block complete ********/ INCOMPLETE: SUITE PRECONDITION FAILED:
Error HTTP response code: 403    Response:Given command not found valid in Magento CLI Command list.

/******** Beginning execution of SearchEngineMysqlSuite suite after block ********/

/******** Execution of SearchEngineMysqlSuite suite after block complete ********/
------------------------------------------------------------------------------------------------------------------------
17x 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\magento2app\vendor\symfony\event-dispatcher\EventDispatcher.php:58


Time: 4.51 minutes, Memory: 188.00MB

There was 1 incomplete test:

---------
1) EndToEndB2CLoggedInUserTestCest: End to end b2 c logged in user test
 Test  tests\functional\Magento\FunctionalTest\_generated\SearchEngineMysqlSuite\EndToEndB2CLoggedInUserTestCest.php:EndToEndB2CLoggedInUserTestSUITE PRECONDITION FAILED:
Error HTTP response code: 403    Response:Given command not found valid in Magento CLI Command list.OK, but incomplete, skipped, or risky tests!
Tests: 1, Assertions: 0, Incomplete: 1