File tree Expand file tree Collapse file tree 5 files changed +38
-30
lines changed
app/code/Magento/CatalogImportExport/Test/Mftf/Test Expand file tree Collapse file tree 5 files changed +38
-30
lines changed Original file line number Diff line number Diff line change 48
48
<requiredEntity createDataKey =" createSecondSimpleProduct" />
49
49
</updateData >
50
50
51
- <!-- Run cron twice -->
52
- <magentoCLI command =" cron:run" stepKey =" runCron1" />
53
- <magentoCLI command =" cron:run" stepKey =" runCron2" />
51
+ <comment userInput =" Reindex invalidated indices" stepKey =" runCron1" />
52
+ <actionGroup ref =" CliRunReindexUsingCronJobsActionGroup" stepKey =" runCron2" />
54
53
55
54
<!-- Login as admin -->
56
55
<actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin" />
80
79
<!-- Export created below products -->
81
80
<actionGroup ref =" exportAllProducts" stepKey =" exportCreatedProducts" />
82
81
83
- <!-- Run cron -->
84
- <magentoCLI command =" cron:run" stepKey =" runCron3" />
85
- <magentoCLI command =" cron:run" stepKey =" runCron4" />
82
+ <comment userInput =" Start message queue for export consumer" stepKey =" runCron3" />
83
+ <actionGroup ref =" CliConsumerStartActionGroup" stepKey =" runCron4" >
84
+ <argument name =" consumerName" value =" {{AdminExportMessageConsumerData.consumerName}}" />
85
+ <argument name =" maxMessages" value =" {{AdminExportMessageConsumerData.messageLimit}}" />
86
+ </actionGroup >
86
87
87
88
<!-- Download product -->
88
89
<actionGroup ref =" downloadFileByRowIndex" stepKey =" downloadCreatedProducts" >
Original file line number Diff line number Diff line change 73
73
<requiredEntity createDataKey =" createConfigSecondChildProduct" />
74
74
</createData >
75
75
76
- <!-- Run cron twice -->
77
- <magentoCLI command =" cron:run" stepKey =" runCron1" />
78
- <magentoCLI command =" cron:run" stepKey =" runCron2" />
76
+ <comment userInput =" Reindex invalidated indices after product attribute has been created/deleted" stepKey =" runCron1" />
77
+ <actionGroup ref =" CliRunReindexUsingCronJobsActionGroup" stepKey =" runCron2" />
79
78
80
79
<!-- Login as admin -->
81
80
<actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin" />
110
109
<argument name =" attributeData" value =" $$createConfigProduct.sku$$" />
111
110
</actionGroup >
112
111
113
- <!-- Run cron -->
114
- <magentoCLI command =" cron:run" stepKey =" runCron3" />
115
- <magentoCLI command =" cron:run" stepKey =" runCron4" />
112
+ <comment userInput =" Start message queue for export consumer" stepKey =" runCron3" />
113
+ <actionGroup ref =" CliConsumerStartActionGroup" stepKey =" runCron4" >
114
+ <argument name =" consumerName" value =" {{AdminExportMessageConsumerData.consumerName}}" />
115
+ <argument name =" maxMessages" value =" {{AdminExportMessageConsumerData.messageLimit}}" />
116
+ </actionGroup >
116
117
117
118
<!-- Download product -->
118
119
<actionGroup ref =" downloadFileByRowIndex" stepKey =" downloadCreatedProducts" >
Original file line number Diff line number Diff line change 89
89
<requiredEntity createDataKey =" createConfigProduct" />
90
90
</createData >
91
91
92
- <!-- Run cron twice -->
93
- <magentoCLI command =" cron:run" stepKey =" runCron1" />
94
- <magentoCLI command =" cron:run" stepKey =" runCron2" />
92
+ <comment userInput =" Reindex invalidated indices after product attribute has been created/deleted" stepKey =" runCron1" />
93
+ <actionGroup ref =" CliRunReindexUsingCronJobsActionGroup" stepKey =" runCron2" />
95
94
96
95
<!-- Login as admin -->
97
96
<actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin" />
125
124
<argument name =" attributeData" value =" $$createConfigProduct.sku$$" />
126
125
</actionGroup >
127
126
128
- <!-- Run cron -->
129
- <magentoCLI command =" cron:run" stepKey =" runCron3" />
130
- <magentoCLI command =" cron:run" stepKey =" runCron4" />
127
+ <comment userInput =" Start message queue for export consumer" stepKey =" runCron3" />
128
+ <actionGroup ref =" CliConsumerStartActionGroup" stepKey =" runCron4" >
129
+ <argument name =" consumerName" value =" {{AdminExportMessageConsumerData.consumerName}}" />
130
+ <argument name =" maxMessages" value =" {{AdminExportMessageConsumerData.messageLimit}}" />
131
+ </actionGroup >
131
132
132
133
<!-- Download product -->
133
134
<actionGroup ref =" downloadFileByRowIndex" stepKey =" downloadCreatedProducts" >
Original file line number Diff line number Diff line change 71
71
<requiredEntity createDataKey =" createConfigSecondChildProduct" />
72
72
</createData >
73
73
74
- <!-- Run cron twice -->
75
- <magentoCLI command =" cron:run" stepKey =" runCron1" />
76
- <magentoCLI command =" cron:run" stepKey =" runCron2" />
74
+ <comment userInput =" Reindex invalidated indices after product attribute has been created/deleted" stepKey =" runCron1" />
75
+ <actionGroup ref =" CliRunReindexUsingCronJobsActionGroup" stepKey =" runCron2" />
77
76
78
77
<!-- Login as admin -->
79
78
<actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin" />
108
107
<!-- Export created below products -->
109
108
<actionGroup ref =" exportAllProducts" stepKey =" exportCreatedProducts" />
110
109
111
- <!-- Run cron -->
112
- <magentoCLI command =" cron:run" stepKey =" runCron3" />
113
- <magentoCLI command =" cron:run" stepKey =" runCron4" />
110
+ <comment userInput =" Start message queue for export consumer" stepKey =" runCron3" />
111
+ <actionGroup ref =" CliConsumerStartActionGroup" stepKey =" runCron4" >
112
+ <argument name =" consumerName" value =" {{AdminExportMessageConsumerData.consumerName}}" />
113
+ <argument name =" maxMessages" value =" {{AdminExportMessageConsumerData.messageLimit}}" />
114
+ </actionGroup >
114
115
115
116
<!-- Download product -->
116
117
<actionGroup ref =" downloadFileByRowIndex" stepKey =" downloadCreatedProducts" >
Original file line number Diff line number Diff line change 28
28
<requiredEntity createDataKey =" createAttributeSet" />
29
29
</createData >
30
30
31
- <!-- Run cron twice -->
32
- <magentoCLI command =" cron:run" stepKey =" runCron1" />
33
- <magentoCLI command =" cron:run" stepKey =" runCron2" />
31
+ <comment userInput =" Reindex invalidated indices after product attribute has been created/deleted" stepKey =" runCron1" />
32
+ <actionGroup ref =" CliRunReindexUsingCronJobsActionGroup" stepKey =" runCron2" />
34
33
35
34
<!-- Login as admin -->
36
35
<actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin" />
48
47
</actionGroup >
49
48
<!-- Log out -->
50
49
<actionGroup ref =" logout" stepKey =" logout" />
50
+
51
+ <!-- Reindex invalidated indices after product attribute has been created/deleted -->
52
+ <actionGroup ref =" CliRunReindexUsingCronJobsActionGroup" stepKey =" reindexInvalidatedIndices" />
51
53
</after >
52
54
53
55
<!-- Go to export page -->
57
59
<!-- Export created below products -->
58
60
<actionGroup ref =" exportAllProducts" stepKey =" exportCreatedProducts" />
59
61
60
- <!-- Run cron -->
61
- <magentoCLI command =" cron:run" stepKey =" runCron3" />
62
- <magentoCLI command =" cron:run" stepKey =" runCron4" />
62
+ <comment userInput =" Start message queue for export consumer" stepKey =" runCron3" />
63
+ <actionGroup ref =" CliConsumerStartActionGroup" stepKey =" runCron4" >
64
+ <argument name =" consumerName" value =" {{AdminExportMessageConsumerData.consumerName}}" />
65
+ <argument name =" maxMessages" value =" {{AdminExportMessageConsumerData.messageLimit}}" />
66
+ </actionGroup >
63
67
64
68
<!-- Download product -->
65
69
<actionGroup ref =" downloadFileByRowIndex" stepKey =" downloadCreatedProducts" >
You can’t perform that action at this time.
0 commit comments