Start test steps from 1 (not from 0).

This commit is contained in:
NissimHadar 2018-04-05 10:01:29 -07:00
parent 2fbe6f9393
commit b19fcc340d

View file

@ -640,7 +640,7 @@ void Test::createMDFile() {
int snapShotIndex { 0 };
for (size_t i = 0; i < testScriptLines.stepList.size(); ++i) {
stream << "### Step " << QString::number(i) << "\n";
stream << "- " << testScriptLines.stepList[i]->text << "\n";
stream << "- " << testScriptLines.stepList[i + 1]->text << "\n";
if (testScriptLines.stepList[i]->takeSnapshot) {
stream << "- ![](./ExpectedImage_" << QString::number(snapShotIndex).rightJustified(5, '0') << ".png)\n";
++snapShotIndex;