Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scenario based signup for registration and reset password #185

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from

Conversation

nihallakshmankonchady
Copy link

The following files has been added.

  1. Scenario based scripts for registration and reset password for sign up services
  2. Testdata containing the Fullnames and identifiers with baseurl encoded data.

Nihal LK added 4 commits June 4, 2024 16:29
Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
@akhilmoogi
Copy link

Define no of users in the script based on the weightage provided according to the scenario.

@akhilmoogi
Copy link

Test duration and ramp up duration needs to be added in user defined variables.

Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
@nihallakshmankonchady
Copy link
Author

@akhilmoogi , Updated the script as per your reviews

Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
@akhilmoogi
Copy link

@nihallakshmankonchady as discussed, support and runtime files path to be mentioned in the script where we are fetching the data from.

Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
@akhilmoogi
Copy link

akhilmoogi commented Jun 24, 2024

E-signet Signup script peer review is done. As per Anusha's comment mentioned in the confluence page @nihallakshmankonchady has implemented the Asynchronous status call in the script.

@akhilmoogi
Copy link

To vishwa --- E-signet signup performance scripts have been reviewed from my end. Please once have a review and merge the PR.

Copy link
Member

@vishwa-vyom vishwa-vyom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the script was not opening in Jmeter, I started review on the readme file and partially stopped.

performance-test/README.md Outdated Show resolved Hide resolved
performance-test/README.md Show resolved Hide resolved
Nihal LK added 6 commits June 27, 2024 13:20
Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.3">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"testdata_reset_password.csv" - not sure what convention is followed here

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vishwa-vyom .. I have renamed to testdata_reset_password.txt.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the concern is not file extensetion. if snack case is followed, it should be test_data_reset_password.csv or test_data_reset_password.txt

<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Varibale was named khmerdata, but our script not specific to any language

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vishwa-vyom .. I have renamed the variable name to fullnameval.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fullnameval - camel case not followed. same is for multiple other variable in the "Store Test Data For Reset Password To File" file.

<elementProp name="protocol" elementType="Argument">
<stringProp name="Argument.name">protocol</stringProp>
<stringProp name="Argument.value">https</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Note: Wait for 40 seconds to get status “COMPLETED”, only then pass the request." - this requirement is not taken care for registration flow.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vishwa-vyom.. I have added the wait time for registration flow.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When we always wait for 40 seconds, how we will generate the load of 100 tps ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nihal LK added 4 commits July 10, 2024 10:46
Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
<stringProp name="Argument.name">serverPortNo</stringProp>
<stringProp name="Argument.value">443</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Sign Up Service - Reset Password (Setup)" - does not really convey what setup is being done here

</elementProp>
<elementProp name="relyingPartyId" elementType="Argument">
<stringProp name="Argument.name">relyingPartyId</stringProp>
<stringProp name="Argument.value">Bharathi-Inc</stringProp>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"./support-files/fullNames.txt" - what is the convention followed for naming support files, I see it is not documented in developer guide.

<stringProp name="Argument.value">Bharathi-Inc</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="userClaims" elementType="Argument">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"./bin/RunTimeFiles" - this is not matching according to developer guide

<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.3">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the concern is not file extensetion. if snack case is followed, it should be test_data_reset_password.csv or test_data_reset_password.txt

<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fullnameval - camel case not followed. same is for multiple other variable in the "Store Test Data For Reset Password To File" file.

<elementProp name="userClaims" elementType="Argument">
<stringProp name="Argument.name">userClaims</stringProp>
<stringProp name="Argument.value">&quot;name&quot;,&quot;gender&quot;,&quot;birthdate&quot;,&quot;email&quot;,&quot;phone_number&quot;</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in "Store Test Data For Reset Password To File", khm is hardcoded and not used from "signUpRegisterLanguage" variable

<elementProp name="protocol" elementType="Argument">
<stringProp name="Argument.name">protocol</stringProp>
<stringProp name="Argument.value">https</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When we always wait for 40 seconds, how we will generate the load of 100 tps ?

<elementProp name="protocol" elementType="Argument">
<stringProp name="Argument.name">protocol</stringProp>
<stringProp name="Argument.value">https</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
@akhilmoogi
Copy link

@vishwa-vyom --- E-signet signup performance scripts have been reviewed from my end. Please once have a review and merge the PR.

Signed-off-by: Nihal LK <nihal.lk@technoforte.co.in>
@akhilmoogi
Copy link

@vishwa-vyom I have reviewed the E-signet signup script from my side, kindly review from your side once and merge it.

@akhilmoogi
Copy link

peer review is approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants