Telerik Forums
Test Studio Forum
15 answers
251 views
I have a folder structure similar to this:
Admin
 - Login
 - Account
    - View project

Where Admin and Account are folders, and Login and View project are tests. The first step in the View Project test is the Login test (using Test as Step). When I move View project to another folder (ie. Misc), I am no longer able to run the View project test, which fails on the first step with the following error:

InnerException:
System.IO.FileNotFoundException: Unable to find test 'C:\path\path\path\Admin\Login.tstest'
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTestInCurrentContext(String relativeTestPath)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

Do I need to redo the Test as Step steps every time I move a test between folders? Why doesn't the application know where it's been moved to automatically?

Edit: When I re-add my Test as Step, it still returns the error about not being able to find it. My folder structure is actually 3 deep at the point of the View project test, and this only occurred after I moved it into a more nested folder.

Vera
Telerik team
 answered on 14 Jun 2018
1 answer
277 views

Hi,

I am trying to verify a particular cell value in a table. I went through similar questions asked in the past to get the solution.

My "Build Succeded", but "step failed"

HtmlTable T1 = ActiveBrowser.Find.ByXPath<HtmlTable>("//*[@id='ProgramGrid']/div[2]/table/tbody");
HtmlTableCell C1 = T1.Find.ByXPath<HtmlTableCell>("//*[@id='ProgramGrid']/div[2]/table/tbody/tr[2]/td[5]");

Assert.IsTrue(C1.TextContent.Equals("Irish Dunlap"));

 

 

 

Elena
Telerik team
 answered on 13 Jun 2018
3 answers
214 views

Hello,

I am testing out SQL Connection with Telerik code . It's simple function to fetch records from SQL server.

Here is code snippet. When I run telerik test with Coded Step ,It's failing on ExecuteReader() statement with error

"Exception thrown executing coded step: 'Tear Down'.
Incorrect syntax near ')'."

Test compiled fine and there is no syntax error on the output.

 

 

 [CodedStep(@"Tear Down")]
        public void DeleteCreatedAcct_TearDown()
        {
            SqlConnection conn ;
            SqlCommand sqlQuery;
            SqlDataReader  sqlDataSet;
            string  sqlQueryString;
           
                       
            conn = new SqlConnection("data source=DBTEST;initial catalog=DBName ;persist security info=True;user id=usrid;password=pwd");
            //Open SQL Connection
            conn.Open();
                      
            Console.WriteLine("DB Name");
            Console.WriteLine(conn.Database);
           
            //Create SQL Command
            sqlQuery = conn.CreateCommand();         
           
            sqlQueryString = "SELECT AcctId FROM DBtable where UpdatedBy ='Automation Tester')";
           
            Console.WriteLine(sqlQueryString);
           
            //Create SQL query to fetch records
            sqlQuery = new SqlCommand(sqlQueryString , conn);
           
            Console.WriteLine("After sqlQuery.CommandText =sqlQueryString" );
            Console.WriteLine("SQL Parameters" + sqlQuery.Parameters);
           
            Console.WriteLine("BEFORE EXECUTE QUERY");
            sqlDataSet = sqlQuery.ExecuteReader();           <<
failing at this line.
            
            Console.WriteLine("After  sqlDataSet = sqlQuery.ExecuteReader();" );            
            while (sqlDataSet.Read())
            {
                Console.WriteLine("Account ID: " + sqlDataSet["AcctId"] );
            }
            
                    
            
        }

Thanks,

-

Padmashree

 

 

 

 

 

Vera
Telerik team
 answered on 08 Jun 2018
8 answers
452 views

I have a visual studio project that contains a test studio web test.  The test contains coded step.

The project builds.  In Visual studio, I can run it either by

1) highlighting the test file (.tstest), then click on the green play icon to execute the test

2) Select visual studio Test menu, then run -> all test

Either way the test runs and passes.

 

However, when I try to run it from mstest using

%mstest /testcontainer:fullpath\TestStudioProject1.dll

 

I get "No test to execute".

 

What am I missing in the project?

Vera
Telerik team
 answered on 05 Jun 2018
3 answers
66 views

Hi

I am trying to call/execute Test1 in Test 2. Basically I am creating basic  CRUD tests on UI and I have test for Login and trying to below scenarios.

1) Creating Login Test  - Done . I have modularized it and combined login steps into one CodedStep_Login()

2) Creating 'Create' Test - Done

3) Now I want to execute login steps in 'Create' test .  Is it possible to call CodedStep_Login() into Create Test?

   How to verify that Login is passed and if so execute create test.

Appreciate you help.

Thanks,

-

Shree

 

 

 

 

Vera
Telerik team
 answered on 04 Jun 2018
3 answers
77 views

I am having issues with fields being focussed to the top underneath a DIV in our web app. Is this still the only solution?

 

Posted 09 Dec 2015Link to this post
Hello Uroš,

This is a somewhat common problem. Your application has an overlay <div> element at the top of the browser window. Test Studio, when you have SimulateRealTyping, selected always wants to scroll the element to the top of the browser window in order to make sure it's visible in the browsers window before trying to type into the input box. Unfortunately in your case this has the side effect of scrolling it underneath your overlay div.

The only way to over come this is to convert the step to code then comment out the ScrollToVisible line of code, like this:
// Enter text 'passUser' in 'UsernameText'
Actions.SetText(Pages.CAFFA.UsernameText, "");
//Pages.CAFFA.UsernameText.ScrollToVisible(ArtOfTest.WebAii.Core.ScrollToVisibleType.ElementTopAtWindowTop);
ActiveBrowser.Window.SetFocus();
Pages.CAFFA.UsernameText.Focus();
Pages.CAFFA.UsernameText.MouseClick();
Manager.Desktop.KeyBoard.TypeText("passUser", 50, 100, true);
The side effect is now you have to take extra care to insure the input box is visible before that step runs. Else typing won't go into that input field.

Vera
Telerik team
 answered on 31 May 2018
8 answers
130 views

Hi all,

we're using Test Studio (ultimate edition, trial version) and we're evaluating if this tool is compliant with our needs.

We are stuck in a particular record sequence: we have a Main window inside of which we have a dialog box overlapped to another one. The issue is that Telerik doesn't record the actions of the top dialog box.

Is it possible to resolve this problem?

Thank you in advance

Christian

Vera
Telerik team
 answered on 30 May 2018
3 answers
222 views
Hi,

I'mdoing a eval for my company of Test Studio, and so far the bake tests are going well wiht the functions that we would like to implement it.  I just have one quesiton:  Is there a way to capture the javascript console normally captured in IE's Developer Tools or FireFox (via Firebug) logs.

Is this something that can be done within Test Studio or should I look to try and solve this issue with C#? 

Thank you,
Carl
Elena
Telerik team
 answered on 30 May 2018
3 answers
128 views

Hello

One of our users is presenting problems when she is working on TestStudio. At the moment of capturing traffic, ArtOfTest.Runner crashes everytime randomly on 1 step out of 1000. We are using Chrome since it is the neccesary browser for our work.

The laptop has a processor of 2,30 GHz, 8Gb of RAM (we tried one time with 12Gb but it happened the same error), we even tried with another laptop with similar characteristics and still fails. The OS is Windows 10 x64.

 

How can i resolve this?

Thanks in advance.

 

 

Elena
Telerik team
 answered on 30 May 2018
18 answers
202 views

Hi,

I am trying test  a native app using test studio mobile testing (android). the app is installing in the device but when I click the record button, a error message is displaying saying "command to message server time out". before recording, I did the below steps

1.installed the agent app from the android app store in to the mobile device

2. connected the device and configured the android app to be testable using the build in configuration

3. selected the device for recording and selected the app identifier 

 

can you please tell me why is this happening. Is it a issue in the apk i am using?

 

you can download the apk file from the below link

https://www.dropbox.com/s/h0xip5bq9y73hu3/Assura%20Premium%201.5.4.apk?dl=0

Elena
Telerik team
 answered on 28 May 2018
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?