Telerik Forums
Test Studio Forum
1 answer
135 views

I have a script that has a coded step after the user logged in:

ActiveBrowser.NavigateTo("~/Communication.mvc/Messages?cb=Inbox");

The test failed on that line:

Failure Information: ~~~~~~~~~~~~~~~Exception thrown executing coded step: '[Case_Manager_CodedStep] : New Coded Step'.InnerException:System.UriFormatException: Unable to resolve the passed uri '/Communication.mvc/Messages?cb=Inbox' to an absolute url. at ArtOfTest.WebAii.Core.Browser.BuildUrl(Uri passedUrl) at ArtOfTest.WebAii.Core.Browser.InternalNavigateTo(Uri uri) at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri) at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url) at Titan.WebTests.Case_Manager.Case_Manager_CodedStep() in c:\Titan.QA\Titan.WebTests\Login Page\No Cert\Case Manager.tstest.cs:line 86

 

I'm using build 2012.2.1022.  This script ran before without a problem, so I'm not sure why.  
Help please.

Thanks,
Mindy
 

Byron
Telerik team
 answered on 16 Nov 2012
2 answers
129 views
I am having a hard time verifying the text contained in some dynamic content on my web page. 
Here are the steps that I am taking. 

Navigate to the Web site
Type in 'WA' in the input box of the jQuery-ui Dynamic Drop Down List
Wait until the list comes up
Select the 8th list item
Verify its text

Unfortunately when I try to record this test it does not grab the list item it actually is grabbing so non-dynamic content that is directly behind the list box item.  I think that this is because the List goes away as soon as you try to select the list item.

Is there any way to grab the dynamic content.   I know that in MSFT CodedUI you have to actually hold down the ctrl key when you click the element you are trying to capture.  Do you do anything like that with this?

Thanks
John
Top achievements
Rank 1
 answered on 16 Nov 2012
6 answers
78 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
74 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
123 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
110 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
114 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
105 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
314 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
200 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?