Telerik Forums
Test Studio Forum
6 answers
88 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
220 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
137 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
122 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
261 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
141 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
0 answers
37 views

Test Studio User Guide Updates

Now Live for 2012 R2 SP1

New

Updated

Byron
Top achievements
Rank 1
 asked on 05 Dec 2012
1 answer
113 views
Hi there,

I just installed the trial of Test Studio for evaluation purposes. I tried to record a simple Web-Test:

Open a form, input some values into textboxes and submit.

The problem is: As soon as I insert a value (into the second textbox, the first seems to get recorded), Internet Explorer hangs completely.

After a few seconds I get the "Unresponsive" suffix in the titlebar and from there on I can only restart the browser.


So in fact I am unfortunately not able to evaluate Test Studio at all :( .. which is a bummer, because it really looks very useful.

I am running Windows 8 + Internet Explorer 10.
I already run the automatic browser configuration dialog - which states that everything is correctly configured.


Thanks for any advice,
Wolfgang
Ivaylo
Telerik team
 answered on 04 Dec 2012
2 answers
59 views
Hi there
        I was wondering is, is there any way I could use a coded step to pull back a list of the tests in a test list as it is executing.

The reason I ask is I want a coded step in the first test to react to changes in the test list.

So for example lets say I have a test list of 6 tests

Setuptest
test1
test2
test3
test4
test5

I want to be able to have Setuptest preform some data set up for all the other tests and I want it to be able to react to changes in the test list so that if I add test6 to the list it will react to the change without needing to be updated.

Thanks

Carl
Carl
Top achievements
Rank 1
 answered on 04 Dec 2012
7 answers
202 views
Hi,

I have a requirement for data driven tests with the following scenario
I need to be able to populate the screen with

Example Queries
Order
SELECT CustomerID FROM dbo.[Order]
OrderLine
SELECT [ProductID], [Qty] FROM [Sandbox].[dbo].[OrderLine] WHERE CustomerID = [@Parameter]

Order CustomerID: 100
OrderLine ProductID: 100 Qty: 1
 
Order CustomerID: 101
OrderLine ProductID: 201 Qty: 1
OrderLine ProductID: 300 Qty: 2

Order CustomerID: 102
OrderLine ProductID: 100 Qty: 1
OrderLine ProductID: 200 Qty: 1
OrderLine ProductID: 300 Qty: 13

I would like to setup the tests as a parent(order)/child(orderline).

I can't use "InheritParentDataSource" because that would cause an order to always have one orderline.

If I have to do code behind to set up the datasource for child. Please show how to pass parameter from parent to child and then how I override the datasource for child

Current Steps
Add Order Test(Parent)

Type '' into TxtCusomterTextbox - DataDriven: [$(CustomerID)]
Click BtnOrderButton
Execute test 'AddOrderLine'

Add OrderLine Test(Child)
Type '' into TxtOrderLineProductIDTextbox - DataDriven: [$(ProductID)]
Type '' into TxtOrderLineQtyTextbox - DataDriven: [$(Qty)]
Click BtnOrderButton

Any help would be appreciated.


Cody
Telerik team
 answered on 03 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?