Forum Discussion

skyhigh's avatar
skyhigh
Contributor
7 years ago

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.

2 Replies

  • Hi Skyhigh:

     

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

     

        Hope this solved your issue.

     

    Good luck,

     

        

    • skyhigh's avatar
      skyhigh
      Contributor

      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.