Ta.
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:
The definitaion of Navigate_Generic is:
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"
);
}
You get the idea.
Is it possible to use TS in the same way ? We understand that TS stand alone is not a full IDE.
Ta.