5 Answers, 1 is accepted
From your question I'm getting a little confused, are you using our tests with coded steps or you are using Nunit tests?
If you are using our webaii tests you just need to include them into a project and you will be able to run the test. If you are using Nunit tests it will not be possible to run them with Test Studio.
Ivaylo
the Telerik team
Vote now
We've got bunch of tests that currently running using nunit.
We would like to stop using nunit and run the above tests using a commerical tool sucn as Test Studio.
Can Test Studio run tests written for nunit ?
Ta.
Unfortunately Test Studio cannot run straight/unmodified NUnit tests directly, even those designed to use our Testing Framework.
The only option for you can be if you take your tests and modify them to run as coded steps instead. You will have to create a new Test Studio test for each NUnit test, then copy/paste the existing code into a new coded step.
Ivaylo
the Telerik team
Vote now
I have now downloaded the latest version of the Telerik Test Studio in an attempt to
see if we can run our tests using TS not Nunit as before and do so while using what you call 'Coded Steps'.
The thing is our code is desinged is a fully OOP fashion, i.e. test usally call test methods from other classes incl Enum-like types etc.
For example to login I'm using the following:
Navigate.Navigate_Generic(Environments.Local, Users.User1);
public
static
void
Navigate_Generic(String Environment, String user)
{
Manager.Current.LaunchNewBrowser(Settings.Current.DefaultBrowser);
Manager.Current.SetNewBrowserTracking(
true
);
Manager.Current.ActiveBrowser.NavigateTo(Environment);
//Manager.Current.Settings.BaseUrl
Manager.Current.ActiveBrowser.WaitUntilReady();
Manager.Current.ActiveBrowser.RefreshDomTree();
Manager.Current.ActiveBrowser.Find.ByName<HtmlInputText>(
"j_username"
).Text = user;
Manager.Current.ActiveBrowser.Find.ByName<HtmlInputPassword>(
"j_password"
).Text =
"somepassword"
;
Manager.Current.ActiveBrowser.Find.ByName<HtmlInputSubmit>(
"submit"
).Click();
if
(Manager.Current.Browsers[0].Find.ByAttributes<HtmlControl>(
"value=Log me in"
) !=
null
&&
Manager.Current.Browsers[0].Find.ByAttributes<HtmlControl>(
"value=Log me in"
).IsVisible())
{
Manager.Current.Browsers[0].Find.ByName<HtmlInputSubmit>(
"submit"
).Click();
System.Threading.Thread.Sleep(3500);
}
WaitForWindow(2);
Manager.Current.SetNewBrowserTracking(
false
);
Manager.Current.ActiveBrowser.Window.Maximize();
M anager.Current.ActiveBrowser.RefreshDomTree();
Assert.True(Manager.Current.ActiveBrowser.ContainsText(
"Dashboard"
),
"Dashboard didn't show up"
);
}
Is it possible to use TS in the same way ? We understand that TS stand alone is not a full IDE.
Ta.
Yes, it is possible to use Test Studio in the way you are describing. It is not a problem to call test methods from other classes.
Please note that they need to be in the same project, you cannot call methods from different projects.
Ivaylo
the Telerik team
Vote now