Telerik Forums
Test Studio Forum
1 answer
139 views
I want to select the last row of a table. The table is populated according to options given by the user and based on the data in the database (which keeps changing as there are updations and deletions going on every now and then). So, the number of rows will differ every time my test case is executed. How do I set up my test case so that every time the test is executed the last row in the table is selected.
I have attached a screenshot of what the table looks like. So, in this table I would want to select the row wherein the SRV# is 1312184 as that is the last row.. But next time when somebody runs the test case, this row might not be the last row and the size of the table might also change. For example, this table has 4 rows but next time the test case is run the table may have 10 rows or just 2 rows. I hope you catch my drift...
Also, I tried to extract the values of the SRV# from previous steps (as the SRV # are unique) and use them to select the row. But if you see the picture every SRV# has a dotted line which means they are linked to another page. Now, I don't want to click exactly on the number as I don't want to open that link. If one clicks anywhere in the row that row gets selected and that is what I want to do.

Any suggestions...    
Plamen
Telerik team
 answered on 07 Dec 2011
3 answers
84 views
Hello,

In our project, we are handling our automated tests by using Visual Studio plug-in.
We created Telerik tests project as a part of our project solution and we are running automated Test Studio tests as a part of our nightly builds.

In the nightly builds, all the tests which are in the test project are all running, but we want to run only the tests which we choose.
There is a test list editor in VS. I select the tests that I want to run with the build, but it still runs all the tests.

Can you please help me?

Thanks,

Esra



Plamen
Telerik team
 answered on 06 Dec 2011
2 answers
124 views
Hi.
I create a Test List with several tests, but I have a problem the browser close between the test.
What can I do to ensure that the browser keep running?
Natasha
Top achievements
Rank 1
 answered on 06 Dec 2011
5 answers
187 views
Hi,

We have an application based on Telerik components and ESRI map functionalities.

And while we recorded functional test with Telerik Test Studio  if we want to enter coordinate field (latitude and longitude) by selection it from the map , Telerik Test Studio records coordinate. But after if we want to replay this recorded test ,Telerik Test Studio selects the coordinate which is different than recorded one. 

We want to learn that do you support the map interaction activities or not?

Thanks.
Stoich
Telerik team
 answered on 06 Dec 2011
1 answer
154 views
Hi,

I am using Visual Studio plugin of Telerik test studio (Mbunit cases) to automate my web application. On my site there is a link which takes around 120 seconds to navigate to next page.
The issue I am facing is that the during playback the link gets clicked but the following execption is generated before navigation to next page where i want to verify assertions.

System.TimeoutExceptionWait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, target, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Actions.Click(Element targetElement)
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click()


How can i handle this, i have even increaed the WaitOnElement timeout to 180000, but thats of no use.
Stoich
Telerik team
 answered on 05 Dec 2011
1 answer
102 views
I'm sure there is a command in Visual Basic, but I'm not sure what it is.

I have this VB code that builds a command but while I can get the command to display in the console, I can not figure out how to get the code to execute in the code behind file.

Here is the code:
Dim intMonth As DateTime = DateTime.Now.AddDays(-1)
Dim format As String = "m"
Dim strMonth as String
strMonth = (intMonth.ToString(format))
strMonth = strMonth.Replace(" ", "")
Console.WriteLine("Pages.OrchidTest0."+strMonth+"Link"+".Click(false)")

and what I want to execute (for today for example) would be:

Pages.OrchidTest0.November30Link.Click(false)

Thank you in advance
Chris
Anthony
Telerik team
 answered on 02 Dec 2011
1 answer
133 views
Hello,

I would like to use Test studio to record some of my tests; however, what I need to figure out is that I need to be able to, when TestStudio starts, get my database into an initial state of data for the test; essentially, as I run my tests, everytime I need to start the test project, I need to have the database at a particular state.  Have you guys got any tips for accomplishing this?  I'm using the MS test framework for unit tests.

Thanks.
Anthony
Telerik team
 answered on 30 Nov 2011
1 answer
51 views
Can i test Dot Net 3.5 Framework developed application in Telerik test studio, I have developed application using telerik windows control too. When i use Standalone WPF test it opens the Dot net frame work application and throws an exception.
Plamen
Telerik team
 answered on 30 Nov 2011
5 answers
229 views

Hello,

I’m evaluating Test Studio to check if it is the right testing tool for my company.

Last Friday I made a test case against our corporative web application, and it worked properly after running in IE and Firefox. I had the 928 build of Test Studio. To check another problem (in other thread of this phorum) I installed the latest build (1103). After this my test case is not working anymore:

In one of the steps a text is set; I had to put SimulateRealTyping to make it work. Now with this new version the text is not set. I have tried changing some of the parameters, but it does not work.

I have come back to the 928 and got the backup of the project, and it works again.

My question is, is this 1103 an stable version? In the future if we acquire Test Studio and we install a new version could we have these kind of problems when updating the product?

Regards

Plamen
Telerik team
 answered on 30 Nov 2011
5 answers
256 views
Hi

I am trying to run the sample test code (here) on a testing machine.
I get the following error - see below.

This computer does not have the testing framework installed on.
I added the relevant WebAii dlls to the application I created so they are included in the bin folder.

What am I missing 

Thanks





ee the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.


************** Exception Text **************
System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it. ---> System.TypeInitializationException: The type initializer for 'ArtOfTest.Common.Win32.Connector' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at ArtOfTest.Common.Win32.Connector..cctor()
   --- End of inner exception stack trace ---
   at ArtOfTest.Common.Win32.Connector.Start(ConnectorEntryPoint entryPoint, IntPtr windowHandle)
   at ArtOfTest.Common.Win32.Connector.Attach(IntPtr& handle, Boolean findTabWindow)
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser()
   at WindowsFormsApplication3.Form1.btnLoginT_Click(Object sender, EventArgs e) in ...\WindowsFormsApplication3\WindowsFormsApplication3\Form1.cs:line 283
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)




************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.225 (RTMGDR.030319-2200)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
WindowsFormsApplication3
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/dudib/Desktop/Debug/WindowsFormsApplication3.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
imageClient
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/dudib/Desktop/Debug/imageClient.DLL
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ArtOfTest.WebAii
    Assembly Version: 2011.1.712.0
    Win32 Version: 2011.1.712.0
    CodeBase: file:///C:/Users/dudib/Desktop/Debug/ArtOfTest.WebAii.DLL
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
UIAutomationClient
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationClient/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationClient.dll
----------------------------------------
UIAutomationTypes
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll
----------------------------------------
WindowsBase
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
UIAutomationProvider
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationProvider/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationProvider.dll
----------------------------------------
UIAutomationClientsideProviders
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationClientsideProviders/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationClientsideProviders.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
ArtOfTest.InternetExplorer
    Assembly Version: 2011.1.712.0
    Win32 Version: 2011.1.712.0
    CodeBase: file:///C:/Users/dudib/Desktop/Debug/ArtOfTest.InternetExplorer.DLL
----------------------------------------


************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.


For example:


<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>


When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.




Plamen
Telerik team
 answered on 30 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?