Telerik Forums
Test Studio Forum
1 answer
245 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
129 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
98 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
141 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
105 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
167 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
80 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
1 answer
106 views
After saving an order in my web application a pop up box comes up with text and the order number.

I need a way to parse the text so the variable saved from the extraction is only the order number.

(I have visual studio also so if i need to do it there I can).
Anthony
Telerik team
 answered on 18 Jun 2012
1 answer
71 views
Hi,

How to Design Test Automation Framework to automate Silverlight based Product using Telerik Test Studio and C# ?

Thanks
Anthony
Telerik team
 answered on 18 Jun 2012
5 answers
161 views
Hi,

How can i automate/capture the RadBusyIndicator? I want to populate the textbox correctly so I set next action to Wait.ForNoMotion but it doesn't works.

Also, is it possible to extract the URL the page being tested and add a web/wcf service to the Test Project?

Thanks
Anthony
Telerik team
 answered on 18 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?