Reply
Highlighted
Contributor
Posts: 21
Registered: ‎07-30-2017

Can I keep the login credential for other test cases?

Hi,

 

I am testing the product but it requires me to call the login method with correct credential before I can test the production features.  I plan to create one test case for each feature, so is it possible to keep the same login for other test cases without making addition call to login?  Because right now, i have to call the login every time for each test case.  thanks.

Contributor
Posts: 39
Registered: ‎07-20-2011

Re: Can I keep the login credential for other test cases?

Hi Skyhigh:

 

    You can call login once and put all other calls under login.

 

    Hope this solved your issue.

 

Good luck,

 

    

Contributor
Posts: 21
Registered: ‎07-30-2017

Re: Can I keep the login credential for other test cases?

[ Edited ]

I try to avoid that because it will be too much calls under one login call.  Right now I have one test case but 20 test steps.  The reason these test steps are into one test case because they need the login credential.  But since each test step tests different feature so I would like to separate into own test case but can't do that without calling login every test case.