Telerik Forums
Test Studio Forum
5 answers
178 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
398 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
127 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
1 answer
168 views

Main window of our application is MFC window, but all its its internal windows are WPF windows with WPF controls.

In order to start record, I need to fill out WPF Application Path of the being tested application. When I do this and press OK, I get message:

It is not a valid Wpf Application!

 

Can I do some workaround in order to get access to my WPF windows and start testing?

Thank you

David

Boyan Boev
Telerik team
 answered on 19 Apr 2016
3 answers
216 views

I have currently have a GridView that contains a list of queries. I need to be able to search through the GridView, and run a specific query based on the text data in a specific column. There are currently enough rows of data in the grid that there is a scrollbar. 

Any way to do this without having to set a filter on the grid column I want and select the first row?

Boyan Boev
Telerik team
 answered on 18 Apr 2016
7 answers
123 views

Hello,

I am running my Automation scripts through Jenkins for CI.  When the environment finishes building, then my tests get ran.  The first test after a fresh build always throws this requested resource is in use for IE.  I have attached the result from Jenkins.  Is there a setting i'm missing that will fix this from not happening?  Is there a command that I need to put in my navigate test?

Boyan Boev
Telerik team
 answered on 15 Apr 2016
4 answers
100 views
I am building some WPF coded ui tests, and am running into a recurring problem where alert dialogues are being sent behind the application window. If I drive the app manually I can click on an 'OK' / 'Cancel' action and the dialogue is dismissed as expected. However, when the test is running in Test Studio, as soon as the click happens the dialogue disappears behind the window, causing the test to fail. Can anybody think what the problem might be?
Boyan Boev
Telerik team
 answered on 15 Apr 2016
2 answers
81 views

I have a bunch of tests that are more or less used to open my application, browse through it, run a specific database query, and then using some custom-code files with a self-made object, I test the query against another file which will return true or false (depending on whether or not the files are identical in the data that they hold).

In my tests, I use an assert to call the function and fail my coded step depending on if the values are different.

Now my real problem is, I have a "master test" which I use to "Test As Step" all my tests so they run one after the next...instead of me having to go through and run each test manually, I can walk away and not worry about them not getting done.

When I run my tests individually, my coded step can pass (the Assert is not thrown).

When I run my master, my coded steps (and therefore those tests) can pass, AS LONG AS any of the previous "Test As Step"'s haven't failed on the coded step. If a single "Test As Step" fails, every subsequent "Test As Step" fails on their individual coded steps.

Each test has it's own objects instantiated with the new keyword which are compared...so I can't see it being data in the objects still in a new test...? Not really sure what else the problem could be though. Any push in the right direction would be greatly appreciated...

Boyan Boev
Telerik team
 answered on 15 Apr 2016
11 answers
414 views
I'd like to be able to drive my load test logins from an Excel spreadsheet. According to the link below, I should be able to do that.

http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/load-testing/designing-load-tests/load-modifying/load-data-driving.aspx


However, I am unable to see the User Name and Password from the dynamic targets of my Login page. All I've got was the _viewstate and the _eventvalidation. What did I miss?

Thanks.
Boyan Boev
Telerik team
 answered on 14 Apr 2016
9 answers
309 views

Hi team,

We are evaluating Telerik test studio as a Test Automation tool for Automation testing for one of the products for our customers . The customer product is a Windows Application build in C# and WPF and uses DevExpress (3rd Party) for UI Controls.
 Currently we are carrying out  Proof of Concept (POC) to automate few business scenarios in the product.  We are able to automate some of the scenarios and it runs successfully in quick execution without any error.

But during test list scheduling,some test cases fails with "Null reference exception". 


I have a list with 40 test cases. But I see that isn't stable, b/c sometimes it run correctly and sometimes the test fail(approx.38/40). Not sure why is the inconsistency on it.And today if one fails,next run some other test case will fails.

So, not sure why they are failing in the list but individually it passes consistently.

Please any one help me on this.

Ivaylo
Telerik team
 answered on 14 Apr 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?