Telerik Forums
Test Studio Forum
1 answer
71 views
Hi,

Can you help me out in how to create a data-driven Telerik Testing Framework ?

Thanks
Anuj
Cody
Telerik team
 answered on 13 Jun 2012
1 answer
101 views
Hi,

I’m trying to test different Users using different cert to login an application.  For example: user1 has certA, user2 has certB, ect…. 

When the Window Security dialog displays, I can see different certificates (certA, certB, ect…) that I can select.  For example, I used User2 and selected certB and clicked the OK button.  The Window Security dialog closes and then a Password dialog of my application displayed.

When I played back, it seemed to select the one in the first row; which is certA

When I looked at the step in this test, it displays the “Handle ‘Generic’ dialog”.  I can’t seem to manipulate this line so that it can pick the correct certificate for my test.  I even used the up and down keys on the keyboard when I re-record the step and it still didn’t work.

Could someone help?

I’m running stand-alone Test studio.

Thanks,
Mindy

Anthony
Telerik team
 answered on 13 Jun 2012
3 answers
75 views
The Internet Explorer is crashing if I play a special test.

I know I played it before without problems, but a cmd window occurs now every time I start it and an overlay popup is blocking this, so I cannot copy the failure message.
But I attached a screengrab.
Maybe you can see something in the image, or tell me some cases when this is happening, so that I can check this?

For information if you need it I have a silverlight application.

Best regards,
Adriane

 
Plamen
Telerik team
 answered on 13 Jun 2012
1 answer
67 views
Hi I am a new one here and tried using Test Studio to record a basic test case for my Web application.

Test Case

1. Launch Web site
2. Enter credentials
3. Perform search in the system using Criteria1
4. Out of results returned click on ResultRecord  X
5. Check if it loads
6. End

Now I was able to record the scenario and playback as well. My question is that the idea behind this tool is for re using the existing  already recorded scenario. So in my case lets say I ask another person to use my scenario and perform the testing. When he does that I dont want him to open the same Result X which I did, rather he should try doing this for Result Y, Z etc. How and where do I set that

Or in other words how do I test say 10 ResultRecord using the scenario I recorded, without me having to change <Step 4> everytime?

I apologize if its a basic question or If I am not expressing my need clearly. Any insight will be appreciated.
Anthony
Telerik team
 answered on 12 Jun 2012
1 answer
63 views
Part of my testing is to connect to a VM and locate a folder, copy it to the desk top and run the install .exe, Test Studio is installed on my own machine, currently this part of the process is all manual, is there the ability in Test Studio to record and execute this process?
Cody
Telerik team
 answered on 12 Jun 2012
1 answer
53 views

I'd like to make some suggestions to make the image verification feature better - this is for a WPF test but is likely applicable to webpages.

When the image verification fails, it would be helpful to get better feedback. All I see is that it failed and by what percentage.
I need to know where it failed - what position on the image did it fail at? At least give me an x, y coordinate of the general area of the failure.
I've been getting a lot of failures even for simple tests - and I don't know why. I don't think I should have to adjust the tolerance from the default for these simple tests.

Secondly, when I set up a new image verification, I understand I can either compare the whole image or a sub-selection of the image.
What I want to do is do a whole image verification, but I want to mark off regions that I don't care about. For instance, my image may have a clock in the corner - and something actively moving in another area - in that case I would want to exclude both those regions.

Lastly, I'd like to be able to have the option to have the test runner save an image some place when it's verification fails so I can look at it.

Thank You
Stoich
Telerik team
 answered on 12 Jun 2012
2 answers
54 views
Hi,

I was wondering if it was possible to see the code for an entire test in Test Studio the QA edition? I need the coded script to use for Acceptance tests we are using with Specflow. Is this possible?(I have copied and pasted a test to a new folder and clicked view class that is not the coded steps. Rather a coding template with an example.)
Jean-François VIGNERON
Top achievements
Rank 1
 answered on 08 Jun 2012
20 answers
409 views
I am trying to use a reference to a third-party dll in my project and am not having any luck.

As background, the "third-party" dll is actually something I built but I want to use the dll as a common method library. For example, this dll allows me to authenticate a user for my web application without having to enter username and password on the log in page. I want to reference the dll as if it were a common library.

I am using the Test Studio Visual Studio plug-in, NOT the stand alone version.

I was able to make the reference easy enough and my runs perfectly in my local dev environment. When I move my code to my build (in this case CruiseControl) environment, the referred dll cannot b

e found. The .tstest file is looking for the dll in the project folder with the same directory structure as my local dev environment (e.g. c:\users\...). We put all of our CruiseControl files on an E: drive in the build environment. So the third-party dll location on the build environment is NEVER "c:\users..." but rather "e:\cruisecontrol\automation...".

All of our other projects, by the way, do call other referred perfectly fine.

I have tried a number of steps to get around this issue but need more help. I have tried:
1. Removing the references from the .tstest file. I opened the offending .tstest file in an XML view and removed the "hard-coded" lines from the CurrentReferences section. For example, I removed:
<d2p1:string>C:\Users\David Adams\Documents\Visual Studio 2010\Projects\vergeautomationtools\vergeautomationtools\bin\Debug\vergeautomationtools.dll</d2p1:string>
from
    <d2p1:string>System</d2p1:string>
    <d2p1:string>System.Core</d2p1:string>
    <d2p1:string>ArtOfTest.WebAii, Version=2011.2.1506.0, Culture=neutral, PublicKeyToken=4fd5f65be123776c</d2p1:string>
    <d2p1:string>ArtOfTest.WebAii.Design, Version=2011.2.1506.0, Culture=neutral, PublicKeyToken=4fc62bbc3827ab1d</d2p1:string>
    <d2p1:string>Telerik.WebAii.Controls.Html, Version=2011.2.1506.0, Culture=neutral, PublicKeyToken=528163f3e645de45</d2p1:string>
    <d2p1:string>Telerik.WebAii.Controls.Xaml, Version=2011.2.1506.0, Culture=neutral, PublicKeyToken=528163f3e645de45</d2p1:string>
    <d2p1:string>Telerik.WebAii.Controls.Xaml.Wpf, Version=2011.2.1506.0, Culture=neutral, PublicKeyToken=528163f3e645de45</d2p1:string>
    <d2p1:string>System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</d2p1:string>
  :
  :
  :
    <d2p1:string>C:\Users\David Adams\Documents\Visual Studio 2010\Projects\vergeautomationtools\vergeautomationtools\bin\Debug\vergeautomationtools.dll</d2p1:string>
</CurrentReferences>

I also removed numerous, similar references from Settings.aiis. Settings.aiis appears to keep old versions of references around for whatever reason even after I have explicitly removed the reference to a dll.

Something I have noticed is that Visual Studio (or Telerik or whomever) is adding the bad and old versions of the dll references when editing the .tstest file using the "Run To Here" functionality. I use that feature A LOT and now need to edit the XML every time I use the feature. PLEASE NOTE: THE REFERENCES ARE NOT RE-ADDED EVERY TIME "RUN TO HERE" IS USED MAKING IDENTIFICATION OF THE ISSUE THAT MUCH MORE DIFFICULT.

2. I have added a hard-coded reference in my build environment to this dll. I created the path and file "C:\Users\David Adams\Documents\Visual Studio 2010\Projects\vergeautomationtools\vergeautomationtools\bin\Debug\vergeautomationtools.dll"
on the build server. I have come to find that there are security issues with that and that path still cannot be found when executing my test on the build server.
I find this to be a very weak solution to what should not even be an issue.

3. I have changed the entire structure of my solution to include the dll project and my automation project together and make a project reference. Visual Studio still makes an absolute-path reference to the dll so there is, in essence, no difference than making a regular file reference.

4. I have tried to strongly-name the third-party dll and added it to the GAC. Even when adding from the GAC the directory path that appears in Visual Studio is "c:\users...".  This is another weak solution.

5. I created c:\automationdlls and added my dll to this folder. To avoid the c:\user.. security issue I created c:\automationdlls on both my local dev environment and the cruisecontrol environment. When adding a reference to the dll, the directory path that appears in Visual Studio is "c:\users...". Back to square 1.

Of the hundreds of Telerik customers reading these forums, I have to believe that one of you are referencing third-party dlls and building that code in a cruisecontrol environment that is not running off the c: volume. Can anyone assist on this? 

Cody
Telerik team
 answered on 08 Jun 2012
1 answer
43 views

 Hi,

  I got the following error in the failure log:

"

Failure Information: ~~~~~~~~~~~~~~~
Timed out waiting '25000' msec. for download dialog to be handled.
InnerException:System.TimeoutException: Timed out waiting '25000' msec. for download dialog to be handled. at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DownloadDialogHandlerDescriptor.Execute(Browser browser) at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(IAutomationHost browser) at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)------------------------------------------------------------'6/5/2012 1:05:26 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.------------------------------------------------------------'6/5/2012 1:05:26 PM' - Overall Result: Fail'6/5/2012 1:05:26 PM' - Duration: [2 min: 17 sec: 274 msec]------------------------------------------------------------'6/5/2012 1:05:35 PM' - Test completed!

"

Actually, i tried "Handle "Download" dialogue" for "File Download" window.,I gave the "Handle button" as "Save" and mentioned the path in the "DownloadPath" section.

Kindly help me with this.

Thanks,
Deepa
Byron
Telerik team
 answered on 07 Jun 2012
1 answer
100 views

Hi Telerik Team,

 

In one of my test, I want to wait till the button gets disabled. So I am using the step as:

‘Wait for ‘btnSave’ is disabed’ and I have set the Wait timeout for the step to ‘120000’.

But surprisingly the step is failing without waiting for 2 minutes. Below is log extract for the failure.

 

I am expecting that if the button is enabled, the “Wait for 'btnSave' is disabled” step will wait till button gets disabled or till max Wait timeout which I have set to 2 minutes. Please let me know if I am using it correctly or do I need to modify the code.

 

Note: I have attached a screenshot for the step properties.

 

Thanks.

 

Log Extract:

 

'6/7/2012 2:26:22 PM' - 'Pass' : 24. Wait for ExistsNot 'Table'

‘6/7/2012 2:28:23 PM' - 'Fail' : 25. Wait for 'btnSave' is disabled

------------------------------------------------------------

Failure Information:

~~~~~~~~~~~~~~~

Element enabled state didn't match expected value. Expected: False Actual: True

------------------------------------------------------------

'6/7/2012 2:28:23 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.

------------------------------------------------------------

'6/7/2012 2:28:23 PM' - Overall Result: Fail

'6/7/2012 2:28:23 PM' - Duration: [2 min: 40 sec: 343 msec]

------------------------------------------------------------

------------------------------------------------------------

'6/7/2012 2:28:23 PM' - Overall Result: Fail

'6/7/2012 2:28:23 PM' - Duration: [2 min: 40 sec: 343 msec]

Anthony
Telerik team
 answered on 07 Jun 2012
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?