File tree Expand file tree Collapse file tree 3 files changed +41
-3
lines changed
CatalogImportExport/Test/Mftf/Test Expand file tree Collapse file tree 3 files changed +41
-3
lines changed Original file line number Diff line number Diff line change 28
28
<requiredEntity createDataKey =" createAttributeSet" />
29
29
</createData >
30
30
31
- <magentoCron stepKey =" runCron" />
31
+ <magentoCLI command =" cron:run" arguments =" --group index" stepKey =" cronRun" />
32
+ <magentoCLI command =" cron:run" arguments =" --group index" stepKey =" cronRunToStartReindex" />
32
33
<actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
33
34
</before >
34
35
<after >
48
49
<!-- Export created below products -->
49
50
<actionGroup ref =" ExportAllProductsActionGroup" stepKey =" exportCreatedProducts" />
50
51
51
- <magentoCron stepKey =" runCronIndex" groups =" index" />
52
-
52
+ <!-- Start message queue for export consumer -->
53
+ <actionGroup ref =" AdminStartMessageQueueConsumerActionGroup" stepKey =" startMessageQueue" />
54
+ <reloadPage stepKey =" pageReload" />
55
+ <waitForPageLoad stepKey =" waitForPageLoaded" />
53
56
<grabTextFrom selector =" {{AdminExportAttributeSection.exportFileNameByPosition('0')}}" stepKey =" grabNameFile" />
54
57
55
58
<!-- Download product -->
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AdminStartMessageQueueConsumerActionGroup" >
12
+ <annotations >
13
+ <description >Starts message queue for specific consumer.</description >
14
+ </annotations >
15
+ <arguments >
16
+ <argument name =" consumer" defaultValue =" AdminExportMessageConsumerData" />
17
+ </arguments >
18
+
19
+ <magentoCLI command =" queue:consumers:start {{consumer.consumer_name}} --max-messages={{consumer.message_limit}}" stepKey =" startMessageQueue" />
20
+ <wait time =" 30" stepKey =" waitForQueueStarting" />
21
+ </actionGroup >
22
+ </actionGroups >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+ <entities xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd" >
9
+ <entity name =" AdminExportMessageConsumerData" >
10
+ <data key =" consumer_name" >exportProcessor</data >
11
+ <data key =" message_limit" >100</data >
12
+ </entity >
13
+ </entities >
You can’t perform that action at this time.
0 commit comments