Telerik Forums
Test Studio Forum
1 answer
132 views
I try to use following code from example
hhttp://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/access-sql-database.aspx
SqlConnection thisConnection = new SqlConnection("Data Source=.\\sqlexpress; Initial Catalog=myFirstDB; Integrated Security=true;");
   
//We define a new SQL connection with a connection string. 
//The connection string will be different depending on your usecase and the name of the Database, table etc.
//If you don't know how to write a connection string please look for tutorials on the Internet
     
thisConnection.Open();
Log.WriteLine(thisConnection.Database);
//Wrie the name of the database to the Log
SqlCommand thisCommand = thisConnection.CreateCommand();
//Create an SQL command
thisCommand.CommandText = "SELECT test FROM MyFirstTable";
//This is a simple SQL command that will go through all the values in the "test" column from table "MyFirstTable"
//The SQL command will vary depending on your usecase. 
//If you don't know how to write SQL commands please look for tutorials on the Internet                   
SqlDataReader thisReader = thisCommand.ExecuteReader();
//Create SQL reader
while (thisReader.Read()) {
//Loop to go through the entire column
    //Write each value to the log
    //You can implement you own custom logic here
    Log.WriteLine("Value of test column:" + thisReader("test"));
}
thisReader.Close();
//Close Reader
thisConnection.Close();
//Close connection to SQL database
But compilation error occurs:
'thisReader' is a 'variable' but is used like a 'method'
for this statement
Log.WriteLine("Value of test column:" + thisReader("test"));
What I did wrong? Or is there the error?
Stoich
Telerik team
 answered on 28 Dec 2011
1 answer
89 views
Hello,

The web application which I am testing is compatible only with Firefox browser. Is it possible to record the test in firefox browser?

Muthiah
Plamen
Telerik team
 answered on 28 Dec 2011
11 answers
150 views
Hi,

When I get the latest version of our automated test with some files checked out to me, I get an error saying that there are unresolved conflicts. In those files, I've deleted some steps. The files from the source control still have those steps an when I get the latest version because there new files added. How can we resolve this issue? With out reverting my current version. I've already have a new recording.

Thanks.

Cody
Telerik team
 answered on 27 Dec 2011
2 answers
71 views
when first test fails, i want to stop the execution of the all test in the list.
What I need to do for this happen?
Thx.
Natasha
Top achievements
Rank 1
 answered on 27 Dec 2011
5 answers
205 views

How to execute a Test Script from a opened browser in my system. I don't want the Telerik to Invoke a browser automatically.

E.g.
Step 1 - Login is performed, now I have the application logged in. (Login Script)
Step 2 - Logout from the application by cliecking logout link in the dashboard. (Logout Script)

If I try to run a script its automatically invoking the another browser. But the script should work on the already opened browser by the Login Script.

Any suggestions please.

Thanks & Regards,
Dalsingh


Anthony
Telerik team
 answered on 21 Dec 2011
3 answers
146 views
Hello,

When I schedule tests on a remote PC the testlist fails and the log says "Object reference not set to an instance of an object."
The testlist passes when run locally.

I have Test Studio installed on my local machine & have installed 'Telerik Test Studio Run-Time' on a build server.
I have followed everything in the videos here: http://tv.telerik.com/series/qa-edition-scheduling-remote-execution 
The build server has been configured as a scheduling server and execution server.
The Test studio I have running on my local PC can connect to the server, and I can schedule tests.

The full version of test studio doesn't need to be installed on the build server right? Just the run time version? 

If you could help me out here it would be much appreciated. 

Cheers,

-Matt
Plamen
Telerik team
 answered on 21 Dec 2011
1 answer
106 views
Hi.
How can be second window opened with same session as first window? By session I mean same session cookie.

Question is actual for IE, Chrome starts new browser with same secure cookies.
Anthony
Telerik team
 answered on 21 Dec 2011
4 answers
188 views
Hi Telerik,

I want to create a stand alone test that can be included to the other tests so that it can use the ExtractedValue or execute itself without the extractedvalue step
So i wrote this code
if(Data["Name"].ToString() == "")
{
    Item0Caret0.SetText(true, "Hello", 1, 10, false);
}
else
{
    Item0Caret0.SetText(true, Data["Name"].ToString(), 1, 10, false);
}

Then i got this error
InnerException:
System.ArgumentException: The extracted variable 'Name' does not exist in the store. Make sure there is an extract step that has executed before executing this step.
   at ArtOfTest.Common.Design.Extensibility.ExtractionDataStore.GetValue(String name)
   at ArtOfTest.WebAii.Design.BaseWebAiiTest.TestData.get_Item(String column)

I thought of adding a step to the other test so that the extracted variable can exist. But it may overwrite the real extracted variable when executed.

Also i would like to ask if this is possible:
I have a TestList that contains Test A and Test B
Test A contains a extracted variable TestVar
Is it possible that Test B can use the extracted variable TestVar? Without setting Test B as a Test step in Test A?

Thanks
Stoich
Telerik team
 answered on 20 Dec 2011
3 answers
118 views
Hello,
I need to find a element in radgridview, but I don't know the page of the element.
My radgridview have 2 columns (Name, Description). I want search by Name.
I tried use the method Find.ByTextContent (GrdResultsGenericRadgridview.Find.ByTextContent("Value");)
I hope someone can help.
Best Regards.
Plamen
Telerik team
 answered on 19 Dec 2011
1 answer
104 views
Hi Telerik Team,

Can i add a Plugin, App.config file in the test studio? Is it possible to have reusable method for the whole test studio project?

Thanks.
Plamen
Telerik team
 answered on 19 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?