Question

  1. I installed MFTF and selenium accoring to https://devdocs.magento.com/mftf/docs/getting-started.html

  2. I run:

    $ java -Dwebdriver.chrome.driver=chromedriver -jar selenium-server-standalone-3.141.59.jar 
    17:27:35.423 INFO [GridLauncherV3.parse] - Selenium server version: 3.141.59, revision: e82be7d358
    17:27:35.480 INFO [GridLauncherV3.lambda$buildLaunchers$3] - Launching a standalone Selenium Server on port 4444
    2021-03-21 17:27:35.514:INFO::main: Logging initialized @232ms to org.seleniumhq.jetty9.util.log.StdErrLog
    17:27:35.667 INFO [WebDriverServlet.<init>] - Initialising WebDriverServlet
    17:27:35.727 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 4444
    
  3. From another console I run:

    vendor/bin/codecept run functional -c dev/tests/acceptance/codeception.yml
    Codeception PHP Testing Framework v4.1.18
    Powered by PHPUnit 9.1.5 by Sebastian Bergmann and contributors.
    
    Magento\FunctionalTestingFramework.functional Tests (4097) -------------------------------------------------------------------------------------------
    - AdminAdobeStockConfigTestCest: Admin adobe stock config test
    /******** Beginning execution of AdobeStockIntegrationConfigurationSuite suite before block ********/
    
    In MagentoWebDriver.php line 853:
    
      Suite condition failure:                   
      Call to a member function close() on null  
    

I see that Chromium was started, but I don't see any activity there. What am I doing wrong? How to run tests properly?

Magento 2.4.2(MFTF3)

Chromium 89.0.4389.90 snap (webd

OS Ubuntu 20.04

During installation I spotted these issue: vendor/bin/mftf generate:tests

NOTICE: 324 Section name violations detected. See mftf.log for details.[]
NOTICE: 780 section element name violations detected. See mftf.log for details.[]
NOTICE: 388 data entity name violations detected. See mftf.log for details.[]
NOTICE: 18 data entity key violations detected. See mftf.log for details.[]
NOTICE: 470 action group name violations detected. See mftf.log for details.[]
NOTICE: 47 Page name violations detected. See mftf.log for details.[]
NOTICE: Suite 'InventoryB2bSingleModeSuite' contains no tests and won't be generated.[]
NOTICE: Suite 'InventoryEeSingleModeSuite' contains no tests and won't be generated.[]
Generate Tests Command Run

When I run

$ vendor/bin/mftf doctor


 Requesting API token for admin user through cURL ...

                                                                                                                        
 [OK] Successful                                                                                                        
                                                                                                                        

 Connecting to Selenium Server ...

                                                                                                                        
 [ERROR] Failed to connect Selenium WebDriver at: http://127.0.0.1:4444/wd/hub.                                         
         Please make sure that Selenium Server is running.                                                              
                                                                                                                        

 Loading Admin page ...

                                                                                                                        
 [ERROR] Failed to load page at url: http://esw-serhiy.ngrok.io/magento24ee/pub/admin/admin                             
         Please check Selenium Browser session have access to Magento instance.                                         
                                                                                                                        

 Loading Storefront page ...

                                                                                                                        
 [ERROR] Failed to load page at url: http://esw-serhiy.ngrok.io/magento24ee/pub/                                        
         Please check Selenium Browser session have access to Magento instance.                                         
                                                                                                                        

 Running Magento CLI ...

                                                                                                                        
 [ERROR] Failed to run Magento CLI command                                                                              
         Please reference Magento DevDoc to setup command.php and .htaccess files.                                      

                                                                                                                    

http://127.0.0.1:4444/wd/hub is responding, i see "No sessions" by that URL.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top