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

How to set common login for all tests in test lists

8 Answers 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pranavi
Top achievements
Rank 1
Pranavi asked on 01 Aug 2013, 03:23 PM
In a Single test-list suppose there are 5 tests , To test an application i need to login into application first and continue so when i testing 5 tests, for every test the recorded script showing login screen , instead , i want to login once and run all the scripts without showing login screen for rest of scripts.

8 Answers, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 02 Aug 2013, 06:19 AM
Hello Pranavi,

You can use the option RecycleBrowser in the test list settings (see RecycleBrowser screenshot) this way only once instance of the browser will be launched and recycled through the entire test list execution. 
However please note that this is not a good practice of organizing your tests in a test list. In the long run it’s better to eliminate such test dependencies i.e. test 2 must run after test 1 - the login test. It is a much better practice to make each test independent and standalone such that you can run that individual test all by itself and not worry that it must run after something else. Yes this means every test must go through a login process.
In this case you can use if...else logical step which will check if you are logged in already and if yes do not log you again. Please refer to the screenshot login if needed for more information.

Regards,
Ivaylo
Telerik
We've released our first-ever public Test Studio BETA! Download the BETA, install it,
and send us your feedback! Expires mid-August!
0
Pranavi
Top achievements
Rank 1
answered on 02 Aug 2013, 08:47 AM
Thanks!
In my  First test code is there for login and some other steps.and second,third i deleted login steps but other steps are there .these three i kept in testlist and set the browser settings as RecycleBrowser .But in test list first test is running,for second test browser is opening but not running.with single login i need to run remain tests.How can i do that.



Thanks
0
Pranavi
Top achievements
Rank 1
answered on 05 Aug 2013, 09:34 AM
Thanks!
  I tried with the recyclebrowser option .But it is not working as my requirement.
0
Sue
Top achievements
Rank 1
answered on 07 Aug 2013, 12:28 AM
We have just updated and found the feature we use - recycle browser - which has been working great for us is not available???

RecycleBrowser - when set to true, one instance of the browser is launched and recycled throughout all tests until Manager.Dispose is called. Note: This setting is not supported in 2013 R1.

Is there another way around this as we use the same test scripts with different logins who have different permissions.  We did not expect this feature to be removed.
0
Ivaylo
Telerik team
answered on 07 Aug 2013, 05:34 AM
Hello Pranavi,

I am quite surprised the Recycle Browser is not working for you, it should work in this case. Please note that you can always create the common login with the if else step I described in my initial reply.
That should work in your case.

Regards,
Ivaylo
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Ivaylo
Telerik team
answered on 07 Aug 2013, 05:37 AM
Hello Sue,

The option is still available and it is placed in the same location, please refer to the screenshot attached.

Regards,
Ivaylo
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Sue
Top achievements
Rank 1
answered on 07 Aug 2013, 06:04 AM
After having issues with our test scripts which were running fine yesterday before the update - we reviewed your help.

This is what we found:-
RecycleBrowser - when set to true, one instance of the browser is launched and recycled throughout all tests until Manager.Dispose is called. Note: This setting is not supported in 2013 R1.

If the first test in a test list logs in - then subsequent test scripts (require that login) do various different processes the browser does not stay open and subsequent test scripts fail.  This was working yesterday before the update.


0
Ivaylo
Telerik team
answered on 07 Aug 2013, 06:41 AM
Hello,

I have did some testing and it seems the feature is not working as expected, I have logged a bug which you can find using this public URL.

Thank you for your understanding.

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