Telerik Forums
Test Studio Forum
7 answers
220 views
Hi,

i'm testing a silverlight application, that pops up when the browser closes, at the end of the test. 
This dialog asks if I want to stay or leave the page.

When I record the test, that dialog was recorded as a OnBeforeUnload dialog, and a handler was put as a step. But, when running the test, it fails on that step

'03-07-2013 14:51:29' - 'Fail' : 2. Handle 'OnBeforeUnload' dialog.
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Timed out waiting '15000' msec. for any dialog to be handled '1'
InnerException:
System.TimeoutException: Timed out waiting '15000' msec. for any dialog to be handled '1'
   at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilAnyHandled(IEnumerable`1 dialogs, Int32 handleCount, Int64 timeoutMilliseconds, Boolean resetHandleCount)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(IAutomationHost browser)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)


i disabled this recorded step, and added a new one, manually through the dialogs menu, but the result was the same.

in order to workaround this issue, I created a code step, and put inside of it the following code:
public void Logout_CodedStep1()
{
    OnBeforeUnloadDialog dialog = OnBeforeUnloadDialog.CreateOnBeforeUnloadDialog(ActiveBrowser, DialogButton.OK);
    Manager.DialogMonitor.AddDialog(dialog);
}


My question is, shouldn't that onbeforeUnload Handler work, instead of have to create a new code step with those two lines?
Ivaylo
Telerik team
 answered on 22 Jul 2013
1 answer
61 views
In our application, we have a dashboard view with couple of charts powered by HTML5/Javascript. The charts are basically bar charts where I need to make sure when dragging the bar , non-selected bars become transparent and tooltip shows up on the selected bar. The title on the tooltip changes dynamically as user drags to new intervals.I can verify drag and drop of any bar using your tool which inserts a desktop command during verification.This is as user clicks and drags the bar before dropping onto new location. Is there any way to verify this change in bar appearence and tooltip while dragging or is it already captured in drag/drop verification?

Thanks,
Mamata.
Cody
Telerik team
 answered on 19 Jul 2013
3 answers
133 views
Hello,
Each and every individual script is passed.those scripts run as in test list.But it is giving error is
Unable to pass test to test web server.
response status code does not indicate success:500(Internal server error).
failure during test dispatch ;Exception one or more occurred.
Boyan Boev
Telerik team
 answered on 18 Jul 2013
3 answers
106 views
Hi

I am new to the visual studio CodedUITesting. I created a few automated tests, 2 of the tests passed and 1 test failed with the error specified in the codeduitest zip file. I don't understand what the error means and thus do not know how to fix it.

This is what my code looks like. I think it fails on the bold text because it does not type the text into the cell. Can anyone please help me out here, thank you.

<TestMethod()>
    Public Sub NewRole()
Me.UIMap.StartupApp_LoginToMain()
        Me.UIMap.OpenRoleForm()
        Me.UIMap.NewRole()
    End Sub

 '''<summary>
        '''StartupApp_LoginToMain - Use 'StartupApp_LoginToMainParams' to pass parameters into this method.
        '''</summary>
        Public Sub StartupApp_LoginToMain()
            Dim uIOpenComboBox As WinComboBox = Me.UIRunWindow.UIItemWindow.UIOpenComboBox
            Dim uIOKButton As WinButton = Me.UIRunWindow.UIOKWindow.UIOKButton
            Dim uISettingsButton As WinButton = Me.UILoginWindow.UISettingsWindow.UISettingsButton
            Dim uITxtServerEdit As WinEdit = Me.UIConnecttoadatabaseWindow.UICELESTEZPCSQLEXPRESSWindow.UITxtServerEdit
            Dim uITxtDataEdit As WinEdit = Me.UIConnecttoadatabaseWindow.UIIT3AGWindow.UITxtDataEdit
            Dim uIOKButton1 As WinButton = Me.UIConnecttoadatabaseWindow.UIOKWindow.UIOKButton
            Dim uIOKButton2 As WinButton = Me.UIConnectionStateWindow.UIOKWindow.UIOKButton
            Dim uITxtNameEdit As WinEdit = Me.UILoginWindow.UITxtNameWindow.UITxtNameEdit
            Dim uITxtPassEdit As WinEdit = Me.UILoginWindow.UITxtPassWindow.UITxtPassEdit
            Dim uIOKButton3 As WinButton = Me.UILoginWindow.UIOKWindow.UIOKButton

            'Press keyboard shortcut keys 'Windows + r'
            Keyboard.SendKeys(Me.StartupApp_LoginToMainParams.SendKeys, ModifierKeys.Windows)

            'Select 'c:\tfs\IT3\DEV\IT3\IT3C\bin\Debug\IT3C.exe' in 'Open:' combo box
            uIOpenComboBox.EditableItem = Me.StartupApp_LoginToMainParams.UIOpenComboBoxEditableItem

            'Click 'OK' button
            Mouse.Click(uIOKButton, New Point(23, 19))

            'Click '&Settings' button
            Mouse.Click(uISettingsButton, New Point(59, 14))

            'Type 'CELESTEZ-PC\SQLEXPRESS' in 'txtServer' text box
            uITxtServerEdit.Text = Me.StartupApp_LoginToMainParams.UITxtServerEditText

            'Type '{Tab}' in 'txtServer' text box
            Keyboard.SendKeys(uITxtServerEdit, Me.StartupApp_LoginToMainParams.UITxtServerEditSendKeys, ModifierKeys.None)

            'Type 'IT3AG' in 'txtData' text box
            uITxtDataEdit.Text = Me.StartupApp_LoginToMainParams.UITxtDataEditText

            'Click '&OK' button
            Mouse.Click(uIOKButton1, New Point(100, 18))

            'Click 'OK' button
            Mouse.Click(uIOKButton2, New Point(27, 12))

            'Type 'SuperU' in 'txtName' text box
            uITxtNameEdit.Text = Me.StartupApp_LoginToMainParams.UITxtNameEditText

            'Type '{Tab}' in 'txtName' text box
            Keyboard.SendKeys(uITxtNameEdit, Me.StartupApp_LoginToMainParams.UITxtNameEditSendKeys, ModifierKeys.None)

            'Type '********' in 'txtPass' text box
            Keyboard.SendKeys(uITxtPassEdit, Me.StartupApp_LoginToMainParams.UITxtPassEditSendKeys, true)

            'Click '&OK' button
            Mouse.Click(uIOKButton3, New Point(54, 18))
 End Sub

'''<summary>
        '''OpenRoleForm
        '''</summary>
        Public Sub OpenRoleForm()
            Dim uIItemTabPage As UITestControl = Me.UIIT3sMainMenuWindow.UIRibMainWindow.UIItemTabPage
            Dim uIItemButton As RadButtonTestControl = Me.UIIT3sMainMenuWindow.UIRibMainWindow.UIItemButton

            'Click tab
            Mouse.Click(uIItemTabPage, New Point(63, 9))

            'Click button numbered 6 in 'ribMain' window
            Mouse.Click(uIItemButton, New Point(22, 22))
        End Sub

  <GeneratedCode("Coded UITest Builder", "11.0.60315.1")>  _
    Partial Public Class UIMap
        
        '''<summary>
        '''NewRole - Use 'NewRoleParams' to pass parameters into this method.
        '''</summary>
        Public Sub NewRole()
            Dim uIItemButton As RadButtonTestControl = Me.UIRolesWindow.UIRadRibbonBar1Window.UIItemButton
            Dim uIRadGridView1Table2 As RadGridViewTestControl = Me.UIRolesWindow.UIRadGridView1Window.UIRadGridView1Table2
            Dim uIRadGridView1Table3 As RadGridViewTestControl = Me.UIRolesWindow.UIRadGridView1Window.UIRadGridView1Table3
            Dim uIItemEdit As WinEdit = Me.UIRolesWindow.UIRadGridView1Table4.UIItemWindow.UIItemEdit
            Dim uIRadGridView1Table4 As RadGridViewTestControl = Me.UIRolesWindow.UIRadGridView1Window.UIRadGridView1Table4
            Dim uIItemEdit1 As WinEdit = Me.UIRolesWindow.UIRadGridView1Table5.UIItem0Window.UIItemEdit
            Dim uIRadGridView1Table5 As RadGridViewTestControl = Me.UIRolesWindow.UIRadGridView1Window.UIRadGridView1Table5
            Dim uIItemButton1 As RadButtonTestControl = Me.UIRolesWindow.UIRadRibbonBar1Window.UIItemButton1
            Dim uIYesButton As WinButton = Me.UISaveWindow.UIYesWindow.UIYesButton

            'Click button numbered 2 in 'RadRibbonBar1' window
            Mouse.Click(uIItemButton, New Point(9, 23))

            'Click 'RadGridView1' table
            Mouse.Click(uIRadGridView1Table2, New Point(65, 188))

            'Click 'RadGridView1' table
            Mouse.Click(uIRadGridView1Table3, New Point(68, 181))

            'Type 'Admin' in text box
            uIItemEdit.Text = Me.NewRoleParams.UIItemEditText


            'Click 'RadGridView1' table
            Mouse.Click(uIRadGridView1Table4, New Point(183, 178))

            'Type '0' in text box
            uIItemEdit1.Text = Me.NewRoleParams.UIItemEditText1

            'Click 'RadGridView1' table
            Mouse.Click(uIRadGridView1Table5, New Point(248, 308))

            'Click button numbered 5 in 'RadRibbonBar1' window
            Mouse.Click(uIItemButton1, New Point(8, 17))

            'Click '&Yes' button
            Mouse.Click(uIYesButton, New Point(43, 13))
        End Sub


Cody
Telerik team
 answered on 17 Jul 2013
2 answers
105 views
I have a scheduled test that I'm trying to kick off  in Test Studio. It schedules, is listed in orange as pending to kick off, and it just stays in that state. I finally have to double-click on it to see if it will change status. 

It reloads with a failed status (red), 0 tests passed out of total 1

When clicking on the failed test the results viewer displays the message: "TestList 'C:\TestResults\1 - 130181270439317869\TestLists\1.aiilist' was not found."  --Looking in the folder that's being created (1 - 130181270439317869), the only aiilist files are from older scheduled tests. A new one is not being produced.

NOTE: I uninstalled and reinstalled the tool. The old aiilist files appearing in the new folders are from test lists that don't exist anymore. Where is this data stored?


I'm running:
Windows 8
Test Studio 2012.2.1527.0

I'll provide additional info if needed.
Thanks,
-Jim

Boyan Boev
Telerik team
 answered on 17 Jul 2013
3 answers
109 views
HI,

I was wondering if anyone could help me with a couple of questions.

1, What sort of test results/evidence can i get from running tests in test studio, at the moment we are running test studio then ticking off the tests in another product as done, we would really like to use test studio for the complete testing phase but not sure if there was any way to produce test results/evidence that we could send our customers that would show what tests we have carried out/passed etc.

2. we are interested in the stand alone feature of test studio, but i can sseem to fin much documentation about it anywhere on how it works. e.g. is it a standalone.exe? could we send it to one of our customers when they install our software to check it works correctely in their environment?

Thanks

Jo
Cody
Telerik team
 answered on 16 Jul 2013
2 answers
77 views
I'm trying to find a way to assign TEST Scenario ID's to Data rows to drive different test scenarios.   Everything I read is that I'm limited to Rows X-Y or the entire table/sheet.

I would like the capability to define a TEST Id to a row to only use that row to data drive the test. 

I have several test templates created that build out my Test Scenario.   These access multiple excel worksheets with data, however I don't want Test Scenario X to run Test Scenario Y tests data.

Thanks,
Herb
Herb
Top achievements
Rank 1
 answered on 16 Jul 2013
5 answers
659 views
Hi All,

I m fresher for Telerik Test Studio, can anyone tell me the procedure to write code for display a Alert MessageBox in Script.

Regards,

Viknesvarane
Velin Koychev
Telerik team
 answered on 16 Jul 2013
1 answer
100 views
I noticed there is a free download of the Testing Framework, however it says incompatible software installed: Test Studio, Test Studio Express or Test Execution.

I was wondering if I should be allowed to install this Testing Framework as well with my Test Studio Purchase licensed?
Cody
Telerik team
 answered on 11 Jul 2013
1 answer
200 views
I want to ask if there is a way to send email automatically after finishing the "Test lists"  testing, containing the test result ...
I want a way without using the scheduling

Please Advice..

Thanks & Regards,
Samo
Velin Koychev
Telerik team
 answered on 11 Jul 2013
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?