Telerik Forums
Test Studio Forum
5 answers
246 views
I am having trouble with a test that works with an IE modal pop-up window.  The test finds the window no problem, can fill in fields on the window without any issue, but gets confused when the window is closed - it can no longer interact with the main window.  As part of the test, a button is clicked in the application which closes the window.

I have tried commenting out the Terlik "close modal pop-up window" step, looks like that step is trying to close the window which is already closed.

I have also set the "closes browser" to true for the test step which clicks the button to close window.  This looked promising, but didn't seem to have an effect - also interesting, I would have expected this to change the generated coded step, but didn't notice anything change with and without this set.
Plamen
Telerik team
 answered on 10 Dec 2012
19 answers
268 views
Hi,
    I have a  test studio script that is data driven by a SQL server database. The web application against which the script was recorded is a policy system. The script works fine for new business system but i would like to know the best process to follow in creating a script that can be used for policy changes.

For example, if i have a set of entries on the new policy, the system would create a new policy but when there is only 1 entry change in the above set of entries, i do not want the complete script to execute but just the field that has been changed. The reason for that is, i have several hundred fields of data entry in the application and only one value could be changed.

Thank you
Cody
Telerik team
 answered on 10 Dec 2012
6 answers
287 views
I have a coded step where I am calling my Entity data access layer.  Problem is that they enity framework complains about not being able to find the name connection.

Exception Thrown in my DAL:
The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.

Issue:
I created the App.Config file in my test project and included the connectionstring.  Issue is that the test project gets build as a library and not an application, therefore the app.config file never gets used.
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/override-app.config.aspx

Question:
How do I get my Entity DAL to access the named connection that it needs access to when the app.config file does not exist.



Plamen
Telerik team
 answered on 10 Dec 2012
3 answers
186 views
Hi,

I am currently using Telerik trial version. Please answer for the following queries..

01.  Can I create multiple Agents(more than two or three) in my load testing project while using Telerik trial version..??

02. If so how could I create multiple Agents in the load testing project..??

03. When we assign another machine as an Agent I have installed Telerik studio (full trial version) in that separate machine as well. In this case is  it necessary to install Run time edition or when we install Telerik studio doesn't it automatically install Run time edition..??If not please send me the link to down load Run time edition..

Thanks
Cody
Telerik team
 answered on 10 Dec 2012
6 answers
126 views

I am trying to verify all front attributes of the textblockcontent in RichText Editor. I tried the below code but it always gives "Normal" regardless. I want to be able to extract the TextBlockContent and verify the font attibutes or if it is hyperlink? Has anyone done this before...Any help is appreciated!


 

 

string rtbTextFontStyle = Pages.QAAUTOSYNC1228183918.SilverlightApp.RichTextEditorTemplateRichtextbox.FontStyle.ToString();

 

Log.WriteLine(

 

"Font Style is " + rtbTextFontStyle);

 

Stoich
Telerik team
 answered on 10 Dec 2012
3 answers
263 views
Hi,

I have found that it is possible to use data binding in a varification step, then convert the step to an IF statement.  This works as expected.

However if you try to add data binding to an IF statement, or change the data binding, there is no option to do so.

I consider this to be a bug.

See step 16 of the attached test which does not allow a user to set a data binding.  Steps 8 and 23 had the data binding set before converting to logical.

Regards
Hamish
Boyan Boev
Telerik team
 answered on 07 Dec 2012
1 answer
192 views
Hello,

I use the test studio interface to create tests (to test a silverlight application )
I do not know how to test keyboard events.
The action is to press "ctrl" and hold to select multiple elements in a list with the mouse

How do I do this? Should I write code?

Thank you in advance
Stoich
Telerik team
 answered on 07 Dec 2012
5 answers
152 views
I followed the steps listed below to add a load test agent on another PC.
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/load-testing/load-installation/addloadagent.aspx

However, on my Load Controller, all I see is the only test agent on my local box, NOT the new agent on another PC.

What do I need to check?

Thanks.
Cody
Telerik team
 answered on 07 Dec 2012
9 answers
301 views
We have a checkbox within a Telerik Grid.  It is bound to our ViewModel.

Example View:
@(Html.Telerik().Grid<RoleViewModel>()
        .Name("RoleGrid")
        .DataKeys(k => k.Add(m => m.Role))
        .ToolBar(c => c.SubmitChanges())
        .DataBinding(db => db.Ajax().OperationMode(GridOperationMode.Client)
            .Select("SelectClientSideRole", "User")
            .Update("UpdateClientSideRole", "User"))
        .Columns(c => {
            c.Bound(m => m.Role).Hidden(true);
            c.Bound(m => m.Description).ReadOnly(true);
            c.Bound(m => m.IsInRole)
                .ClientTemplate("<input name='IsInRole<#= Id#>' id='IsInRole<#= Id#>' type='checkbox' <#= IsInRole ? checked='checked' : '' #> />").Title("Is in role");
        })
        .Editable(e => e.Mode(GridEditMode.InCell))
        .ClientEvents(e => e
            .OnDataBinding("roleGrid.onDataBinding")
            .OnRowDataBound("roleGrid.onRowDataBound")
            .OnSubmitChanges("roleGrid.onSubmitChanges")
            .OnComplete("roleGrid.onComplete")
            .OnError("roleGrid.onError")))


Above is our exact code.  The issue with Telerik Test Studio is simulating a checkbox click.  Source code for the checkbox looks like this:
<td class="t-last">
  <input name="IsInRole0" id="IsInRole0" type="checkbox">
</td>

When we hover over the checkbox to simulate the click, the source code changes to the following:
<td class="t-last t-grid-edit-cell">
  <input class="check-box" data-val="true" data-val-required="The IsInRole field is required."
    id="IsInRole" name="IsInRole" type="checkbox" value="false">
  <input name="IsInRole" type="hidden" value="false">
  <span class="field-validation-valid" data-valmsg-for="IsInRole" data-valmsg-replace="true">
  </span>
</td>

When we hover over the checkbox to simulate the click, we loose our unique attribute for the checkbox. The input id attrivute "IsInRole0" changes to "IsInRole".  So when we record our test and then run the test, it fails.  The output of the grid will have multiple rows.

Any help or ideas on how to simulate a test for the checkboxes?

Thanks
Plamen
Telerik team
 answered on 06 Dec 2012
5 answers
205 views

I have a scenario where the file upload dialog doesn't open after adding a certain number of files.

How do i verify that the file upload dialog has not opened ?


Thanks
Radhika
Plamen
Telerik team
 answered on 06 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?