-
Notifications
You must be signed in to change notification settings - Fork 248
Getting Started with MFTF
Ihor Sviziev edited this page Oct 11, 2019
·
8 revisions
-
Disable
Add Secret Key in URLs
option inStores->Configuration->Admin->Security
. -
Run the Selenium Server:
- Download the latest Selenium Server Standalone JAR.
- Download a Selenium web driver for your web browser into the same directory that contains the Selenium server.
- Add the directory with the web driver to PATH.
- Run the Selenium server in terminal (or other command line interface):
java -jar <path_to_selenium_directory>/selenium-server-standalone-<version>.jar
Below is a rough overview of the key steps outlined in the Official MFTF Dev Docs tailored to Extension Developers and the MSI project.
- Clone MSI Repo:
*
git clone https://github.com/magento/inventory.git [PATH_TO_MAGENTO_MSI]
-
CD to the acceptance test directory of msi:
cd [PATH_TO_MAGENTO_MSI]/dev/tests/acceptance
- Install the dependencies:
composer install
- Build the project:
./vendor/bin/robo build:project
- Locate and Open the .env file.
- Fill in the minimal necessary details:
#Magento Base url. It should include `index.php/` if rewrites rules are not enabled. MAGENTO_BASE_URL=http://magento.url/ #Magento backend route name MAGENTO_BACKEND_NAME=admin #admin username MAGENTO_ADMIN_USERNAME=admin #admin password MAGENTO_ADMIN_PASSWORD=admin123
- Generate the tests:
./vendor/bin/robo generate:tests
- Execute the MSI group of the tests in Single Source/Stock Mode:
cd [PATH_TO_MAGENTO_MSI]/dev/tests/acceptance
./vendor/bin/robo group single_mode
- Execute the MSI group of the tests in Multi Source/Stock Mode:
cd [PATH_TO_MAGENTO_MSI]/dev/tests/acceptance
./vendor/bin/robo group multi_mode
Multi-Source Inventory developed by Magento 2 Community
- Technical Vision. Catalog Inventory
- Installation Guide
- List of Inventory APIs and their legacy analogs
- MSI Roadmap
- Known Issues in Order Lifecycle
- MSI User Guide
- 2.3 LIVE User Guide
- MSI Release Notes and Installation
- Overview
- Get Started with MSI
- MSI features and processes
- Global and Product Settings
- Configure Source Selection Algorithm
- Create Sources
- Create Stock
- Assign Inventory and Product Notifications
- Configure MSI backorders
- MSI Import and Export Product Data
- Mass Action Tool
- Shipment and Order Management
- CLI reference
- Reports and MSI
- MSI FAQs
- DevDocs Documentation
- Manage Inventory Management Modules (install/upgrade info)
- Inventory Management
- Reservations
- Inventory CLI reference
- Inventory API reference
- Inventory In-Store Pickup API reference
- Order Processing with Inventory Management
- Managing sources
- Managing stocks
- Link and unlink stocks and sources
- Manage source items
- Perform bulk actions
- Manage Low-Quantity Notifications
- Check salable quantities
- Manage source selection algorithms
- User Stories
- Support of Store Pickup for MSI
- Product list assignment per Source
- Source assignment per Product
- Stocks to Sales Channel Mapping
- Adapt Product Import/Export to support multi Sourcing
- Introduce SourceCode attribute for Source and SourceItem entities
- Assign Source Selector for Processing of Returns Credit Memo
- User Scenarios:
- Technical Designs:
- Module Structure in MSI
- When should an interface go into the Model directory and when should it go in the Api directory?
- Source and Stock Item configuration Design and DB structure
- Stock and Source Configuration design
- Open Technical Questions
- Inconsistent saving of Stock Data
- Source API
- Source WebAPI
- Sources to Sales Channels mapping
- Service Contracts MSI
- Salable Quantity Calculation and Mechanism of Reservations
- StockItem indexation
- Web API and How To cover them with Functional Testing
- Source Selection Algorithms
- Validation of Domain Entities
- PHP 7 Syntax usage for Magento contribution
- The first step towards pre generated IDs. And how this will improve your Integration tests
- The Concept of Default Source and Domain Driven Design
- Extension Point of Product Import/Export
- Source Selection Algorithm
- SourceItem Entity Extension
- Design Document for changing SerializerInterface
- Stock Management for Order Cancelation
- Admin UI
- MFTF Extension Tests
- Weekly MSI Demos
- Tutorials