Telerik Forums
Test Studio Forum
1 answer
142 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
133 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
84 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
137 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
235 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
19 answers
265 views
Hi,
    I have a  test studio script that is data driven by a SQL server database. The web application against which the script was recorded is a policy system. The script works fine for new business system but i would like to know the best process to follow in creating a script that can be used for policy changes.

For example, if i have a set of entries on the new policy, the system would create a new policy but when there is only 1 entry change in the above set of entries, i do not want the complete script to execute but just the field that has been changed. The reason for that is, i have several hundred fields of data entry in the application and only one value could be changed.

Thank you
Cody
Telerik team
 answered on 10 Dec 2012
6 answers
281 views
I have a coded step where I am calling my Entity data access layer.  Problem is that they enity framework complains about not being able to find the name connection.

Exception Thrown in my DAL:
The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.

Issue:
I created the App.Config file in my test project and included the connectionstring.  Issue is that the test project gets build as a library and not an application, therefore the app.config file never gets used.
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/override-app.config.aspx

Question:
How do I get my Entity DAL to access the named connection that it needs access to when the app.config file does not exist.



Plamen
Telerik team
 answered on 10 Dec 2012
3 answers
182 views
Hi,

I am currently using Telerik trial version. Please answer for the following queries..

01.  Can I create multiple Agents(more than two or three) in my load testing project while using Telerik trial version..??

02. If so how could I create multiple Agents in the load testing project..??

03. When we assign another machine as an Agent I have installed Telerik studio (full trial version) in that separate machine as well. In this case is  it necessary to install Run time edition or when we install Telerik studio doesn't it automatically install Run time edition..??If not please send me the link to down load Run time edition..

Thanks
Cody
Telerik team
 answered on 10 Dec 2012
6 answers
122 views

I am trying to verify all front attributes of the textblockcontent in RichText Editor. I tried the below code but it always gives "Normal" regardless. I want to be able to extract the TextBlockContent and verify the font attibutes or if it is hyperlink? Has anyone done this before...Any help is appreciated!


 

 

string rtbTextFontStyle = Pages.QAAUTOSYNC1228183918.SilverlightApp.RichTextEditorTemplateRichtextbox.FontStyle.ToString();

 

Log.WriteLine(

 

"Font Style is " + rtbTextFontStyle);

 

Stoich
Telerik team
 answered on 10 Dec 2012
3 answers
255 views
Hi,

I have found that it is possible to use data binding in a varification step, then convert the step to an IF statement.  This works as expected.

However if you try to add data binding to an IF statement, or change the data binding, there is no option to do so.

I consider this to be a bug.

See step 16 of the attached test which does not allow a user to set a data binding.  Steps 8 and 23 had the data binding set before converting to logical.

Regards
Hamish
Boyan Boev
Telerik team
 answered on 07 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?