-
Notifications
You must be signed in to change notification settings - Fork 248
Tips and Tricks
Tom Erskine edited this page Nov 2, 2018
·
16 revisions
-
PHPStorm 2017.1+ Codeception Support
- PHPStorm 2017.1+ has a Codeception Test Runner that provides incredibly useful tools for debugging Codeception based tests. Please review their Blog post regarding how to setup the Test Runner.
-
PHPStorm 2017 Template Files
- PHPStorm has a feature were you can setup Templates for files that you create often. Please review their post regarding how to setup Live Templates.
-
Metadata
- If you are automating a feature of the Admin that is used often, i.e. "Adding a Product", you should look into creating the Metadata for the object you are trying to create via the UI. This will allow you to quickly setup the same entity in the future without "driving" the UI saving you LOTS of time in your test.
-
TOOL(s)
- Charles Proxy - Capture Network Traffic: https://www.charlesproxy.com/download/
- Start Charles Proxy and begin recording.
- Create the entity you need using the Admin UI.
- Locate the POST request for your Store.
- The POST request will have most of the details that you will need for your MetaData.
- Charles Proxy - Capture Network Traffic: https://www.charlesproxy.com/download/
-
Action Groups
- Available Action Groups worth noting:
- LoginAsAdmin
- LogoutOfAdmin
- AdminSaveAndClose
- AdminGridSearchByKeyword(VALUE)
- AdminGridFilterSearchResultsByInput(SELECTOR, VALUE)
- AdminClearGridFiltersIfPresent
- Available Action Groups worth noting:
-
List Existing Files
-
CD to the acceptance test directory:
cd [PATH_TO_MAGENTO_MSI]/dev/tests/acceptance
-
Locate a list of Action Groups, Pages, Sections, Data and Meta Data in Magento2 using the following Terminal commands:
ls -lG tests/functional/Magento/FunctionalTest/*/ActionGroup
ls -lG tests/functional/Magento/FunctionalTest/*/Data
ls -lG tests/functional/Magento/FunctionalTest/*/Metadata
ls -lG tests/functional/Magento/FunctionalTest/*/Page
ls -lG tests/functional/Magento/FunctionalTest/*/Section
-
Locate a list of Action Groups, Pages, Sections, Data and Meta Data in MSI Modules using the following Terminal commands:
ls -lG ../../../app/code/Magento/Inventory*/Tests/Mftf/ActionGroup
ls -lG ../../../app/code/Magento/Inventory*/Tests/Mftf/Data
ls -lG ../../../app/code/Magento/Inventory*/Tests/Mftf/Metadata
ls -lG ../../../app/code/Magento/Inventory*/Tests/Mftf/Page
ls -lG ../../../app/code/Magento/Inventory*/Tests/Mftf/Section
ls -lG ../../../app/code/Magento/Inventory*/Tests/Mftf/Test
-
-
Decrease local test runs times by disabling AllureAdapter
- Performance of running MFTF tests locally can be significantly improved by removing the MagentoAllureAdapter Module from Codeception and replacing with a standard Allure Adapter
- However, this will disable the ability to have Allure reporting from your local runs. The standard adapter will not be usable with MFTF data.
- To do so, replace the line
Magento\FunctionalTestingFramework\Allure\Adapter\MagentoAllureAdapter
from theextensions : enabled
block of thecodeception.yml
file toYandex\Allure\Adapter\AllureAdapter
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