Telerik Forums
Test Studio Forum
2 answers
140 views
Hello -

Question: Is there a recommended approach to testing values returned in an SSRS report?

Context: I have just started evaluating Test Studio for use with my company's client extranet.  The site makes heavy use of SQL Server 2012 SSRS reports.  I want to be able to run a report and validate the results that come back by spot checking key values returned in the report table.  These tables are often thousands (if not tens of thousands) of rows long by dozens of columns wide.  Consequently, I can't create reliable ID's for each data point.

When I run the Test Studio recorder, select a few cells in the SSRS results, then run the test, I typically get errors indicating that Test Studio was "Unable to locate element."  Furthermore, it says that it was found by backup search using the xpath value.  I can resolve the failure by going to the "Resolve Failure" tab, removing the existing filters, and replacing them with the xpath suggestion.  From there, the test will work.

The down side is that this seems fairly fragile in nature.  The xpath for most data points looks something like this:

xpath=/html[1]/body[1]/form[1]/div[5]/div[1]/div[1]/div[1]/div[4]/div[1]/div[3]/div[2]/table[1]/tr[2]/td[1]/div[1]/div[1]/div[3]/div[1]/div[1]/div[1]/div[1]/table[1]/tbody[1]/tr[1]/td[1]/div[1]/div[1]/table[1]/tbody[1]/tr[2]/td[1]/div[1]/table[1]/tbody[1]/tr[1]/td[4]/table[1]/tbody[1]/tr[1]/td[1]/div[1]/span[1]/div[1]/table[1]/tbody[1]/tr[5]/td[3]/div[1]/div[1]/div[1]/table[1]/tbody[1]/tr[1]/td[1]/div[1]/table[1]/tbody[1]/tr[52]/td[6]/div[1]

To say that's ugly is an understatement, and it seems like it wouldn't take much of a page update to throw it off.  Plus, because I need to add many data point validations, I really don't want to go into Test Studio, create all the tests, and then run each one over and over until I resolve all the failures by following the steps above.

Restating the Question: Is there a recommended approach to testing values returned in an SSRS report?

Thank you in advance for any direction you can provide!

Best regards,
Jason W. Pegg
Cody
Telerik team
 answered on 22 Sep 2014
6 answers
238 views
How can i get snapshots of the web application during the test execution?
Boyan Boev
Telerik team
 answered on 19 Sep 2014
5 answers
51 views
HI,

did anyone used new internal build , which claims that the test list issue is resolved . I tried using the new internal build, but still not able to execute more than 4 test cases in a list. 
our project is of size 700 mb and i cannot share the project due to confidentiality.

Pls let us know if any other way to resolve the issue that i am facing ? This has been show stopper for us and the entire team is spending 10X more time in running each tests .

Pls help !!
Boyan Boev
Telerik team
 answered on 19 Sep 2014
3 answers
109 views
Hi,

I need to do API Load testing for our mobile App. Any suggestion how can I approach to it using Test Studio.

Thanks
Smit
Boyan Boev
Telerik team
 answered on 19 Sep 2014
3 answers
102 views
Hi,

We would like to ask you for support for Telerik Test Studio and Microsoft Team Foundation Server integration.

We have noticed that if we keep our project syncronized with TFS, Test Studio is extremely slow when loading and, from time to time, it closes unexpectedly.

Because of this, we keep Test Studio unsyncronized with TFS, which has reduced the sudden crashes, , but is also impractical and untenable as we want to
track the project changes properly in TFS.

Is this a known issue? Can you help with a workaround for the problem? If this is covered in another thread, I'd appreciate a pointer in the right direction.

Thank you in advance,

Best regards,
Jakob
Boyan Boev
Telerik team
 answered on 18 Sep 2014
3 answers
88 views
Hi Telerik team

We recently purchased a license for Telerik, after which I
began organising the files I had created during the trial period, to prepare
for subsequent testing.

This means I've been moving some files around, and now I’ve experienced the same issue twice, namely that after
moving a number tests from one folder to another, one of the elements recorded
in TS disappears completely, thus breaking a number completed and functioning
tests. Also in both separate cases it has been the exact same element that went
missing ('Item1Textbox'  -  I've attached an example from the error log). 

I can understand that moving files around could break some
functionality, and that I might have to refresh some steps in TS, but I don’t
understand how a specific recorded element can spontaneously disappear? 

We’ve found that re-recording the element once in a basic
test will repair the broken steps, but could you help guide me to avoid this
going forward? Could it be a bug in TS that needs further looking into?

Thank you,
Jakob

Boyan Boev
Telerik team
 answered on 17 Sep 2014
1 answer
72 views
Hi Support,

In the time of developing Hybrid Mobile App in KendoUI, is there any test tool that I can use for unit testing, integration testing and so on?
If not, is there any testing library or tool that you can recommend?

Thanks & regards,
Zaw Min Tun
Cody
Telerik team
 answered on 17 Sep 2014
5 answers
208 views
Hello Everybody

I am testing a WPF App. My App is started from a ClickOnce shortcut. Here are the steps:

1 - Start Test Studio and create a WPF test

2 - Add a Code Step in my WPF test

3 - Using the snippets in http://docs.telerik.com/teststudio/user-guide/code-samples/wpf/connect-to-running-wpf-app.aspx to connet to my running WPF App:

// close the mock app
ActiveApplication.Quit();
 
string appPath = string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.Programs), @"\MyWPFApp\DEVELOPMENT\MyWPFApp.appref-ms");
 
System.Diagnostics.Process.Start(appPath);
 
var runningApp = System.Diagnostics.Process.GetProcesses().Where(p => p.ProcessName == "MyAPP");
             
while (runningApp.Count() == 0)
 {
     runningApp = System.Diagnostics.Process.GetProcesses().Where(p => p.ProcessName == "MyAPP");
}
 
 Manager.ConnectToApplication(runningApp.FirstOrDefault());
 
while(!Manager.ActiveApplication.Process.WaitForInputIdle())
 
Manager.ActiveApplication.MainWindow.RefreshVisualTrees();
 
ActiveApplication.WaitForWindow("My App");

All these steps work fine but how can i record my steps in Test Studio Standalone after the code step.

Thanks
Hicham
Ivaylo
Telerik team
 answered on 16 Sep 2014
3 answers
103 views
During recording, I login, then click on a tab (from a Telerik tabstrip). The .tstest file shows click TimeSheetLink. But when I play back the recording, it hangs trying to locate that link, even though I can clearly see it in the browser. The html for the link looks like this: <a class="k-link" href="#/Timesheets">Timesheets</a>. I get the same result if I put a verify exists/visible, etc.

Is there a trick to clicking anchors? It seems to record the step properly.
Boyan Boev
Telerik team
 answered on 15 Sep 2014
1 answer
262 views
Hi there, I'm having a problem with the scroll to top function.  The app i'm testing has a static field at the top, and when running a test the scroll to top functionality is placing the field that I am trying to have it click behind the static field.  This is making it click on the static field instead and is not allowing it to access what i need it to.

I've found I can go in the code behind the step and change it to scroll bottom to make it work.

Is there a way to default all of the steps to use scroll bottom instead?
Or is there possibly a way to prevent the scrolling altogether when it isn't needed?
Cody
Telerik team
 answered on 10 Sep 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?