From b19fcc340d2ec296af538606ffc0df512ed2fdd0 Mon Sep 17 00:00:00 2001 From: NissimHadar Date: Thu, 5 Apr 2018 10:01:29 -0700 Subject: [PATCH] Start test steps from 1 (not from 0). --- tools/auto-tester/src/Test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/auto-tester/src/Test.cpp b/tools/auto-tester/src/Test.cpp index e900ecbeae..5d8b9115b8 100644 --- a/tools/auto-tester/src/Test.cpp +++ b/tools/auto-tester/src/Test.cpp @@ -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;