Telerik Forums
Test Studio Forum
1 answer
69 views
Hi,

Is it possible to use Test Studio to test a Microsoft Access client application?

Thanks in advance,

Ian.
Cody
Telerik team
 answered on 30 Jul 2012
1 answer
77 views
Hi,

I would like to know if anyone has able to create web ui test using chrome or firefox rather than ie? if so, please let me kow.

Thanks.
Cody
Telerik team
 answered on 27 Jul 2012
3 answers
205 views
To wait for an element to exist, you have to do this:

var element = app.FindName("element");
element.Wait.ForExists();

In my silverlight application, at some point I have to wait for either elementA to exist or elementB to exist. So I created two tasks that each wait for one of the elements to exist:

var waitForElementATask = Task.Factory.StartNew(() => WaitForElement("elementA"));
var waitForElementBTask = Task.Factory.StartNew(() => WaitForElement("elementB"));
Task.WaitAny(waitForElementATask ,waitForElementBTask);

with WaitForElement() being:

private void WaitForElement(string name)
{
   var element = app.FindName(name);
   element.Wait.ForExists();
}

I thought this would be a good way to find out which one of the two elements show up. However, when I run this code, neither element will ever be found, even though they do show up. 

Anybody has any ideas? 
Anthony
Telerik team
 answered on 25 Jul 2012
2 answers
135 views
I have been playing around with the Test List feature in Test Studio.  It runs the tests one at a time, one after the other.  However, is there a way to run multiple tests at the same time?  I do not think there is a way.  But, I wanted to check with you guys.  Please let me know.
Top Gun
Top achievements
Rank 1
 answered on 25 Jul 2012
1 answer
43 views
How do I access IE8's Developer Tools menu?  Doing a Record does not seem to work.....


Ivaylo
Telerik team
 answered on 25 Jul 2012
5 answers
387 views
Hi,

I need to use VB to find the start (and end) postitions of a substring within a string.  I've tried using standard VB InStr as follows:
Dim justTheDates = wholeString.Substring(InStr(wholeString,"Created On"),InStr(wholeString, "EditBack"))

but all I get is a Test Studio error stating "'InStr' is not declared".

Unfortunately I can't get the information using just Test Studio script because the screen that holds the data I need is a legacy screen and doesn't follow good practice in terms of the HTML.  Long term it's on my radar to get that resolved, but for the present I can only capture the value of a whole Div into an extracted variable.  That variable contains a lot of text, but I have to grab two dates that are included.  I can't guarantee the format of the dates (depends on browser culture) so I need to extract them from the whole string.

Any ideas, please?

Thanks,
Nigel, Transition Computing.



Nigel
Top achievements
Rank 2
 answered on 25 Jul 2012
3 answers
105 views
Hello

I tried the QA product and have the following feedback
First, the product is nice, it is the first functional test application that I test so I am quite new on this field. Here is my main constraints :
 
1.    Impossible to make assertions on a GIS module (we use google map like gis module)
There is no wrapper to test each element of the gis component
2.    Impossible to make assertions on a pdf report even if it is generated with telerik reporting
3.    It is impossible to record drawing a polygon in google maps (or i dont how to do it)
a.    Another example would be to record a polygon drawing on the map using open layers : http://openlayers.org/dev/examples/draw-feature.html
4.    The data bind test is quite interresting, it would be better if we could bind it to a complex xml and use xpath to get the good parameter. For complex test with plenty of structured data it would be very handy.
5.    Internet explorer crashes sometimes
6.    Cannot act on a map like maps.google.com (can not click to zoom or draw a polygon)
 
The recorder is not easy to manipulate at the beginning.

My application manipulates a lot of GIS feature to create maps, from those maps we generate exports (like shapes) or reports. The limitation regarding pdf assertion and gis manipulation is too strong in our used case. Your product would fit when we test applications where a lot of GUI manipulation are required in forms with a lot of data to insert.
Cody
Telerik team
 answered on 24 Jul 2012
3 answers
85 views
Hi,

I am somewhat new to Test Studio, but I'm trying to setup the tool to invoke the F12 function key with the below code.  The code appears not to execute, even though I do not get a compile error.  Also just FYI, I the test is web based wtih Internet Explorer as the main browser.

desktop desk = Manager.Desktop;

desk.KeyBoard.KeyDown(System.Windows.Forms.Keys.alt);

desk.KeyBoard.KeyPress(System.Windows.Forms.Keys.F12);

Anthony
Telerik team
 answered on 24 Jul 2012
2 answers
73 views
I am having a problem getting the value of a field on a databound grid.

Here is the situation:
I have a Formview, that contains a Datagrid, that has a databound control.  I need to be able to get the value of that column so I can determine whether to do an insert or an update to a table.

Here is the definition of the Formview:
       <asp:FormView ID="FormView1" runat="server" DataSourceID="odsHeader" DefaultMode="Edit"
            Width="100%" DataKeyNames="SUBMITTAL_ID">

Here is the definition of the Grid:
      <rad:RadGrid ID="rgContactsDisplay" runat="server" AutoGenerateColumns="False" Skin="ABL_Std" GridLines="Both"
              DataSourceID="odsContacts" AllowMultiRowSelection="true"  Height="170px">
              <MasterTableView>
                     <Columns>
                          <rad:GridTemplateColumn UniqueName="grdCheckbox">
                                 <ItemTemplate>
                                       <asp:CheckBox ID= "chkContacts" runat="server" />
                          </rad:GridTemplateColumn>                                                                       </ItemTemplate>                                                                                                                                                                                                       
                          <rad:GridBoundColumn DataField="COMPANY_TYPE" UniqueName="company_Type" Visible="True" HeaderText="Company Type"
                                 <HeaderStyle Width="130px" />
                                        <ItemStyle Width="140px" />
                           </rad:GridBoundColumn>
                           <rad:GridBoundColumn DataField="COMPANY" HeaderText="Company" UniqueName="company" Visible="True"
                                  <HeaderStyle Width="140px" />
                                         <ItemStyle Width="140px" />
                           </rad:GridBoundColumn>
                           <rad:GridBoundColumn DataField="COMPANY_CONTACT_DATA" HeaderText="Contact" UniqueName="company_contact_data" Visible="True">
                                 <HeaderStyle Width="130px" />
                                      <ItemStyle Width="140px" />
                           </rad:GridBoundColumn>
                        <rad:GridBoundColumn DataField="CONTACTS_SOURCE" UniqueName="contacts_source" Visible="False" />
                        <rad:GridBoundColumn DataField="DOCUMENT_COMPANY_ID" UniqueName="document_company_id" Visible="False" />
          </Columns>

Here is what I have so far:
Dim grdContacts As RadGrid = CType(FormView1.FindControl("rgContactsDisplay"), RadGrid) //THIS LINE DOES GIVE ME A GRID OBJ
Dim grdSource As GridDataItem = CType(grdContacts.MasterTableView.FindControl("contacts_source"), GridDataItem)
//THIS LINE COMES UP WITH GRDSOURCE = NOTHING

What I need to be able to do is check the "contacts_source" field for a value so I can determine how to process.

Obviously I'm doing something wrong with the definition for grdSource, can anyone tell me what I need to do?

Many thanks in advance.

Rich
Anthony
Telerik team
 answered on 24 Jul 2012
8 answers
99 views

I have an out of browser Silverlight application.  When I open the application (from desktop) by double clicking, it runs fine.  In Test Studio, the Out of Browser application opens just fine when I need to record a test.  The problem occurs when I run the test.  Test Studio opens the application.  Everything looks good.  However, I receive a strange error message.  The error message states, “An error occurred while trying to make a request to URI ‘https://127.0.01/MyServiceSL/SomethingService.svc’.  This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services.  …”   The inner exception looks like the following:

{System.Security.SecurityException ---> System.Security.SecurityException: Security error.

   at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)

   at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)

   at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)

 

Do you have any idea what is wrong?  How do I get Test Studio to run this test and logon to this application?

Cody
Telerik team
 answered on 24 Jul 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?