Declined
Last Updated: 27 Jun 2025 14:11 by ADMIN
Bill
Created on: 24 Jun 2025 15:21
Type: Bug Report
0
asp.net application - doesn't seem to keep cookies after test.

Trying to run tests separately. User must login before running additional test. Login test works. When running additional tests, cookies/session is forgotten.

Test Sequence:

login: creates asp.net session cookies

select company: depends on asp.net session cookies and create a company cookie

select employee: depends on asp.net session cookie and company cookie

How do I keep the cookies and/or keep the browser open between running individual tests ?
1 comment
ADMIN
Elena
Posted on: 27 Jun 2025 14:11

Hello Bill,

Automation tests are expected to be complete standalone scenarios which can be executed instantly on any machine. With this in mind it is expected that each test starts with a login sequence and ends up with a logout one. 

if you want to create more complex scenarios where various workflows are covered in the time of one user session, you can explore the option to reuse tests as steps. That way you can keep one set of steps which covers specific part of the application and reuse it across the different logins. And while calling steps in the same test the browser session remains the same. 

If you need to continue the discussion, please, use the public forum post you submitted on the same topic.

Regards,
Elena
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.