From 71619cf84b10e398e3e931f4cc3c5ddf69f47c0a Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Fri, 27 Aug 2021 14:32:07 +0530 Subject: [PATCH] feat: test report pie chart --- components/http/TestResult.vue | 51 ++++++++-------------------- components/http/TestResultEntry.vue | 13 +++---- components/http/TestResultReport.vue | 45 ++++++++++++++++++++++++ helpers/testSnippets.js | 5 ++- 4 files changed, 66 insertions(+), 48 deletions(-) create mode 100644 components/http/TestResultReport.vue diff --git a/components/http/TestResult.vue b/components/http/TestResult.vue index 63bf76400..83ec777c1 100644 --- a/components/http/TestResult.vue +++ b/components/http/TestResult.vue @@ -1,10 +1,15 @@ + + diff --git a/helpers/testSnippets.js b/helpers/testSnippets.js index 06d12f814..239f819b7 100644 --- a/helpers/testSnippets.js +++ b/helpers/testSnippets.js @@ -9,9 +9,8 @@ pw.test("Status code is 200", ()=> { { name: "Response: Assert property from body", script: `\n\n// Check JSON response property -pw.test("Status code is 200", ()=> { - const body = pw.response.body.json(); - pw.expect(body.property).toBe("value"); +pw.test("Check JSON response property", ()=> { + pw.expect(pw.response.method).toBe("GET"); });`, }, {