I have a Test Studio Standalone project with a database Data Source. I've written a coded step that inserts test data directly into the database, since this particular data cannot be created directly from the UI with a recorded step. Currently, the DB ConnectionString is hard-coded in this step's code, but I would like it to be dynamic by using the same ConnectionString as the existing Data Source. Is this possible?
I've tried binding the Data Source to the coded step then using Reflection to find the connection strings in the current configuration, but the ConnectionString from the Data Source was not in there. Probably because it only works from an explicit app.config file (in Visual Studio project), which I do not have.
Is there a way to programmatically retrieve the connection string, or do I need to take another approach?
Perhaps my best option is to have a utility class to store connection strings globally accessible to all coded steps? If I do this, is there a way to programmatically retrieve the BaseURL setting for it to determine which connection string is appropriate based on which machine/environment the tests are running in?
Thanks for any input and suggestions.
Hi,
In one of the sites that I'm testing, for the dropdowns is used transForm jQuery plugin.
With Telerik Test Studio I can't find a way to record a selected item from this dropdown.
When I record the step were I select a item form the dropdown the studio does not recognize that this control is a dropdown and record Click 'Span' step.
Here is the site with example for such a dropdown.
Can you give a solution for this?
Thanks,
Boris
Hello,
I have a problem finding specific tag, which occurs only once. For example:
HTML code excerpt:
<table class="table" id="users-table">
<tbody>
<tr class="ng-scope" ng-click="user.id" ng-repeat="user in vm">
</tr>
</tbody>
</table>
Coded step used on HTML code above:
Manager.ActiveBrowser.RefreshDomTree();
IList<HtmlControl> allUsers = Find.AllByXPath<HtmlControl>("table[@id='users-table']/tbody/tr");
int maxCount = allUsers.Count;
Log.WriteLine("Found: " + maxCount.ToString() + " elements.");
Problem that I'm facing:
If I run above coded step it returns maxCount = 0! Instead it should return 1, because one tr tag is available and can be found. If I use online XPATH validators they all return one result (one example of such validator http://codebeautify.org/Xpath-Tester). Let me know why this is happening and how can I solve this? If you have another idea how to solve my problem, please do let me know.
BR, Jurij
Hi,
I am new to telerik. I am doing an web automation. I recorded a web page in telerik test studio. I want to execute the recorded steps without using telerik. Is it possible to compile the recorded steps into .exe format or any formats? So that I can run it without using telerik.
Thanks in advance.

Hi there, was trying to record a step to login to Sitefinity back-end
1) Enter the URL to record (eg: xxx.com/sitefinity)
2) ASP.NET error showed access denied error
A quick respond will help alot in us evaluating the test studio to be used.
Hi ,
How do we use 'find by expression' code on Kendo UI elements in test studio.
Example: I have 'KendoMenuItem' which I want to click by using the code .
I want to later turn it into a reusable test and be able to click different menu items each time by passing the 'innertext' as variable/parameter.
On recording the properties of one such element look like this -
ControlType: Telerik.TestingFramework.Controls.KendoUI.KendoMenuItem
Expression: data-role=menu,role=menubar,|,TagName=li,InnerText=^Sales
cam you please help me write a code to get this element clicked.
Best Regards,
Sprithi HK