Telerik Forums
Test Studio Forum
8 answers
301 views
Hi Cody,

Thanks again for your help today with the timeout issue. While that issue appears to be resolved, I now seem to be having issues installing the scheduling services. I did have the scheduling services installed and working previously, but recall that I reinstalled a the newer build of WebUI and we did not install the scheduling services at that time.

When I re-run the installer to add the Scheduler services, the install stalls and says that it cannot start the scheduling services, and i have to end up canceling the install and rolling back all the changes. I have rebooted a few times and retried the install with no success. I cannot manually start the service, because the service is not available until it is installed.

Please advise me of any suggestions you have. Thanks,

Zach
Zachary
Top achievements
Rank 1
 answered on 09 Mar 2011
5 answers
227 views
I'm seeking some community assistance for what is probably my most vexing testing problem at the moment.  Hopefully this post finds someone out there who has dealt with a similar challenge in a more elegant/scalable manner than I have, or at very least some Telerik support staff input would be greatly helpful.

I aim to script a complete trip through a life insurance application wizard where one of many insurance carriers can be selected.  The carrier selection is made from a DataGrid ASP.NET control which orders the carriers in ascending order based on quote price (see the first screenshot).

Furthermore, once the user is within a particular carrier's app wizard, they will eventually reach a forms selection page, where the minimum required forms for the application packet are automatically selected, along with any forms that become required based on answers to preceding questions about the applicant in the previous wizard pages.  Furthermore, the user can select additional forms to include in the packet.  All forms work is done within a Repeater ASP.NET control (see second screenshot).

The rub is this: due to frequent rate changes by our carriers, and necessary forms updates performed periodically for each carrier, these pages are very dynamic in nature.  For instance, Transamerica will not always hold the same position in the DataGrid from one week to the next, and a forms update for a particular carrier may change where a particular form shows up in the Repeater.  So the challenge lies in writing a script that, for example, will ALWAYS select Transamerica as the carrier, or will ALWAYS select a particular form in the Repeater, regardless of how those items move around on the page due to necessary updates.

This is made all the more difficult due to the fact that the names of the button/checkbox controls are not specific to the carriers or the forms.  The "Add Lead" button that corresponds to Transamerica in the DataGrid will have an id of something like "StandardPlusDG_ctl06_SelectImage", a name that is specific to the position on the grid and could hence be used to select an entirely different carrier when the system is updated with the latest pricing schemes for our carriers.  Similarly, a "Buyer's Guide" form's checkbox will have an id of something like "FormsRepeater_ctl01_FormCB", which again could be used to refer to an entirely different form after a system update.

One solution I've come up with and have had moderate success with has involved creating a sort of "decision matrix" for both the carrier selection page and the forms page, where, given a data-driven context, the buttons/checkboxes that need to be selected for each individual iteration are recorded into script and nested within if/else statements.  See the third screenshot - note that buttons are set to be clicked only given certain conditions, so that the location of the "Transamerica" button is known for each iteration of the test. 

Note the flaw here - my script is only as good as the latest system update!  It gives me the power to have a fully automated process for testing our application wizard within a given week, but in order to keep this up I have to run the script every Monday and see how many test cases fail so I can know how many "fixes" I need to make so I can have a good automation script for another week.  I have made this easier on myself by building if-else page verification steps into the script (essentially, the script knows immediately if it's not in the Transamerica application wizard, and the iteration fails immediately at that point and the browser closes, opens, and runs the next iteration).  However, depending on the extent of the latest system update this can take 1-4 hours at the beginning of each week.  And this is just for one carrier - my goal is to have an automation script for each carrier!  So my need for a more scalable methodology is clear.

Has anybody out there faced a similar challenge?  Any help would be greatly appreciated!
Jason
Top achievements
Rank 2
 answered on 08 Mar 2011
1 answer
108 views
Hello
    I'm having an issue where my test hangs
 Sometimes when a link on a page is clicked
IsUrlpartial is checked and it is not Modal
The test will bomb out and no log is recorded
I tried changing the wait time
build 2010.3.1213.0
Stoich
Telerik team
 answered on 08 Mar 2011
3 answers
149 views
Guys, I have a     RadGrid where I embedded an image button. When I click the button this is what I got. How can I resolve that?

 

Server Error in '/AJAXCTS' Application.

Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

Tsvetina
Telerik team
 answered on 08 Mar 2011
6 answers
210 views
Does the WaitCheckInterval in test list overwrite the watiforurl in individual tests which are part of the test list execuation if the waitcheckinterval is greater than the waitforurl in a particular test?


thanks,

Neeraj
Neeraj
Top achievements
Rank 1
 answered on 07 Mar 2011
9 answers
163 views
Having a problem installing the WebUI Test studio.  Get error stating "Telerik.WebUI.TestStudio.SchedulingService faild to start.  Verify that you have sufficient privilges to start system services."

Logged in as/running intall as Administrator

OS
MS Windows Server 2003 R2 - Standard Edition - SP 2

what am I missing here?

thanks
C
Cody
Telerik team
 answered on 04 Mar 2011
2 answers
46 views
I have been at this for days trying to get this to run
I open Web UI 2010.3.1213.0 execute a test-  look at the greens and reds- make no changes- run it again- and the test hangs after the browser closes the 2nd time only- then there is no log-
what is going on
I've had this same thing happen on two differnt computers on two different OS Vista64 and Windows 7 -64
I setup IE8 from your directions and installed 4.0 framework too
Can someone call me
I need to work and not get in trouble with my boss

Sebastian
Top achievements
Rank 1
 answered on 04 Mar 2011
5 answers
208 views
I get the following errors when I try to use the below code. I am trying to Upload a file where the file name is Data Driven and the file path from the project. I have the recorded step still, but disabled in the test. If I can use the "fullPath" variable in the recorded step, that would work for me also.

c:\Documents and Settings\gpittman\My Documents\WebUI Test Studio Projects\PLA\Helper\Submissions\Edit_Upload_Document.aii.cs: Line 95: (CS0246) The type or namespace name 'FileUploadDialog' could not be found (are you missing a using directive or an assembly reference?)
c:\Documents and Settings\gpittman\My Documents\WebUI Test Studio Projects\PLA\Helper\Submissions\Edit_Upload_Document.aii.cs: Line 95: (CS0246) The type or namespace name 'FileUploadDialog' could not be found (are you missing a using directive or an assembly reference?)
c:\Documents and Settings\gpittman\My Documents\WebUI Test Studio Projects\PLA\Helper\Submissions\Edit_Upload_Document.aii.cs: Line 95: (CS0103) The name 'DialogButton' does not exist in the current context


using Telerik.WebAii.Controls.Html;
using Telerik.WebAii.Controls.Xaml;
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
 
using ArtOfTest.Common.UnitTesting;
using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.Controls.HtmlControls;
using ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts;
using ArtOfTest.WebAii.Design;
using ArtOfTest.WebAii.Design.Execution;
using ArtOfTest.WebAii.ObjectModel;
using ArtOfTest.WebAii.Silverlight;
using ArtOfTest.WebAii.Silverlight.UI;
 
namespace PLA2
{
 
    //
    // You can add custom execution steps by simply
    // adding a void function and decorating it with the [CodedStep]
    // attribute to the test method.
    // Those steps will automatically show up in the test steps on save.
    //
    // The BaseWebAiiTest exposes all key objects that you can use
    // to access the current testcase context. [i.e. ActiveBrowser, Find ..etc]
    //
    // Data driven tests can use the Data[columnIndex] or Data["columnName"]
    // to access data for a specific data iteration.
    //
    // Example:
    //
    // [CodedStep("MyCustom Step Description")]
    // public void MyCustomStep()
    // {
    //        // Custom code goes here
    //      ActiveBrowser.NavigateTo("http://www.google.com");
    //
    //        // Or
    //        ActiveBrowser.NavigateTo(Data["url"]);
    // }
    //
         
 
    public class Edit_Upload_Document : BaseWebAiiTest
    {
        #region [ Dynamic Pages Reference ]
 
        private Pages _pages;
 
        /// <summary>
        /// Gets the Pages object that has references
        /// to all the elements, frames or regions
        /// in this project.
        /// </summary>
        public Pages Pages
        {
            get
            {
                if (_pages == null)
                {
                    _pages = new Pages(Manager.Current);
                }
                return _pages;
            }
        }
 
        #endregion
         
        public static string Document {get; set;}
         
         
        // Add your test methods here...
     
        //[CodedStep(@"Submission_Document")]
        //public void Edit_Upload_Document_CodedStep()
        {
        //    string DocumentName = String.Concat("Submission_Documents\\", Data["SubmissionDocument"]);
        //    string fullPath = System.IO.Path.Combine(this.ExecutionContext.DeploymentDirectory, DocumentName);
             
        //    Log.WriteLine("fullPath: '" + fullPath + "'");
             
        //}
     
        [CodedStep(@"File Upload")]
        public void Edit_Upload_Document_FileUpload()
        {
            string DocumentName = String.Concat("Submission_Documents\\", Data["SubmissionDocument"]);
            string fullPath = System.IO.Path.Combine(this.ExecutionContext.DeploymentDirectory, DocumentName);
             
            Log.WriteLine("fullPath: '" + fullPath + "'");
             
            FileUploadDialog fDialog = new FileUploadDialog(ActiveBrowser, fullPath, DialogButton.OPEN);
             
            Manager.Current.DialogMonitor.AddDialog(fDialog);
 
            Manager.Current.DialogMonitor.Start();
 
            HtmlInputFile fUpload= ActiveBrowser.Find.ByName<HtmlInputFile>("inputfile");
 
            fUpload.Click();
 
            fDialog.WaitUntilHandled();
 
            Manager.Current.DialogMonitor.Stop();
             
        }
    
    }
}
Cody
Telerik team
 answered on 03 Mar 2011
1 answer
425 views
Hi Terelik team,

Can you please give me the feature comparison of the Terelik versus QTP and Selenium listed below, along with the added rows of differentiators/Strong points of Terelik?

Feature  Selenium  QTP  Terelik - WebUI Test Studio QA Edition Comments
Recording  Feature YES YES ? ?
Playback Feature YES YES ? ?
Checkpoints YES YES ? ?
In Built Report NO YES ? ?
Script Customization YES YES ? ?
Multiple Browser Support YES YES ? ?
Multiple Language Support for Scripting YES NO ? ?
Modularity YES YES ? ?
OOPS YES NO ? ?
Extensibility YES NO ? ?
Support Desktop Applications NO YES ? ?
Object Scanning Features NO YES ? ?
Drive test case from teat managemant tool NO YES ? ?
Add-in Extensibility NO YES ? ?
 
Thanks in advance,
Vignessh.J
Daniel Levy
Telerik team
 answered on 03 Mar 2011
4 answers
166 views
Hi ,

We upgraded our telerik Test Studio to Version 2010.3.1421.0 on Friday 25 Fab 2011. After the upgrade same tests which were working before are not working through Test list. Getting below error in test log.

[7:00 AM] - ------- Function Start 'StandaloneHost.EditControlledFiles' -------
[7:00 AM] - Project is offline or uncontrolled; making files writeable
[7:00 AM] - ------- Function End 'StandaloneHost.EditControlledFiles' -------

Can someone please help.
Konstantin Petkov
Telerik team
 answered on 03 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?