Telerik Forums
Test Studio Forum
1 answer
181 views

when i record the test studio for WPF program.meet below issue,help me please!~

1.tick the checkbox in grid,when i run the recorded script,it cannot recognize this checkbox,then test studio cannot going until exit.--capture 1

2.when i print in my program.it will popup the window7's own print panel.but test studio cannot recognize  it , have some suggestion help to resolve this problem.--capture 2

3.when i use 'run to here',cannot go to debugger status.should i setup something?--capture 3

4.when run the recorded script,test studio cannot recognize the 'x' button--capture 4

5.when run action 'click item in grid',test studio cannot  recognize this step--capture 5

Elena
Telerik team
 answered on 29 Apr 2016
6 answers
669 views

I'm using the Test Studio 2013.1 plugin for Visual Studio 2012.

I've successfully managed to record and run a number of tests, but trying to add a coded test step has resulted in my project failing to build, with the error:
The type or namespace name 'Pages' could not be found (are you missing a using directive or an assembly reference?)

I've checked that the Pages.g.cs file has been included in my test project, and that the file is being generated from time to time.
I've also checked the namespace used in the Pages.g.cs file matches the namespace of the test project, which it does.

Having searched your forums and the web, I see this is a long standing, recurring issue.
I hope you have a robust solution to this issue available.

Thank you,
Gavin
Ivaylo
Telerik team
 answered on 28 Apr 2016
1 answer
133 views

Hi,

I've recently started using the email notification system you offer. I'm currently using the google SMTP server from [url=https://support.google.com/mail/answer/13287] here[/url] and an unused gmail account to handle the emails. However, after much trouble shooting, I'm still unable to receive any emails.

Emails are correct.

Can ping the SMTP server(smtp.google.com) via telnet with port 465 and 587. 

Any help would be greatly appreciated.

 

Regards, 

 

Caleb

Elena
Telerik team
 answered on 26 Apr 2016
1 answer
95 views

Hi Team

When i submit a bug to TFS it adds it no problem

However when you view the bug description you cant understand the steps taken to reproduce the error. The attached files are screen shots of the affected area and that is great but it doesnt tell you how it went wrong to get that error screen.

Can anyone assist in detailing how i can make the bug reports more comprehensive

Thank you all

 

Elena
Telerik team
 answered on 25 Apr 2016
1 answer
89 views

Some of the performance tests I'm running are returning unusually low Test Times. When I click into them, I find that a verification test is taking -3 seconds. This makes no sense to me, happens inconsistently across different tests (some verification taking a negative time to complete).

What is the cause of this and how can I remedy it?

 

Nikolay Petrov
Telerik team
 answered on 22 Apr 2016
2 answers
115 views
I am  using test Framework to automate certain web tasks.I am using ArtOfTest.WebAii.Core.dll to autofilll the web forms. There are also certain user interactions on the web browser, which was launched and managed by the test framework. I basically am looking for the way to catch the event in the .NET applciation when user explicitly clicks an element in the browser web page or explicitly navigates to the new web address by typing on the address bar in the web browser.Though I am able to refresh the DOM tree by invoking myManager.ActiveBrowser.RefreshDomTree(); I am looking for the event so that I can do my processing only when it is required, instead of tracking it repeatedly. Thanks
jwize
Top achievements
Rank 1
 answered on 21 Apr 2016
1 answer
61 views

Hello!

I've run into a situation that was requested of me. The idea is that we would we would be able to run the  "Create a Product" test in the admin site (in one environment) and then run the "Buy ~That~ Product" in the customer site (same environment, different BaseURL). Is there a good way to resuse tests created on in either project without having to combine them? And how do I reach out to different BaseUrls for each project? I want to still be able to run a test list and point it at a different environment (two BaseUrls, one for admin, one for customer).

I have attached the idea I'm hoping to accomplish. The green items represent tests that are already created. The grey represents what I'm hoping to accomplish.

Any thoughts or ideas on how to do this would be greatly appreciated.

Cheers,

Kelly

Nikolay Petrov
Telerik team
 answered on 21 Apr 2016
5 answers
169 views
Hi,

I am using Teleric standalone version 2011.2.1117.0. After Adding any excel sheet as data source when I try to Bind that excel with any of my test, no tables are displayed in Select Table dropdown due to which I am unable to bind Excel. Please suggest the reason behind this.I I am using office 2010 on win7 64 bit machine.
Boyan Boev
Telerik team
 answered on 21 Apr 2016
1 answer
386 views

Hi,

My scenario is - I have a value being generated on the fly (by appending the current time stamp) and could store it in a String in a Coded step. But, I'm unable to use/refer the variable in another coded step. Also, I require to verify an element having this variable's value as its identifier.

Here, the "PriceName" is where I'm trying to generate a value and to make use of in another coded step and wanna use to identify an element. I tried using SetExtractedValue, GetExtractedValue, Utility.valueHolder...but, facing one or the other issue like "not stored in data source... , might be restricted due to its scope... , Null exception..."

 

Value is generating and storing in "Public Sub Library_AddPrice_ValueRange_CodedStep()".

Value to be accessed in "Public Sub Library_AddPrice_ValueRange_CodedStep1()"

 

Below is the entire code for your easy reference...Please help.

 

Imports Telerik.TestingFramework.Controls.KendoUI
Imports Telerik.WebAii.Controls.Html
Imports Telerik.WebAii.Controls.Xaml
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports System.Linq

Imports ArtOfTest.Common.UnitTesting
Imports ArtOfTest.WebAii.Core
Imports ArtOfTest.WebAii.Controls.HtmlControls
Imports ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts
Imports ArtOfTest.WebAii.Design
Imports ArtOfTest.WebAii.Design.Execution
Imports ArtOfTest.WebAii.ObjectModel
Imports ArtOfTest.WebAii.Silverlight
Imports ArtOfTest.WebAii.Silverlight.UI

Namespace Version7_21
    
Public NotInheritable Class Utility
    Private Sub New()
    End Sub

    Public Shared valueHolder As String
    Public Shared Sub writeToFile(path As [String], content As [String])


        Dim file As New System.IO.StreamWriter(path)
        file.WriteLine(content)
        file.Close()
    End Sub
End Class
    
    

    Public Class Library_AddPrice_ValueRange
        Inherits BaseWebAiiTest
        

#Region "[ Dynamic Pages Reference ]"

        Private _pages As Pages
        
        '''<summary>
        ''' Gets the Pages object that has references
        ''' to all the elements, frames or regions
        ''' in this project.
        '''</summary>
        Public ReadOnly Property Pages() As Pages
            Get
                If (_pages Is Nothing) Then
                    _pages = New Pages(Manager.Current)
                End If
                Return _pages
            End Get
        End Property
        
#End Region
        
        ' Add your test methods here...

        <CodedStep("Entering Price Label")> _
        Public Sub Library_AddPrice_ValueRange_CodedStep()
            
            Dim str1, str2
            Dim PriceName AS String
            
            str1 = System.DateTime.Now.ToString("HH:mm:ss").Replace("/","")
            str2 = str1.Replace(":","")
            PriceName = "Price Fee " + str2.Replace(" ","")
            
            SetExtractedValue("PriceName", PriceName)
            
            Dim FeeName As String = GetExtractedValue("PriceName")
            SetExtractedValue("PriceFeeName", FeeName)
            
            Dim myData As Object = GetExtractedValue("PriceFeeName")
            Log.WriteLine(myData)
            
            Utility.valueHolder = GetExtractedValue("PriceName")
            Log.WriteLine(Utility.valueHolder.ToString())
            Utility.writeToFile("D:\OBFS Project\V 7.21\PDFS_Version7.21\Data\PriceDataSheet.xls", Utility.valueHolder)
            
            ActiveBrowser.Window.SetFocus()
            Pages.ProductStudio.PyLabelText.Focus()
            Pages.ProductStudio.PyLabelText.MouseClick
            Manager.Desktop.KeyBoard.TypeText(PriceName, 50, 100, true)
              
        End Sub

        '<CodedStep("New Coded Step")> _
        'Public Sub Library_AddPrice_ValueRange_CodedStep1()
            'Log.WriteLine(GetExtractedValue(Utility.valueHolder))
            'Log.WriteLine(myData)
        'End Sub

    End Class
End Namespace

Boyan Boev
Telerik team
 answered on 21 Apr 2016
5 answers
118 views

Hi,

We have several codedsteps in a .tstest files. Currently we execute the complete .tstest files

But scenraios are likely to change and we may have to execute coded steps individually. Making single .tstest file for each coded steps will be hectic.

Is there any way we can execute required coded step from Artoftest.runner commandline.?

Please let us know

 

Thanks,

VVP

Elena
Telerik team
 answered on 20 Apr 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?