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

[Solved] Problem with login prompt when running test

5 Answers 144 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 06 Jul 2010, 09:54 AM
Hi all

i hope some one out there knows how to get arround my issue.

i have a set of tests that requier the user to login to be abel to edit any data in the solution

this works fine when i record and play back the test, but when i add a datasource to the fields then the test runs multibel times and trys to log in on each run of tests.

so is there any one that knows how to make the test ignore the login step? (testcase as step)
i know that you can set a ignore on error but that will still generate a failure of the test so that is not an option for me in the long run.

the platform used is sharepoint 2007 and 2010

Regards
Benjamin

5 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 06 Jul 2010, 04:56 PM
Hello Benjamin,

Yep. The solution is pretty easy once you know the trick. Split your one test into two tests:

  1. TestA - Does nothing but login. This test is NOT databound. Will execute only once.
  2. TestB - First step is to call TestA via Test-as-Step feature. This test is databound to your data source. It will execute one iteration per data row in your data source.

Regards,
Cody
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Benjamin
Top achievements
Rank 1
answered on 06 Jul 2010, 10:05 PM
thank you

i will try that when i get back to work on thursday

Regards
Benjamin
0
Benjamin
Top achievements
Rank 1
answered on 08 Jul 2010, 10:04 AM
Hi Cody

ok so i have tryed to put login in TestA and the test actions in TestB

so far it does not work as expected. TestA is as you sugested a step in TestB

on the2.nd and 3.rd run of the test then the first step is run and fails.

i am running with version "WebUI Test Studio 2010.1" in Trial mode.

Regards
Benjamin
0
Accepted
Cody
Telerik team
answered on 08 Jul 2010, 04:38 PM
Hello Benjamin,

I see. I am sorry I must have given you incorrect instructions for the version you have. It appears you have 2010.1.5.18. Can you confirm this by going to the Project tab, then clicking Show Settings. Then click on the Installation tab. The full version number is displayed there.

We have a later internal build available for download here that may improve things. Also let's try a different approach. Make your login test (Test A) call your Test B instead after the login is complete. I am pretty sure this will not work with your 5.18 build, but should work with the new 6.26 internal build.

Greetings,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Benjamin
Top achievements
Rank 1
answered on 09 Jul 2010, 10:03 AM
Hi Cody

it works with the internal build, thanks for the help.
Tags
General Discussions
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Cody
Telerik team
Benjamin
Top achievements
Rank 1
Share this question
or