Telerik Forums
Test Studio Forum
1 answer
101 views
Hello,
Test Studio Ver: 2012.1.411.0

When playing back my test in the recording browser (making sure it works, etc..) when a page is clicked and a new page opens that page automatically sets itself to record and adds a step to my test.

How can I make it so anything that opens automatically has it's recording options set to pause?

Thanks for the help!
Jon
Byron
Telerik team
 answered on 25 Jun 2012
2 answers
68 views
...this is the FF launched one anyway

1) Hard time setting up Teampulse, keeps saying "Expected an absolute, well formed http URL without a query or fragment..  The url is just this: http://teampulse.dev120.medportal.ca
2) Project names are sorted in reverse order than they showup in TP (usually last modifed first)
3) Annotations: Font names aren't sorted
4) Why is the plugin not a free download ?  We have like 6 teampuulse users (none of which are QA) who could all have this attached to their browsers and submit TP bugs instead of having to manually open TP and file a new bug...
5) The "Save" at the top by capture s confusing people since the save at the far bottom right is labeled the same, and very tiny.
6) Multi-monitor support for a screenshot?  Might be more slick to do a drag select like Jing\camtasia.

So on #1, it must still work b/c it shows the projects...but saving that, and then clicking save on my feedback image doesn't put it anywhere in TP that I can find...

**EDIT**
Sorry I'm also not sure if this is a thing and I'm missing it, but it'd be nice to be able to store multiple TP project connections and toggle them faster than "Reconfigure"
Byron
Telerik team
 answered on 25 Jun 2012
1 answer
105 views
Hello,
Test Studio Ver: 2012.1.411.0

Some of my webpages have fairly lengthy load times, how can I set a step to wait for the webpage to load completely with a timeout?

So far I've tried scripted steps for Browser.isReady(), and the waitForUrl step neither have accomplished my goals.

Thanks for the help!
Jon

EDIT:
Problem solved, I wasn't specifying between ajax completion and general load times, modified ajax timeout and everything started working fine!
Anthony
Telerik team
 answered on 25 Jun 2012
1 answer
197 views
Hi,

I have setup a scheduling server and execution server on the same machine, installed Test Studio. I created a project on a shared drive.
When I create a testlist and ran manually, it worked fine and test passed. But when I schedule it to run, it always failed with 'Object reference not set to an instance of an object' error.

Since it was all on the same server, I should not have any Test Studio cross version issue.
My questions are:
1. Why it failed when scheduled to run, and the result is different from running it manually?
2. Why each time it scheduled to run, a new result folder created but it's empty (see attached image)?
3. Regarding the SQL db related to the scheduling server setup, I can tell the scheduling information is stored in some tables, how about the execution result? Are they supposed to be stored in any db table as well? It bothers me because I can't find any result files; even when I run the test manually, I can't find any result files under the project/Results folder, it's empty.

I have a feeling this may be because the project is located on a shared drive, can anyone help?

Thanks,
Terri
.
Plamen
Telerik team
 answered on 25 Jun 2012
1 answer
100 views
Hi,

I've gotten pretty familiar with how to use Telerik Test Studio to automate Silverlight controls, but I'm struggling with how to make the test steps more dynamic.

For example, I have a RadTabControl that has tabs that might vary. I'm trying to figure out a way to automate which tab I click on, but the tab might be in a different spot and I'm not sure if it will always have the same value for AutomationId or XamlTag. I'd really like a way to create a test that will click on a tab depending on the text on that tab, but I haven't been able to figure out how to do that by editing the elements created by Test Studio.

Is there an easy way to automate a test but have the step where the test clicks on a tab item be variable depending on the text we're looking for on the tab itself? Even if I have to edit the text for the tab in Test Studio before I run it, I'd like a way to change which text I'm looking for on the tab.

I'm also going to be looking to do this with iterating through rows in a grid view, but for now I'm starting with the tabs.

Thanks in advance for the help!
Anthony
Telerik team
 answered on 22 Jun 2012
1 answer
77 views
If I was to test my web app to make sure an item gets deleted from my database.

What is the best way to verify it is no longer in my RadGrid?

Note: this item is added via automation and some numbers in the grid are unique and static throughout each test.
Byron
Telerik team
 answered on 21 Jun 2012
3 answers
103 views
Hi,

Is it possible to capture the value returned from executing a SQL statement executed through the Code Behind window?
I have a script that works fine, and the VB in the code behind window also works fine.  However, I want to expand the VB script if possible, so that I can execute the following algorithm:

Open connection to database
Execute SQL statement to check if value exists in a database table
If the value exists then
    Do this
Otherwise
    Do this
End If
Close connection to database

What I need to understand is how to get a result back from an execution statement such as:
   
     thisCommand.CommandText = "SELECT myValue FROM DatabaseTable"
     thisCommand.ExecuteNonQuery()

Is this possible?  Is there a better way?  If so, what do I need to do to make it happen?

When I run the following code, the value returned to my variable aResult is always -1, regardless of whether the search succeeds or not:

SQL_Command = "SELECT * FROM LookupItemsTexts WHERE [Text] = 'fred'"
Log.WriteLine(SQL_Command)  'debug line
'Now execute the command
thisConnection.Close()    
thisConnection.Open()
thisCommand.CommandText = SQL_Command
aResult = thisCommand.ExecuteNonQuery()
Log.WriteLine(aResult.ToString())  'debug line

Thanks,
Nigel Edwards.

Nigel
Top achievements
Rank 2
 answered on 21 Jun 2012
1 answer
74 views
Hi,

How can I get Excel Report of the test results through Coded step?

Thanks

Anuj
Anthony
Telerik team
 answered on 20 Jun 2012
1 answer
137 views

My test seems to fail on the Connect to pop up step

The pop-up loads just fine, however I think the test studio just can't connect to it.

here is the code for the step

// Connect to pop-up window : '<MYURLISHERE>.aspx?oid=54807'
Manager.WaitForNewBrowserConnect("<MYURLISHERE>.aspx?oid=" + (string)GetExtractedValue("OrderNumber"), true, 5000);
Manager.ActiveBrowser.WaitUntilReady();

Take note even without replacing the oid the connect to popup fails, but still loads page,

MYURLISHERE is actually a URL in the code in TS.
Stoich
Telerik team
 answered on 20 Jun 2012
2 answers
58 views

I am evaluating Test Studio as a potential candidate for running automated testing on a Silverlight application.  I watched the video “Test Studio – Guide to Success Part I.”  This video was very helpful.  However, I am having trouble automating a test for a Silverlight Out of Browser application. 

First, I configured Test Studio to open the OOB application.  When I click the record button, I get an unhandled exception. 

In addition, I cannot watch the video “Out of Browser Silverlight Applications.”  Right now this video would be very helpful.  Likewise, none of the Silverlight Automation videos seem to work.  Please help.

Top Gun
Top achievements
Rank 1
 answered on 20 Jun 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?