-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAGETWO-70803: [GITHUB] Inconsistent CSV file Import error: #7495
- Added automated test script
- Loading branch information
1 parent
c240fda
commit 9fe4384
Showing
5 changed files
with
203 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...agento/ImportExport/Test/Mftf/Test/AdminProductImportCSVFileCorrectDifferentFilesTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="AdminProductImportCSVFileCorrectDifferentFilesTest"> | ||
<annotations> | ||
<description value="Product import from CSV file correct from different files."/> | ||
<features value="Import/Export"/> | ||
<title value="Product import from CSV file correct from different files."/> | ||
<severity value="MAJOR"/> | ||
<testCaseId value="MC-17104"/> | ||
<useCaseId value="MAGETWO-70803"/> | ||
<group value="importExport"/> | ||
</annotations> | ||
<before> | ||
<!--Login as Admin--> | ||
<comment userInput="Login as Admin" stepKey="commentLogin"/> | ||
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> | ||
</before> | ||
<after> | ||
<!--Logout from Admin--> | ||
<comment userInput="Logout from Admin" stepKey="commentLogout"/> | ||
<actionGroup ref="logout" stepKey="logoutFromAdmin"/> | ||
</after> | ||
<!--Check data products with add/update behavior--> | ||
<comment userInput="Check data products with add/update behavior" stepKey="commentCheckData"/> | ||
<actionGroup ref="checkDataForImportProductActionGroup" stepKey="adminImportProducts"> | ||
<argument name="behavior" value="Add/Update"/> | ||
<argument name="importFile" value="BB-ProductsWorking.csv"/> | ||
<argument name="importMessage" value="Checked rows: 28, checked entities: 28, invalid rows: 0, total errors: 0"/> | ||
</actionGroup> | ||
<see selector="{{AdminImportMainSection.messageSuccess}}" userInput='File is valid! To start import process press "Import" button' stepKey="seeSuccessMessage"/> | ||
<actionGroup ref="checkDataForImportProductActionGroup" stepKey="adminImportProducts1"> | ||
<argument name="behavior" value="Add/Update"/> | ||
<argument name="importFile" value="BB-Products.csv"/> | ||
<argument name="importMessage" value="Checked rows: 117, checked entities: 115, invalid rows: 2, total errors: 2"/> | ||
<argument name="checkMessage" value='Curly quotes used instead of straight quotes in row(s): 84, 85'/> | ||
</actionGroup> | ||
<see selector="{{AdminImportMainSection.messageError}}" userInput='Curly quotes used instead of straight quotes in row(s): 84, 85' stepKey="seeErrorMessage"/> | ||
</test> | ||
</tests> |
Oops, something went wrong.