Telerik Forums
Test Studio Forum
6 answers
70 views
When I search the documentation it only comes up in a small example in the Find Expression subject.  Also this documentation would be much better if there were more and better samples, e.g. the Find Expression page tells you how to create an expression but not how or where it is used.  I am assuming that I am using it correctly by doing something like this -

Pages.HomeCORS.Find.ByExpression<ArtOfTest.WebAii.Controls.HtmlControls.HtmlAnchor>(expression)

.Wait.ForExists(10000);

 

 


Cody
Telerik team
 answered on 16 Nov 2012
1 answer
68 views
Hi all I am trying to use Visual Studio to debug a broken Coded Step test step  by attaching to the test runner process.  Is there any way to better integrate the two, i.e. Visual Studio 2012 and the code for the codedstep in Test Studio?  For example one of the problems that I am currently running into is that the HierarchyConstraint reference type is not found.  If I had this loaded in VS I could probably find the namespace a little quicker.
Cody
Telerik team
 answered on 16 Nov 2012
1 answer
102 views
Hello All,

I trying to use this code in one my tests, but the second function use to cast the element into Tcontrol is throwing this exception -- Exception has been thrown by the target of an invocation . Any idea what am I doing wrong here?

===
var Element = Manager.Current.ActiveBrowser.WaitForElement(Config.Timeout,
                                                                                              "id=test");
return Element .As<T>();
===

Thanks,
Aakash
Plamen
Telerik team
 answered on 16 Nov 2012
5 answers
90 views
We have a helper .dll that we recently wrote.  We put it in a shared location relative to the projects that will be referencing it:

    \team1
        \project1
        \project2
    \team2
        \project1
    \shared
        \bin
            TestHelper.dll

When you add a reference to the .dll from the project settings, the reference gets added as a relative reference like this "..\shared\TestHelper.dll".  The project reference works well and we can reference classes in the .dll - good stuff.

We have a problem though, when we try to run test lists from that project in our continuous integration environment (i.e., from the command line) - compilation errors complaining TestHelper.dll can't be found.  What we found was that we need to change the project reference to go up one more directory level, like this "..\..\shared\TestHelper.dll".

The problem is we have to edit the XML by hand to add the extra level and when we do, it breaks the Test Studio project - it now gets the compilation errors.  We can leave references to both in the project, but that is messy and difficult to communicate to the users (we have a lot of them).

Anybody else seen this issue - any suggestions?  I tried to add the "root=" option to the command line, but no luck.
David
Top achievements
Rank 1
 answered on 15 Nov 2012
1 answer
91 views
Hello,

I'm trying to click on a hyper link inside a grid.  When I recorded the step, it recorded as KendoGridCell Click on Cell [3,0].  And the element's property is id=grid1,|,tagIndex=td:3

The step passed since it clicked on the cell, but it's not clicking on the hyperlink to open the item that I need.  Is there an easy way to change that?

I went to edit the element to add another filter tagname=a, but it didn't like that when I ran it. 

Thanks,
Mindy
Byron
Telerik team
 answered on 14 Nov 2012
1 answer
90 views
HI

I find that TestStudio_2012 spend more time exceuting a test than TestStudio_2011.when i used TestStudio_2011,it just showed the result of a test without showing other information.But now i use TestStudio_2012,it shows the information about every step of a test such as [exce] Comment:'xxx',[exce] Coded Step:'xxx',[exce] Execute test:'xxx'.Because of spending so much time display the information,a test have to spend more time.So i just want to know why can i get result of a test without showing other information.

Now i execute my test list  through command line by MSTest.exe.

Thanks for your answer.
Byron
Telerik team
 answered on 14 Nov 2012
5 answers
292 views
Hi just recently downloaded a trial, does test studio support testing of winform applications NO/YES?

On your product menu you state "Test Studio (Web and Desktop testing)" what does desktop testing mean?

When I run the trial app their are only 2 testing options web and wpf, are there other packages that I need to install? 

I created a WPF test launching calc.exe with no joy.

Have seen some other threads asking similar questions but I am still confused. 

http://www.telerik.com/automated-testing-tools/community/forums/test-studio/general-discussions/does-telerik-support-testing-desktop-applications.aspx

http://www.telerik.com/automated-testing-tools/community/forums/test-studio/general-discussions/wpf-control-within-ms-word-application.aspx

Thanks

David
Cody
Telerik team
 answered on 14 Nov 2012
1 answer
167 views
Hi..

My requirement is like this. I nee to send some values through url and check the web service. I could bind excel sheet and send multiples urls as mentioned in the automation project.ex;- http://localhost:8096/Search.svc/63  and http://localhost:8096/Search.svc/64. So I need to create automation and load testing projects separately for this. I have successfully done the automation project for my requirement. Basically what I have done, was I recorded navigation url point in the automation project and bind the excel sheet with multiple values as screen shot 01. But this is not practical in load testing project. Get method is the only recorded field in the load testing project so we can't bind excel sheet for the load testing project as screen shot 02.So I have some queries on load testing project. Those are as follows.

01. How to bind excel sheet for the Get method in Load testing project. Refer screen shot 02. Please do not send the following link.Cause  I know how to bind excel sheet for the load testing project with post method.
(http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/data-driven-testing/add-a-data-source.aspx)

02. How to Read excel sheet through C# code..?? Simply how to take particular raw value of the excel sheet for the automation project and load testing project..?? Please send the code for us in Telerik and guide lines.

03. how to pass parameters through url in automation and load testing projects.

Thanks..

Stoich
Telerik team
 answered on 14 Nov 2012
3 answers
124 views
Hi there,

I have searched for an answer but all I could find were examples using code - I wanted to know if it is possible to do not using code.

I can get Test Studio to save the file, but is there a way to verify the file? e.g. that download was successful?

I am also encountering the following problems:
1) When setting the "Handle 'Download' dialog." step to HandleButton = RUN or OPEN, in both cases it saves the file but then the step fails on time out - not sure if a defect? this is on the latest Test Studio release. (similarily when recording an Open action and then running the step).

2) When recording a "Save and Open" action it is recorded as "CANCEL"

3) When executing a "CANCEL" action it executes the same as a SAVE and also fails on time out.

Some of those are demonstrated in the following video capture: 
http://screencast.com/t/QabIv7ypz

Regards,
Ory Zaidenvorm
Ivaylo
Telerik team
 answered on 13 Nov 2012
3 answers
92 views
I'm wanting to test some sitefinity custom routing rules.

Whats the best way to go about this?...should I even use test studio or should I use a simple webrequest to see if I get a 404 back or something?...

So really I just need to have a series of navUrls, some good, some bad and assert that the good ones pass, bad ones fail

Suggestion?

Steve
Cody
Telerik team
 answered on 12 Nov 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?