Telerik Forums
Test Studio Forum
7 answers
148 views
Hey there,
  I need to test an SPA build with Kendo MVVM.  So pretty much I need to call some set methods on the viewmodel in the test (in javascript), then record\test the results in the viewmodel.  So like test step 1 says $viewModel.set("isActive", true); ...then I check visibility of some items.  Then set it to false, and check other things (etc etc)

How can I accomplish this?

Thanks,
Steve
Cody
Telerik team
 answered on 19 Dec 2012
1 answer
82 views
when I set a schedule TestList,Some times,it will be excuted,some times it not ,Why??
The  Scheduling Server was always open
Plamen
Telerik team
 answered on 19 Dec 2012
3 answers
87 views
Can I set the browser playback width (in order to test visibility of responsive items?)
Boyan Boev
Telerik team
 answered on 18 Dec 2012
5 answers
160 views
I am evaluating the studio to check whether it fits my needs. I have found a *lot* of issues, let me try to sum them up here:

Test runner
  1. Test runner on different machine *must* use run as administrator (I get an error), still it continues to run. Quit the app if it must be executed as administrator. Also, *force* it to be started as administrator.
  2. Configure as scheduler must also be executed as administrator.

Scheduler
  1. The create database in the scheduler only works half of the time. In fact, I had to create an empty database and then it could be created. The server was not listed automatically, though other servers (that MS SQL Manager does not recognize) were found.
  2. Start execution server at startup does not work (read: is useless). It must be executed as administrator.

Load test services
  1. Load test services has no password field, it just shows the password there in clear text.
  2. Load test services has different button sizes. I know this is low prio, but it gives me the feeling the product is not developed with care.

Test studio
  1. The navigation inside the app is really hard to understand.
  2. Why run as administrator?

ScheduleService API
We are trying to automate the scheduler service. What we do is create a client for the web service and schedule a new test for the next minute. Then we wait and we are able to see whether a test succeeds or fails. However, we cannot find any documentation on this service. Also, we cannot find any way how we can automate the retrieval of the log. In case of a failing UI test, we want to create a JIRA issue (we will automate this ourselves because it lacks JIRA support), but we do need the test log.

Can you please provide info on how we can retrieve the test log for a test that is executed on a remote machine? Just like the test studio does.

Thanks.
Stoich
Telerik team
 answered on 15 Dec 2012
1 answer
98 views
The only way of knowing how many iterations the script will need to performed is by looking at how many rows are contained in the spreadsheet.  Fortunately, Telerik will automatically play the script over for all the rows in excel.  However, the element changes for any subsequent row because there is a link on the web form to add a new row.  So, say that the element initially is FirstNameTextBox.  The subsequent element after clicking the add row would be FirstNameTextBox0 and then FirstNameTextBox1. 

Since there can be several lines in the excel spreadsheet depending on what the user puts in, I won't know how many elements I will need to record unless I record several assuming they won't reach that max limit.  So, is there a way to search for these elements without having them in the element repository and making them dynamic in code? Say that FirstNameTextbox7 isn't in the element repository, but it exists in the dom.  Will it recognize something like below during playback?

Such as.

object count = 0;

Pages.Webform.FirstNameTextbox&count.text = data["FirstName"];

count = count + 1;
Cody
Telerik team
 answered on 14 Dec 2012
1 answer
136 views
There is a textbox on a VBscript popup that Telerik can't detect.  I have entered the element by finding it in the dom and was able to get telerik to recognize it, but on playback, it can't find it again.  So, I had given up and decided to go with the Desktop commands in a scripted step where I tab to the textbox and enter a string.  This works fine and is a good work around, but I would like to make the string data driven to the excel spreadsheet that is bound to the test.  I have tried clicking on the coded step and binding a variable, but nothing shows underneath the properties.  How do I reference a variable in the bound excel spreadsheet so that I can enter it in this textbox after I tabbed to it?

Jonathan
Top achievements
Rank 1
 answered on 12 Dec 2012
1 answer
128 views
I'm new to Test Studio and was trying to add a global variable to the test class. After adding this variable and referencing it in one of the test methods, I can no longer "Play" the test. Clicking Play does nothing. Run to step does nothing. I receive no error messages. At one point, I was unable to access the Class/Code view window for the test. I had to copy all the steps into a new test which let see the code again. Something odd seems to be happening here.

Here's the code. I cut a portion out and removed some comments.

 

 

 

 

namespace TestProject1
{
  
    public class WebTest : BaseWebAiiTest
    {
        #region [ Dynamic Pages Reference ]
  
        private Pages _pages;
        public string g_sRandomUserName = "AutomationUser";
  
        public Pages Pages
        {
            get
            {
                if (_pages == null)
                {
                    _pages = new Pages(Manager.Current);
                }
                return _pages;
            }
        }
  
        #endregion
          
        // Add your test methods here...
      
        [CodedStep(@"Enter text '" + g_sRandomUserName + "' in 'MainContentTxtUsernameText'")]
        public void WebTest_CodedStep()
        {
            // Enter text 'AutomationUser' in 'MainContentTxtUsernameText'
            Actions.SetText(Pages.UserAdministrator.MainContentTxtUsernameText, g_sRandomUserName);
        }
  
     ...

 

 

 

 

 

Cody
Telerik team
 answered on 12 Dec 2012
2 answers
78 views
We are looking for the correct way to lock down a test script that is being executed on a Runtime license. Essentially we do not want to allow the user to make any changes, edits , deletions etc .. to a test script that has been written on a Full License. We only want them allowed to check out and execute a script and save the results. Does Telerik have a recommened action on how to do this?
Josh
Top achievements
Rank 2
 answered on 11 Dec 2012
5 answers
132 views
I am extremely new to Test Studio and have run into an issue with using Test Studio with a Silverlight out-of-browser application.  I have the OOB app installed and it works just fine.  I have set up a new project with one test in Test Studio (using the latest version).  I have configured the Silverlight OOB settings for the test so that it points to my local application directory and uses "Silverlight Out-of-Browser" as the Recording Host.

The problem is when I try to record my test.  For some reason, it appears that my Silverlight app detects that it is NOT running in out-of-browser mode and essentially tries to install the application.  I did find this on a documentation page:

Once a Silverlight Out-of-Browser application is configured for recording, Test Studio modifies its shortcut to point directly to the application's location on disk. This replaces the Microsoft "offline://" notation. The side effect of this is that your application will not detect that it is running in Out-of-Browser mode and code must be written in the application to work around this limitation.

What code must be written to work around this limitation?  Can you give us an example?  Please note, this application MUST run in out-of-browser mode, so is there anything we can do to get this working with Test Studio?

Thanks for your help!

Kim
Cody
Telerik team
 answered on 11 Dec 2012
5 answers
223 views
I am having trouble with a test that works with an IE modal pop-up window.  The test finds the window no problem, can fill in fields on the window without any issue, but gets confused when the window is closed - it can no longer interact with the main window.  As part of the test, a button is clicked in the application which closes the window.

I have tried commenting out the Terlik "close modal pop-up window" step, looks like that step is trying to close the window which is already closed.

I have also set the "closes browser" to true for the test step which clicks the button to close window.  This looked promising, but didn't seem to have an effect - also interesting, I would have expected this to change the generated coded step, but didn't notice anything change with and without this set.
Plamen
Telerik team
 answered on 10 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?