From 5ec2ab642ee3f838399be5d845f5441ad1079792 Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Tue, 12 Sep 2023 17:27:35 +0100 Subject: [PATCH 01/25] update to use linear schema format --- .../test_benchmark_business_happy_path.json | 262 ++++++++++++++++++ 1 file changed, 262 insertions(+) create mode 100644 requests/test_benchmark_business_happy_path.json diff --git a/requests/test_benchmark_business_happy_path.json b/requests/test_benchmark_business_happy_path.json new file mode 100644 index 00000000..44d84f74 --- /dev/null +++ b/requests/test_benchmark_business_happy_path.json @@ -0,0 +1,262 @@ +{ + "requests": [ + { + "method": "GET", + "url": "/questionnaire/introduction-block/" + }, + { + "method": "POST", + "url": "/questionnaire/introduction-block/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/block379/" + }, + { + "method": "POST", + "url": "/questionnaire/block379/", + "data": { + "answer434": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/block380/" + }, + { + "method": "POST", + "url": "/questionnaire/block380/", + "data": { + "answerfrom-day": "1", + "answerfrom-month": "05", + "answerfrom-year": "2019", + "answerto-day": "1", + "answerto-month": "08", + "answerto-year": "2019" + } + }, + { + "method": "GET", + "url": "/questionnaire/block381/" + }, + { + "method": "POST", + "url": "/questionnaire/block381/", + "data": { + "answer436": "100", + "answer437": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/block4616/" + }, + { + "method": "POST", + "url": "/questionnaire/block4616/", + "data": { + "answer5873": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/block4952/" + }, + { + "method": "POST", + "url": "/questionnaire/block4952/", + "data": { + "answer6287": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/block4953/" + }, + { + "method": "POST", + "url": "/questionnaire/block4953/", + "data": { + "answer6288": "One-off increase in stocks" + } + }, + { + "method": "GET", + "url": "/questionnaire/block383/" + }, + { + "method": "POST", + "url": "/questionnaire/block383/", + "data": { + "answer439": "" + } + }, + { + "method": "GET", + "url": "/questionnaire/primary-person-list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/primary-person-list-collector/", + "data": { + "you-live-here": "Yes" + }, + "redirect_route": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/", + "data": { + "first-name": "Joe", + "last-name": "Bloggs" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/skip-first-block/" + }, + { + "method": "POST", + "url": "/questionnaire/skip-first-block/", + "data": { + "skip-first-block-answer": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/first-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/first-number-block/", + "data": { + "first-number-answer": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/first-and-a-half-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/first-and-a-half-number-block/", + "data": { + "first-and-a-half-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/second-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/second-number-block/", + "data": { + "second-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/currency-total-playback-1/" + }, + { + "method": "POST", + "url": "/questionnaire/currency-total-playback-1/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/questions-section/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/questions-section/", + "data": {}, + "redirect_route": "/questionnaire/people/{persons_1_list_id}/third-number-block/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{persons_1_list_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{persons_1_list_id}/third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{persons_1_list_id}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{persons_1_list_id}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{persons_1_list_id}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{persons_1_list_id}/mutually-exclusive-checkbox/", + "data": { + "checkbox-answer": "{calc_value_2}" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{persons_1_list_id}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{persons_1_list_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "400", + "set-maximum-answer": "200" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{persons_1_list_id}" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{persons_1_list_id}/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/submit/" + }, + { + "method": "POST", + "url": "/questionnaire/submit/", + "data": {} + }, + { + "method": "GET", + "url": "/submitted/thank-you/" + } + ], + "schema_name": "test_benchmark_business", + "schema_url": "https://storage.googleapis.com/eq-questionnaire-schemas/test_benchmark_business.json" +} \ No newline at end of file From dc54ae85e8530bda629718cd5991c9c0a3ecb963 Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Wed, 13 Sep 2023 10:01:35 +0100 Subject: [PATCH 02/25] update to new answer and question ids --- .../test_benchmark_business_happy_path.json | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/requests/test_benchmark_business_happy_path.json b/requests/test_benchmark_business_happy_path.json index 44d84f74..883722fc 100644 --- a/requests/test_benchmark_business_happy_path.json +++ b/requests/test_benchmark_business_happy_path.json @@ -11,85 +11,85 @@ }, { "method": "GET", - "url": "/questionnaire/block379/" + "url": "/questionnaire/block-379/" }, { "method": "POST", - "url": "/questionnaire/block379/", + "url": "/questionnaire/block-379/", "data": { - "answer434": "No" + "answer-434": "No" } }, { "method": "GET", - "url": "/questionnaire/block380/" + "url": "/questionnaire/block-380/" }, { "method": "POST", - "url": "/questionnaire/block380/", + "url": "/questionnaire/block-380/", "data": { - "answerfrom-day": "1", - "answerfrom-month": "05", - "answerfrom-year": "2019", - "answerto-day": "1", - "answerto-month": "08", - "answerto-year": "2019" + "answer-from-day": "1", + "answer-from-month": "05", + "answer-from-year": "2019", + "answer-to-day": "1", + "answer-to-month": "08", + "answer-to-year": "2019" } }, { "method": "GET", - "url": "/questionnaire/block381/" + "url": "/questionnaire/block-381/" }, { "method": "POST", - "url": "/questionnaire/block381/", + "url": "/questionnaire/block-381/", "data": { - "answer436": "100", - "answer437": "100" + "answer-436": "100", + "answer-437": "100" } }, { "method": "GET", - "url": "/questionnaire/block4616/" + "url": "/questionnaire/block-4616/" }, { "method": "POST", - "url": "/questionnaire/block4616/", + "url": "/questionnaire/block-4616/", "data": { - "answer5873": "No" + "answer-5873": "No" } }, { "method": "GET", - "url": "/questionnaire/block4952/" + "url": "/questionnaire/block-4952/" }, { "method": "POST", - "url": "/questionnaire/block4952/", + "url": "/questionnaire/block-4952/", "data": { - "answer6287": "Yes" + "answer-6287": "Yes" } }, { "method": "GET", - "url": "/questionnaire/block4953/" + "url": "/questionnaire/block-4953/" }, { "method": "POST", - "url": "/questionnaire/block4953/", + "url": "/questionnaire/block-4953/", "data": { - "answer6288": "One-off increase in stocks" + "answer-6288": "One-off increase in stocks" } }, { "method": "GET", - "url": "/questionnaire/block383/" + "url": "/questionnaire/block-383/" }, { "method": "POST", - "url": "/questionnaire/block383/", + "url": "/questionnaire/block-383/", "data": { - "answer439": "" + "answer-439": "" } }, { From f4765de22d076b3e623b52a6cca880e31df94b0b Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Wed, 13 Sep 2023 10:59:29 +0100 Subject: [PATCH 03/25] add unhappy paths --- requests/test_benchmark_business_unhappy.json | 494 ++++++++++++++++++ 1 file changed, 494 insertions(+) create mode 100644 requests/test_benchmark_business_unhappy.json diff --git a/requests/test_benchmark_business_unhappy.json b/requests/test_benchmark_business_unhappy.json new file mode 100644 index 00000000..b6df951b --- /dev/null +++ b/requests/test_benchmark_business_unhappy.json @@ -0,0 +1,494 @@ +{ + "requests": [ + { + "method": "GET", + "url": "/questionnaire/introduction-block/" + }, + { + "method": "POST", + "url": "/questionnaire/introduction-block/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/block-379/" + }, + { + "method": "POST", + "url": "/questionnaire/block-379/", + "data": { + "answer-434": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-380/" + }, + { + "method": "POST", + "url": "/questionnaire/block-380/", + "data": { + "answer-from-day": "1", + "answer-from-month": "05", + "answer-from-year": "2019", + "answer-to-day": "1", + "answer-to-month": "08", + "answer-to-year": "2019" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-381/" + }, + { + "method": "GET", + "url": "/questionnaire/block-380/" + }, + { + "method": "GET", + "url": "/questionnaire/block-379/" + }, + { + "method": "POST", + "url": "/questionnaire/block-379/", + "data": { + "answer-434": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-381/" + }, + { + "method": "POST", + "url": "/questionnaire/block-381/", + "data": { + "answer-436": "100", + "answer-437": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-4616/" + }, + { + "method": "POST", + "url": "/questionnaire/block-4616/", + "data": { + "answer-5873": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-4952/" + }, + { + "method": "POST", + "url": "/questionnaire/block-4952/", + "data": { + "answer-6287": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-4953/" + }, + { + "method": "POST", + "url": "/questionnaire/block-4953/", + "data": { + "answer-6288": "One-off increase in stocks" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-383/" + }, + { + "method": "POST", + "url": "/questionnaire/block-383/", + "data": { + "answer-439": "" + } + }, + { + "method": "GET", + "url": "/questionnaire/primary-person-list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/primary-person-list-collector/", + "data": { + "you-live-here": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/people{person_1_list_id}/add-or-edit-primary-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people{person_1_list_id}/add-or-edit-primary-person/", + "data": { + "first-name": "Joe", + "last-name": "Bloggs" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/add-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/add-person/", + "data": { + "first-name": "Matt", + "last-name": "Smitty" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "GET", + "url": "/questionnaire/people/IQkCDB/edit-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/IQkCDB/edit-person/", + "data": { + "first-name": "Matt", + "last-name": "Smith" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/add-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/add-person/", + "data": { + "first-name": "John", + "last-name": "Doe" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "GET", + "url": "/questionnaire/people/enrvkk/remove-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/enrvkk/remove-person/", + "data": { + "remove-confirmation": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/skip-first-block/" + }, + { + "method": "POST", + "url": "/questionnaire/skip-first-block/", + "data": { + "skip-first-block-answer": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/second-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/second-number-block/", + "data": { + "second-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/currency-total-playback-1/" + }, + { + "method": "POST", + "url": "/questionnaire/currency-total-playback-1/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/questions-section/" + }, + { + "method": "GET", + "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer" + }, + { + "method": "POST", + "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer", + "data": { + "skip-first-block-answer": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/first-number-block/?return_to=section-summary" + }, + { + "method": "POST", + "url": "/questionnaire/first-number-block/?return_to=section-summary", + "data": { + "first-number-answer": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/first-and-a-half-number-block/?return_to=section-summary" + }, + { + "method": "POST", + "url": "/questionnaire/first-and-a-half-number-block/?return_to=section-summary", + "data": { + "first-and-a-half-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary" + }, + { + "method": "POST", + "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/questions-section/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/questions-section/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people{person_1_list_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people{person_1_list_id}/third-number-block/", + "data": { + "third-number-answer": "200", + "third-number-answer-also-in-total": "200" + } + }, + { + "method": "GET", + "url": "/questionnaire/people{person_1_list_id}/currency-total-playback-2/" + }, + { + "method": "GET", + "url": "/questionnaire/people{person_1_list_id}/third-number-block/?return_to=calculated-summary&return_to_answer_id=third-number-answer&return_to_block_id=currency-total-playback-2" + }, + { + "method": "POST", + "url": "/questionnaire/people{person_1_list_id}/third-number-block/?return_to=calculated-summary&return_to_answer_id=third-number-answer&return_to_block_id=currency-total-playback-2", + "data": { + "third-number-answer": "240.00", + "third-number-answer-also-in-total": "200.00" + } + }, + { + "method": "GET", + "url": "/questionnaire/people{person_1_list_id}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people{person_1_list_id}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people{person_1_list_id}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people{person_1_list_id}/mutually-exclusive-checkbox/", + "data": { + "checkbox-exclusive-answer": "I prefer not to say" + } + }, + { + "method": "GET", + "url": "/questionnaire/people{person_1_list_id}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people{person_1_list_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "400", + "set-maximum-answer": "200" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section{person_1_list_id}/" + }, + { + "method": "GET", + "url": "/questionnaire/people{person_1_list_id}/mutually-exclusive-checkbox/?return_to=section-summary&return_to_answer_id=checkbox-exclusive-answer" + }, + { + "method": "POST", + "url": "/questionnaire/people{person_1_list_id}/mutually-exclusive-checkbox/?return_to=section-summary&return_to_answer_id=checkbox-exclusive-answer", + "data": { + "checkbox-answer": "{calc_value_2}" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section{person_1_list_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section{person_1_list_id}/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/IQkCDB/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/IQkCDB/third-number-block/", + "data": { + "third-number-answer": "12", + "third-number-answer-also-in-total": "21" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/IQkCDB/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/IQkCDB/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/IQkCDB/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/IQkCDB/mutually-exclusive-checkbox/", + "data": { + "checkbox-answer": "{third_answer_value}" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/IQkCDB/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/IQkCDB/set-min-max-block/", + "data": { + "set-minimum-answer": "400", + "set-maximum-answer": "200" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/IQkCDB/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/IQkCDB/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/submit/" + }, + { + "method": "GET", + "url": "/questionnaire/skip-first-block/?return_to=final-summary&return_to_answer_id=skip-first-block-answer" + }, + { + "method": "POST", + "url": "/questionnaire/skip-first-block/?return_to=final-summary&return_to_answer_id=skip-first-block-answer", + "data": { + "skip-first-block-answer": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/submit/" + }, + { + "method": "GET", + "url": "/questionnaire/block-379/?return_to=final-summary&return_to_answer_id=answer-434" + }, + { + "method": "POST", + "url": "/questionnaire/block-379/?return_to=final-summary&return_to_answer_id=answer-434", + "data": { + "answer-434": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/submit/" + }, + { + "method": "POST", + "url": "/questionnaire/submit/", + "data": {} + }, + { + "method": "GET", + "url": "/submitted/thank-you/" + } + ], + "schema_name": "test_benchmark_business", + "schema_url": "https://storage.googleapis.com/eq-questionnaire-schemas/test_benchmark_business.json" +} \ No newline at end of file From f743e46020ed8a5001978646c94c5e871ead9668 Mon Sep 17 00:00:00 2001 From: katie-gardner Date: Wed, 13 Sep 2023 11:34:58 +0100 Subject: [PATCH 04/25] Update unhappy journey --- requests/test_benchmark_business_unhappy.json | 525 ++++++++++++++---- 1 file changed, 410 insertions(+), 115 deletions(-) diff --git a/requests/test_benchmark_business_unhappy.json b/requests/test_benchmark_business_unhappy.json index b6df951b..def93456 100644 --- a/requests/test_benchmark_business_unhappy.json +++ b/requests/test_benchmark_business_unhappy.json @@ -13,41 +13,6 @@ "method": "GET", "url": "/questionnaire/block-379/" }, - { - "method": "POST", - "url": "/questionnaire/block-379/", - "data": { - "answer-434": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-380/" - }, - { - "method": "POST", - "url": "/questionnaire/block-380/", - "data": { - "answer-from-day": "1", - "answer-from-month": "05", - "answer-from-year": "2019", - "answer-to-day": "1", - "answer-to-month": "08", - "answer-to-year": "2019" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-381/" - }, - { - "method": "GET", - "url": "/questionnaire/block-380/" - }, - { - "method": "GET", - "url": "/questionnaire/block-379/" - }, { "method": "POST", "url": "/questionnaire/block-379/", @@ -63,8 +28,8 @@ "method": "POST", "url": "/questionnaire/block-381/", "data": { - "answer-436": "100", - "answer-437": "100" + "answer-436": "1234", + "answer-437": "5544" } }, { @@ -97,7 +62,7 @@ "method": "POST", "url": "/questionnaire/block-4953/", "data": { - "answer-6288": "One-off increase in stocks" + "answer-6288": "Start or end of long term project" } }, { @@ -108,7 +73,7 @@ "method": "POST", "url": "/questionnaire/block-383/", "data": { - "answer-439": "" + "answer-439": "comments" } }, { @@ -120,15 +85,16 @@ "url": "/questionnaire/primary-person-list-collector/", "data": { "you-live-here": "Yes" - } + }, + "redirect_route": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/" }, { "method": "GET", - "url": "/questionnaire/people{person_1_list_id}/add-or-edit-primary-person/" + "url": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/" }, { "method": "POST", - "url": "/questionnaire/people{person_1_list_id}/add-or-edit-primary-person/", + "url": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/", "data": { "first-name": "Joe", "last-name": "Bloggs" @@ -153,24 +119,31 @@ "method": "POST", "url": "/questionnaire/people/add-person/", "data": { - "first-name": "Matt", - "last-name": "Smitty" + "first-name": "John", + "last-name": "Smith" } }, { "method": "GET", "url": "/questionnaire/list-collector/" }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "Yes" + } + }, { "method": "GET", - "url": "/questionnaire/people/IQkCDB/edit-person/" + "url": "/questionnaire/people/add-person/" }, { "method": "POST", - "url": "/questionnaire/people/IQkCDB/edit-person/", + "url": "/questionnaire/people/add-person/", "data": { - "first-name": "Matt", - "last-name": "Smith" + "first-name": "Jane", + "last-name": "Doe" } }, { @@ -181,47 +154,123 @@ "method": "POST", "url": "/questionnaire/list-collector/", "data": { - "anyone-else": "Yes" + "anyone-else": "No" } }, { "method": "GET", - "url": "/questionnaire/people/add-person/" + "url": "/questionnaire/skip-first-block/" }, { "method": "POST", - "url": "/questionnaire/people/add-person/", + "url": "/questionnaire/skip-first-block/", "data": { - "first-name": "John", - "last-name": "Doe" + "skip-first-block-answer": "Yes" } }, { "method": "GET", - "url": "/questionnaire/list-collector/" + "url": "/questionnaire/second-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/second-number-block/", + "data": { + "second-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/currency-total-playback-1/" }, { "method": "GET", - "url": "/questionnaire/people/enrvkk/remove-person/" + "url": "/questionnaire/second-number-block/?return_to=calculated-summary&return_to_answer_id=second-number-answer-also-in-total&return_to_block_id=currency-total-playback-1" }, { "method": "POST", - "url": "/questionnaire/people/enrvkk/remove-person/", + "url": "/questionnaire/second-number-block/?return_to=calculated-summary&return_to_answer_id=second-number-answer-also-in-total&return_to_block_id=currency-total-playback-1", "data": { - "remove-confirmation": "Yes" + "second-number-answer-also-in-total": "150.00" } }, { "method": "GET", - "url": "/questionnaire/list-collector/" + "url": "/questionnaire/currency-total-playback-1/" }, { "method": "POST", - "url": "/questionnaire/list-collector/", + "url": "/questionnaire/currency-total-playback-1/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/questions-section/" + }, + { + "method": "GET", + "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer" + }, + { + "method": "POST", + "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer", "data": { - "anyone-else": "No" + "skip-first-block-answer": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/first-number-block/?return_to=section-summary" + }, + { + "method": "POST", + "url": "/questionnaire/first-number-block/?return_to=section-summary", + "data": { + "first-number-answer": "500" + } + }, + { + "method": "GET", + "url": "/questionnaire/first-and-a-half-number-block/?return_to=section-summary" + }, + { + "method": "POST", + "url": "/questionnaire/first-and-a-half-number-block/?return_to=section-summary", + "data": { + "first-and-a-half-number-answer-also-in-total": "159" + } + }, + { + "method": "GET", + "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary" + }, + { + "method": "GET", + "url": "/questionnaire/first-and-a-half-number-block/?return_to=calculated-summary&return_to_answer_id=first-and-a-half-number-answer-also-in-total&return_to_block_id=currency-total-playback-1" + }, + { + "method": "POST", + "url": "/questionnaire/first-and-a-half-number-block/?return_to=calculated-summary&return_to_answer_id=first-and-a-half-number-answer-also-in-total&return_to_block_id=currency-total-playback-1", + "data": { + "first-and-a-half-number-answer-also-in-total": "3159.00" } }, + { + "method": "GET", + "url": "/questionnaire/currency-total-playback-1/" + }, + { + "method": "GET", + "url": "/questionnaire/second-number-block/" + }, + { + "method": "GET", + "url": "/questionnaire/first-and-a-half-number-block/" + }, + { + "method": "GET", + "url": "/questionnaire/first-number-block/" + }, { "method": "GET", "url": "/questionnaire/skip-first-block/" @@ -241,7 +290,7 @@ "method": "POST", "url": "/questionnaire/second-number-block/", "data": { - "second-number-answer-also-in-total": "100" + "second-number-answer-also-in-total": "150.00" } }, { @@ -270,179 +319,336 @@ }, { "method": "GET", - "url": "/questionnaire/first-number-block/?return_to=section-summary" + "url": "/questionnaire/sections/questions-section/" }, { "method": "POST", - "url": "/questionnaire/first-number-block/?return_to=section-summary", + "url": "/questionnaire/sections/questions-section/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_id}/third-number-block/", "data": { - "first-number-answer": "100" + "third-number-answer": "150", + "third-number-answer-also-in-total": "300" } }, { "method": "GET", - "url": "/questionnaire/first-and-a-half-number-block/?return_to=section-summary" + "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/" }, { "method": "POST", - "url": "/questionnaire/first-and-a-half-number-block/?return_to=section-summary", + "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/", "data": { - "first-and-a-half-number-answer-also-in-total": "100" + "checkbox-answer": "{calc_value_2}" } }, { "method": "GET", - "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary" + "url": "/questionnaire/people/{person_1_id}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "4000", + "set-maximum-answer": "1000" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_id}/third-number-block/?return_to=section-summary&return_to_answer_id=third-number-answer-also-in-total" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_id}/third-number-block/?return_to=section-summary&return_to_answer_id=third-number-answer-also-in-total", + "data": { + "third-number-answer": "150.00", + "third-number-answer-also-in-total": "1300.00" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/?return_to=section-summary" }, { "method": "POST", - "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary", + "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/?return_to=section-summary", "data": {} }, { "method": "GET", - "url": "/questionnaire/sections/questions-section/" + "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/?return_to=section-summary&return_to_answer_id=checkbox-answer" }, { "method": "POST", - "url": "/questionnaire/sections/questions-section/", + "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/?return_to=section-summary&return_to_answer_id=checkbox-answer", + "data": { + "checkbox-answer": "{calc_value_2}" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_id}/set-min-max-block/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_id}/third-number-block/", + "data": { + "third-number-answer": "150.00", + "third-number-answer-also-in-total": "1300.00" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/", + "data": {}, + "redirect_route": "/questionnaire/people/{person_2_id}/third-number-block/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_id}/third-number-block/", + "data": { + "third-number-answer": "150", + "third-number-answer-also-in-total": "600" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people{person_1_list_id}/third-number-block/" + "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/" }, { "method": "POST", - "url": "/questionnaire/people{person_1_list_id}/third-number-block/", + "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/", "data": { - "third-number-answer": "200", - "third-number-answer-also-in-total": "200" + "checkbox-answer": "{third_answer_value}" } }, { "method": "GET", - "url": "/questionnaire/people{person_1_list_id}/currency-total-playback-2/" + "url": "/questionnaire/people/{person_2_id}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "6000", + "set-maximum-answer": "100" + } }, { "method": "GET", - "url": "/questionnaire/people{person_1_list_id}/third-number-block/?return_to=calculated-summary&return_to_answer_id=third-number-answer&return_to_block_id=currency-total-playback-2" + "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/" }, { "method": "POST", - "url": "/questionnaire/people{person_1_list_id}/third-number-block/?return_to=calculated-summary&return_to_answer_id=third-number-answer&return_to_block_id=currency-total-playback-2", + "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/", + "data": {}, + "redirect_route": "/questionnaire/people/{person_3_id}/third-number-block/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_3_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_3_id}/third-number-block/", "data": { - "third-number-answer": "240.00", - "third-number-answer-also-in-total": "200.00" + "third-number-answer": "125", + "third-number-answer-also-in-total": "500" } }, { "method": "GET", - "url": "/questionnaire/people{person_1_list_id}/currency-total-playback-2/" + "url": "/questionnaire/people/{person_3_id}/currency-total-playback-2/" }, { "method": "POST", - "url": "/questionnaire/people{person_1_list_id}/currency-total-playback-2/", + "url": "/questionnaire/people/{person_3_id}/currency-total-playback-2/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people{person_1_list_id}/mutually-exclusive-checkbox/" + "url": "/questionnaire/people/{person_3_id}/mutually-exclusive-checkbox/" }, { "method": "POST", - "url": "/questionnaire/people{person_1_list_id}/mutually-exclusive-checkbox/", + "url": "/questionnaire/people/{person_3_id}/mutually-exclusive-checkbox/", "data": { "checkbox-exclusive-answer": "I prefer not to say" } }, { "method": "GET", - "url": "/questionnaire/people{person_1_list_id}/set-min-max-block/" + "url": "/questionnaire/people/{person_3_id}/set-min-max-block/" }, { "method": "POST", - "url": "/questionnaire/people{person_1_list_id}/set-min-max-block/", + "url": "/questionnaire/people/{person_3_id}/set-min-max-block/", "data": { - "set-minimum-answer": "400", - "set-maximum-answer": "200" + "set-minimum-answer": "5000", + "set-maximum-answer": "50" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section{person_1_list_id}/" + "url": "/questionnaire/sections/calculated-summary-section/{person_3_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_3_id}/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/submit/" }, { "method": "GET", - "url": "/questionnaire/people{person_1_list_id}/mutually-exclusive-checkbox/?return_to=section-summary&return_to_answer_id=checkbox-exclusive-answer" + "url": "/questionnaire/first-and-a-half-number-block/?return_to=final-summary&return_to_answer_id=first-and-a-half-number-answer-also-in-total" }, { "method": "POST", - "url": "/questionnaire/people{person_1_list_id}/mutually-exclusive-checkbox/?return_to=section-summary&return_to_answer_id=checkbox-exclusive-answer", + "url": "/questionnaire/first-and-a-half-number-block/?return_to=final-summary&return_to_answer_id=first-and-a-half-number-answer-also-in-total", "data": { - "checkbox-answer": "{calc_value_2}" + "first-and-a-half-number-answer-also-in-total": "32159.00" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section{person_1_list_id}/" + "url": "/questionnaire/currency-total-playback-1/?return_to=final-summary" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section{person_1_list_id}/", + "url": "/questionnaire/currency-total-playback-1/?return_to=final-summary", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/IQkCDB/third-number-block/" + "url": "/questionnaire/sections/questions-section/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/questions-section/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_id}/set-min-max-block/?resume=True" }, { "method": "POST", - "url": "/questionnaire/people/IQkCDB/third-number-block/", + "url": "/questionnaire/people/{person_1_id}/set-min-max-block/?resume=True", "data": { - "third-number-answer": "12", - "third-number-answer-also-in-total": "21" + "set-minimum-answer": "40000.00", + "set-maximum-answer": "1000.00" } }, { "method": "GET", - "url": "/questionnaire/people/IQkCDB/currency-total-playback-2/" + "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" }, { "method": "POST", - "url": "/questionnaire/people/IQkCDB/currency-total-playback-2/", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/IQkCDB/mutually-exclusive-checkbox/" + "url": "/questionnaire/people/{person_2_id}/set-min-max-block/?resume=True" }, { "method": "POST", - "url": "/questionnaire/people/IQkCDB/mutually-exclusive-checkbox/", + "url": "/questionnaire/people/{person_2_id}/set-min-max-block/?resume=True", "data": { - "checkbox-answer": "{third_answer_value}" + "set-minimum-answer": "60000.00", + "set-maximum-answer": "100.00" } }, { "method": "GET", - "url": "/questionnaire/people/IQkCDB/set-min-max-block/" + "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/" }, { "method": "POST", - "url": "/questionnaire/people/IQkCDB/set-min-max-block/", + "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_3_id}/set-min-max-block/?resume=True" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_3_id}/set-min-max-block/?resume=True", "data": { - "set-minimum-answer": "400", - "set-maximum-answer": "200" + "set-minimum-answer": "50000.00", + "set-maximum-answer": "50.00" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/IQkCDB/" + "url": "/questionnaire/sections/calculated-summary-section/{person_3_id}/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/IQkCDB/", + "url": "/questionnaire/sections/calculated-summary-section/{person_3_id}/", "data": {} }, { @@ -451,13 +657,25 @@ }, { "method": "GET", - "url": "/questionnaire/skip-first-block/?return_to=final-summary&return_to_answer_id=skip-first-block-answer" + "url": "/questionnaire/block-4953/?return_to=final-summary&return_to_answer_id=answer-6288" + }, + { + "method": "GET", + "url": "/questionnaire/submit/" + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_id}/remove-person/" }, { "method": "POST", - "url": "/questionnaire/skip-first-block/?return_to=final-summary&return_to_answer_id=skip-first-block-answer", + "url": "/questionnaire/people/{person_2_id}/remove-person/", "data": { - "skip-first-block-answer": "Yes" + "remove-confirmation": "Yes" } }, { @@ -466,15 +684,92 @@ }, { "method": "GET", - "url": "/questionnaire/block-379/?return_to=final-summary&return_to_answer_id=answer-434" + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/add-person/" }, { "method": "POST", - "url": "/questionnaire/block-379/?return_to=final-summary&return_to_answer_id=answer-434", + "url": "/questionnaire/people/add-person/", "data": { - "answer-434": "No" + "first-name": "Extra", + "last-name": "Person" } }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "No" + }, + "redirect_route": "/questionnaire/people/{person_4_id}/third-number-block/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_4_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_4_id}/third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "200" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_4_id}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_4_id}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_4_id}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_4_id}/mutually-exclusive-checkbox/", + "data": { + "checkbox-answer": "{calc_value_2}" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_4_id}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_4_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "45000", + "set-maximum-answer": "12" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_4_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_4_id}/", + "data": {} + }, { "method": "GET", "url": "/questionnaire/submit/" From fccce8ef5dfd76f004a52d9d6852e21ba9496652 Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Wed, 20 Sep 2023 16:16:32 +0100 Subject: [PATCH 05/25] update pdf download| --- requests/test_benchmark_business_pdfkit.json | 209 ++++++++++++++++--- requests/test_benchmark_business_weasy.json | 143 ------------- 2 files changed, 178 insertions(+), 174 deletions(-) delete mode 100644 requests/test_benchmark_business_weasy.json diff --git a/requests/test_benchmark_business_pdfkit.json b/requests/test_benchmark_business_pdfkit.json index ec9ca3ce..967816bb 100644 --- a/requests/test_benchmark_business_pdfkit.json +++ b/requests/test_benchmark_business_pdfkit.json @@ -11,87 +11,238 @@ }, { "method": "GET", - "url": "/questionnaire/block379/" + "url": "/questionnaire/block-379/" }, { "method": "POST", - "url": "/questionnaire/block379/", + "url": "/questionnaire/block-379/", "data": { - "answer434": "No" + "answer-434": "No" } }, { "method": "GET", - "url": "/questionnaire/block380/" + "url": "/questionnaire/block-380/" }, { "method": "POST", - "url": "/questionnaire/block380/", + "url": "/questionnaire/block-380/", "data": { - "answerfrom-day": "1", - "answerfrom-month": "05", - "answerfrom-year": "2019", - "answerto-day": "1", - "answerto-month": "08", - "answerto-year": "2019" + "answer-from-day": "1", + "answer-from-month": "05", + "answer-from-year": "2019", + "answer-to-day": "1", + "answer-to-month": "08", + "answer-to-year": "2019" } }, { "method": "GET", - "url": "/questionnaire/block381/" + "url": "/questionnaire/block-381/" }, { "method": "POST", - "url": "/questionnaire/block381/", + "url": "/questionnaire/block-381/", "data": { - "answer436": "100", - "answer437": "100" + "answer-436": "100", + "answer-437": "100" } }, { "method": "GET", - "url": "/questionnaire/block4616/" + "url": "/questionnaire/block-4616/" }, { "method": "POST", - "url": "/questionnaire/block4616/", + "url": "/questionnaire/block-4616/", "data": { - "answer5873": "Yes" + "answer-5873": "No" } }, { "method": "GET", - "url": "/questionnaire/block4952/" + "url": "/questionnaire/block-4952/" }, { "method": "POST", - "url": "/questionnaire/block4952/", + "url": "/questionnaire/block-4952/", "data": { - "answer6287": "Yes" + "answer-6287": "Yes" } }, { "method": "GET", - "url": "/questionnaire/block4953/" + "url": "/questionnaire/block-4953/" }, { "method": "POST", - "url": "/questionnaire/block4953/", + "url": "/questionnaire/block-4953/", "data": { - "answer6288": "One-off increase in stocks" + "answer-6288": "One-off increase in stocks" } }, { "method": "GET", - "url": "/questionnaire/block383/" + "url": "/questionnaire/block-383/" }, { "method": "POST", - "url": "/questionnaire/block383/", + "url": "/questionnaire/block-383/", "data": { - "answer439": "Differences textarea" + "answer-439": "" } }, + { + "method": "GET", + "url": "/questionnaire/primary-person-list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/primary-person-list-collector/", + "data": { + "you-live-here": "Yes" + }, + "redirect_route": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/", + "data": { + "first-name": "Joe", + "last-name": "Bloggs" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/skip-first-block/" + }, + { + "method": "POST", + "url": "/questionnaire/skip-first-block/", + "data": { + "skip-first-block-answer": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/first-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/first-number-block/", + "data": { + "first-number-answer": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/first-and-a-half-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/first-and-a-half-number-block/", + "data": { + "first-and-a-half-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/second-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/second-number-block/", + "data": { + "second-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/currency-total-playback-1/" + }, + { + "method": "POST", + "url": "/questionnaire/currency-total-playback-1/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/questions-section/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/questions-section/", + "data": {}, + "redirect_route": "/questionnaire/people/{persons_1_list_id}/third-number-block/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{persons_1_list_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{persons_1_list_id}/third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{persons_1_list_id}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{persons_1_list_id}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{persons_1_list_id}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{persons_1_list_id}/mutually-exclusive-checkbox/", + "data": { + "checkbox-answer": "{calc_value_2}" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{persons_1_list_id}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{persons_1_list_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "400", + "set-maximum-answer": "200" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{persons_1_list_id}" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{persons_1_list_id}/", + "data": {} + }, { "method": "GET", "url": "/questionnaire/submit/" @@ -109,10 +260,6 @@ "method": "GET", "url": "/submitted/view-response/" }, - { - "method": "GET", - "url": "/submitted/download-pdf" - }, { "method": "GET", "url": "/submitted/thank-you/" diff --git a/requests/test_benchmark_business_weasy.json b/requests/test_benchmark_business_weasy.json deleted file mode 100644 index be2ac5a0..00000000 --- a/requests/test_benchmark_business_weasy.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "requests": [ - { - "method": "GET", - "url": "/questionnaire/introduction-block/" - }, - { - "method": "POST", - "url": "/questionnaire/introduction-block/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/block379/" - }, - { - "method": "POST", - "url": "/questionnaire/block379/", - "data": { - "answer434": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/block380/" - }, - { - "method": "POST", - "url": "/questionnaire/block380/", - "data": { - "answerfrom-day": "1", - "answerfrom-month": "05", - "answerfrom-year": "2019", - "answerto-day": "1", - "answerto-month": "08", - "answerto-year": "2019" - } - }, - { - "method": "GET", - "url": "/questionnaire/block381/" - }, - { - "method": "POST", - "url": "/questionnaire/block381/", - "data": { - "answer436": "100", - "answer437": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/block4616/" - }, - { - "method": "POST", - "url": "/questionnaire/block4616/", - "data": { - "answer5873": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block4952/" - }, - { - "method": "POST", - "url": "/questionnaire/block4952/", - "data": { - "answer6287": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block4953/" - }, - { - "method": "POST", - "url": "/questionnaire/block4953/", - "data": { - "answer6288": "One-off increase in stocks" - } - }, - { - "method": "GET", - "url": "/questionnaire/block383/" - }, - { - "method": "POST", - "url": "/questionnaire/block383/", - "data": { - "answer439": "Differences textarea" - } - }, - { - "method": "GET", - "url": "/questionnaire/submit/" - }, - { - "method": "POST", - "url": "/questionnaire/submit/", - "data": {} - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - }, - { - "method": "GET", - "url": "/submitted/view-response/" - }, - { - "method": "GET", - "url": "/submitted/download-pdf?pdf_type=weasy" - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - }, - { - "method": "GET", - "url": "/submitted/feedback/send" - }, - { - "method": "POST", - "url": "/submitted/feedback/send", - "data": { - "feedback-type": "The survey questions", - "feedback-text": "Feedback" - } - }, - { - "method": "GET", - "url": "/submitted/feedback/sent" - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - } - ], - "schema_name": "test_benchmark_business", - "schema_url": "https://storage.googleapis.com/eq-questionnaire-schemas/test_benchmark_business.json" -} \ No newline at end of file From 52c7f0bf74283165b323b89c16bd52e9febcc825 Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Wed, 20 Sep 2023 16:36:36 +0100 Subject: [PATCH 06/25] remove optimised pdf kit Signed-off-by: Yuyutsu Rai --- ...t_benchmark_business_pdfkit_optimised.json | 143 ------------------ 1 file changed, 143 deletions(-) delete mode 100644 requests/test_benchmark_business_pdfkit_optimised.json diff --git a/requests/test_benchmark_business_pdfkit_optimised.json b/requests/test_benchmark_business_pdfkit_optimised.json deleted file mode 100644 index cc299e7a..00000000 --- a/requests/test_benchmark_business_pdfkit_optimised.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "requests": [ - { - "method": "GET", - "url": "/questionnaire/introduction-block/" - }, - { - "method": "POST", - "url": "/questionnaire/introduction-block/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/block379/" - }, - { - "method": "POST", - "url": "/questionnaire/block379/", - "data": { - "answer434": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/block380/" - }, - { - "method": "POST", - "url": "/questionnaire/block380/", - "data": { - "answerfrom-day": "1", - "answerfrom-month": "05", - "answerfrom-year": "2019", - "answerto-day": "1", - "answerto-month": "08", - "answerto-year": "2019" - } - }, - { - "method": "GET", - "url": "/questionnaire/block381/" - }, - { - "method": "POST", - "url": "/questionnaire/block381/", - "data": { - "answer436": "100", - "answer437": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/block4616/" - }, - { - "method": "POST", - "url": "/questionnaire/block4616/", - "data": { - "answer5873": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block4952/" - }, - { - "method": "POST", - "url": "/questionnaire/block4952/", - "data": { - "answer6287": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block4953/" - }, - { - "method": "POST", - "url": "/questionnaire/block4953/", - "data": { - "answer6288": "One-off increase in stocks" - } - }, - { - "method": "GET", - "url": "/questionnaire/block383/" - }, - { - "method": "POST", - "url": "/questionnaire/block383/", - "data": { - "answer439": "Differences textarea" - } - }, - { - "method": "GET", - "url": "/questionnaire/submit/" - }, - { - "method": "POST", - "url": "/questionnaire/submit/", - "data": {} - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - }, - { - "method": "GET", - "url": "/submitted/view-response/" - }, - { - "method": "GET", - "url": "/submitted/download-pdf?pdf_type=pdfkit_optimised" - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - }, - { - "method": "GET", - "url": "/submitted/feedback/send" - }, - { - "method": "POST", - "url": "/submitted/feedback/send", - "data": { - "feedback-type": "The survey questions", - "feedback-text": "Feedback" - } - }, - { - "method": "GET", - "url": "/submitted/feedback/sent" - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - } - ], - "schema_name": "test_benchmark_business", - "schema_url": "https://storage.googleapis.com/eq-questionnaire-schemas/test_benchmark_business.json" -} \ No newline at end of file From 2b75aa181e6b057e9361b8a8063f4af6919664a4 Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Wed, 27 Sep 2023 16:13:29 +0100 Subject: [PATCH 07/25] add a test becnhmark hub version --- requests/test_benchmark_business_hub.json | 368 ++++++++++++++++++++++ 1 file changed, 368 insertions(+) create mode 100644 requests/test_benchmark_business_hub.json diff --git a/requests/test_benchmark_business_hub.json b/requests/test_benchmark_business_hub.json new file mode 100644 index 00000000..5510ff75 --- /dev/null +++ b/requests/test_benchmark_business_hub.json @@ -0,0 +1,368 @@ +{ + "requests": [ + { + "method": "GET", + "url": "/questionnaire/" + }, + { + "method": "GET", + "url": "/questionnaire/sections/stock-section/" + }, + { + "method": "GET", + "url": "/questionnaire/introduction-block/" + }, + { + "method": "POST", + "url": "/questionnaire/introduction-block/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/block-379/" + }, + { + "method": "POST", + "url": "/questionnaire/block-379/", + "data": { + "answer-434": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-381/" + }, + { + "method": "POST", + "url": "/questionnaire/block-381/", + "data": { + "answer-436": "100", + "answer-437": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-4616/" + }, + { + "method": "POST", + "url": "/questionnaire/block-4616/", + "data": { + "answer-5873": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-4952/" + }, + { + "method": "POST", + "url": "/questionnaire/block-4952/", + "data": { + "answer-6287": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-4953/" + }, + { + "method": "POST", + "url": "/questionnaire/block-4953/", + "data": { + "answer-6288": "One-off increase in stocks" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-383/" + }, + { + "method": "POST", + "url": "/questionnaire/block-383/", + "data": { + "answer-439": "Hi eQ team" + } + }, + { + "method": "GET", + "url": "/questionnaire/" + }, + { + "method": "GET", + "url": "/questionnaire/sections/house-hold-section/" + }, + { + "method": "GET", + "url": "/questionnaire/primary-person-list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/primary-person-list-collector/", + "data": { + "you-live-here": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/", + "data": { + "first-name": "Joe", + "last-name": "Bloggs" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/add-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/add-person/", + "data": { + "first-name": "Erling", + "last-name": "Haaland" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/" + }, + { + "method": "GET", + "url": "/questionnaire/sections/questions-section/" + }, + { + "method": "GET", + "url": "/questionnaire/skip-first-block/" + }, + { + "method": "POST", + "url": "/questionnaire/skip-first-block/", + "data": { + "skip-first-block-answer": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/first-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/first-number-block/", + "data": { + "first-number-answer": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/first-and-a-half-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/first-and-a-half-number-block/", + "data": { + "first-and-a-half-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/second-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/second-number-block/", + "data": { + "second-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/currency-total-playback-1/" + }, + { + "method": "POST", + "url": "/questionnaire/currency-total-playback-1/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/questions-section/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/questions-section/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/" + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_list_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_list_id}/third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" + }, + "redirect_route": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/", + "data": {}, + "redirect_route": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/", + "data": { + "checkbox-answer": "{calc_value_2}" + }, + "redirect_route":"/questionnaire/people/{person_1_list_id}/set-min-max-block/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "400", + "set-maximum-answer": "200" + }, + "redirect_route": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/" + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/" + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_list_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" + }, + "redirect_route": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/", + "data": {}, + "redirect_route": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/", + "data": { + "checkbox-answer": "{third_answer_value}" + }, + "redirect_route": "/questionnaire/people/{person_2_list_id}/set-min-max-block/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "400", + "set-maximum-answer": "100" + }, + "redirect_route":"/questionnaire/sections/calculated-summary-section/{person_2_list_id}/" + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/" + }, + { + "method": "POST", + "url": "/questionnaire/", + "data": {} + }, + { + "method": "GET", + "url": "/submitted/thank-you/" + } + ], + "schema_name": "test_benchmark_business", + "schema_url": "https://storage.googleapis.com/eq-questionnaire-schemas/test_benchmark_business.json" +} \ No newline at end of file From cb50495aa989d1552887317081f673c7ea143aac Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Fri, 29 Sep 2023 10:15:24 +0100 Subject: [PATCH 08/25] add business hub pdf test --- requests/test_benchmark_business_hub_pdf.json | 330 ++++++++++++++++++ 1 file changed, 330 insertions(+) create mode 100644 requests/test_benchmark_business_hub_pdf.json diff --git a/requests/test_benchmark_business_hub_pdf.json b/requests/test_benchmark_business_hub_pdf.json new file mode 100644 index 00000000..b1be7f6f --- /dev/null +++ b/requests/test_benchmark_business_hub_pdf.json @@ -0,0 +1,330 @@ +{ + "requests": [ + { + "method": "GET", + "url": "/questionnaire/introduction-block/" + }, + { + "method": "POST", + "url": "/questionnaire/introduction-block/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/block-379/" + }, + { + "method": "POST", + "url": "/questionnaire/block-379/", + "data": { + "answer-434": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-381/" + }, + { + "method": "POST", + "url": "/questionnaire/block-381/", + "data": { + "answer-436": "100", + "answer-437": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-4616/" + }, + { + "method": "POST", + "url": "/questionnaire/block-4616/", + "data": { + "answer-5873": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-4952/" + }, + { + "method": "POST", + "url": "/questionnaire/block-4952/", + "data": { + "answer-6287": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-4953/" + }, + { + "method": "POST", + "url": "/questionnaire/block-4953/", + "data": { + "answer-6288": "Normal movement for the time of year" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-383/" + }, + { + "method": "POST", + "url": "/questionnaire/block-383/", + "data": { + "answer-439": "Hi eQ team!" + } + }, + { + "method": "GET", + "url": "/questionnaire/primary-person-list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/primary-person-list-collector/", + "data": { + "you-live-here": "Yes" + }, + "redirect_route": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/", + "data": { + "first-name": "Joe", + "last-name": "Bloggs" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/add-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/add-person/", + "data": { + "first-name": "Paul", + "last-name": "Pogba" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/skip-first-block/" + }, + { + "method": "POST", + "url": "/questionnaire/skip-first-block/", + "data": { + "skip-first-block-answer": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/first-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/first-number-block/", + "data": { + "first-number-answer": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/first-and-a-half-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/first-and-a-half-number-block/", + "data": { + "first-and-a-half-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/second-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/second-number-block/", + "data": { + "second-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/currency-total-playback-1/" + }, + { + "method": "POST", + "url": "/questionnaire/currency-total-playback-1/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/questions-section/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/questions-section/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_list_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_list_id}/third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/", + "data": { + "checkbox-answer": "{calc_value_1}" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "500", + "set-maximum-answer": "200" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/", + "data": {}, + "redirect_route": "/questionnaire/people/{person_2_list_id}/third-number-block/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_list_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/", + "data": { + "checkbox-exclusive-answer": "I prefer not to say" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "500", + "set-maximum-answer": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/submit/" + }, + { + "method": "POST", + "url": "/questionnaire/submit/", + "data": {} + }, + { + "method": "GET", + "url": "/submitted/thank-you/" + }, + { + "method": "GET", + "url": "/submitted/view-response/" + }, + { + "method": "GET", + "url": "/submitted/download-pdf" + } + ], + "schema_name": "test_benchmark_business", + "schema_url": "https://storage.googleapis.com/eq-questionnaire-schemas/test_benchmark_business.json" +} \ No newline at end of file From 2c8ac5835dacdebe33f1cfb0a0d21a7c83774179 Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Fri, 29 Sep 2023 10:23:56 +0100 Subject: [PATCH 09/25] add happy path hub test and fix urls --- ...st_benchmark_business_happy_path_hub.json} | 92 +++++-------------- 1 file changed, 23 insertions(+), 69 deletions(-) rename requests/{test_benchmark_business_hub.json => test_benchmark_business_happy_path_hub.json} (79%) diff --git a/requests/test_benchmark_business_hub.json b/requests/test_benchmark_business_happy_path_hub.json similarity index 79% rename from requests/test_benchmark_business_hub.json rename to requests/test_benchmark_business_happy_path_hub.json index 5510ff75..6df4ddc7 100644 --- a/requests/test_benchmark_business_hub.json +++ b/requests/test_benchmark_business_happy_path_hub.json @@ -1,13 +1,5 @@ { "requests": [ - { - "method": "GET", - "url": "/questionnaire/" - }, - { - "method": "GET", - "url": "/questionnaire/sections/stock-section/" - }, { "method": "GET", "url": "/questionnaire/introduction-block/" @@ -48,7 +40,7 @@ "method": "POST", "url": "/questionnaire/block-4616/", "data": { - "answer-5873": "No" + "answer-5873": "Yes" } }, { @@ -70,7 +62,7 @@ "method": "POST", "url": "/questionnaire/block-4953/", "data": { - "answer-6288": "One-off increase in stocks" + "answer-6288": "Normal movement for the time of year" } }, { @@ -81,17 +73,9 @@ "method": "POST", "url": "/questionnaire/block-383/", "data": { - "answer-439": "Hi eQ team" + "answer-439": "Hi eQ team!" } }, - { - "method": "GET", - "url": "/questionnaire/" - }, - { - "method": "GET", - "url": "/questionnaire/sections/house-hold-section/" - }, { "method": "GET", "url": "/questionnaire/primary-person-list-collector/" @@ -101,7 +85,8 @@ "url": "/questionnaire/primary-person-list-collector/", "data": { "you-live-here": "Yes" - } + }, + "redirect_route": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" }, { "method": "GET", @@ -134,8 +119,8 @@ "method": "POST", "url": "/questionnaire/people/add-person/", "data": { - "first-name": "Erling", - "last-name": "Haaland" + "first-name": "Paul", + "last-name": "Pogba" } }, { @@ -149,14 +134,6 @@ "anyone-else": "No" } }, - { - "method": "GET", - "url": "/questionnaire/" - }, - { - "method": "GET", - "url": "/questionnaire/sections/questions-section/" - }, { "method": "GET", "url": "/questionnaire/skip-first-block/" @@ -219,14 +196,6 @@ "url": "/questionnaire/sections/questions-section/", "data": {} }, - { - "method": "GET", - "url": "/questionnaire/" - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/" - }, { "method": "GET", "url": "/questionnaire/people/{person_1_list_id}/third-number-block/" @@ -237,8 +206,7 @@ "data": { "third-number-answer": "100", "third-number-answer-also-in-total": "100" - }, - "redirect_route": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/" + } }, { "method": "GET", @@ -247,8 +215,7 @@ { "method": "POST", "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/", - "data": {}, - "redirect_route": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/" + "data": {} }, { "method": "GET", @@ -258,9 +225,8 @@ "method": "POST", "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/", "data": { - "checkbox-answer": "{calc_value_2}" - }, - "redirect_route":"/questionnaire/people/{person_1_list_id}/set-min-max-block/" + "checkbox-answer": "{calc_value_1}" + } }, { "method": "GET", @@ -270,10 +236,9 @@ "method": "POST", "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/", "data": { - "set-minimum-answer": "400", + "set-minimum-answer": "500", "set-maximum-answer": "200" - }, - "redirect_route": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/" + } }, { "method": "GET", @@ -282,15 +247,8 @@ { "method": "POST", "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/" - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/" + "data": {}, + "redirect_route": "/questionnaire/people/{person_2_list_id}/third-number-block/" }, { "method": "GET", @@ -302,8 +260,7 @@ "data": { "third-number-answer": "100", "third-number-answer-also-in-total": "100" - }, - "redirect_route": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/" + } }, { "method": "GET", @@ -312,8 +269,7 @@ { "method": "POST", "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/", - "data": {}, - "redirect_route": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/" + "data": {} }, { "method": "GET", @@ -323,9 +279,8 @@ "method": "POST", "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/", "data": { - "checkbox-answer": "{third_answer_value}" - }, - "redirect_route": "/questionnaire/people/{person_2_list_id}/set-min-max-block/" + "checkbox-exclusive-answer": "I prefer not to say" + } }, { "method": "GET", @@ -335,10 +290,9 @@ "method": "POST", "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/", "data": { - "set-minimum-answer": "400", + "set-minimum-answer": "500", "set-maximum-answer": "100" - }, - "redirect_route":"/questionnaire/sections/calculated-summary-section/{person_2_list_id}/" + } }, { "method": "GET", @@ -351,11 +305,11 @@ }, { "method": "GET", - "url": "/questionnaire/" + "url": "/questionnaire/submit/" }, { "method": "POST", - "url": "/questionnaire/", + "url": "/questionnaire/submit/", "data": {} }, { From e00c03af53f4860078976220c41d5cd75829c20b Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Fri, 29 Sep 2023 10:34:49 +0100 Subject: [PATCH 10/25] update happy path and pdf using hub schema --- .../test_benchmark_business_happy_path.json | 128 +++++-- ...est_benchmark_business_happy_path_hub.json | 322 ----------------- requests/test_benchmark_business_hub_pdf.json | 330 ------------------ requests/test_benchmark_business_pdfkit.json | 134 ++++--- 4 files changed, 181 insertions(+), 733 deletions(-) delete mode 100644 requests/test_benchmark_business_happy_path_hub.json delete mode 100644 requests/test_benchmark_business_hub_pdf.json diff --git a/requests/test_benchmark_business_happy_path.json b/requests/test_benchmark_business_happy_path.json index 883722fc..6df4ddc7 100644 --- a/requests/test_benchmark_business_happy_path.json +++ b/requests/test_benchmark_business_happy_path.json @@ -17,23 +17,7 @@ "method": "POST", "url": "/questionnaire/block-379/", "data": { - "answer-434": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-380/" - }, - { - "method": "POST", - "url": "/questionnaire/block-380/", - "data": { - "answer-from-day": "1", - "answer-from-month": "05", - "answer-from-year": "2019", - "answer-to-day": "1", - "answer-to-month": "08", - "answer-to-year": "2019" + "answer-434": "Yes" } }, { @@ -56,7 +40,7 @@ "method": "POST", "url": "/questionnaire/block-4616/", "data": { - "answer-5873": "No" + "answer-5873": "Yes" } }, { @@ -78,7 +62,7 @@ "method": "POST", "url": "/questionnaire/block-4953/", "data": { - "answer-6288": "One-off increase in stocks" + "answer-6288": "Normal movement for the time of year" } }, { @@ -89,7 +73,7 @@ "method": "POST", "url": "/questionnaire/block-383/", "data": { - "answer-439": "" + "answer-439": "Hi eQ team!" } }, { @@ -120,6 +104,29 @@ "method": "GET", "url": "/questionnaire/list-collector/" }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/add-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/add-person/", + "data": { + "first-name": "Paul", + "last-name": "Pogba" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, { "method": "POST", "url": "/questionnaire/list-collector/", @@ -187,16 +194,15 @@ { "method": "POST", "url": "/questionnaire/sections/questions-section/", - "data": {}, - "redirect_route": "/questionnaire/people/{persons_1_list_id}/third-number-block/" + "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{persons_1_list_id}/third-number-block/" + "url": "/questionnaire/people/{person_1_list_id}/third-number-block/" }, { "method": "POST", - "url": "/questionnaire/people/{persons_1_list_id}/third-number-block/", + "url": "/questionnaire/people/{person_1_list_id}/third-number-block/", "data": { "third-number-answer": "100", "third-number-answer-also-in-total": "100" @@ -204,43 +210,97 @@ }, { "method": "GET", - "url": "/questionnaire/people/{persons_1_list_id}/currency-total-playback-2/" + "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/" }, { "method": "POST", - "url": "/questionnaire/people/{persons_1_list_id}/currency-total-playback-2/", + "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{persons_1_list_id}/mutually-exclusive-checkbox/" + "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/" }, { "method": "POST", - "url": "/questionnaire/people/{persons_1_list_id}/mutually-exclusive-checkbox/", + "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/", "data": { - "checkbox-answer": "{calc_value_2}" + "checkbox-answer": "{calc_value_1}" } }, { "method": "GET", - "url": "/questionnaire/people/{persons_1_list_id}/set-min-max-block/" + "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/" }, { "method": "POST", - "url": "/questionnaire/people/{persons_1_list_id}/set-min-max-block/", + "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/", "data": { - "set-minimum-answer": "400", + "set-minimum-answer": "500", "set-maximum-answer": "200" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{persons_1_list_id}" + "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/", + "data": {}, + "redirect_route": "/questionnaire/people/{person_2_list_id}/third-number-block/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_list_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/", + "data": { + "checkbox-exclusive-answer": "I prefer not to say" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "500", + "set-maximum-answer": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{persons_1_list_id}/", + "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/", "data": {} }, { diff --git a/requests/test_benchmark_business_happy_path_hub.json b/requests/test_benchmark_business_happy_path_hub.json deleted file mode 100644 index 6df4ddc7..00000000 --- a/requests/test_benchmark_business_happy_path_hub.json +++ /dev/null @@ -1,322 +0,0 @@ -{ - "requests": [ - { - "method": "GET", - "url": "/questionnaire/introduction-block/" - }, - { - "method": "POST", - "url": "/questionnaire/introduction-block/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/block-379/" - }, - { - "method": "POST", - "url": "/questionnaire/block-379/", - "data": { - "answer-434": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-381/" - }, - { - "method": "POST", - "url": "/questionnaire/block-381/", - "data": { - "answer-436": "100", - "answer-437": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-4616/" - }, - { - "method": "POST", - "url": "/questionnaire/block-4616/", - "data": { - "answer-5873": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-4952/" - }, - { - "method": "POST", - "url": "/questionnaire/block-4952/", - "data": { - "answer-6287": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-4953/" - }, - { - "method": "POST", - "url": "/questionnaire/block-4953/", - "data": { - "answer-6288": "Normal movement for the time of year" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-383/" - }, - { - "method": "POST", - "url": "/questionnaire/block-383/", - "data": { - "answer-439": "Hi eQ team!" - } - }, - { - "method": "GET", - "url": "/questionnaire/primary-person-list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/primary-person-list-collector/", - "data": { - "you-live-here": "Yes" - }, - "redirect_route": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/", - "data": { - "first-name": "Joe", - "last-name": "Bloggs" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/add-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/add-person/", - "data": { - "first-name": "Paul", - "last-name": "Pogba" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/skip-first-block/" - }, - { - "method": "POST", - "url": "/questionnaire/skip-first-block/", - "data": { - "skip-first-block-answer": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/first-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/first-number-block/", - "data": { - "first-number-answer": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/first-and-a-half-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/first-and-a-half-number-block/", - "data": { - "first-and-a-half-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/second-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/second-number-block/", - "data": { - "second-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/currency-total-playback-1/" - }, - { - "method": "POST", - "url": "/questionnaire/currency-total-playback-1/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/sections/questions-section/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/questions-section/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/third-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/third-number-block/", - "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/", - "data": { - "checkbox-answer": "{calc_value_1}" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/", - "data": { - "set-minimum-answer": "500", - "set-maximum-answer": "200" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/", - "data": {}, - "redirect_route": "/questionnaire/people/{person_2_list_id}/third-number-block/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/third-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/third-number-block/", - "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/", - "data": { - "checkbox-exclusive-answer": "I prefer not to say" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/", - "data": { - "set-minimum-answer": "500", - "set-maximum-answer": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/submit/" - }, - { - "method": "POST", - "url": "/questionnaire/submit/", - "data": {} - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - } - ], - "schema_name": "test_benchmark_business", - "schema_url": "https://storage.googleapis.com/eq-questionnaire-schemas/test_benchmark_business.json" -} \ No newline at end of file diff --git a/requests/test_benchmark_business_hub_pdf.json b/requests/test_benchmark_business_hub_pdf.json deleted file mode 100644 index b1be7f6f..00000000 --- a/requests/test_benchmark_business_hub_pdf.json +++ /dev/null @@ -1,330 +0,0 @@ -{ - "requests": [ - { - "method": "GET", - "url": "/questionnaire/introduction-block/" - }, - { - "method": "POST", - "url": "/questionnaire/introduction-block/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/block-379/" - }, - { - "method": "POST", - "url": "/questionnaire/block-379/", - "data": { - "answer-434": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-381/" - }, - { - "method": "POST", - "url": "/questionnaire/block-381/", - "data": { - "answer-436": "100", - "answer-437": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-4616/" - }, - { - "method": "POST", - "url": "/questionnaire/block-4616/", - "data": { - "answer-5873": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-4952/" - }, - { - "method": "POST", - "url": "/questionnaire/block-4952/", - "data": { - "answer-6287": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-4953/" - }, - { - "method": "POST", - "url": "/questionnaire/block-4953/", - "data": { - "answer-6288": "Normal movement for the time of year" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-383/" - }, - { - "method": "POST", - "url": "/questionnaire/block-383/", - "data": { - "answer-439": "Hi eQ team!" - } - }, - { - "method": "GET", - "url": "/questionnaire/primary-person-list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/primary-person-list-collector/", - "data": { - "you-live-here": "Yes" - }, - "redirect_route": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/", - "data": { - "first-name": "Joe", - "last-name": "Bloggs" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/add-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/add-person/", - "data": { - "first-name": "Paul", - "last-name": "Pogba" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/skip-first-block/" - }, - { - "method": "POST", - "url": "/questionnaire/skip-first-block/", - "data": { - "skip-first-block-answer": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/first-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/first-number-block/", - "data": { - "first-number-answer": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/first-and-a-half-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/first-and-a-half-number-block/", - "data": { - "first-and-a-half-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/second-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/second-number-block/", - "data": { - "second-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/currency-total-playback-1/" - }, - { - "method": "POST", - "url": "/questionnaire/currency-total-playback-1/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/sections/questions-section/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/questions-section/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/third-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/third-number-block/", - "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/", - "data": { - "checkbox-answer": "{calc_value_1}" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/", - "data": { - "set-minimum-answer": "500", - "set-maximum-answer": "200" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/", - "data": {}, - "redirect_route": "/questionnaire/people/{person_2_list_id}/third-number-block/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/third-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/third-number-block/", - "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/", - "data": { - "checkbox-exclusive-answer": "I prefer not to say" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/", - "data": { - "set-minimum-answer": "500", - "set-maximum-answer": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/submit/" - }, - { - "method": "POST", - "url": "/questionnaire/submit/", - "data": {} - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - }, - { - "method": "GET", - "url": "/submitted/view-response/" - }, - { - "method": "GET", - "url": "/submitted/download-pdf" - } - ], - "schema_name": "test_benchmark_business", - "schema_url": "https://storage.googleapis.com/eq-questionnaire-schemas/test_benchmark_business.json" -} \ No newline at end of file diff --git a/requests/test_benchmark_business_pdfkit.json b/requests/test_benchmark_business_pdfkit.json index 967816bb..b1be7f6f 100644 --- a/requests/test_benchmark_business_pdfkit.json +++ b/requests/test_benchmark_business_pdfkit.json @@ -17,23 +17,7 @@ "method": "POST", "url": "/questionnaire/block-379/", "data": { - "answer-434": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-380/" - }, - { - "method": "POST", - "url": "/questionnaire/block-380/", - "data": { - "answer-from-day": "1", - "answer-from-month": "05", - "answer-from-year": "2019", - "answer-to-day": "1", - "answer-to-month": "08", - "answer-to-year": "2019" + "answer-434": "Yes" } }, { @@ -56,7 +40,7 @@ "method": "POST", "url": "/questionnaire/block-4616/", "data": { - "answer-5873": "No" + "answer-5873": "Yes" } }, { @@ -78,7 +62,7 @@ "method": "POST", "url": "/questionnaire/block-4953/", "data": { - "answer-6288": "One-off increase in stocks" + "answer-6288": "Normal movement for the time of year" } }, { @@ -89,7 +73,7 @@ "method": "POST", "url": "/questionnaire/block-383/", "data": { - "answer-439": "" + "answer-439": "Hi eQ team!" } }, { @@ -120,6 +104,29 @@ "method": "GET", "url": "/questionnaire/list-collector/" }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/add-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/add-person/", + "data": { + "first-name": "Paul", + "last-name": "Pogba" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, { "method": "POST", "url": "/questionnaire/list-collector/", @@ -187,16 +194,15 @@ { "method": "POST", "url": "/questionnaire/sections/questions-section/", - "data": {}, - "redirect_route": "/questionnaire/people/{persons_1_list_id}/third-number-block/" + "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{persons_1_list_id}/third-number-block/" + "url": "/questionnaire/people/{person_1_list_id}/third-number-block/" }, { "method": "POST", - "url": "/questionnaire/people/{persons_1_list_id}/third-number-block/", + "url": "/questionnaire/people/{person_1_list_id}/third-number-block/", "data": { "third-number-answer": "100", "third-number-answer-also-in-total": "100" @@ -204,85 +210,119 @@ }, { "method": "GET", - "url": "/questionnaire/people/{persons_1_list_id}/currency-total-playback-2/" + "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/" }, { "method": "POST", - "url": "/questionnaire/people/{persons_1_list_id}/currency-total-playback-2/", + "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{persons_1_list_id}/mutually-exclusive-checkbox/" + "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/" }, { "method": "POST", - "url": "/questionnaire/people/{persons_1_list_id}/mutually-exclusive-checkbox/", + "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/", "data": { - "checkbox-answer": "{calc_value_2}" + "checkbox-answer": "{calc_value_1}" } }, { "method": "GET", - "url": "/questionnaire/people/{persons_1_list_id}/set-min-max-block/" + "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/" }, { "method": "POST", - "url": "/questionnaire/people/{persons_1_list_id}/set-min-max-block/", + "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/", "data": { - "set-minimum-answer": "400", + "set-minimum-answer": "500", "set-maximum-answer": "200" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{persons_1_list_id}" + "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{persons_1_list_id}/", - "data": {} + "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/", + "data": {}, + "redirect_route": "/questionnaire/people/{person_2_list_id}/third-number-block/" }, { "method": "GET", - "url": "/questionnaire/submit/" + "url": "/questionnaire/people/{person_2_list_id}/third-number-block/" }, { "method": "POST", - "url": "/questionnaire/submit/", - "data": {} + "url": "/questionnaire/people/{person_2_list_id}/third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" + } }, { "method": "GET", - "url": "/submitted/thank-you/" + "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/" }, { - "method": "GET", - "url": "/submitted/view-response/" + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/", + "data": {} }, { "method": "GET", - "url": "/submitted/thank-you/" + "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/", + "data": { + "checkbox-exclusive-answer": "I prefer not to say" + } }, { "method": "GET", - "url": "/submitted/feedback/send" + "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/" }, { "method": "POST", - "url": "/submitted/feedback/send", + "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/", "data": { - "feedback-type": "The survey questions", - "feedback-text": "Feedback" + "set-minimum-answer": "500", + "set-maximum-answer": "100" } }, { "method": "GET", - "url": "/submitted/feedback/sent" + "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/submit/" + }, + { + "method": "POST", + "url": "/questionnaire/submit/", + "data": {} }, { "method": "GET", "url": "/submitted/thank-you/" + }, + { + "method": "GET", + "url": "/submitted/view-response/" + }, + { + "method": "GET", + "url": "/submitted/download-pdf" } ], "schema_name": "test_benchmark_business", From d5c72a6460ec7e91e8b44c037d10755c8f0e2a54 Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Fri, 29 Sep 2023 10:59:49 +0100 Subject: [PATCH 11/25] update read me to intergrate hub schemas --- README.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/README.md b/README.md index 1cedd5e3..1d5a3a46 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,43 @@ N.B Although the above example uses the same url in the redirect as the GET, it Manually adding in a redirect is only needed once for each list_item_id and you can do multiple at the same time. --- +## Dealing Hub Schemas +Before you make a request file with a hub schema. You will need to add sections the hub is visible to in `required_completed_sections` + +``` + "questionnaire_flow": { + "type": "Hub", + "options": { + "required_completed_sections": ["stock-section"] + } + } +``` + +Once you create the request file you will need to remove any json object with the url `"url": "/questionnaire/"` For example: + +``` + { + "method": "GET", + "url": "/questionnaire/" + } +``` + +Finally at the end of the schema make sure you have these json objects before the `"url": "/submitted/thank-you"` object. + +``` + { + "method": "GET", + "url": "/questionnaire/submit/" + }, + { + "method": "POST", + "url": "/questionnaire/submit/", + "data": {} + }, +``` + +You then need to make sure ## Deployment with [Helm](https://helm.sh/) To deploy this application with helm, you must have a kubernetes cluster already running and be logged into the cluster. From 486456ddbc42422578af35a1563bc59279a1570c Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Fri, 29 Sep 2023 11:08:17 +0100 Subject: [PATCH 12/25] fix grammar errors in read me --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 1d5a3a46..d4ea971a 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ Manually adding in a redirect is only needed once for each list_item_id and you --- ## Dealing Hub Schemas -Before you make a request file with a hub schema. You will need to add sections the hub is visible to in `required_completed_sections` +Before you make a request file with a hub schema. You will need to add the sections to the `required_completed_sections` in the schema, for example: ``` "questionnaire_flow": { @@ -153,7 +153,6 @@ Finally at the end of the schema make sure you have these json objects before th }, ``` -You then need to make sure ## Deployment with [Helm](https://helm.sh/) To deploy this application with helm, you must have a kubernetes cluster already running and be logged into the cluster. From a03c5bc4cfe81f4f9b350d6a299e09b131a7eba9 Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Fri, 29 Sep 2023 11:10:31 +0100 Subject: [PATCH 13/25] Fix title name for hub section --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d4ea971a..d5abca1d 100644 --- a/README.md +++ b/README.md @@ -117,9 +117,9 @@ N.B Although the above example uses the same url in the redirect as the GET, it Manually adding in a redirect is only needed once for each list_item_id and you can do multiple at the same time. --- -## Dealing Hub Schemas +## Dealing with hub schemas -Before you make a request file with a hub schema. You will need to add the sections to the `required_completed_sections` in the schema, for example: +Before you make a request file with a hub schema. You will need to add the sections to the `required_completed_sections` in the schema. For Example: ``` "questionnaire_flow": { @@ -130,7 +130,7 @@ Before you make a request file with a hub schema. You will need to add the secti } ``` -Once you create the request file you will need to remove any json object with the url `"url": "/questionnaire/"` For example: +Once you create the request file you will need to remove any json object with the url `"url": "/questionnaire/"`. For Example: ``` { From 30f4d9c923517445857222edc0ca102915ffc5c9 Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Fri, 29 Sep 2023 13:17:15 +0100 Subject: [PATCH 14/25] remove hub readme section --- README.md | 36 - ...st_benchmark_business_unhappy_hub_pdf.json | 762 ++++++++++++++++++ 2 files changed, 762 insertions(+), 36 deletions(-) create mode 100644 requests/test_benchmark_business_unhappy_hub_pdf.json diff --git a/README.md b/README.md index d5abca1d..89876088 100644 --- a/README.md +++ b/README.md @@ -117,42 +117,6 @@ N.B Although the above example uses the same url in the redirect as the GET, it Manually adding in a redirect is only needed once for each list_item_id and you can do multiple at the same time. --- -## Dealing with hub schemas - -Before you make a request file with a hub schema. You will need to add the sections to the `required_completed_sections` in the schema. For Example: - -``` - "questionnaire_flow": { - "type": "Hub", - "options": { - "required_completed_sections": ["stock-section"] - } - } -``` - -Once you create the request file you will need to remove any json object with the url `"url": "/questionnaire/"`. For Example: - -``` - { - "method": "GET", - "url": "/questionnaire/" - } -``` - -Finally at the end of the schema make sure you have these json objects before the `"url": "/submitted/thank-you"` object. - -``` - { - "method": "GET", - "url": "/questionnaire/submit/" - }, - { - "method": "POST", - "url": "/questionnaire/submit/", - "data": {} - }, -``` - ## Deployment with [Helm](https://helm.sh/) To deploy this application with helm, you must have a kubernetes cluster already running and be logged into the cluster. diff --git a/requests/test_benchmark_business_unhappy_hub_pdf.json b/requests/test_benchmark_business_unhappy_hub_pdf.json new file mode 100644 index 00000000..bb733c06 --- /dev/null +++ b/requests/test_benchmark_business_unhappy_hub_pdf.json @@ -0,0 +1,762 @@ +{ + "requests": [ + { + "method": "POST", + "url": "/questionnaire/introduction-block/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/block-379/" + }, + { + "method": "POST", + "url": "/questionnaire/block-379/", + "data": { + "answer-434": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-380/" + }, + { + "method": "POST", + "url": "/questionnaire/block-380/", + "data": { + "answer-from-day": "1", + "answer-from-month": "05", + "answer-from-year": "2019", + "answer-to-day": "1", + "answer-to-month": "08", + "answer-to-year": "2019" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-381/" + }, + { + "method": "GET", + "url": "/questionnaire/block-380/" + }, + { + "method": "GET", + "url": "/questionnaire/block-379/" + }, + { + "method": "POST", + "url": "/questionnaire/block-379/", + "data": { + "answer-434": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-381/" + }, + { + "method": "POST", + "url": "/questionnaire/block-381/", + "data": { + "answer-436": "100", + "answer-437": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-4616/" + }, + { + "method": "POST", + "url": "/questionnaire/block-4616/", + "data": { + "answer-5873": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-4952/" + }, + { + "method": "POST", + "url": "/questionnaire/block-4952/", + "data": { + "answer-6287": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-4953/" + }, + { + "method": "POST", + "url": "/questionnaire/block-4953/", + "data": { + "answer-6288": "Start or end of long term project" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-383/" + }, + { + "method": "POST", + "url": "/questionnaire/block-383/", + "data": { + "answer-439": "Hi eQ team !" + } + }, + { + "method": "GET", + "url": "/questionnaire/primary-person-list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/primary-person-list-collector/", + "data": { + "you-live-here": "Yes" + }, + "redirect_route": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/", + "data": { + "first-name": "Joe", + "last-name": "Bloggs" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/add-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/add-person/", + "data": { + "first-name": "Sarah", + "last-name": "Bloggs" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/add-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/add-person/", + "data": { + "first-name": "Erling", + "last-name": "Haaland" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/add-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/add-person/", + "data": { + "first-name": "Lebron", + "last-name": "James" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/skip-first-block/" + }, + { + "method": "POST", + "url": "/questionnaire/skip-first-block/", + "data": { + "skip-first-block-answer": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/first-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/first-number-block/", + "data": { + "first-number-answer": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/first-and-a-half-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/first-and-a-half-number-block/", + "data": { + "first-and-a-half-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/second-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/second-number-block/", + "data": { + "second-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/currency-total-playback-1/" + }, + { + "method": "GET", + "url": "/questionnaire/first-number-block/?return_to=calculated-summary&return_to_answer_id=first-number-answer&return_to_block_id=currency-total-playback-1" + }, + { + "method": "POST", + "url": "/questionnaire/first-number-block/?return_to=calculated-summary&return_to_answer_id=first-number-answer&return_to_block_id=currency-total-playback-1", + "data": { + "first-number-answer": "200.00" + } + }, + { + "method": "GET", + "url": "/questionnaire/currency-total-playback-1/" + }, + { + "method": "POST", + "url": "/questionnaire/currency-total-playback-1/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/questions-section/" + }, + { + "method": "GET", + "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer" + }, + { + "method": "POST", + "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer", + "data": { + "skip-first-block-answer": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/questions-section/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/questions-section/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_list_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_list_id}/third-number-block/", + "data": { + "third-number-answer": "200", + "third-number-answer-also-in-total": "200" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/", + "data": { + "checkbox-answer": "{calc_value_2}" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "200", + "set-maximum-answer": "50" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/?return_to=section-summary&return_to_answer_id=checkbox-answer" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/?return_to=section-summary&return_to_answer_id=checkbox-answer", + "data": { + "checkbox-answer": "{answer_value_1}" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/", + "data": {}, + "redirect_route": "/questionnaire/people/{person_2_list_id}/third-number-block/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_list_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/", + "data": { + "checkbox-exclusive-answer": "I prefer not to say" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "200", + "set-maximum-answer": "50" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/?return_to=section-summary&return_to_answer_id=checkbox-exclusive-answer" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/?return_to=section-summary&return_to_answer_id=checkbox-exclusive-answer", + "data": { + "checkbox-answer": "{calc_value_2}" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/house-hold-section/" + }, + { + "method": "GET", + "url": "/questionnaire/primary-person-list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/primary-person-list-collector/", + "data": { + "you-live-here": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/house-hold-section/" + }, + { + "method": "GET", + "url": "/questionnaire/primary-person-list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/primary-person-list-collector/", + "data": { + "you-live-here": "Yes" + }, + "redirect_route": "/questionnaire/people/{person_3_list_id}/add-or-edit-primary-person/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_3_list_id}/add-or-edit-primary-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_3_list_id}/add-or-edit-primary-person/", + "data": { + "first-name": "Joe", + "last-name": "Bloggs" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_3_list_id}/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_3_list_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_3_list_id}/third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "200" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_3_list_id}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_3_list_id}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_3_list_id}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_3_list_id}/mutually-exclusive-checkbox/", + "data": { + "checkbox-answer": "{third_answer_value}" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_3_list_id}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_3_list_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "200", + "set-maximum-answer": "50" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_3_list_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_3_list_id}/", + "data": {}, + "redirect_route": "/questionnaire/people/{person_4_list_id}/third-number-block/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_4_list_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_4_list_id}/third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_4_list_id}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_4_list_id}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_4_list_id}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_4_list_id}/mutually-exclusive-checkbox/", + "data": { + "checkbox-exclusive-answer": "I prefer not to say" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_4_list_id}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_4_list_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "150", + "set-maximum-answer": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_4_list_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_4_list_id}/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/house-hold-section/" + }, + { + "method": "GET", + "url": "/questionnaire/primary-person-list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/primary-person-list-collector/", + "data": { + "you-live-here": "Yes" + }, + "redirect_route": "/questionnaire/people/{person_3_list_id}/add-or-edit-primary-person/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_3_list_id}/add-or-edit-primary-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_3_list_id}/add-or-edit-primary-person/", + "data": { + "first-name": "Joe", + "last-name": "Bloggs" + }, + "redirect_route":"/questionnaire/people/{person_5_list_id}/third-number-block/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_5_list_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_5_list_id}/third-number-block/", + "data": { + "third-number-answer": "200", + "third-number-answer-also-in-total": "200" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_5_list_id}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_5_list_id}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_5_list_id}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_5_list_id}/mutually-exclusive-checkbox/", + "data": { + "checkbox-answer": "{third_answer_value}" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_5_list_id}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_5_list_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "100", + "set-maximum-answer": "200" + } + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_5_list_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "100", + "set-maximum-answer": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_5_list_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_5_list_id}/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_4_list_id}/remove-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_4_list_id}/remove-person/", + "data": { + "remove-confirmation": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_list_id}/edit-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_list_id}/edit-person/", + "data": { + "first-name": "Erling", + "last-name": "Haaaland" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/questions-section/" + }, + { + "method": "GET", + "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer" + }, + { + "method": "POST", + "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer", + "data": { + "skip-first-block-answer": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/questions-section/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/questions-section/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/submit/" + }, + { + "method": "POST", + "url": "/questionnaire/submit/", + "data": {} + }, + { + "method": "GET", + "url": "/submitted/thank-you/" + } + ], + "schema_name": "test_benchmark_business", + "schema_url": "https://storage.googleapis.com/eq-questionnaire-schemas/test_benchmark_business.json" +} \ No newline at end of file From 50f71ed33f61edac10a59f5605f88f61f6c7ea19 Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Fri, 29 Sep 2023 13:27:06 +0100 Subject: [PATCH 15/25] update all test benchamrks to use hub --- .../test_benchmark_business_happy_path.json | 70 +- requests/test_benchmark_business_pdfkit.json | 70 +- requests/test_benchmark_business_unhappy.json | 465 ++++------- ...st_benchmark_business_unhappy_hub_pdf.json | 762 ------------------ 4 files changed, 262 insertions(+), 1105 deletions(-) delete mode 100644 requests/test_benchmark_business_unhappy_hub_pdf.json diff --git a/requests/test_benchmark_business_happy_path.json b/requests/test_benchmark_business_happy_path.json index 6df4ddc7..e08c2434 100644 --- a/requests/test_benchmark_business_happy_path.json +++ b/requests/test_benchmark_business_happy_path.json @@ -86,15 +86,15 @@ "data": { "you-live-here": "Yes" }, - "redirect_route": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" + "redirect_route": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/" }, { "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" + "url": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/", + "url": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/", "data": { "first-name": "Joe", "last-name": "Bloggs" @@ -198,11 +198,20 @@ }, { "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/third-number-block/" + "url": "/questionnaire/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/third-number-block/", + "url": "/questionnaire/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_id}/third-number-block/", "data": { "third-number-answer": "100", "third-number-answer-also-in-total": "100" @@ -210,31 +219,31 @@ }, { "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/" + "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/", + "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/" + "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/", + "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/", "data": { "checkbox-answer": "{calc_value_1}" } }, { "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/" + "url": "/questionnaire/people/{person_1_id}/set-min-max-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/", + "url": "/questionnaire/people/{person_1_id}/set-min-max-block/", "data": { "set-minimum-answer": "500", "set-maximum-answer": "200" @@ -242,21 +251,30 @@ }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/" + "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/", + "url": "/questionnaire/", "data": {}, - "redirect_route": "/questionnaire/people/{person_2_list_id}/third-number-block/" + "redirect_route": "/questionnaire/people/{person_2_id}/third-number-block/" }, { "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/third-number-block/" + "url": "/questionnaire/people/{person_2_id}/third-number-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/third-number-block/", + "url": "/questionnaire/people/{person_2_id}/third-number-block/", "data": { "third-number-answer": "100", "third-number-answer-also-in-total": "100" @@ -264,31 +282,31 @@ }, { "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/" + "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/", + "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/" + "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/", + "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/", "data": { "checkbox-exclusive-answer": "I prefer not to say" } }, { "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/" + "url": "/questionnaire/people/{person_2_id}/set-min-max-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/", + "url": "/questionnaire/people/{person_2_id}/set-min-max-block/", "data": { "set-minimum-answer": "500", "set-maximum-answer": "100" @@ -296,20 +314,20 @@ }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/" + "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/", + "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/", "data": {} }, { "method": "GET", - "url": "/questionnaire/submit/" + "url": "/questionnaire/" }, { "method": "POST", - "url": "/questionnaire/submit/", + "url": "/questionnaire/", "data": {} }, { diff --git a/requests/test_benchmark_business_pdfkit.json b/requests/test_benchmark_business_pdfkit.json index b1be7f6f..972ff41e 100644 --- a/requests/test_benchmark_business_pdfkit.json +++ b/requests/test_benchmark_business_pdfkit.json @@ -86,15 +86,15 @@ "data": { "you-live-here": "Yes" }, - "redirect_route": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" + "redirect_route": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/" }, { "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" + "url": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/", + "url": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/", "data": { "first-name": "Joe", "last-name": "Bloggs" @@ -198,11 +198,20 @@ }, { "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/third-number-block/" + "url": "/questionnaire/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/third-number-block/", + "url": "/questionnaire/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_id}/third-number-block/", "data": { "third-number-answer": "100", "third-number-answer-also-in-total": "100" @@ -210,31 +219,31 @@ }, { "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/" + "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/", + "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/" + "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/", + "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/", "data": { "checkbox-answer": "{calc_value_1}" } }, { "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/" + "url": "/questionnaire/people/{person_1_id}/set-min-max-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/", + "url": "/questionnaire/people/{person_1_id}/set-min-max-block/", "data": { "set-minimum-answer": "500", "set-maximum-answer": "200" @@ -242,21 +251,30 @@ }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/" + "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/", + "url": "/questionnaire/", "data": {}, - "redirect_route": "/questionnaire/people/{person_2_list_id}/third-number-block/" + "redirect_route": "/questionnaire/people/{person_2_id}/third-number-block/" }, { "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/third-number-block/" + "url": "/questionnaire/people/{person_2_id}/third-number-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/third-number-block/", + "url": "/questionnaire/people/{person_2_id}/third-number-block/", "data": { "third-number-answer": "100", "third-number-answer-also-in-total": "100" @@ -264,31 +282,31 @@ }, { "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/" + "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/", + "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/" + "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/", + "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/", "data": { "checkbox-exclusive-answer": "I prefer not to say" } }, { "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/" + "url": "/questionnaire/people/{person_2_id}/set-min-max-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/", + "url": "/questionnaire/people/{person_2_id}/set-min-max-block/", "data": { "set-minimum-answer": "500", "set-maximum-answer": "100" @@ -296,20 +314,20 @@ }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/" + "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/", + "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/", "data": {} }, { "method": "GET", - "url": "/questionnaire/submit/" + "url": "/questionnaire/" }, { "method": "POST", - "url": "/questionnaire/submit/", + "url": "/questionnaire/", "data": {} }, { diff --git a/requests/test_benchmark_business_unhappy.json b/requests/test_benchmark_business_unhappy.json index def93456..493c4ddd 100644 --- a/requests/test_benchmark_business_unhappy.json +++ b/requests/test_benchmark_business_unhappy.json @@ -13,6 +13,41 @@ "method": "GET", "url": "/questionnaire/block-379/" }, + { + "method": "POST", + "url": "/questionnaire/block-379/", + "data": { + "answer-434": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-380/" + }, + { + "method": "POST", + "url": "/questionnaire/block-380/", + "data": { + "answer-from-day": "1", + "answer-from-month": "05", + "answer-from-year": "2019", + "answer-to-day": "1", + "answer-to-month": "08", + "answer-to-year": "2019" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-381/" + }, + { + "method": "GET", + "url": "/questionnaire/block-380/" + }, + { + "method": "GET", + "url": "/questionnaire/block-379/" + }, { "method": "POST", "url": "/questionnaire/block-379/", @@ -28,8 +63,8 @@ "method": "POST", "url": "/questionnaire/block-381/", "data": { - "answer-436": "1234", - "answer-437": "5544" + "answer-436": "100", + "answer-437": "100" } }, { @@ -40,7 +75,7 @@ "method": "POST", "url": "/questionnaire/block-4616/", "data": { - "answer-5873": "Yes" + "answer-5873": "No" } }, { @@ -62,7 +97,7 @@ "method": "POST", "url": "/questionnaire/block-4953/", "data": { - "answer-6288": "Start or end of long term project" + "answer-6288": "Other (for example, end of the EU transition period, leaving the EU or other global economic conditions." } }, { @@ -73,7 +108,7 @@ "method": "POST", "url": "/questionnaire/block-383/", "data": { - "answer-439": "comments" + "answer-439": "Hi eQ\r\n" } }, { @@ -86,7 +121,7 @@ "data": { "you-live-here": "Yes" }, - "redirect_route": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/" + "redirect_route":"/questionnaire/people/{person_1_id}/add-or-edit-primary-person/" }, { "method": "GET", @@ -119,31 +154,8 @@ "method": "POST", "url": "/questionnaire/people/add-person/", "data": { - "first-name": "John", - "last-name": "Smith" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/add-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/add-person/", - "data": { - "first-name": "Jane", - "last-name": "Doe" + "first-name": "Erling", + "last-name": "Haland" } }, { @@ -183,148 +195,106 @@ "method": "GET", "url": "/questionnaire/currency-total-playback-1/" }, - { - "method": "GET", - "url": "/questionnaire/second-number-block/?return_to=calculated-summary&return_to_answer_id=second-number-answer-also-in-total&return_to_block_id=currency-total-playback-1" - }, { "method": "POST", - "url": "/questionnaire/second-number-block/?return_to=calculated-summary&return_to_answer_id=second-number-answer-also-in-total&return_to_block_id=currency-total-playback-1", - "data": { - "second-number-answer-also-in-total": "150.00" - } + "url": "/questionnaire/currency-total-playback-1/", + "data": {} }, { "method": "GET", - "url": "/questionnaire/currency-total-playback-1/" + "url": "/questionnaire/sections/questions-section/" }, { "method": "POST", - "url": "/questionnaire/currency-total-playback-1/", + "url": "/questionnaire/sections/questions-section/", "data": {} }, { "method": "GET", - "url": "/questionnaire/sections/questions-section/" + "url": "/questionnaire/" }, { "method": "GET", - "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer" - }, - { - "method": "POST", - "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer", - "data": { - "skip-first-block-answer": "No" - } + "url": "/questionnaire/sections/questions-section/" }, { "method": "GET", - "url": "/questionnaire/first-number-block/?return_to=section-summary" + "url": "/questionnaire/second-number-block/?return_to=section-summary&return_to_answer_id=second-number-answer-also-in-total" }, { "method": "POST", - "url": "/questionnaire/first-number-block/?return_to=section-summary", + "url": "/questionnaire/second-number-block/?return_to=section-summary&return_to_answer_id=second-number-answer-also-in-total", "data": { - "first-number-answer": "500" + "second-number-answer-also-in-total": "1001.00" } }, { "method": "GET", - "url": "/questionnaire/first-and-a-half-number-block/?return_to=section-summary" + "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary" }, { "method": "POST", - "url": "/questionnaire/first-and-a-half-number-block/?return_to=section-summary", - "data": { - "first-and-a-half-number-answer-also-in-total": "159" - } + "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary", + "data": {} }, { "method": "GET", - "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary" + "url": "/questionnaire/sections/questions-section/" }, { "method": "GET", - "url": "/questionnaire/first-and-a-half-number-block/?return_to=calculated-summary&return_to_answer_id=first-and-a-half-number-answer-also-in-total&return_to_block_id=currency-total-playback-1" + "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer" }, { "method": "POST", - "url": "/questionnaire/first-and-a-half-number-block/?return_to=calculated-summary&return_to_answer_id=first-and-a-half-number-answer-also-in-total&return_to_block_id=currency-total-playback-1", + "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer", "data": { - "first-and-a-half-number-answer-also-in-total": "3159.00" + "skip-first-block-answer": "No" } }, { "method": "GET", - "url": "/questionnaire/currency-total-playback-1/" - }, - { - "method": "GET", - "url": "/questionnaire/second-number-block/" - }, - { - "method": "GET", - "url": "/questionnaire/first-and-a-half-number-block/" - }, - { - "method": "GET", - "url": "/questionnaire/first-number-block/" - }, - { - "method": "GET", - "url": "/questionnaire/skip-first-block/" + "url": "/questionnaire/first-number-block/?return_to=section-summary" }, { "method": "POST", - "url": "/questionnaire/skip-first-block/", + "url": "/questionnaire/first-number-block/?return_to=section-summary", "data": { - "skip-first-block-answer": "Yes" + "first-number-answer": "10000" } }, { "method": "GET", - "url": "/questionnaire/second-number-block/" + "url": "/questionnaire/first-and-a-half-number-block/?return_to=section-summary" }, { "method": "POST", - "url": "/questionnaire/second-number-block/", + "url": "/questionnaire/first-and-a-half-number-block/?return_to=section-summary", "data": { - "second-number-answer-also-in-total": "150.00" + "first-and-a-half-number-answer-also-in-total": "2000" } }, { "method": "GET", - "url": "/questionnaire/currency-total-playback-1/" + "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary" }, { "method": "POST", - "url": "/questionnaire/currency-total-playback-1/", + "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary", "data": {} }, { "method": "GET", "url": "/questionnaire/sections/questions-section/" }, - { - "method": "GET", - "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer" - }, { "method": "POST", - "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer", - "data": { - "skip-first-block-answer": "No" - } + "url": "/questionnaire/sections/questions-section/", + "data": {} }, { "method": "GET", - "url": "/questionnaire/sections/questions-section/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/questions-section/", - "data": {} + "url": "/questionnaire/" }, { "method": "GET", @@ -334,8 +304,8 @@ "method": "POST", "url": "/questionnaire/people/{person_1_id}/third-number-block/", "data": { - "third-number-answer": "150", - "third-number-answer-also-in-total": "300" + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" } }, { @@ -355,7 +325,7 @@ "method": "POST", "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/", "data": { - "checkbox-answer": "{calc_value_2}" + "checkbox-answer": "{third_answer_value}" } }, { @@ -366,417 +336,330 @@ "method": "POST", "url": "/questionnaire/people/{person_1_id}/set-min-max-block/", "data": { - "set-minimum-answer": "4000", - "set-maximum-answer": "1000" + "set-minimum-answer": "13001", + "set-maximum-answer": "100" } }, { "method": "GET", "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_id}/third-number-block/?return_to=section-summary&return_to_answer_id=third-number-answer-also-in-total" - }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/third-number-block/?return_to=section-summary&return_to_answer_id=third-number-answer-also-in-total", - "data": { - "third-number-answer": "150.00", - "third-number-answer-also-in-total": "1300.00" - } + "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/", + "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/?return_to=section-summary" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/?return_to=section-summary", - "data": {} + "url": "/questionnaire/" }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" + "url": "/questionnaire/sections/questions-section/" }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/?return_to=section-summary&return_to_answer_id=checkbox-answer" + "url": "/questionnaire/first-number-block/?return_to=section-summary&return_to_answer_id=first-number-answer" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/?return_to=section-summary&return_to_answer_id=checkbox-answer", + "url": "/questionnaire/first-number-block/?return_to=section-summary&return_to_answer_id=first-number-answer", "data": { - "checkbox-answer": "{calc_value_2}" + "first-number-answer": "100" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" + "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary" }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/set-min-max-block/" + "url": "/questionnaire/first-and-a-half-number-block/?return_to=calculated-summary&return_to_answer_id=first-and-a-half-number-answer-also-in-total&return_to_block_id=currency-total-playback-1" }, { - "method": "GET", - "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/" + "method": "POST", + "url": "/questionnaire/first-and-a-half-number-block/?return_to=calculated-summary&return_to_answer_id=first-and-a-half-number-answer-also-in-total&return_to_block_id=currency-total-playback-1", + "data": { + "first-and-a-half-number-answer-also-in-total": "100" + } }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/" + "url": "/questionnaire/currency-total-playback-1/" }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/third-number-block/" + "url": "/questionnaire/second-number-block/?return_to=calculated-summary&return_to_answer_id=second-number-answer-also-in-total&return_to_block_id=currency-total-playback-1" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/third-number-block/", + "url": "/questionnaire/second-number-block/?return_to=calculated-summary&return_to_answer_id=second-number-answer-also-in-total&return_to_block_id=currency-total-playback-1", "data": { - "third-number-answer": "150.00", - "third-number-answer-also-in-total": "1300.00" + "second-number-answer-also-in-total": "100" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" + "url": "/questionnaire/currency-total-playback-1/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/", - "data": {}, - "redirect_route": "/questionnaire/people/{person_2_id}/third-number-block/" + "url": "/questionnaire/currency-total-playback-1/", + "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/third-number-block/" + "url": "/questionnaire/sections/questions-section/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/third-number-block/", - "data": { - "third-number-answer": "150", - "third-number-answer-also-in-total": "600" - } + "url": "/questionnaire/sections/questions-section/", + "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/" + "url": "/questionnaire/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/", + "url": "/questionnaire/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/" + "url": "/questionnaire/people/{person_1_id}/set-min-max-block/?resume=True" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/", + "url": "/questionnaire/people/{person_1_id}/set-min-max-block/?resume=True", "data": { - "checkbox-answer": "{third_answer_value}" + "set-minimum-answer": "400", + "set-maximum-answer": "100" } }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/set-min-max-block/" + "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/set-min-max-block/", - "data": { - "set-minimum-answer": "6000", - "set-maximum-answer": "100" - } + "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/", + "data": {} }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/" + "url": "/questionnaire/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/", + "url": "/questionnaire/", "data": {}, - "redirect_route": "/questionnaire/people/{person_3_id}/third-number-block/" + "redirect_route": "/questionnaire/people/{person_2_id}/third-number-block/" }, { "method": "GET", - "url": "/questionnaire/people/{person_3_id}/third-number-block/" + "url": "/questionnaire/people/{person_2_id}/third-number-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_3_id}/third-number-block/", + "url": "/questionnaire/people/{person_2_id}/third-number-block/", "data": { - "third-number-answer": "125", - "third-number-answer-also-in-total": "500" + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" } }, { "method": "GET", - "url": "/questionnaire/people/{person_3_id}/currency-total-playback-2/" + "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/" }, { "method": "POST", - "url": "/questionnaire/people/{person_3_id}/currency-total-playback-2/", + "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_3_id}/mutually-exclusive-checkbox/" + "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/" }, { "method": "POST", - "url": "/questionnaire/people/{person_3_id}/mutually-exclusive-checkbox/", + "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/", "data": { - "checkbox-exclusive-answer": "I prefer not to say" + "checkbox-answer": "{third_answer_value}" } }, { "method": "GET", - "url": "/questionnaire/people/{person_3_id}/set-min-max-block/" + "url": "/questionnaire/people/{person_2_id}/set-min-max-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_3_id}/set-min-max-block/", + "url": "/questionnaire/people/{person_2_id}/set-min-max-block/", "data": { - "set-minimum-answer": "5000", - "set-maximum-answer": "50" + "set-minimum-answer": "400", + "set-maximum-answer": "100" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_3_id}/" + "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_3_id}/", + "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/", "data": {} }, { "method": "GET", - "url": "/questionnaire/submit/" + "url": "/questionnaire/" }, { "method": "GET", - "url": "/questionnaire/first-and-a-half-number-block/?return_to=final-summary&return_to_answer_id=first-and-a-half-number-answer-also-in-total" + "url": "/questionnaire/list-collector/" }, { "method": "POST", - "url": "/questionnaire/first-and-a-half-number-block/?return_to=final-summary&return_to_answer_id=first-and-a-half-number-answer-also-in-total", + "url": "/questionnaire/list-collector/", "data": { - "first-and-a-half-number-answer-also-in-total": "32159.00" + "anyone-else": "Yes" } }, { "method": "GET", - "url": "/questionnaire/currency-total-playback-1/?return_to=final-summary" + "url": "/questionnaire/people/add-person/" }, { "method": "POST", - "url": "/questionnaire/currency-total-playback-1/?return_to=final-summary", - "data": {} + "url": "/questionnaire/people/add-person/", + "data": { + "first-name": "Matt", + "last-name": "Smith" + } }, { "method": "GET", - "url": "/questionnaire/sections/questions-section/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/questions-section/", - "data": {} + "url": "/questionnaire/list-collector/" }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/set-min-max-block/?resume=True" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_id}/set-min-max-block/?resume=True", - "data": { - "set-minimum-answer": "40000.00", - "set-maximum-answer": "1000.00" - } + "url": "/questionnaire/people/{person_2_id}/remove-person/" }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/", - "data": {} + "url": "/questionnaire/list-collector/" }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/set-min-max-block/?resume=True" + "url": "/questionnaire/people/{person_2_id}/edit-person/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/set-min-max-block/?resume=True", + "url": "/questionnaire/people/{person_2_id}/edit-person/", "data": { - "set-minimum-answer": "60000.00", - "set-maximum-answer": "100.00" + "first-name": "Erling", + "last-name": "Haaland" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_3_id}/set-min-max-block/?resume=True" + "url": "/questionnaire/list-collector/" }, { "method": "POST", - "url": "/questionnaire/people/{person_3_id}/set-min-max-block/?resume=True", + "url": "/questionnaire/list-collector/", "data": { - "set-minimum-answer": "50000.00", - "set-maximum-answer": "50.00" + "anyone-else": "No" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_3_id}/" + "url": "/questionnaire/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_3_id}/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/submit/" - }, - { - "method": "GET", - "url": "/questionnaire/block-4953/?return_to=final-summary&return_to_answer_id=answer-6288" - }, - { - "method": "GET", - "url": "/questionnaire/submit/" - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" + "url": "/questionnaire/", + "data": {}, + "redirect_route": "/questionnaire/people/{person_3_id}/third-number-block/" }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/remove-person/" + "url": "/questionnaire/people/{person_3_id}/third-number-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/remove-person/", + "url": "/questionnaire/people/{person_3_id}/third-number-block/", "data": { - "remove-confirmation": "Yes" + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" } }, { "method": "GET", - "url": "/questionnaire/submit/" - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" + "url": "/questionnaire/people/{person_3_id}/currency-total-playback-2/" }, { "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "Yes" - } + "url": "/questionnaire/people/{person_3_id}/currency-total-playback-2/", + "data": {} }, { "method": "GET", - "url": "/questionnaire/people/add-person/" + "url": "/questionnaire/people/{person_3_id}/mutually-exclusive-checkbox/" }, { "method": "POST", - "url": "/questionnaire/people/add-person/", + "url": "/questionnaire/people/{person_3_id}/mutually-exclusive-checkbox/", "data": { - "first-name": "Extra", - "last-name": "Person" + "checkbox-answer": "{third_answer_value}" } }, { "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "No" - }, - "redirect_route": "/questionnaire/people/{person_4_id}/third-number-block/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_4_id}/third-number-block/" + "url": "/questionnaire/people/{person_3_id}/set-min-max-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_4_id}/third-number-block/", + "url": "/questionnaire/people/{person_3_id}/set-min-max-block/", "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "200" + "set-minimum-answer": "370", + "set-maximum-answer": "100" } }, { "method": "GET", - "url": "/questionnaire/people/{person_4_id}/currency-total-playback-2/" + "url": "/questionnaire/sections/calculated-summary-section/{person_3_id}/" }, { "method": "POST", - "url": "/questionnaire/people/{person_4_id}/currency-total-playback-2/", + "url": "/questionnaire/sections/calculated-summary-section/{person_3_id}/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_4_id}/mutually-exclusive-checkbox/" + "url": "/questionnaire/" }, { - "method": "POST", - "url": "/questionnaire/people/{person_4_id}/mutually-exclusive-checkbox/", - "data": { - "checkbox-answer": "{calc_value_2}" - } + "method": "GET", + "url": "/questionnaire/list-collector/" }, { "method": "GET", - "url": "/questionnaire/people/{person_4_id}/set-min-max-block/" + "url": "/questionnaire/people/{person_3_id}/remove-person/" }, { "method": "POST", - "url": "/questionnaire/people/{person_4_id}/set-min-max-block/", + "url": "/questionnaire/people/{person_3_id}/remove-person/", "data": { - "set-minimum-answer": "45000", - "set-maximum-answer": "12" + "remove-confirmation": "Yes" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_4_id}/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_4_id}/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/submit/" + "url": "/questionnaire/" }, { "method": "POST", - "url": "/questionnaire/submit/", + "url": "/questionnaire/", "data": {} }, { diff --git a/requests/test_benchmark_business_unhappy_hub_pdf.json b/requests/test_benchmark_business_unhappy_hub_pdf.json deleted file mode 100644 index bb733c06..00000000 --- a/requests/test_benchmark_business_unhappy_hub_pdf.json +++ /dev/null @@ -1,762 +0,0 @@ -{ - "requests": [ - { - "method": "POST", - "url": "/questionnaire/introduction-block/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/block-379/" - }, - { - "method": "POST", - "url": "/questionnaire/block-379/", - "data": { - "answer-434": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-380/" - }, - { - "method": "POST", - "url": "/questionnaire/block-380/", - "data": { - "answer-from-day": "1", - "answer-from-month": "05", - "answer-from-year": "2019", - "answer-to-day": "1", - "answer-to-month": "08", - "answer-to-year": "2019" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-381/" - }, - { - "method": "GET", - "url": "/questionnaire/block-380/" - }, - { - "method": "GET", - "url": "/questionnaire/block-379/" - }, - { - "method": "POST", - "url": "/questionnaire/block-379/", - "data": { - "answer-434": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-381/" - }, - { - "method": "POST", - "url": "/questionnaire/block-381/", - "data": { - "answer-436": "100", - "answer-437": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-4616/" - }, - { - "method": "POST", - "url": "/questionnaire/block-4616/", - "data": { - "answer-5873": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-4952/" - }, - { - "method": "POST", - "url": "/questionnaire/block-4952/", - "data": { - "answer-6287": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-4953/" - }, - { - "method": "POST", - "url": "/questionnaire/block-4953/", - "data": { - "answer-6288": "Start or end of long term project" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-383/" - }, - { - "method": "POST", - "url": "/questionnaire/block-383/", - "data": { - "answer-439": "Hi eQ team !" - } - }, - { - "method": "GET", - "url": "/questionnaire/primary-person-list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/primary-person-list-collector/", - "data": { - "you-live-here": "Yes" - }, - "redirect_route": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/add-or-edit-primary-person/", - "data": { - "first-name": "Joe", - "last-name": "Bloggs" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/add-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/add-person/", - "data": { - "first-name": "Sarah", - "last-name": "Bloggs" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/add-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/add-person/", - "data": { - "first-name": "Erling", - "last-name": "Haaland" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/add-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/add-person/", - "data": { - "first-name": "Lebron", - "last-name": "James" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/skip-first-block/" - }, - { - "method": "POST", - "url": "/questionnaire/skip-first-block/", - "data": { - "skip-first-block-answer": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/first-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/first-number-block/", - "data": { - "first-number-answer": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/first-and-a-half-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/first-and-a-half-number-block/", - "data": { - "first-and-a-half-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/second-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/second-number-block/", - "data": { - "second-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/currency-total-playback-1/" - }, - { - "method": "GET", - "url": "/questionnaire/first-number-block/?return_to=calculated-summary&return_to_answer_id=first-number-answer&return_to_block_id=currency-total-playback-1" - }, - { - "method": "POST", - "url": "/questionnaire/first-number-block/?return_to=calculated-summary&return_to_answer_id=first-number-answer&return_to_block_id=currency-total-playback-1", - "data": { - "first-number-answer": "200.00" - } - }, - { - "method": "GET", - "url": "/questionnaire/currency-total-playback-1/" - }, - { - "method": "POST", - "url": "/questionnaire/currency-total-playback-1/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/sections/questions-section/" - }, - { - "method": "GET", - "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer" - }, - { - "method": "POST", - "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer", - "data": { - "skip-first-block-answer": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/questions-section/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/questions-section/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/third-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/third-number-block/", - "data": { - "third-number-answer": "200", - "third-number-answer-also-in-total": "200" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/currency-total-playback-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/", - "data": { - "checkbox-answer": "{calc_value_2}" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/set-min-max-block/", - "data": { - "set-minimum-answer": "200", - "set-maximum-answer": "50" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/?return_to=section-summary&return_to_answer_id=checkbox-answer" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_list_id}/mutually-exclusive-checkbox/?return_to=section-summary&return_to_answer_id=checkbox-answer", - "data": { - "checkbox-answer": "{answer_value_1}" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_list_id}/", - "data": {}, - "redirect_route": "/questionnaire/people/{person_2_list_id}/third-number-block/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/third-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/third-number-block/", - "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/currency-total-playback-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/", - "data": { - "checkbox-exclusive-answer": "I prefer not to say" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/set-min-max-block/", - "data": { - "set-minimum-answer": "200", - "set-maximum-answer": "50" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/?return_to=section-summary&return_to_answer_id=checkbox-exclusive-answer" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/mutually-exclusive-checkbox/?return_to=section-summary&return_to_answer_id=checkbox-exclusive-answer", - "data": { - "checkbox-answer": "{calc_value_2}" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_list_id}/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/sections/house-hold-section/" - }, - { - "method": "GET", - "url": "/questionnaire/primary-person-list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/primary-person-list-collector/", - "data": { - "you-live-here": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/house-hold-section/" - }, - { - "method": "GET", - "url": "/questionnaire/primary-person-list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/primary-person-list-collector/", - "data": { - "you-live-here": "Yes" - }, - "redirect_route": "/questionnaire/people/{person_3_list_id}/add-or-edit-primary-person/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_3_list_id}/add-or-edit-primary-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_3_list_id}/add-or-edit-primary-person/", - "data": { - "first-name": "Joe", - "last-name": "Bloggs" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_3_list_id}/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_3_list_id}/third-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_3_list_id}/third-number-block/", - "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "200" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_3_list_id}/currency-total-playback-2/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_3_list_id}/currency-total-playback-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_3_list_id}/mutually-exclusive-checkbox/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_3_list_id}/mutually-exclusive-checkbox/", - "data": { - "checkbox-answer": "{third_answer_value}" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_3_list_id}/set-min-max-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_3_list_id}/set-min-max-block/", - "data": { - "set-minimum-answer": "200", - "set-maximum-answer": "50" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_3_list_id}/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_3_list_id}/", - "data": {}, - "redirect_route": "/questionnaire/people/{person_4_list_id}/third-number-block/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_4_list_id}/third-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_4_list_id}/third-number-block/", - "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_4_list_id}/currency-total-playback-2/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_4_list_id}/currency-total-playback-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_4_list_id}/mutually-exclusive-checkbox/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_4_list_id}/mutually-exclusive-checkbox/", - "data": { - "checkbox-exclusive-answer": "I prefer not to say" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_4_list_id}/set-min-max-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_4_list_id}/set-min-max-block/", - "data": { - "set-minimum-answer": "150", - "set-maximum-answer": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_4_list_id}/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_4_list_id}/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/sections/house-hold-section/" - }, - { - "method": "GET", - "url": "/questionnaire/primary-person-list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/primary-person-list-collector/", - "data": { - "you-live-here": "Yes" - }, - "redirect_route": "/questionnaire/people/{person_3_list_id}/add-or-edit-primary-person/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_3_list_id}/add-or-edit-primary-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_3_list_id}/add-or-edit-primary-person/", - "data": { - "first-name": "Joe", - "last-name": "Bloggs" - }, - "redirect_route":"/questionnaire/people/{person_5_list_id}/third-number-block/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_5_list_id}/third-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_5_list_id}/third-number-block/", - "data": { - "third-number-answer": "200", - "third-number-answer-also-in-total": "200" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_5_list_id}/currency-total-playback-2/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_5_list_id}/currency-total-playback-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_5_list_id}/mutually-exclusive-checkbox/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_5_list_id}/mutually-exclusive-checkbox/", - "data": { - "checkbox-answer": "{third_answer_value}" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_5_list_id}/set-min-max-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_5_list_id}/set-min-max-block/", - "data": { - "set-minimum-answer": "100", - "set-maximum-answer": "200" - } - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_5_list_id}/set-min-max-block/", - "data": { - "set-minimum-answer": "100", - "set-maximum-answer": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_5_list_id}/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_5_list_id}/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_4_list_id}/remove-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_4_list_id}/remove-person/", - "data": { - "remove-confirmation": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2_list_id}/edit-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2_list_id}/edit-person/", - "data": { - "first-name": "Erling", - "last-name": "Haaaland" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/questions-section/" - }, - { - "method": "GET", - "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer" - }, - { - "method": "POST", - "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer", - "data": { - "skip-first-block-answer": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/questions-section/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/questions-section/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/submit/" - }, - { - "method": "POST", - "url": "/questionnaire/submit/", - "data": {} - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - } - ], - "schema_name": "test_benchmark_business", - "schema_url": "https://storage.googleapis.com/eq-questionnaire-schemas/test_benchmark_business.json" -} \ No newline at end of file From d3eb56aed70ff91ed7a31864684db7782e3630d9 Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Fri, 29 Sep 2023 13:27:33 +0100 Subject: [PATCH 16/25] remove old benchmark json --- requests/test_benchmark_business.json | 139 -------------------------- 1 file changed, 139 deletions(-) delete mode 100644 requests/test_benchmark_business.json diff --git a/requests/test_benchmark_business.json b/requests/test_benchmark_business.json deleted file mode 100644 index b7f8cc74..00000000 --- a/requests/test_benchmark_business.json +++ /dev/null @@ -1,139 +0,0 @@ -{ - "requests": [ - { - "method": "GET", - "url": "/questionnaire/introduction-block/" - }, - { - "method": "POST", - "url": "/questionnaire/introduction-block/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/block379/" - }, - { - "method": "POST", - "url": "/questionnaire/block379/", - "data": { - "answer434": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/block380/" - }, - { - "method": "POST", - "url": "/questionnaire/block380/", - "data": { - "answerfrom-day": "1", - "answerfrom-month": "05", - "answerfrom-year": "2019", - "answerto-day": "1", - "answerto-month": "08", - "answerto-year": "2019" - } - }, - { - "method": "GET", - "url": "/questionnaire/block381/" - }, - { - "method": "POST", - "url": "/questionnaire/block381/", - "data": { - "answer436": "100", - "answer437": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/block4616/" - }, - { - "method": "POST", - "url": "/questionnaire/block4616/", - "data": { - "answer5873": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block4952/" - }, - { - "method": "POST", - "url": "/questionnaire/block4952/", - "data": { - "answer6287": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block4953/" - }, - { - "method": "POST", - "url": "/questionnaire/block4953/", - "data": { - "answer6288": "One-off increase in stocks" - } - }, - { - "method": "GET", - "url": "/questionnaire/block383/" - }, - { - "method": "POST", - "url": "/questionnaire/block383/", - "data": { - "answer439": "Differences textarea" - } - }, - { - "method": "GET", - "url": "/questionnaire/submit/" - }, - { - "method": "POST", - "url": "/questionnaire/submit/", - "data": {} - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - }, - { - "method": "GET", - "url": "/submitted/view-response/" - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - }, - { - "method": "GET", - "url": "/submitted/feedback/send" - }, - { - "method": "POST", - "url": "/submitted/feedback/send", - "data": { - "feedback-type": "The survey questions", - "feedback-text": "Feedback" - } - }, - { - "method": "GET", - "url": "/submitted/feedback/sent" - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - } - ], - "schema_name": "test_benchmark_business", - "schema_url": "https://storage.googleapis.com/eq-questionnaire-schemas/test_benchmark_business.json" -} \ No newline at end of file From eaa3d0a52f5f399dc5579ad13517bed70511266a Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Fri, 29 Sep 2023 13:28:02 +0100 Subject: [PATCH 17/25] update naming for becnhmark unhappy json --- ...ess_unhappy.json => test_benchmark_business_unhappy_path.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename requests/{test_benchmark_business_unhappy.json => test_benchmark_business_unhappy_path.json} (100%) diff --git a/requests/test_benchmark_business_unhappy.json b/requests/test_benchmark_business_unhappy_path.json similarity index 100% rename from requests/test_benchmark_business_unhappy.json rename to requests/test_benchmark_business_unhappy_path.json From 602fd82c858920972c4a245e08f7af84cd5cc7e9 Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Fri, 6 Oct 2023 10:08:41 +0100 Subject: [PATCH 18/25] add feedback section --- requests/test_benchmark_business_pdfkit.json | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/requests/test_benchmark_business_pdfkit.json b/requests/test_benchmark_business_pdfkit.json index 972ff41e..37cb9c54 100644 --- a/requests/test_benchmark_business_pdfkit.json +++ b/requests/test_benchmark_business_pdfkit.json @@ -341,6 +341,30 @@ { "method": "GET", "url": "/submitted/download-pdf" + }, + { + "method": "GET", + "url": "/submitted/thank-you/" + }, + { + "method": "GET", + "url": "/submitted/feedback/send" + }, + { + "method": "POST", + "url": "/submitted/feedback/send", + "data": { + "feedback-type": "The survey questions", + "feedback-text": "Feedback" + } + }, + { + "method": "GET", + "url": "/submitted/feedback/sent" + }, + { + "method": "GET", + "url": "/submitted/thank-you/" } ], "schema_name": "test_benchmark_business", From caf038c84b2b242cbec066cad0770b8590decd3e Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Fri, 6 Oct 2023 10:09:19 +0100 Subject: [PATCH 19/25] re-add pdfkit optimised json --- ...t_benchmark_business_pdfkit_optimised.json | 372 ++++++++++++++++++ 1 file changed, 372 insertions(+) create mode 100644 requests/test_benchmark_business_pdfkit_optimised.json diff --git a/requests/test_benchmark_business_pdfkit_optimised.json b/requests/test_benchmark_business_pdfkit_optimised.json new file mode 100644 index 00000000..98b0ff50 --- /dev/null +++ b/requests/test_benchmark_business_pdfkit_optimised.json @@ -0,0 +1,372 @@ +{ + "requests": [ + { + "method": "GET", + "url": "/questionnaire/introduction-block/" + }, + { + "method": "POST", + "url": "/questionnaire/introduction-block/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/block-379/" + }, + { + "method": "POST", + "url": "/questionnaire/block-379/", + "data": { + "answer-434": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-381/" + }, + { + "method": "POST", + "url": "/questionnaire/block-381/", + "data": { + "answer-436": "100", + "answer-437": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-4616/" + }, + { + "method": "POST", + "url": "/questionnaire/block-4616/", + "data": { + "answer-5873": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-4952/" + }, + { + "method": "POST", + "url": "/questionnaire/block-4952/", + "data": { + "answer-6287": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-4953/" + }, + { + "method": "POST", + "url": "/questionnaire/block-4953/", + "data": { + "answer-6288": "Normal movement for the time of year" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-383/" + }, + { + "method": "POST", + "url": "/questionnaire/block-383/", + "data": { + "answer-439": "Hi eQ team!" + } + }, + { + "method": "GET", + "url": "/questionnaire/primary-person-list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/primary-person-list-collector/", + "data": { + "you-live-here": "Yes" + }, + "redirect_route": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/", + "data": { + "first-name": "Joe", + "last-name": "Bloggs" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/add-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/add-person/", + "data": { + "first-name": "Paul", + "last-name": "Pogba" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/skip-first-block/" + }, + { + "method": "POST", + "url": "/questionnaire/skip-first-block/", + "data": { + "skip-first-block-answer": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/first-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/first-number-block/", + "data": { + "first-number-answer": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/first-and-a-half-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/first-and-a-half-number-block/", + "data": { + "first-and-a-half-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/second-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/second-number-block/", + "data": { + "second-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/currency-total-playback-1/" + }, + { + "method": "POST", + "url": "/questionnaire/currency-total-playback-1/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/questions-section/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/questions-section/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/" + }, + { + "method": "POST", + "url": "/questionnaire/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_id}/third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/", + "data": { + "checkbox-answer": "{calc_value_1}" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1_id}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "500", + "set-maximum-answer": "200" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/" + }, + { + "method": "POST", + "url": "/questionnaire/", + "data": {}, + "redirect_route": "/questionnaire/people/{person_2_id}/third-number-block/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_id}/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_id}/third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/", + "data": { + "checkbox-exclusive-answer": "I prefer not to say" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2_id}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2_id}/set-min-max-block/", + "data": { + "set-minimum-answer": "500", + "set-maximum-answer": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/" + }, + { + "method": "POST", + "url": "/questionnaire/", + "data": {} + }, + { + "method": "GET", + "url": "/submitted/thank-you/" + }, + { + "method": "GET", + "url": "/submitted/view-response/" + }, + { + "method": "GET", + "url": "/submitted/download-pdf?pdf_type=pdfkit_optimised" + }, + { + "method": "GET", + "url": "/submitted/thank-you/" + }, + { + "method": "GET", + "url": "/submitted/feedback/send" + }, + { + "method": "POST", + "url": "/submitted/feedback/send", + "data": { + "feedback-type": "The survey questions", + "feedback-text": "Feedback" + } + }, + { + "method": "GET", + "url": "/submitted/feedback/sent" + }, + { + "method": "GET", + "url": "/submitted/thank-you/" + } + ], + "schema_name": "test_benchmark_business", + "schema_url": "https://storage.googleapis.com/eq-questionnaire-schemas/test_benchmark_business.json" +} \ No newline at end of file From 701a2157b4a73747849fd18378b67f3e6fb03627 Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Fri, 6 Oct 2023 10:15:41 +0100 Subject: [PATCH 20/25] add feedback block to requests --- .../test_benchmark_business_happy_path.json | 28 +++++++++++++++++++ .../test_benchmark_business_unhappy_path.json | 28 +++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/requests/test_benchmark_business_happy_path.json b/requests/test_benchmark_business_happy_path.json index e08c2434..881e8aee 100644 --- a/requests/test_benchmark_business_happy_path.json +++ b/requests/test_benchmark_business_happy_path.json @@ -330,6 +330,34 @@ "url": "/questionnaire/", "data": {} }, + { + "method": "GET", + "url": "/submitted/thank-you/" + }, + { + "method": "GET", + "url": "/submitted/view-response/" + }, + { + "method": "GET", + "url": "/submitted/thank-you/" + }, + { + "method": "GET", + "url": "/submitted/feedback/send" + }, + { + "method": "POST", + "url": "/submitted/feedback/send", + "data": { + "feedback-type": "The survey questions", + "feedback-text": "Feedback" + } + }, + { + "method": "GET", + "url": "/submitted/feedback/sent" + }, { "method": "GET", "url": "/submitted/thank-you/" diff --git a/requests/test_benchmark_business_unhappy_path.json b/requests/test_benchmark_business_unhappy_path.json index 493c4ddd..16905001 100644 --- a/requests/test_benchmark_business_unhappy_path.json +++ b/requests/test_benchmark_business_unhappy_path.json @@ -662,6 +662,34 @@ "url": "/questionnaire/", "data": {} }, + { + "method": "GET", + "url": "/submitted/thank-you/" + }, + { + "method": "GET", + "url": "/submitted/view-response/" + }, + { + "method": "GET", + "url": "/submitted/thank-you/" + }, + { + "method": "GET", + "url": "/submitted/feedback/send" + }, + { + "method": "POST", + "url": "/submitted/feedback/send", + "data": { + "feedback-type": "The survey questions", + "feedback-text": "Feedback" + } + }, + { + "method": "GET", + "url": "/submitted/feedback/sent" + }, { "method": "GET", "url": "/submitted/thank-you/" From 19e44ad9290093286b906556d2d8cc6416ba8971 Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Fri, 6 Oct 2023 10:28:09 +0100 Subject: [PATCH 21/25] remove pdf kit optimised --- ...t_benchmark_business_pdfkit_optimised.json | 372 ------------------ 1 file changed, 372 deletions(-) delete mode 100644 requests/test_benchmark_business_pdfkit_optimised.json diff --git a/requests/test_benchmark_business_pdfkit_optimised.json b/requests/test_benchmark_business_pdfkit_optimised.json deleted file mode 100644 index 98b0ff50..00000000 --- a/requests/test_benchmark_business_pdfkit_optimised.json +++ /dev/null @@ -1,372 +0,0 @@ -{ - "requests": [ - { - "method": "GET", - "url": "/questionnaire/introduction-block/" - }, - { - "method": "POST", - "url": "/questionnaire/introduction-block/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/block-379/" - }, - { - "method": "POST", - "url": "/questionnaire/block-379/", - "data": { - "answer-434": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-381/" - }, - { - "method": "POST", - "url": "/questionnaire/block-381/", - "data": { - "answer-436": "100", - "answer-437": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-4616/" - }, - { - "method": "POST", - "url": "/questionnaire/block-4616/", - "data": { - "answer-5873": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-4952/" - }, - { - "method": "POST", - "url": "/questionnaire/block-4952/", - "data": { - "answer-6287": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-4953/" - }, - { - "method": "POST", - "url": "/questionnaire/block-4953/", - "data": { - "answer-6288": "Normal movement for the time of year" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-383/" - }, - { - "method": "POST", - "url": "/questionnaire/block-383/", - "data": { - "answer-439": "Hi eQ team!" - } - }, - { - "method": "GET", - "url": "/questionnaire/primary-person-list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/primary-person-list-collector/", - "data": { - "you-live-here": "Yes" - }, - "redirect_route": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/", - "data": { - "first-name": "Joe", - "last-name": "Bloggs" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/add-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/add-person/", - "data": { - "first-name": "Paul", - "last-name": "Pogba" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/skip-first-block/" - }, - { - "method": "POST", - "url": "/questionnaire/skip-first-block/", - "data": { - "skip-first-block-answer": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/first-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/first-number-block/", - "data": { - "first-number-answer": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/first-and-a-half-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/first-and-a-half-number-block/", - "data": { - "first-and-a-half-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/second-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/second-number-block/", - "data": { - "second-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/currency-total-playback-1/" - }, - { - "method": "POST", - "url": "/questionnaire/currency-total-playback-1/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/sections/questions-section/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/questions-section/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/" - }, - { - "method": "POST", - "url": "/questionnaire/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_id}/third-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_id}/third-number-block/", - "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/", - "data": { - "checkbox-answer": "{calc_value_1}" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1_id}/set-min-max-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1_id}/set-min-max-block/", - "data": { - "set-minimum-answer": "500", - "set-maximum-answer": "200" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/" - }, - { - "method": "POST", - "url": "/questionnaire/", - "data": {}, - "redirect_route": "/questionnaire/people/{person_2_id}/third-number-block/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2_id}/third-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2_id}/third-number-block/", - "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/", - "data": { - "checkbox-exclusive-answer": "I prefer not to say" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2_id}/set-min-max-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2_id}/set-min-max-block/", - "data": { - "set-minimum-answer": "500", - "set-maximum-answer": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/" - }, - { - "method": "POST", - "url": "/questionnaire/", - "data": {} - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - }, - { - "method": "GET", - "url": "/submitted/view-response/" - }, - { - "method": "GET", - "url": "/submitted/download-pdf?pdf_type=pdfkit_optimised" - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - }, - { - "method": "GET", - "url": "/submitted/feedback/send" - }, - { - "method": "POST", - "url": "/submitted/feedback/send", - "data": { - "feedback-type": "The survey questions", - "feedback-text": "Feedback" - } - }, - { - "method": "GET", - "url": "/submitted/feedback/sent" - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - } - ], - "schema_name": "test_benchmark_business", - "schema_url": "https://storage.googleapis.com/eq-questionnaire-schemas/test_benchmark_business.json" -} \ No newline at end of file From 86a8021e8152966a23c54ce77e08f988ee46a984 Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Wed, 11 Oct 2023 20:02:11 +0100 Subject: [PATCH 22/25] update happy path to include new features Signed-off-by: Yuyutsu Rai --- .../test_benchmark_business_happy_hub.json | 542 ++++++++++++++++++ 1 file changed, 542 insertions(+) create mode 100644 requests/test_benchmark_business_happy_hub.json diff --git a/requests/test_benchmark_business_happy_hub.json b/requests/test_benchmark_business_happy_hub.json new file mode 100644 index 00000000..f791a627 --- /dev/null +++ b/requests/test_benchmark_business_happy_hub.json @@ -0,0 +1,542 @@ +{ + "requests": [ + { + "method": "GET", + "url": "/questionnaire/introduction-block/" + }, + { + "method": "POST", + "url": "/questionnaire/introduction-block/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/block-379/" + }, + { + "method": "POST", + "url": "/questionnaire/block-379/", + "data": { + "answer-434": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-381/" + }, + { + "method": "POST", + "url": "/questionnaire/block-381/", + "data": { + "answer-436": "100", + "answer-437": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-4616/" + }, + { + "method": "POST", + "url": "/questionnaire/block-4616/", + "data": { + "answer-5873": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-4952/" + }, + { + "method": "POST", + "url": "/questionnaire/block-4952/", + "data": { + "answer-6287": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-4953/" + }, + { + "method": "POST", + "url": "/questionnaire/block-4953/", + "data": { + "answer-6288": "Start or end of long term project" + } + }, + { + "method": "GET", + "url": "/questionnaire/block-383/" + }, + { + "method": "POST", + "url": "/questionnaire/block-383/", + "data": { + "answer-439": "Hi eQ team \ud83d\ude0d" + } + }, + { + "method": "GET", + "url": "/questionnaire/primary-person-list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/primary-person-list-collector/", + "data": { + "you-live-here": "Yes" + }, + "redirect_route": "/questionnaire/people/{person_1}/add-or-edit-primary-person/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1}/add-or-edit-primary-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1}/add-or-edit-primary-person/", + "data": { + "first-name": "Joe", + "last-name": "Bloggs" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/add-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/add-person/", + "data": { + "first-name": "Erling", + "last-name": "Haaland" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/skip-first-block/" + }, + { + "method": "POST", + "url": "/questionnaire/skip-first-block/", + "data": { + "skip-first-block-answer": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/second-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/second-number-block/", + "data": { + "second-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/currency-total-playback-1/" + }, + { + "method": "POST", + "url": "/questionnaire/currency-total-playback-1/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/questions-section/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/questions-section/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1}/grand-calculated-summary-third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1}/grand-calculated-summary-third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1}/mutually-exclusive-checkbox/", + "data": { + "checkbox-answer": "{third_answer_value}" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1}/set-min-max-block/", + "data": { + "set-minimum-answer": "200", + "set-maximum-answer": "50" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_1}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_1}/", + "data": {}, + "redirect_route": "/questionnaire/people/{person_2}/grand-calculated-summary-third-number-block/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2}/grand-calculated-summary-third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2}/grand-calculated-summary-third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2}/mutually-exclusive-checkbox/", + "data": { + "checkbox-answer": "{calc_value_2}" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2}/set-min-max-block/", + "data": { + "set-minimum-answer": "200", + "set-maximum-answer": "50" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_2}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_2}/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/grand-calculated-summary-first-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/grand-calculated-summary-first-number-block/", + "data": { + "q1-a1": "100", + "q1-a2": "5" + } + }, + { + "method": "GET", + "url": "/questionnaire/grand-calculated-summary-second-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/grand-calculated-summary-second-number-block/", + "data": { + "q2-a1": "500", + "q2-a2": "4" + } + }, + { + "method": "GET", + "url": "/questionnaire/distance-calculated-summary-1/" + }, + { + "method": "POST", + "url": "/questionnaire/distance-calculated-summary-1/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/number-calculated-summary-1/" + }, + { + "method": "POST", + "url": "/questionnaire/number-calculated-summary-1/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/grand-calculated-summary-section-1/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/grand-calculated-summary-section-1/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/third-number-block/", + "data": { + "q3-a1": "10", + "q3-a2": "10" + } + }, + { + "method": "GET", + "url": "/questionnaire/fourth-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/fourth-number-block/", + "data": { + "q4-a1": "0", + "q4-a2": "0" + } + }, + { + "method": "GET", + "url": "/questionnaire/distance-calculated-summary-2/" + }, + { + "method": "POST", + "url": "/questionnaire/distance-calculated-summary-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/number-calculated-summary-2/" + }, + { + "method": "POST", + "url": "/questionnaire/number-calculated-summary-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/distance-grand-calculated-summary/" + }, + { + "method": "POST", + "url": "/questionnaire/distance-grand-calculated-summary/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/number-grand-calculated-summary/" + }, + { + "method": "POST", + "url": "/questionnaire/number-grand-calculated-summary/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/responsible-party/" + }, + { + "method": "POST", + "url": "/questionnaire/responsible-party/", + "data": { + "responsible-party-answer": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/any-companies-or-branches/" + }, + { + "method": "POST", + "url": "/questionnaire/any-companies-or-branches/", + "data": { + "any-companies-or-branches-answer": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/companies/add-company/?previous=any-companies-or-branches" + }, + { + "method": "POST", + "url": "/questionnaire/companies/add-company/?previous=any-companies-or-branches", + "data": { + "company-or-branch-name": "eQ insurance" + }, + "redirect_route":"/questionnaire/companies/{company_1}/companies-repeating-block-1/" + }, + { + "method": "GET", + "url": "/questionnaire/companies/{company_1}/companies-repeating-block-1/" + }, + { + "method": "POST", + "url": "/questionnaire/companies/{company_1}/companies-repeating-block-1/", + "data": { + "registration-number": "1", + "registration-date-day": "10", + "registration-date-month": "10", + "registration-date-year": "2010" + } + }, + { + "method": "GET", + "url": "/questionnaire/companies/{company_1}/companies-repeating-block-2/" + }, + { + "method": "POST", + "url": "/questionnaire/companies/{company_1}/companies-repeating-block-2/", + "data": { + "authorised-trader-uk-radio": "Yes", + "authorised-trader-eu-radio": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/any-other-companies-or-branches/" + }, + { + "method": "POST", + "url": "/questionnaire/any-other-companies-or-branches/", + "data": { + "any-other-companies-or-branches-answer": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/any-other-trading-details/" + }, + { + "method": "POST", + "url": "/questionnaire/any-other-trading-details/", + "data": { + "any-other-trading-details-answer": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/section-companies/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/section-companies/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/" + }, + { + "method": "POST", + "url": "/questionnaire/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/responsible-party-business/" + }, + { + "method": "POST", + "url": "/questionnaire/responsible-party-business/", + "data": { + "responsible-party-business-answer": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/any-businesses-or-branches/" + }, + { + "method": "POST", + "url": "/questionnaire/any-businesses-or-branches/", + "data": { + "any-businesses-or-branches-answer": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/section-businesses/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/section-businesses/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/" + }, + { + "method": "POST", + "url": "/questionnaire/", + "data": {} + }, + { + "method": "GET", + "url": "/submitted/thank-you/" + } + ], + "schema_name": "test_benchmark_business", + "schema_url": "https://storage.googleapis.com/eq-questionnaire-schemas/test_benchmark_business.json" +} \ No newline at end of file From b3bba2b092e26f1d3f015fe9c1e7f7861feccfe2 Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Wed, 11 Oct 2023 20:05:52 +0100 Subject: [PATCH 23/25] update happy path and pdf kit for grandcalcuted summary and repeating blocks Signed-off-by: Yuyutsu Rai --- .../test_benchmark_business_happy_hub.json | 542 ------------------ .../test_benchmark_business_happy_path.json | 320 +++++++++-- requests/test_benchmark_business_pdfkit.json | 320 +++++++++-- 3 files changed, 522 insertions(+), 660 deletions(-) delete mode 100644 requests/test_benchmark_business_happy_hub.json diff --git a/requests/test_benchmark_business_happy_hub.json b/requests/test_benchmark_business_happy_hub.json deleted file mode 100644 index f791a627..00000000 --- a/requests/test_benchmark_business_happy_hub.json +++ /dev/null @@ -1,542 +0,0 @@ -{ - "requests": [ - { - "method": "GET", - "url": "/questionnaire/introduction-block/" - }, - { - "method": "POST", - "url": "/questionnaire/introduction-block/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/block-379/" - }, - { - "method": "POST", - "url": "/questionnaire/block-379/", - "data": { - "answer-434": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-381/" - }, - { - "method": "POST", - "url": "/questionnaire/block-381/", - "data": { - "answer-436": "100", - "answer-437": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-4616/" - }, - { - "method": "POST", - "url": "/questionnaire/block-4616/", - "data": { - "answer-5873": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-4952/" - }, - { - "method": "POST", - "url": "/questionnaire/block-4952/", - "data": { - "answer-6287": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-4953/" - }, - { - "method": "POST", - "url": "/questionnaire/block-4953/", - "data": { - "answer-6288": "Start or end of long term project" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-383/" - }, - { - "method": "POST", - "url": "/questionnaire/block-383/", - "data": { - "answer-439": "Hi eQ team \ud83d\ude0d" - } - }, - { - "method": "GET", - "url": "/questionnaire/primary-person-list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/primary-person-list-collector/", - "data": { - "you-live-here": "Yes" - }, - "redirect_route": "/questionnaire/people/{person_1}/add-or-edit-primary-person/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1}/add-or-edit-primary-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1}/add-or-edit-primary-person/", - "data": { - "first-name": "Joe", - "last-name": "Bloggs" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/add-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/add-person/", - "data": { - "first-name": "Erling", - "last-name": "Haaland" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/skip-first-block/" - }, - { - "method": "POST", - "url": "/questionnaire/skip-first-block/", - "data": { - "skip-first-block-answer": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/second-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/second-number-block/", - "data": { - "second-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/currency-total-playback-1/" - }, - { - "method": "POST", - "url": "/questionnaire/currency-total-playback-1/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/sections/questions-section/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/questions-section/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1}/grand-calculated-summary-third-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1}/grand-calculated-summary-third-number-block/", - "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1}/currency-total-playback-2/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1}/currency-total-playback-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1}/mutually-exclusive-checkbox/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1}/mutually-exclusive-checkbox/", - "data": { - "checkbox-answer": "{third_answer_value}" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1}/set-min-max-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1}/set-min-max-block/", - "data": { - "set-minimum-answer": "200", - "set-maximum-answer": "50" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1}/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_1}/", - "data": {}, - "redirect_route": "/questionnaire/people/{person_2}/grand-calculated-summary-third-number-block/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2}/grand-calculated-summary-third-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2}/grand-calculated-summary-third-number-block/", - "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2}/currency-total-playback-2/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2}/currency-total-playback-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2}/mutually-exclusive-checkbox/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2}/mutually-exclusive-checkbox/", - "data": { - "checkbox-answer": "{calc_value_2}" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2}/set-min-max-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2}/set-min-max-block/", - "data": { - "set-minimum-answer": "200", - "set-maximum-answer": "50" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_2}/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_2}/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/grand-calculated-summary-first-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/grand-calculated-summary-first-number-block/", - "data": { - "q1-a1": "100", - "q1-a2": "5" - } - }, - { - "method": "GET", - "url": "/questionnaire/grand-calculated-summary-second-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/grand-calculated-summary-second-number-block/", - "data": { - "q2-a1": "500", - "q2-a2": "4" - } - }, - { - "method": "GET", - "url": "/questionnaire/distance-calculated-summary-1/" - }, - { - "method": "POST", - "url": "/questionnaire/distance-calculated-summary-1/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/number-calculated-summary-1/" - }, - { - "method": "POST", - "url": "/questionnaire/number-calculated-summary-1/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/sections/grand-calculated-summary-section-1/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/grand-calculated-summary-section-1/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/third-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/third-number-block/", - "data": { - "q3-a1": "10", - "q3-a2": "10" - } - }, - { - "method": "GET", - "url": "/questionnaire/fourth-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/fourth-number-block/", - "data": { - "q4-a1": "0", - "q4-a2": "0" - } - }, - { - "method": "GET", - "url": "/questionnaire/distance-calculated-summary-2/" - }, - { - "method": "POST", - "url": "/questionnaire/distance-calculated-summary-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/number-calculated-summary-2/" - }, - { - "method": "POST", - "url": "/questionnaire/number-calculated-summary-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/distance-grand-calculated-summary/" - }, - { - "method": "POST", - "url": "/questionnaire/distance-grand-calculated-summary/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/number-grand-calculated-summary/" - }, - { - "method": "POST", - "url": "/questionnaire/number-grand-calculated-summary/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/responsible-party/" - }, - { - "method": "POST", - "url": "/questionnaire/responsible-party/", - "data": { - "responsible-party-answer": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/any-companies-or-branches/" - }, - { - "method": "POST", - "url": "/questionnaire/any-companies-or-branches/", - "data": { - "any-companies-or-branches-answer": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/companies/add-company/?previous=any-companies-or-branches" - }, - { - "method": "POST", - "url": "/questionnaire/companies/add-company/?previous=any-companies-or-branches", - "data": { - "company-or-branch-name": "eQ insurance" - }, - "redirect_route":"/questionnaire/companies/{company_1}/companies-repeating-block-1/" - }, - { - "method": "GET", - "url": "/questionnaire/companies/{company_1}/companies-repeating-block-1/" - }, - { - "method": "POST", - "url": "/questionnaire/companies/{company_1}/companies-repeating-block-1/", - "data": { - "registration-number": "1", - "registration-date-day": "10", - "registration-date-month": "10", - "registration-date-year": "2010" - } - }, - { - "method": "GET", - "url": "/questionnaire/companies/{company_1}/companies-repeating-block-2/" - }, - { - "method": "POST", - "url": "/questionnaire/companies/{company_1}/companies-repeating-block-2/", - "data": { - "authorised-trader-uk-radio": "Yes", - "authorised-trader-eu-radio": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/any-other-companies-or-branches/" - }, - { - "method": "POST", - "url": "/questionnaire/any-other-companies-or-branches/", - "data": { - "any-other-companies-or-branches-answer": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/any-other-trading-details/" - }, - { - "method": "POST", - "url": "/questionnaire/any-other-trading-details/", - "data": { - "any-other-trading-details-answer": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/section-companies/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/section-companies/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/" - }, - { - "method": "POST", - "url": "/questionnaire/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/responsible-party-business/" - }, - { - "method": "POST", - "url": "/questionnaire/responsible-party-business/", - "data": { - "responsible-party-business-answer": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/any-businesses-or-branches/" - }, - { - "method": "POST", - "url": "/questionnaire/any-businesses-or-branches/", - "data": { - "any-businesses-or-branches-answer": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/section-businesses/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/section-businesses/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/" - }, - { - "method": "POST", - "url": "/questionnaire/", - "data": {} - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - } - ], - "schema_name": "test_benchmark_business", - "schema_url": "https://storage.googleapis.com/eq-questionnaire-schemas/test_benchmark_business.json" -} \ No newline at end of file diff --git a/requests/test_benchmark_business_happy_path.json b/requests/test_benchmark_business_happy_path.json index 881e8aee..45837e9c 100644 --- a/requests/test_benchmark_business_happy_path.json +++ b/requests/test_benchmark_business_happy_path.json @@ -40,7 +40,7 @@ "method": "POST", "url": "/questionnaire/block-4616/", "data": { - "answer-5873": "Yes" + "answer-5873": "No" } }, { @@ -62,7 +62,7 @@ "method": "POST", "url": "/questionnaire/block-4953/", "data": { - "answer-6288": "Normal movement for the time of year" + "answer-6288": "Start or end of long term project" } }, { @@ -73,7 +73,7 @@ "method": "POST", "url": "/questionnaire/block-383/", "data": { - "answer-439": "Hi eQ team!" + "answer-439": "Hi eQ team \ud83d\ude0d" } }, { @@ -86,15 +86,15 @@ "data": { "you-live-here": "Yes" }, - "redirect_route": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/" + "redirect_route": "/questionnaire/people/{person_1}/add-or-edit-primary-person/" }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/" + "url": "/questionnaire/people/{person_1}/add-or-edit-primary-person/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/", + "url": "/questionnaire/people/{person_1}/add-or-edit-primary-person/", "data": { "first-name": "Joe", "last-name": "Bloggs" @@ -119,8 +119,8 @@ "method": "POST", "url": "/questionnaire/people/add-person/", "data": { - "first-name": "Paul", - "last-name": "Pogba" + "first-name": "Erling", + "last-name": "Haaland" } }, { @@ -142,183 +142,385 @@ "method": "POST", "url": "/questionnaire/skip-first-block/", "data": { - "skip-first-block-answer": "No" + "skip-first-block-answer": "Yes" } }, { "method": "GET", - "url": "/questionnaire/first-number-block/" + "url": "/questionnaire/second-number-block/" }, { "method": "POST", - "url": "/questionnaire/first-number-block/", + "url": "/questionnaire/second-number-block/", "data": { - "first-number-answer": "100" + "second-number-answer-also-in-total": "100" } }, { "method": "GET", - "url": "/questionnaire/first-and-a-half-number-block/" + "url": "/questionnaire/currency-total-playback-1/" + }, + { + "method": "POST", + "url": "/questionnaire/currency-total-playback-1/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/questions-section/" }, { "method": "POST", - "url": "/questionnaire/first-and-a-half-number-block/", + "url": "/questionnaire/sections/questions-section/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1}/grand-calculated-summary-third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1}/grand-calculated-summary-third-number-block/", "data": { - "first-and-a-half-number-answer-also-in-total": "100" + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" } }, { "method": "GET", - "url": "/questionnaire/second-number-block/" + "url": "/questionnaire/people/{person_1}/currency-total-playback-2/" }, { "method": "POST", - "url": "/questionnaire/second-number-block/", + "url": "/questionnaire/people/{person_1}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1}/mutually-exclusive-checkbox/", "data": { - "second-number-answer-also-in-total": "100" + "checkbox-answer": "{third_answer_value}" } }, { "method": "GET", - "url": "/questionnaire/currency-total-playback-1/" + "url": "/questionnaire/people/{person_1}/set-min-max-block/" }, { "method": "POST", - "url": "/questionnaire/currency-total-playback-1/", - "data": {} + "url": "/questionnaire/people/{person_1}/set-min-max-block/", + "data": { + "set-minimum-answer": "200", + "set-maximum-answer": "50" + } }, { "method": "GET", - "url": "/questionnaire/sections/questions-section/" + "url": "/questionnaire/sections/calculated-summary-section/{person_1}/" }, { "method": "POST", - "url": "/questionnaire/sections/questions-section/", + "url": "/questionnaire/sections/calculated-summary-section/{person_1}/", + "data": {}, + "redirect_route": "/questionnaire/people/{person_2}/grand-calculated-summary-third-number-block/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2}/grand-calculated-summary-third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2}/grand-calculated-summary-third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2}/currency-total-playback-2/", "data": {} }, { "method": "GET", - "url": "/questionnaire/" + "url": "/questionnaire/people/{person_2}/mutually-exclusive-checkbox/" }, { "method": "POST", - "url": "/questionnaire/", + "url": "/questionnaire/people/{person_2}/mutually-exclusive-checkbox/", + "data": { + "checkbox-answer": "{calc_value_2}" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2}/set-min-max-block/", + "data": { + "set-minimum-answer": "200", + "set-maximum-answer": "50" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_2}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_2}/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/third-number-block/" + "url": "/questionnaire/grand-calculated-summary-first-number-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/third-number-block/", + "url": "/questionnaire/grand-calculated-summary-first-number-block/", "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" + "q1-a1": "100", + "q1-a2": "5" } }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/" + "url": "/questionnaire/grand-calculated-summary-second-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/grand-calculated-summary-second-number-block/", + "data": { + "q2-a1": "500", + "q2-a2": "4" + } + }, + { + "method": "GET", + "url": "/questionnaire/distance-calculated-summary-1/" + }, + { + "method": "POST", + "url": "/questionnaire/distance-calculated-summary-1/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/number-calculated-summary-1/" + }, + { + "method": "POST", + "url": "/questionnaire/number-calculated-summary-1/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/grand-calculated-summary-section-1/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/", + "url": "/questionnaire/sections/grand-calculated-summary-section-1/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/" + "url": "/questionnaire/third-number-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/", + "url": "/questionnaire/third-number-block/", "data": { - "checkbox-answer": "{calc_value_1}" + "q3-a1": "10", + "q3-a2": "10" } }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/set-min-max-block/" + "url": "/questionnaire/fourth-number-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/set-min-max-block/", + "url": "/questionnaire/fourth-number-block/", "data": { - "set-minimum-answer": "500", - "set-maximum-answer": "200" + "q4-a1": "0", + "q4-a2": "0" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" + "url": "/questionnaire/distance-calculated-summary-2/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/", + "url": "/questionnaire/distance-calculated-summary-2/", "data": {} }, { "method": "GET", - "url": "/questionnaire/" + "url": "/questionnaire/number-calculated-summary-2/" }, { "method": "POST", - "url": "/questionnaire/", - "data": {}, - "redirect_route": "/questionnaire/people/{person_2_id}/third-number-block/" + "url": "/questionnaire/number-calculated-summary-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/distance-grand-calculated-summary/" + }, + { + "method": "POST", + "url": "/questionnaire/distance-grand-calculated-summary/", + "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/third-number-block/" + "url": "/questionnaire/number-grand-calculated-summary/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/third-number-block/", + "url": "/questionnaire/number-grand-calculated-summary/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/responsible-party/" + }, + { + "method": "POST", + "url": "/questionnaire/responsible-party/", "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" + "responsible-party-answer": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/any-companies-or-branches/" + }, + { + "method": "POST", + "url": "/questionnaire/any-companies-or-branches/", + "data": { + "any-companies-or-branches-answer": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/companies/add-company/?previous=any-companies-or-branches" + }, + { + "method": "POST", + "url": "/questionnaire/companies/add-company/?previous=any-companies-or-branches", + "data": { + "company-or-branch-name": "eQ insurance" + }, + "redirect_route":"/questionnaire/companies/{company_1}/companies-repeating-block-1/" + }, + { + "method": "GET", + "url": "/questionnaire/companies/{company_1}/companies-repeating-block-1/" + }, + { + "method": "POST", + "url": "/questionnaire/companies/{company_1}/companies-repeating-block-1/", + "data": { + "registration-number": "1", + "registration-date-day": "10", + "registration-date-month": "10", + "registration-date-year": "2010" + } + }, + { + "method": "GET", + "url": "/questionnaire/companies/{company_1}/companies-repeating-block-2/" + }, + { + "method": "POST", + "url": "/questionnaire/companies/{company_1}/companies-repeating-block-2/", + "data": { + "authorised-trader-uk-radio": "Yes", + "authorised-trader-eu-radio": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/any-other-companies-or-branches/" + }, + { + "method": "POST", + "url": "/questionnaire/any-other-companies-or-branches/", + "data": { + "any-other-companies-or-branches-answer": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/any-other-trading-details/" + }, + { + "method": "POST", + "url": "/questionnaire/any-other-trading-details/", + "data": { + "any-other-trading-details-answer": "100" } }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/" + "url": "/questionnaire/sections/section-companies/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/", + "url": "/questionnaire/sections/section-companies/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/" + }, + { + "method": "POST", + "url": "/questionnaire/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/" + "url": "/questionnaire/responsible-party-business/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/", + "url": "/questionnaire/responsible-party-business/", "data": { - "checkbox-exclusive-answer": "I prefer not to say" + "responsible-party-business-answer": "Yes" } }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/set-min-max-block/" + "url": "/questionnaire/any-businesses-or-branches/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/set-min-max-block/", + "url": "/questionnaire/any-businesses-or-branches/", "data": { - "set-minimum-answer": "500", - "set-maximum-answer": "100" + "any-businesses-or-branches-answer": "No" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/" + "url": "/questionnaire/sections/section-businesses/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/", + "url": "/questionnaire/sections/section-businesses/", "data": {} }, { diff --git a/requests/test_benchmark_business_pdfkit.json b/requests/test_benchmark_business_pdfkit.json index 37cb9c54..fb075df0 100644 --- a/requests/test_benchmark_business_pdfkit.json +++ b/requests/test_benchmark_business_pdfkit.json @@ -40,7 +40,7 @@ "method": "POST", "url": "/questionnaire/block-4616/", "data": { - "answer-5873": "Yes" + "answer-5873": "No" } }, { @@ -62,7 +62,7 @@ "method": "POST", "url": "/questionnaire/block-4953/", "data": { - "answer-6288": "Normal movement for the time of year" + "answer-6288": "Start or end of long term project" } }, { @@ -73,7 +73,7 @@ "method": "POST", "url": "/questionnaire/block-383/", "data": { - "answer-439": "Hi eQ team!" + "answer-439": "Hi eQ team \ud83d\ude0d" } }, { @@ -86,15 +86,15 @@ "data": { "you-live-here": "Yes" }, - "redirect_route": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/" + "redirect_route": "/questionnaire/people/{person_1}/add-or-edit-primary-person/" }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/" + "url": "/questionnaire/people/{person_1}/add-or-edit-primary-person/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/", + "url": "/questionnaire/people/{person_1}/add-or-edit-primary-person/", "data": { "first-name": "Joe", "last-name": "Bloggs" @@ -119,8 +119,8 @@ "method": "POST", "url": "/questionnaire/people/add-person/", "data": { - "first-name": "Paul", - "last-name": "Pogba" + "first-name": "Erling", + "last-name": "Haaland" } }, { @@ -142,183 +142,385 @@ "method": "POST", "url": "/questionnaire/skip-first-block/", "data": { - "skip-first-block-answer": "No" + "skip-first-block-answer": "Yes" } }, { "method": "GET", - "url": "/questionnaire/first-number-block/" + "url": "/questionnaire/second-number-block/" }, { "method": "POST", - "url": "/questionnaire/first-number-block/", + "url": "/questionnaire/second-number-block/", "data": { - "first-number-answer": "100" + "second-number-answer-also-in-total": "100" } }, { "method": "GET", - "url": "/questionnaire/first-and-a-half-number-block/" + "url": "/questionnaire/currency-total-playback-1/" + }, + { + "method": "POST", + "url": "/questionnaire/currency-total-playback-1/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/questions-section/" }, { "method": "POST", - "url": "/questionnaire/first-and-a-half-number-block/", + "url": "/questionnaire/sections/questions-section/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1}/grand-calculated-summary-third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1}/grand-calculated-summary-third-number-block/", "data": { - "first-and-a-half-number-answer-also-in-total": "100" + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" } }, { "method": "GET", - "url": "/questionnaire/second-number-block/" + "url": "/questionnaire/people/{person_1}/currency-total-playback-2/" }, { "method": "POST", - "url": "/questionnaire/second-number-block/", + "url": "/questionnaire/people/{person_1}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_1}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1}/mutually-exclusive-checkbox/", "data": { - "second-number-answer-also-in-total": "100" + "checkbox-answer": "{third_answer_value}" } }, { "method": "GET", - "url": "/questionnaire/currency-total-playback-1/" + "url": "/questionnaire/people/{person_1}/set-min-max-block/" }, { "method": "POST", - "url": "/questionnaire/currency-total-playback-1/", - "data": {} + "url": "/questionnaire/people/{person_1}/set-min-max-block/", + "data": { + "set-minimum-answer": "200", + "set-maximum-answer": "50" + } }, { "method": "GET", - "url": "/questionnaire/sections/questions-section/" + "url": "/questionnaire/sections/calculated-summary-section/{person_1}/" }, { "method": "POST", - "url": "/questionnaire/sections/questions-section/", + "url": "/questionnaire/sections/calculated-summary-section/{person_1}/", + "data": {}, + "redirect_route": "/questionnaire/people/{person_2}/grand-calculated-summary-third-number-block/" + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2}/grand-calculated-summary-third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2}/grand-calculated-summary-third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2}/currency-total-playback-2/", "data": {} }, { "method": "GET", - "url": "/questionnaire/" + "url": "/questionnaire/people/{person_2}/mutually-exclusive-checkbox/" }, { "method": "POST", - "url": "/questionnaire/", + "url": "/questionnaire/people/{person_2}/mutually-exclusive-checkbox/", + "data": { + "checkbox-answer": "{calc_value_2}" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2}/set-min-max-block/", + "data": { + "set-minimum-answer": "200", + "set-maximum-answer": "50" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/calculated-summary-section/{person_2}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_2}/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/third-number-block/" + "url": "/questionnaire/grand-calculated-summary-first-number-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/third-number-block/", + "url": "/questionnaire/grand-calculated-summary-first-number-block/", "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" + "q1-a1": "100", + "q1-a2": "5" } }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/" + "url": "/questionnaire/grand-calculated-summary-second-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/grand-calculated-summary-second-number-block/", + "data": { + "q2-a1": "500", + "q2-a2": "4" + } + }, + { + "method": "GET", + "url": "/questionnaire/distance-calculated-summary-1/" + }, + { + "method": "POST", + "url": "/questionnaire/distance-calculated-summary-1/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/number-calculated-summary-1/" + }, + { + "method": "POST", + "url": "/questionnaire/number-calculated-summary-1/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/grand-calculated-summary-section-1/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/", + "url": "/questionnaire/sections/grand-calculated-summary-section-1/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/" + "url": "/questionnaire/third-number-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/", + "url": "/questionnaire/third-number-block/", "data": { - "checkbox-answer": "{calc_value_1}" + "q3-a1": "10", + "q3-a2": "10" } }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/set-min-max-block/" + "url": "/questionnaire/fourth-number-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/set-min-max-block/", + "url": "/questionnaire/fourth-number-block/", "data": { - "set-minimum-answer": "500", - "set-maximum-answer": "200" + "q4-a1": "0", + "q4-a2": "0" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" + "url": "/questionnaire/distance-calculated-summary-2/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/", + "url": "/questionnaire/distance-calculated-summary-2/", "data": {} }, { "method": "GET", - "url": "/questionnaire/" + "url": "/questionnaire/number-calculated-summary-2/" }, { "method": "POST", - "url": "/questionnaire/", - "data": {}, - "redirect_route": "/questionnaire/people/{person_2_id}/third-number-block/" + "url": "/questionnaire/number-calculated-summary-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/distance-grand-calculated-summary/" + }, + { + "method": "POST", + "url": "/questionnaire/distance-grand-calculated-summary/", + "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/third-number-block/" + "url": "/questionnaire/number-grand-calculated-summary/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/third-number-block/", + "url": "/questionnaire/number-grand-calculated-summary/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/responsible-party/" + }, + { + "method": "POST", + "url": "/questionnaire/responsible-party/", "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" + "responsible-party-answer": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/any-companies-or-branches/" + }, + { + "method": "POST", + "url": "/questionnaire/any-companies-or-branches/", + "data": { + "any-companies-or-branches-answer": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/companies/add-company/?previous=any-companies-or-branches" + }, + { + "method": "POST", + "url": "/questionnaire/companies/add-company/?previous=any-companies-or-branches", + "data": { + "company-or-branch-name": "eQ insurance" + }, + "redirect_route":"/questionnaire/companies/{company_1}/companies-repeating-block-1/" + }, + { + "method": "GET", + "url": "/questionnaire/companies/{company_1}/companies-repeating-block-1/" + }, + { + "method": "POST", + "url": "/questionnaire/companies/{company_1}/companies-repeating-block-1/", + "data": { + "registration-number": "1", + "registration-date-day": "10", + "registration-date-month": "10", + "registration-date-year": "2010" + } + }, + { + "method": "GET", + "url": "/questionnaire/companies/{company_1}/companies-repeating-block-2/" + }, + { + "method": "POST", + "url": "/questionnaire/companies/{company_1}/companies-repeating-block-2/", + "data": { + "authorised-trader-uk-radio": "Yes", + "authorised-trader-eu-radio": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/any-other-companies-or-branches/" + }, + { + "method": "POST", + "url": "/questionnaire/any-other-companies-or-branches/", + "data": { + "any-other-companies-or-branches-answer": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/any-other-trading-details/" + }, + { + "method": "POST", + "url": "/questionnaire/any-other-trading-details/", + "data": { + "any-other-trading-details-answer": "100" } }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/" + "url": "/questionnaire/sections/section-companies/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/", + "url": "/questionnaire/sections/section-companies/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/" + }, + { + "method": "POST", + "url": "/questionnaire/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/" + "url": "/questionnaire/responsible-party-business/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/", + "url": "/questionnaire/responsible-party-business/", "data": { - "checkbox-exclusive-answer": "I prefer not to say" + "responsible-party-business-answer": "Yes" } }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/set-min-max-block/" + "url": "/questionnaire/any-businesses-or-branches/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/set-min-max-block/", + "url": "/questionnaire/any-businesses-or-branches/", "data": { - "set-minimum-answer": "500", - "set-maximum-answer": "100" + "any-businesses-or-branches-answer": "No" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/" + "url": "/questionnaire/sections/section-businesses/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/", + "url": "/questionnaire/sections/section-businesses/", "data": {} }, { From daafd68676e7741da20f48052af6b218aba160ff Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Fri, 13 Oct 2023 10:41:44 +0100 Subject: [PATCH 24/25] update unhappy path for new schema --- .../test_benchmark_business_unhappy_path.json | 559 +++++++++++++----- 1 file changed, 420 insertions(+), 139 deletions(-) diff --git a/requests/test_benchmark_business_unhappy_path.json b/requests/test_benchmark_business_unhappy_path.json index 16905001..f72d1d83 100644 --- a/requests/test_benchmark_business_unhappy_path.json +++ b/requests/test_benchmark_business_unhappy_path.json @@ -28,10 +28,10 @@ "method": "POST", "url": "/questionnaire/block-380/", "data": { - "answer-from-day": "1", + "answer-from-day": "01", "answer-from-month": "05", "answer-from-year": "2019", - "answer-to-day": "1", + "answer-to-day": "01", "answer-to-month": "08", "answer-to-year": "2019" } @@ -97,7 +97,7 @@ "method": "POST", "url": "/questionnaire/block-4953/", "data": { - "answer-6288": "Other (for example, end of the EU transition period, leaving the EU or other global economic conditions." + "answer-6288": "Normal movement for the time of year" } }, { @@ -108,7 +108,7 @@ "method": "POST", "url": "/questionnaire/block-383/", "data": { - "answer-439": "Hi eQ\r\n" + "answer-439": "hi" } }, { @@ -121,15 +121,15 @@ "data": { "you-live-here": "Yes" }, - "redirect_route":"/questionnaire/people/{person_1_id}/add-or-edit-primary-person/" + "redirect_route": "/questionnaire/people/{person_1}/add-or-edit-primary-person/" }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/" + "url": "/questionnaire/people/{person_1}/add-or-edit-primary-person/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/add-or-edit-primary-person/", + "url": "/questionnaire/people/{person_1}/add-or-edit-primary-person/", "data": { "first-name": "Joe", "last-name": "Bloggs" @@ -162,6 +162,29 @@ "method": "GET", "url": "/questionnaire/list-collector/" }, + { + "method": "POST", + "url": "/questionnaire/list-collector/", + "data": { + "anyone-else": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/add-person/" + }, + { + "method": "POST", + "url": "/questionnaire/people/add-person/", + "data": { + "first-name": "Sarah", + "last-name": "Bloggs" + } + }, + { + "method": "GET", + "url": "/questionnaire/list-collector/" + }, { "method": "POST", "url": "/questionnaire/list-collector/", @@ -211,366 +234,520 @@ }, { "method": "GET", - "url": "/questionnaire/" + "url": "/questionnaire/people/{person_1}/grand-calculated-summary-third-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1}/grand-calculated-summary-third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" + } }, { "method": "GET", - "url": "/questionnaire/sections/questions-section/" + "url": "/questionnaire/people/{person_1}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_1}/currency-total-playback-2/", + "data": {} }, { "method": "GET", - "url": "/questionnaire/second-number-block/?return_to=section-summary&return_to_answer_id=second-number-answer-also-in-total" + "url": "/questionnaire/people/{person_1}/mutually-exclusive-checkbox/" }, { "method": "POST", - "url": "/questionnaire/second-number-block/?return_to=section-summary&return_to_answer_id=second-number-answer-also-in-total", + "url": "/questionnaire/people/{person_1}/mutually-exclusive-checkbox/", "data": { - "second-number-answer-also-in-total": "1001.00" + "checkbox-answer": "{third_answer_value}" } }, { "method": "GET", - "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary" + "url": "/questionnaire/people/{person_1}/set-min-max-block/" }, { "method": "POST", - "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary", - "data": {} + "url": "/questionnaire/people/{person_1}/set-min-max-block/", + "data": { + "set-minimum-answer": "200", + "set-maximum-answer": "50" + } }, { "method": "GET", - "url": "/questionnaire/sections/questions-section/" + "url": "/questionnaire/sections/calculated-summary-section/{person_1}/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/calculated-summary-section/{person_1}/", + "data": {}, + "redirect_route": "/questionnaire/people/{person_2}/grand-calculated-summary-third-number-block/" }, { "method": "GET", - "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer" + "url": "/questionnaire/people/{person_2}/grand-calculated-summary-third-number-block/" }, { "method": "POST", - "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer", + "url": "/questionnaire/people/{person_2}/grand-calculated-summary-third-number-block/", "data": { - "skip-first-block-answer": "No" + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" } }, { "method": "GET", - "url": "/questionnaire/first-number-block/?return_to=section-summary" + "url": "/questionnaire/people/{person_2}/currency-total-playback-2/" }, { "method": "POST", - "url": "/questionnaire/first-number-block/?return_to=section-summary", + "url": "/questionnaire/people/{person_2}/currency-total-playback-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2}/mutually-exclusive-checkbox/", "data": { - "first-number-answer": "10000" + "checkbox-answer": "{third_answer_value}" } }, { "method": "GET", - "url": "/questionnaire/first-and-a-half-number-block/?return_to=section-summary" + "url": "/questionnaire/people/{person_2}/set-min-max-block/" }, { "method": "POST", - "url": "/questionnaire/first-and-a-half-number-block/?return_to=section-summary", + "url": "/questionnaire/people/{person_2}/set-min-max-block/", "data": { - "first-and-a-half-number-answer-also-in-total": "2000" + "set-minimum-answer": "200", + "set-maximum-answer": "50" } }, { "method": "GET", - "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary" + "url": "/questionnaire/sections/calculated-summary-section/{person_2}/" }, { "method": "POST", - "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary", - "data": {} + "url": "/questionnaire/sections/calculated-summary-section/{person_2}/", + "data": {}, + "redirect_route": "/questionnaire/people/{person_3}/grand-calculated-summary-third-number-block/" }, { "method": "GET", - "url": "/questionnaire/sections/questions-section/" + "url": "/questionnaire/people/{person_3}/grand-calculated-summary-third-number-block/" }, { "method": "POST", - "url": "/questionnaire/sections/questions-section/", + "url": "/questionnaire/people/{person_3}/grand-calculated-summary-third-number-block/", + "data": { + "third-number-answer": "100", + "third-number-answer-also-in-total": "100" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_3}/currency-total-playback-2/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_3}/currency-total-playback-2/", "data": {} }, { "method": "GET", - "url": "/questionnaire/" + "url": "/questionnaire/people/{person_3}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_3}/mutually-exclusive-checkbox/", + "data": { + "checkbox-answer": "{third_answer_value}" + } }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/third-number-block/" + "url": "/questionnaire/people/{person_3}/set-min-max-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/third-number-block/", + "url": "/questionnaire/people/{person_3}/set-min-max-block/", "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" + "set-minimum-answer": "200", + "set-maximum-answer": "50" } }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/" + "url": "/questionnaire/sections/calculated-summary-section/{person_3}/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/currency-total-playback-2/", + "url": "/questionnaire/sections/calculated-summary-section/{person_3}/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/" + "url": "/questionnaire/grand-calculated-summary-first-number-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/mutually-exclusive-checkbox/", + "url": "/questionnaire/grand-calculated-summary-first-number-block/", "data": { - "checkbox-answer": "{third_answer_value}" + "q1-a1": "100", + "q1-a2": "100" } }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/set-min-max-block/" + "url": "/questionnaire/grand-calculated-summary-second-number-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/set-min-max-block/", + "url": "/questionnaire/grand-calculated-summary-second-number-block/", "data": { - "set-minimum-answer": "13001", - "set-maximum-answer": "100" + "q2-a1": "100", + "q2-a2": "100" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" + "url": "/questionnaire/distance-calculated-summary-1/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/", + "url": "/questionnaire/distance-calculated-summary-1/", "data": {} }, { "method": "GET", - "url": "/questionnaire/" + "url": "/questionnaire/number-calculated-summary-1/" + }, + { + "method": "POST", + "url": "/questionnaire/number-calculated-summary-1/", + "data": {} }, { "method": "GET", - "url": "/questionnaire/sections/questions-section/" + "url": "/questionnaire/sections/grand-calculated-summary-section-1/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/grand-calculated-summary-section-1/", + "data": {} }, { "method": "GET", - "url": "/questionnaire/first-number-block/?return_to=section-summary&return_to_answer_id=first-number-answer" + "url": "/questionnaire/third-number-block/" }, { "method": "POST", - "url": "/questionnaire/first-number-block/?return_to=section-summary&return_to_answer_id=first-number-answer", + "url": "/questionnaire/third-number-block/", "data": { - "first-number-answer": "100" + "q3-a1": "100", + "q3-a2": "100" } }, { "method": "GET", - "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary" + "url": "/questionnaire/fourth-number-block/" + }, + { + "method": "POST", + "url": "/questionnaire/fourth-number-block/", + "data": { + "q4-a1": "100", + "q4-a2": "100" + } }, { "method": "GET", - "url": "/questionnaire/first-and-a-half-number-block/?return_to=calculated-summary&return_to_answer_id=first-and-a-half-number-answer-also-in-total&return_to_block_id=currency-total-playback-1" + "url": "/questionnaire/distance-calculated-summary-2/" }, { "method": "POST", - "url": "/questionnaire/first-and-a-half-number-block/?return_to=calculated-summary&return_to_answer_id=first-and-a-half-number-answer-also-in-total&return_to_block_id=currency-total-playback-1", - "data": { - "first-and-a-half-number-answer-also-in-total": "100" - } + "url": "/questionnaire/distance-calculated-summary-2/", + "data": {} }, { "method": "GET", - "url": "/questionnaire/currency-total-playback-1/" + "url": "/questionnaire/number-calculated-summary-2/" + }, + { + "method": "POST", + "url": "/questionnaire/number-calculated-summary-2/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/distance-grand-calculated-summary/" + }, + { + "method": "POST", + "url": "/questionnaire/distance-grand-calculated-summary/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/number-grand-calculated-summary/" + }, + { + "method": "POST", + "url": "/questionnaire/number-grand-calculated-summary/", + "data": {} }, { "method": "GET", - "url": "/questionnaire/second-number-block/?return_to=calculated-summary&return_to_answer_id=second-number-answer-also-in-total&return_to_block_id=currency-total-playback-1" + "url": "/questionnaire/responsible-party/" }, { "method": "POST", - "url": "/questionnaire/second-number-block/?return_to=calculated-summary&return_to_answer_id=second-number-answer-also-in-total&return_to_block_id=currency-total-playback-1", + "url": "/questionnaire/responsible-party/", "data": { - "second-number-answer-also-in-total": "100" + "responsible-party-answer": "Yes" } }, { "method": "GET", - "url": "/questionnaire/currency-total-playback-1/" + "url": "/questionnaire/any-companies-or-branches/" }, { "method": "POST", - "url": "/questionnaire/currency-total-playback-1/", - "data": {} + "url": "/questionnaire/any-companies-or-branches/", + "data": { + "any-companies-or-branches-answer": "Yes" + } }, { "method": "GET", - "url": "/questionnaire/sections/questions-section/" + "url": "/questionnaire/companies/add-company/?previous=any-companies-or-branches" }, { "method": "POST", - "url": "/questionnaire/sections/questions-section/", - "data": {} + "url": "/questionnaire/companies/add-company/?previous=any-companies-or-branches", + "data": { + "company-or-branch-name": "Company 1" + }, + "redirect_route": "/questionnaire/companies/{company_1}/companies-repeating-block-1/" }, { "method": "GET", - "url": "/questionnaire/" + "url": "/questionnaire/companies/{company_1}/companies-repeating-block-1/" }, { "method": "POST", - "url": "/questionnaire/", - "data": {} + "url": "/questionnaire/companies/{company_1}/companies-repeating-block-1/", + "data": { + "registration-number": "10", + "registration-date-day": "10", + "registration-date-month": "03", + "registration-date-year": "1999" + } }, { "method": "GET", - "url": "/questionnaire/people/{person_1_id}/set-min-max-block/?resume=True" + "url": "/questionnaire/companies/{company_1}/companies-repeating-block-2/" }, { "method": "POST", - "url": "/questionnaire/people/{person_1_id}/set-min-max-block/?resume=True", + "url": "/questionnaire/companies/{company_1}/companies-repeating-block-2/", "data": { - "set-minimum-answer": "400", - "set-maximum-answer": "100" + "authorised-trader-uk-radio": "No", + "authorised-trader-eu-radio": "Yes" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/" + "url": "/questionnaire/any-other-companies-or-branches/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_1_id}/", - "data": {} + "url": "/questionnaire/any-other-companies-or-branches/", + "data": { + "any-other-companies-or-branches-answer": "Yes" + } }, { "method": "GET", - "url": "/questionnaire/" + "url": "/questionnaire/companies/add-company/" }, { "method": "POST", - "url": "/questionnaire/", - "data": {}, - "redirect_route": "/questionnaire/people/{person_2_id}/third-number-block/" + "url": "/questionnaire/companies/add-company/", + "data": { + "company-or-branch-name": "Company 2" + }, + "redirect_route": "/questionnaire/companies/{company_2}/companies-repeating-block-1/" }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/third-number-block/" + "url": "/questionnaire/companies/{company_2}/companies-repeating-block-1/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/third-number-block/", + "url": "/questionnaire/companies/{company_2}/companies-repeating-block-1/", "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" + "registration-number": "10", + "registration-date-day": "10", + "registration-date-month": "03", + "registration-date-year": "1992" } }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/" + "url": "/questionnaire/companies/{company_2}/companies-repeating-block-2/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/currency-total-playback-2/", - "data": {} + "url": "/questionnaire/companies/{company_2}/companies-repeating-block-2/", + "data": { + "authorised-trader-uk-radio": "No", + "authorised-trader-eu-radio": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/any-other-companies-or-branches/" }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/" + "url": "/questionnaire/companies/{company_1}/remove-company/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/mutually-exclusive-checkbox/", + "url": "/questionnaire/companies/{company_1}/remove-company/", "data": { - "checkbox-answer": "{third_answer_value}" + "remove-confirmation": "Yes" } }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/set-min-max-block/" + "url": "/questionnaire/any-other-companies-or-branches/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/set-min-max-block/", + "url": "/questionnaire/any-other-companies-or-branches/", "data": { - "set-minimum-answer": "400", - "set-maximum-answer": "100" + "any-other-companies-or-branches-answer": "No" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/" + "url": "/questionnaire/any-other-trading-details/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_2_id}/", - "data": {} + "url": "/questionnaire/any-other-trading-details/", + "data": { + "any-other-trading-details-answer": "1231" + } }, { "method": "GET", - "url": "/questionnaire/" + "url": "/questionnaire/sections/section-companies/" }, { "method": "GET", - "url": "/questionnaire/list-collector/" + "url": "/questionnaire/responsible-party/?return_to=section-summary&return_to_answer_id=responsible-party-answer" }, { "method": "POST", - "url": "/questionnaire/list-collector/", + "url": "/questionnaire/responsible-party/?return_to=section-summary&return_to_answer_id=responsible-party-answer", "data": { - "anyone-else": "Yes" + "responsible-party-answer": "No" } }, { "method": "GET", - "url": "/questionnaire/people/add-person/" + "url": "/questionnaire/sections/section-companies/" }, { "method": "POST", - "url": "/questionnaire/people/add-person/", + "url": "/questionnaire/sections/section-companies/", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/" + }, + { + "method": "GET", + "url": "/questionnaire/primary-person-list-collector/" + }, + { + "method": "POST", + "url": "/questionnaire/primary-person-list-collector/", "data": { - "first-name": "Matt", - "last-name": "Smith" + "you-live-here": "No" } }, { "method": "GET", - "url": "/questionnaire/list-collector/" + "url": "/questionnaire/" }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/remove-person/" + "url": "/questionnaire/sections/questions-section/" }, { "method": "GET", - "url": "/questionnaire/list-collector/" + "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer" + }, + { + "method": "POST", + "url": "/questionnaire/skip-first-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer", + "data": { + "skip-first-block-answer": "No" + } }, { "method": "GET", - "url": "/questionnaire/people/{person_2_id}/edit-person/" + "url": "/questionnaire/first-number-block/?return_to=section-summary" }, { "method": "POST", - "url": "/questionnaire/people/{person_2_id}/edit-person/", + "url": "/questionnaire/first-number-block/?return_to=section-summary", "data": { - "first-name": "Erling", - "last-name": "Haaland" + "first-number-answer": "200" } }, { "method": "GET", - "url": "/questionnaire/list-collector/" + "url": "/questionnaire/first-and-a-half-number-block/?return_to=section-summary" }, { "method": "POST", - "url": "/questionnaire/list-collector/", + "url": "/questionnaire/first-and-a-half-number-block/?return_to=section-summary", "data": { - "anyone-else": "No" + "first-and-a-half-number-answer-also-in-total": "100" } }, + { + "method": "GET", + "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary" + }, + { + "method": "POST", + "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/sections/questions-section/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/questions-section/", + "data": {} + }, { "method": "GET", "url": "/questionnaire/" @@ -578,60 +755,58 @@ { "method": "POST", "url": "/questionnaire/", - "data": {}, - "redirect_route": "/questionnaire/people/{person_3_id}/third-number-block/" + "data" : {} }, { "method": "GET", - "url": "/questionnaire/people/{person_3_id}/third-number-block/" + "url": "/questionnaire/people/{person_2}/set-min-max-block/?resume=True" }, { "method": "POST", - "url": "/questionnaire/people/{person_3_id}/third-number-block/", + "url": "/questionnaire/people/{person_2}/set-min-max-block/?resume=True", "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" + "set-minimum-answer": "500", + "set-maximum-answer": "100" } }, { "method": "GET", - "url": "/questionnaire/people/{person_3_id}/currency-total-playback-2/" + "url": "/questionnaire/sections/calculated-summary-section/{person_2}/" }, { "method": "POST", - "url": "/questionnaire/people/{person_3_id}/currency-total-playback-2/", + "url": "/questionnaire/sections/calculated-summary-section/{person_2}/", "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_3_id}/mutually-exclusive-checkbox/" + "url": "/questionnaire/" }, { "method": "POST", - "url": "/questionnaire/people/{person_3_id}/mutually-exclusive-checkbox/", - "data": { - "checkbox-answer": "{third_answer_value}" - } + "url": "/questionnaire/", + "data" : {}, + "redirect_route": "/questionnaire/people/{person_3}/set-min-max-block/?resume=True" }, { "method": "GET", - "url": "/questionnaire/people/{person_3_id}/set-min-max-block/" + "url": "/questionnaire/people/{person_3}/set-min-max-block/?resume=True" }, { "method": "POST", - "url": "/questionnaire/people/{person_3_id}/set-min-max-block/", + "url": "/questionnaire/people/{person_3}/set-min-max-block/?resume=True", "data": { - "set-minimum-answer": "370", - "set-maximum-answer": "100" + "set-minimum-answer": "550", + "set-maximum-answer": "200" } }, { "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_3_id}/" + "url": "/questionnaire/sections/calculated-summary-section/{person_3}/" }, { "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_3_id}/", + "url": "/questionnaire/sections/calculated-summary-section/{person_3}/", "data": {} }, { @@ -640,19 +815,125 @@ }, { "method": "GET", - "url": "/questionnaire/list-collector/" + "url": "/questionnaire/responsible-party-business/" + }, + { + "method": "POST", + "url": "/questionnaire/responsible-party-business/", + "data": { + "responsible-party-business-answer": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/" }, { "method": "GET", - "url": "/questionnaire/people/{person_3_id}/remove-person/" + "url": "/questionnaire/sections/section-businesses/" + }, + { + "method": "GET", + "url": "/questionnaire/responsible-party-business/?return_to=section-summary&return_to_answer_id=responsible-party-business-answer" }, { "method": "POST", - "url": "/questionnaire/people/{person_3_id}/remove-person/", + "url": "/questionnaire/responsible-party-business/?return_to=section-summary&return_to_answer_id=responsible-party-business-answer", "data": { - "remove-confirmation": "Yes" + "responsible-party-business-answer": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/any-businesses-or-branches/?return_to=section-summary" + }, + { + "method": "POST", + "url": "/questionnaire/any-businesses-or-branches/?return_to=section-summary", + "data": { + "any-businesses-or-branches-answer": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/businesses/add-business/?previous=any-businesses-or-branches" + }, + { + "method": "POST", + "url": "/questionnaire/businesses/add-business/?previous=any-businesses-or-branches", + "data": { + "business-or-branch-name": "Company 2" + }, + "redirect_route": "/questionnaire/businesses/{company_2}/businesses-repeating-block-1/" + }, + { + "method": "GET", + "url": "/questionnaire/businesses/{company_2}/businesses-repeating-block-1/" + }, + { + "method": "POST", + "url": "/questionnaire/businesses/{company_2}/businesses-repeating-block-1/", + "data": { + "registration-business-number": "19", + "registration-business-date-day": "20", + "registration-business-date-month": "02", + "registration-business-date-year": "1990" } }, + { + "method": "GET", + "url": "/questionnaire/businesses/{company_2}/businesses-repeating-block-2/" + }, + { + "method": "POST", + "url": "/questionnaire/businesses/{company_2}/businesses-repeating-block-2/", + "data": { + "authorised-business-trader-uk-radio": "Yes", + "authorised-business-trader-eu-radio": "Yes" + } + }, + { + "method": "GET", + "url": "/questionnaire/any-other-business-businesses-or-branches/" + }, + { + "method": "POST", + "url": "/questionnaire/any-other-business-businesses-or-branches/", + "data": { + "any-other-business-businesses-or-branches-answer": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/any-other-business-trading-details/" + }, + { + "method": "POST", + "url": "/questionnaire/any-other-business-trading-details/", + "data": { + "any-other-business-trading-details-answer": "hI" + } + }, + { + "method": "GET", + "url": "/questionnaire/responsible-party-business/?return_to=section-summary&return_to_answer_id=responsible-party-business-answer" + }, + { + "method": "POST", + "url": "/questionnaire/responsible-party-business/?return_to=section-summary&return_to_answer_id=responsible-party-business-answer", + "data": { + "responsible-party-business-answer": "No" + } + }, + { + "method": "GET", + "url": "/questionnaire/sections/section-businesses/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/section-businesses/", + "data": {} + }, { "method": "GET", "url": "/questionnaire/" From d97d8d9131e48ff877b2fbcc1ef08e7c38ce2865 Mon Sep 17 00:00:00 2001 From: Yuyutsu Rai Date: Fri, 20 Oct 2023 12:11:29 +0100 Subject: [PATCH 25/25] delete test_benhcmkark_business_pdfkit.json Signed-off-by: Yuyutsu Rai --- requests/test_benchmark_business_pdfkit.json | 574 ------------------- 1 file changed, 574 deletions(-) delete mode 100644 requests/test_benchmark_business_pdfkit.json diff --git a/requests/test_benchmark_business_pdfkit.json b/requests/test_benchmark_business_pdfkit.json deleted file mode 100644 index fb075df0..00000000 --- a/requests/test_benchmark_business_pdfkit.json +++ /dev/null @@ -1,574 +0,0 @@ -{ - "requests": [ - { - "method": "GET", - "url": "/questionnaire/introduction-block/" - }, - { - "method": "POST", - "url": "/questionnaire/introduction-block/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/block-379/" - }, - { - "method": "POST", - "url": "/questionnaire/block-379/", - "data": { - "answer-434": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-381/" - }, - { - "method": "POST", - "url": "/questionnaire/block-381/", - "data": { - "answer-436": "100", - "answer-437": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-4616/" - }, - { - "method": "POST", - "url": "/questionnaire/block-4616/", - "data": { - "answer-5873": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-4952/" - }, - { - "method": "POST", - "url": "/questionnaire/block-4952/", - "data": { - "answer-6287": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-4953/" - }, - { - "method": "POST", - "url": "/questionnaire/block-4953/", - "data": { - "answer-6288": "Start or end of long term project" - } - }, - { - "method": "GET", - "url": "/questionnaire/block-383/" - }, - { - "method": "POST", - "url": "/questionnaire/block-383/", - "data": { - "answer-439": "Hi eQ team \ud83d\ude0d" - } - }, - { - "method": "GET", - "url": "/questionnaire/primary-person-list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/primary-person-list-collector/", - "data": { - "you-live-here": "Yes" - }, - "redirect_route": "/questionnaire/people/{person_1}/add-or-edit-primary-person/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1}/add-or-edit-primary-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1}/add-or-edit-primary-person/", - "data": { - "first-name": "Joe", - "last-name": "Bloggs" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/add-person/" - }, - { - "method": "POST", - "url": "/questionnaire/people/add-person/", - "data": { - "first-name": "Erling", - "last-name": "Haaland" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/skip-first-block/" - }, - { - "method": "POST", - "url": "/questionnaire/skip-first-block/", - "data": { - "skip-first-block-answer": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/second-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/second-number-block/", - "data": { - "second-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/currency-total-playback-1/" - }, - { - "method": "POST", - "url": "/questionnaire/currency-total-playback-1/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/sections/questions-section/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/questions-section/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1}/grand-calculated-summary-third-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1}/grand-calculated-summary-third-number-block/", - "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1}/currency-total-playback-2/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1}/currency-total-playback-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1}/mutually-exclusive-checkbox/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1}/mutually-exclusive-checkbox/", - "data": { - "checkbox-answer": "{third_answer_value}" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_1}/set-min-max-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_1}/set-min-max-block/", - "data": { - "set-minimum-answer": "200", - "set-maximum-answer": "50" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_1}/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_1}/", - "data": {}, - "redirect_route": "/questionnaire/people/{person_2}/grand-calculated-summary-third-number-block/" - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2}/grand-calculated-summary-third-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2}/grand-calculated-summary-third-number-block/", - "data": { - "third-number-answer": "100", - "third-number-answer-also-in-total": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2}/currency-total-playback-2/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2}/currency-total-playback-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2}/mutually-exclusive-checkbox/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2}/mutually-exclusive-checkbox/", - "data": { - "checkbox-answer": "{calc_value_2}" - } - }, - { - "method": "GET", - "url": "/questionnaire/people/{person_2}/set-min-max-block/" - }, - { - "method": "POST", - "url": "/questionnaire/people/{person_2}/set-min-max-block/", - "data": { - "set-minimum-answer": "200", - "set-maximum-answer": "50" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/calculated-summary-section/{person_2}/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/calculated-summary-section/{person_2}/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/grand-calculated-summary-first-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/grand-calculated-summary-first-number-block/", - "data": { - "q1-a1": "100", - "q1-a2": "5" - } - }, - { - "method": "GET", - "url": "/questionnaire/grand-calculated-summary-second-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/grand-calculated-summary-second-number-block/", - "data": { - "q2-a1": "500", - "q2-a2": "4" - } - }, - { - "method": "GET", - "url": "/questionnaire/distance-calculated-summary-1/" - }, - { - "method": "POST", - "url": "/questionnaire/distance-calculated-summary-1/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/number-calculated-summary-1/" - }, - { - "method": "POST", - "url": "/questionnaire/number-calculated-summary-1/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/sections/grand-calculated-summary-section-1/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/grand-calculated-summary-section-1/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/third-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/third-number-block/", - "data": { - "q3-a1": "10", - "q3-a2": "10" - } - }, - { - "method": "GET", - "url": "/questionnaire/fourth-number-block/" - }, - { - "method": "POST", - "url": "/questionnaire/fourth-number-block/", - "data": { - "q4-a1": "0", - "q4-a2": "0" - } - }, - { - "method": "GET", - "url": "/questionnaire/distance-calculated-summary-2/" - }, - { - "method": "POST", - "url": "/questionnaire/distance-calculated-summary-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/number-calculated-summary-2/" - }, - { - "method": "POST", - "url": "/questionnaire/number-calculated-summary-2/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/distance-grand-calculated-summary/" - }, - { - "method": "POST", - "url": "/questionnaire/distance-grand-calculated-summary/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/number-grand-calculated-summary/" - }, - { - "method": "POST", - "url": "/questionnaire/number-grand-calculated-summary/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/responsible-party/" - }, - { - "method": "POST", - "url": "/questionnaire/responsible-party/", - "data": { - "responsible-party-answer": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/any-companies-or-branches/" - }, - { - "method": "POST", - "url": "/questionnaire/any-companies-or-branches/", - "data": { - "any-companies-or-branches-answer": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/companies/add-company/?previous=any-companies-or-branches" - }, - { - "method": "POST", - "url": "/questionnaire/companies/add-company/?previous=any-companies-or-branches", - "data": { - "company-or-branch-name": "eQ insurance" - }, - "redirect_route":"/questionnaire/companies/{company_1}/companies-repeating-block-1/" - }, - { - "method": "GET", - "url": "/questionnaire/companies/{company_1}/companies-repeating-block-1/" - }, - { - "method": "POST", - "url": "/questionnaire/companies/{company_1}/companies-repeating-block-1/", - "data": { - "registration-number": "1", - "registration-date-day": "10", - "registration-date-month": "10", - "registration-date-year": "2010" - } - }, - { - "method": "GET", - "url": "/questionnaire/companies/{company_1}/companies-repeating-block-2/" - }, - { - "method": "POST", - "url": "/questionnaire/companies/{company_1}/companies-repeating-block-2/", - "data": { - "authorised-trader-uk-radio": "Yes", - "authorised-trader-eu-radio": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/any-other-companies-or-branches/" - }, - { - "method": "POST", - "url": "/questionnaire/any-other-companies-or-branches/", - "data": { - "any-other-companies-or-branches-answer": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/any-other-trading-details/" - }, - { - "method": "POST", - "url": "/questionnaire/any-other-trading-details/", - "data": { - "any-other-trading-details-answer": "100" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/section-companies/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/section-companies/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/" - }, - { - "method": "POST", - "url": "/questionnaire/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/responsible-party-business/" - }, - { - "method": "POST", - "url": "/questionnaire/responsible-party-business/", - "data": { - "responsible-party-business-answer": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/any-businesses-or-branches/" - }, - { - "method": "POST", - "url": "/questionnaire/any-businesses-or-branches/", - "data": { - "any-businesses-or-branches-answer": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/section-businesses/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/section-businesses/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/" - }, - { - "method": "POST", - "url": "/questionnaire/", - "data": {} - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - }, - { - "method": "GET", - "url": "/submitted/view-response/" - }, - { - "method": "GET", - "url": "/submitted/download-pdf" - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - }, - { - "method": "GET", - "url": "/submitted/feedback/send" - }, - { - "method": "POST", - "url": "/submitted/feedback/send", - "data": { - "feedback-type": "The survey questions", - "feedback-text": "Feedback" - } - }, - { - "method": "GET", - "url": "/submitted/feedback/sent" - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - } - ], - "schema_name": "test_benchmark_business", - "schema_url": "https://storage.googleapis.com/eq-questionnaire-schemas/test_benchmark_business.json" -} \ No newline at end of file