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

How can I order my tests?

2 Answers 87 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Maxim
Top achievements
Rank 2
Maxim asked on 03 Sep 2010, 08:17 PM
Hi,

I was wondering if anyone can suggest a way that I can make my tests run in a specific order? The visual studio test list does not appear to let you modify the order of the tests.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Daniel Levy
Telerik team
answered on 03 Sep 2010, 09:09 PM
Hi Jeff,

The test list manager built into Visual Studio does not have the ability to reorder tests. Our QA Edition does however come with our own built-in test list manager that allows you to both reorder your tests as well as create dynamic test lists based on your test properties. I have included a link below to how this works in our QA edition.

http://tv.telerik.com/watch/automated-testing-tools/webui-test-studio-q2-getting-started-with-test-lists

Back to Visual Studio - you could always kickoff individual tests via MSTEST,exe using the following syntax:
mstest /testcontainer:.\testname.aii

Hope this helps and please let me know if you have any questions!

All the best,
Daniel Levy
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
Maxim
Top achievements
Rank 2
answered on 07 Sep 2010, 03:58 PM
Edit: I got this to work. It was a problem with mstest. I added the path where mstest was located to the path system variable and it worked.

Hi Daniel,

Thanks for your suggestion. I saw the video on mstest on your site and tried to run my test that way but I got an error. Below is the error text, please advise.

mstest /testcontainer:.\Login.aii
Microsoft (R) Test Execution Command Line Tool Version 10.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.

Loading .\Login.aii...
TestTypes\c4241296-3c6e-46b1-bf92-e0bd3e0eb017 could not be loaded because the T
IP could not be instantiated for the following reason(s): System.IO.FileNotFound
Exception: Could not load file or assembly 'ArtOfTest.WebAiiVSIP, Version=2010.2
.830.0, Culture=neutral, PublicKeyToken=14176981d1873d86' or one of its dependen
cies. The system cannot find the file specified.
File name: 'ArtOfTest.WebAiiVSIP, Version=2010.2.830.0, Culture=neutral, PublicK
eyToken=14176981d1873d86'
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError,
Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, Bool
ean loadTypeFromPartialName, ObjectHandleOnStack type)
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError,
Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean l
oadTypeFromPartialName)
   at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean
ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
   at System.Type.GetType(String typeName, Boolean throwOnError)
   at Microsoft.VisualStudio.TestTools.TestManagement.TipDelayLoader.LoadTip()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\M
icrosoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure lo
gging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fus
ion!EnableLog].

Starting execution...
No tests to execute.
Tags
General Discussions
Asked by
Maxim
Top achievements
Rank 2
Answers by
Daniel Levy
Telerik team
Maxim
Top achievements
Rank 2
Share this question
or