Telerik Forums
Test Studio Forum
1 answer
91 views
Hi,

I have got a problem with annotation option in Telerik's TestStudio. When I executing test with annotations, everything works fine, when test goes to any other page - red frames around element doesn't disappear (well, sometimes they do) so after 70-step test they are all over the place (annotation text disappear tho). This thing is present in every browser (IE, Chrome and Firefox) in various screen resolutions, various machines and on TestStudio Standalone version as well as on VS plugin. This is pretty uncomfortable hence I presents my test weekly before the bosses, so I need to get rid of these...

What may be the reason of that strange behavior?

Thanks for help!
Cody
Telerik team
 answered on 16 Feb 2015
3 answers
47 views
I am recording a general form entry, and Test Studio is having issues on record when I type into a field that is a type="number" and a pattern="[0-9]*"
It will not capture the text/numbers that I type.
I am using an older version, 2012.2.1420.0  
Has anyone else came across this issue?  Does the newer versions solve this problem?
Cody
Telerik team
 answered on 16 Feb 2015
1 answer
101 views
Hello,

To give you a general idea of the setup, I have Jenkins and the test clients on a mostly isolated network.
Jenkins kicks off ArtOfTest.Runner to execute test lists on the test computer through a combination of PowerShell and psexec. After test execution I'm using PowerShell and Robocopy to pull the .aiiresult files back to the Jenkins workspace that kicked off the test process. I didn't install a Jenkins slave node on the test client (I can add one if necessary).

I have the .aiiresult files collected, but I'm looking for a way to display or email out the results of the test list in a simple report.  I have access to Test Studio Ultimate, but we currently aren't using a Scheduling Server. We also have TFS and I can redirect an email out of the test network.

What are some options to get a simple report, out of the test list results, that I can send to everyone on the team?

When I look at the help for ArtOfTest.Runner I only see a reference to publishing through TFS in some way.

Am I going to have to write something to use the OnAfterTestListCompleted method and format the result data myself as noted in:
http://docs.telerik.com/teststudio/advanced-topics/coded-samples/general/execution-extensions

Thanks,
Tim
Ivaylo
Telerik team
 answered on 16 Feb 2015
10 answers
161 views
Hi
When I run my WPF test and the application opens a RadWindow dialog, the application/dialog freezes part-way through fading-in (see attached). The code I am using to open the RadWinow is below

var dp = new DialogParameters
{
CancelButtonContent = "Cancel",
Content = msg.ToString(),
DialogStartupLocation = WindowStartupLocation.CenterOwner,
Header = "Continue?",
OkButtonContent = "Continue",
Owner = Window.GetWindow(this),
Closed = (dpSender, dpArgs) =>
{
if (dpArgs.DialogResult == true)
(DataContext as PvaAvaCaptureViewModel).ImportGridCommand.Execute(fileInfo);
}
};
RadWindow.Confirm(dp);

Do you kow why this is happening?

Thanks,
Mike.

Cody
Telerik team
 answered on 13 Feb 2015
1 answer
83 views
Hi
The WPF application I am testing has a different executable name for each environment it is built for.
e.g. App.SYS.exe and App.UAT.exe
How can I handle this in my tests?
Thanks,
Mike.
Cody
Telerik team
 answered on 13 Feb 2015
5 answers
117 views
Hi There,

I need some help to solve a problem with Test Studio.
My silverlight application have some alert popups. I need to check if the popup is opened or closed to execute or not some steps..

One of the ways that i tried to do this is checking the popup window visibility. So i opened the window, created the element of the window and inserted two steps on the code: Check if the window is visible and check if the window is collapsed. When i run the test, the behavior is corrrect and Test Studio check that the element is visible. But if i close the popup and re-run the test, Test Studio stop finding the element and fails the check. 

I tought the problem is because the popup was closed, the element doesn't exists anymore. So Test Studio can't find the element and returns the error.
So, i tried changing the check to "Exists/Not Exists" check. For my surprise, this isn't working either!! On both cases, the Test Studio says that can't find the element (even if the element exists) and fails my tests.

Am i doing something wrong or my application must be changed?? I'm attaching the log of the execution, including the DOM of the page of both situations.

Can somebody help me??
Cody
Telerik team
 answered on 13 Feb 2015
17 answers
242 views
Hi,

I want use the stored procedure as a Setup coded step where I want to attach database from server location to machine where I am running the test and upgrade it. After that I want to run my recorded steps.

How can I implement that?

Regards
A
using System.Data.SqlClient;
CREATE PROCEDURE SP_UpgradeDatabaseTest @RegressionRunID int
AS
 
BEGIN
    DECLARE @CMDSQL             varchar(1000),
            @DatabaseID         int,
            @DatabaseName       varchar(250),
            @CurrentLocation    varchar(250),
            @TargetLocation     varchar(250),
            @Result             int
 
 
    SET     @TargetLocation = 'C:\UpgradeDatabaseTest\'
 
    -- Tidy up previous run... detach databases
    DECLARE Database_cursor CURSOR
    FOR
    SELECT name FROM sys.databases
    JOIN DatabasesForUpgrading ON name = DatabaseName
 
    OPEN Database_cursor
 
    FETCH NEXT FROM Database_cursor
    INTO    @DatabaseName
    WHILE @@FETCH_STATUS = 0
    BEGIN
     
        EXEC sp_detach_db @DatabaseName
 
        FETCH NEXT FROM Database_cursor INTO    @DatabaseName
 
    END
         
    CLOSE Database_cursor
    DEALLOCATE Database_cursor
 
    EXEC master..xp_cmdshell 'Del C:\UpgradeDatabaseTest\*.mdf'
    EXEC master..xp_cmdshell 'Del C:\UpgradeDatabaseTest\*.ldf'
 
    -- Get list of databases to upgrade, copy, attach, and upgrade
    DECLARE Database_cursor CURSOR FOR SELECT DatabaseID, DatabaseName, Location FROM DatabasesForUpgrading WHERE Upgrade =1
    OPEN Database_cursor
 
    FETCH NEXT FROM Database_cursor
    INTO    @DatabaseID,
            @DatabaseName,
            @CurrentLocation
 
    WHILE @@FETCH_STATUS = 0
    BEGIN
        -- copy database to expected location
        DECLARE @PassedVariable VARCHAR(100)
 
        SET @CurrentLocation = @CurrentLocation + RTRIM(@DatabaseName) + '*.*'
         
        SET @CMDSQL = 'C:\NR_UpgradeDatabaseDBRepository\CopyFiles.bat ' + @CurrentLocation + ' ' + @TargetLocation
                 
        EXEC master..xp_cmdshell @CMDSQL
         
        -- Attach Database to Server
        SELECT @CMDSQL = 'CREATE DATABASE ' +  @DatabaseName +
        ' ON (FILENAME = ''' + @TargetLocation + @DatabaseName + '.mdf''' + '),
        (FILENAME = ''' + @TargetLocation + @DatabaseName + '_Log.ldf'')
        FOR ATTACH'
     
        EXECUTE (@CMDSQL)
 
        -- Run Upgrade Database
        SET @CMDSQL = '"c:\program files (x86)\Athene\Data Management\Upgrade Database" DW-E5530,' + @DatabaseName
        EXEC master..xp_cmdshell @CMDSQL
 
        --Check Result of upgrade
        SET @CMDSQL = 'findstr /c:"The database has been updated" c:\programdata\metron\logs\*' + @DatabaseName + '*.log'
        EXEC @Result = master..xp_cmdshell @CMDSQL
 
        IF @Result = 0
            -- Success
            INSERT RR_UpgradeDatabase (RegressionRunID, DatabaseID, Result)
            VALUES (@RegressionRunID, @DatabaseID, 1)
        ELSE
            -- Failure
            INSERT RR_UpgradeDatabase (RegressionRunID, DatabaseID, Result)
            VALUES (@RegressionRunID, @DatabaseID, 0)
     
        FETCH NEXT FROM Database_cursor
        INTO    @DatabaseID,
                @DatabaseName,
                @CurrentLocation
 
    END
         
        CLOSE Database_cursor
        DEALLOCATE Database_cursor
 
END
Boyan Boev
Telerik team
 answered on 13 Feb 2015
7 answers
117 views
I can record the action of clicking a gridviewcell to activate it then entering text into the textbox, however when I attempt to playback the action I get the following failure:

Unable to determine the type of 'textbox' element. Check the log for details.
InnerException:
System.ArgumentException: Unable to determine the type of 'textbox' element. Check the log for details.
   at ArtOfTest.WebAii.Silverlight.FrameworkElement.CastAs[T]()
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Silverlight.Descriptors.TextBoxSetTextActionDescriptor.Execute(IApplication hostApp)
   at ArtOfTest.WebAii.Design.Extensibility.XamlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

How do I enter text into a gridviewcell?  I've tried adding a wait for textbox to exist, wait for the textbox to be visible, i've tried double clicking the gridviewcell, none of which have worked.

Update 1:When I click on the cell, sometimes "PartContentPresenterContentPresenter" is what is clicked, other times the "GridViewCellBorder" will be selected.  I'm not sure if there is a specific layer I need to select in order to allow the playback to find the textbox?
Ivaylo
Telerik team
 answered on 13 Feb 2015
1 answer
40 views
Hi,

The version I have for the Chrome Recorder extension is 2014.4.1211.5
I was trying to find the latest version (with the ability to undock) but can’t see it anywhere.
Would someone be able to point me in the right direction?

Also, in Test Studio, I went to Project Settings -> Browsers to calibrate the browsers.
Both Firefox and Safari are showing as NOT INSTALLED. Safari isn’t on my pc, but Firefox is installed on my pc.
What do I need to do to calibrate Firefox?

Ivaylo
Telerik team
 answered on 12 Feb 2015
4 answers
217 views
Hi.
I would like to be able to simulate a user inputting values into the cells of a radGridView in a WPF application.
I have access to the grid itself within the coded step and can read the contents of each cell (view GridViewCell.TextBlockContent property).
What I would to do is set/input the text into the cell (as if the user had typed it in).
I want to do this in a coded step because the number of rows will vary and I want to input  a value into each row.
I have converted a recorded input step to code and can see that it uses TextBox.SetText(), but I can't see how I can do this for a cell?
Any help would be appreciated.
Thanks,
Mike.
Ivaylo
Telerik team
 answered on 11 Feb 2015
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?