This is a migrated thread and some comments may be shown as answers.

new chrome session with Telerik

5 Answers 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Youcef
Top achievements
Rank 1
Youcef asked on 21 Nov 2014, 09:35 AM
Hi,
I'm trying to do some load testing for a web application and I need to open multiple sessions with different user credentials. The problem I'm facing is that after the first session is opened in chrome, when Telerik opens a new chrome instance it opens it with the first user session opened, and if I log out there then the session opened in the first chrome instance is logged out.
In order to avoid this, I need to open a new chrome session for each new user: 
https://support.google.com/chrome/answer/2364824?hl=en
My tests are written in C#, does anybody have an idea about how to make telerik opens a new chrome session with every execution?
Thanks,
Youcef  
      

5 Answers, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 26 Nov 2014, 07:17 AM
Hello Youcef,

Please excuse me for the delayed reply.

Unfortunately this is not possible with Test Studio.

Thank you for your understanding.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Christian Kohl
Top achievements
Rank 1
answered on 18 Feb 2015, 03:46 AM
Hi Ivaylo,

does this also apply to just running tests sequentially? Or is there a setting to use to get a new Chrome session when running individual tests as part of a Test list.

I am running into an issue with Chrome where i have multiple tests in a list and they all run fine individually but once i put them in a Test list the second and subsequent tests fail.
Reason being is that each test starts with log in to a website, does some things and it doesn't log back out. Hence a user is logged in an cannot log back in anymore and it doesn't find the relevant elements.
We would like to use it that was as we are building test steps that can be part of multiple tests but are just steps.
Is there a way around this or is this also not supported.

Thanks

Christian




0
Ivaylo
Telerik team
answered on 19 Feb 2015, 08:53 AM
Hello Christian,

You can create a common log in and log out tests and include them as test as steps in each of your tests in the test list. This way all tests in the test list will execute independently.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Christian Kohl
Top achievements
Rank 1
answered on 19 Feb 2015, 09:49 AM
Hi Ivaylo,

I am not sure if that's a real solution. It's more a work around for a problem I would assume is very common for any of your clients.
It doesn't allow the ability to run test independently if you have them in a Test list, defeating the purpose of putting them in a list in the first place.
Also, in the case where a test fails between the login and logout, any subsequent test would fail due to the failure of the test before.
Is anything in the pipeline to address this sort of issue.
Thanks

Cheers,
Christian
0
Ivaylo
Telerik team
answered on 19 Feb 2015, 12:11 PM
Hello Christian,

This is not a workaround but more considered as a best practice. It is always good to be able to execute the test  independently as well as a part of a list.

To be honest with you I am not clear on what exact problem you are running in. If you be more specific I might be able to help.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Youcef
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Christian Kohl
Top achievements
Rank 1
Share this question
or