Telerik Forums
Test Studio Forum
5 answers
300 views
Hi
    I m using telerik test studio 2013.2.When I recorded a page in my project there was dropdown which when clicked navigated to a login page.while recording everything works fine it was able to login to the new page but when executed the test fails when it comes to the login page
the log message is :
Overall Result: Fail
------------------------------------------------------------
'6/10/2014 2:30:02 AM' - Using .Net Runtime version: '4.0.30319.18052' for test execution. Build version is '2013.2.1327.0'.
'6/10/2014 2:30:02 AM' - Starting execution....
'6/10/2014 2:30:02 AM' - Detected a Silverlight Test. Setting EnableSilverlight=True
------------------------------------------------------------
------------------------------------------------------------
'6/10/2014 2:30:05 AM' - Enabling Html Popup Tracker. Test expecting Popups.
'6/10/2014 2:30:05 AM' - Using 'InternetExplorer' version '9.0' as default browser. 
'6/10/2014 2:30:31 AM' - 'Pass' : 1. Execute test 'Login in fuelnet with pmartin'

>>> Test-as-Step 'Fuelnet()\Login in fuelnet with pmartin.tstest' log starts:

Overall Result: Pass
------------------------------------------------------------
'6/10/2014 2:30:06 AM' - Enabling Html Popup Tracker. Test expecting Popups.
'6/10/2014 2:30:06 AM' - Using 'InternetExplorer' version '9.0' as default browser. 
'6/10/2014 2:30:07 AM' - 'Pass' : 1. Navigate to : 'https://fuelnetsp.stg.mansfieldoil.com'
'6/10/2014 2:30:08 AM' - 'Pass' : 2. Enter text 'pmartin' in 'UserNameText'
'6/10/2014 2:30:09 AM' - 'Pass' : 3. Keyboard (KeyPress) - Capital (1 times) on 'PasswordPassword'
'6/10/2014 2:30:09 AM' - 'Pass' : 4. Enter text 'FSSA' in 'PasswordPassword'
'6/10/2014 2:30:09 AM' - 'Pass' : 5. Keyboard (KeyPress) - Capital (1 times) on 'PasswordPassword'
'6/10/2014 2:30:09 AM' - 'Pass' : 6. Enter text 'FSSAdmin' in 'PasswordPassword'
'6/10/2014 2:30:31 AM' - 'Pass' : 7. Click 'BtnLoginSubmit'
'6/10/2014 2:30:31 AM' - 'NotRun' : 8. Verify image of 'MansfieldImage'. Allow 1% error tolerance.
------------------------------------------------------------
'6/10/2014 2:30:31 AM' - Overall Result: Pass
'6/10/2014 2:30:31 AM' - Duration: [0 min: 24 sec: 764 msec]
------------------------------------------------------------

<<< Test-as-Step 'Fuelnet()\Login in fuelnet with pmartin.tstest' log ends.

'6/10/2014 2:30:35 AM' - 'Pass' : 2. Click 'SiteConsoleSpan'
'6/10/2014 2:30:55 AM' - 'Pass' : 3. Wait for '20000' msec.
'6/10/2014 2:31:56 AM' - 'Fail' : 4. Enter text 'pmartin' in 'CphMainTxtUserNameText'
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:id=~fitFrameId_29603093,name=Frame_0,src=http://fuelnet.stg.mansfieldoil.com/,UseQuery:False]' timed out. Error: Wait for condition has timed out
InnerException:
System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:id=~fitFrameId_29603093,name=Frame_0,src=http://fuelnet.stg.mansfieldoil.com/,UseQuery:False]' timed out. Error: Wait for condition has timed out
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'6/10/2014 2:31:56 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'6/10/2014 2:31:56 AM' - Overall Result: Fail
'6/10/2014 2:31:56 AM' - Duration: [1 min: 51 sec: 528 msec]
------------------------------------------------------------
'6/10/2014 2:32:00 AM' - Test completed!








Susmita
Top achievements
Rank 1
 answered on 19 Jun 2014
1 answer
71 views
Hello,

I wanted to check whether I can have web-browser test steps and WPF application test-steps in the same test.  

I know that WPF application launched by the web-browser can not be hooked by using TestStudio.  But what if the WPF app is configured to be launched by .exe file.


Boyan Boev
Telerik team
 answered on 18 Jun 2014
3 answers
496 views
Is it possible to verify the URL of the current page?
Ivaylo
Telerik team
 answered on 17 Jun 2014
1 answer
33 views
Hi

What is the best way to do drag and drop on a tree? I did try to record the steps. But, it is not stable - sometimes it can drop to the right node; sometimes it can't.
Anyone can give me sample C# codes on doing that?

Thanks
Boyan Boev
Telerik team
 answered on 17 Jun 2014
3 answers
772 views
Hi Guys

Hopefully someone can clear something up for me.

I am trying to to a simple Assertion to confirm that two strings are the same.

I have a field on a form, I edit the form > enter a value > extract the text as a variable > save the changes
Then on the main form the updated value should be displayed > I used dev tools to get the ID of the field as its a Kentico control > then in code I want to assert that the two values are the same. if they are the same then the test is valid otherwise it should fail.

From my understanding, Assert.AreSame checks if the two objects are the same object and Assert.Equals just checks if the strings or whatever are the same.  Am I right?

See the code below:

Assert.AreSame(town, Find.ById("ctl00_ctl00_cphMain_cphMain_TownLabel").TextContent);

or

Assert.Equals(town, Find.ById("ctl00_ctl00_cphMain_cphMain_TownLabel").TextContent);

Does anyone have any ideas why my Equals assertion passes if it has two different values and if they are the same.

Any help would be much appreciated


Thanks

Michelle
Stephen
Top achievements
Rank 1
 answered on 16 Jun 2014
1 answer
70 views
Hi Team,

I would like to know about compatibility of Standalone tests across different product version of Telerik Test Studio. If we have recorded some of the tests using Standalone version and after sometime the new patch gets released and product version get updated and we install the updated product version or the updated runtime version then,

1. Will it execute the old test successfully without any issue? 
2. Does telerik automatically handles the test compatibility and convert the tests in compatible mode?
3. Do we need to perform any extra steps to run the test successfully?

Thanks,
Ashvin
Boyan Boev
Telerik team
 answered on 16 Jun 2014
1 answer
48 views
Hi All,

I am new to Test Studio and I am testing a popup based  website that works in the following flow:
1. Open IE browser (our website only works in IE) and enter URL.
2. Page opens with login/password fields
3. Enter credentials and hit Login button
4. The App opens in a popup.
5. Our whole application is popup based and the app works in that main popup, more popups appear when any buttons are clicked.
6. There are also light boxes in our App.

I just want to ask for now, does Test Studio support popups within popups? Does control automatically switch to new popup if already any button is clicked in a popup?
Please do let me know if I have added less information.
Cody
Telerik team
 answered on 16 Jun 2014
6 answers
133 views
I am doing load testing and just recently tired switching running the test from my local machine to running it from a virtual machine. Everything seems to run OK on the virtual machine, yet when I attempt to open the results of the Load Test, all I can see is the general results of the Goals set for the test on the Goals tab. There is no information on the dashboard tab and if I try to look at the Page Specific Metrics tab,Telerik hangs and the information on the page never loads. I am Using Test Studio Version 2013.2.1210.0. Is there a step that I missing in order to be able to view data from the test performed from a Virtual Machine?

Thanks,

Kathleen 
Cody
Telerik team
 answered on 13 Jun 2014
1 answer
92 views
Hello,
  We have noticed a large time difference from running the tasks locally and running the tasks on the Remote Execution server.  The small and medium tasks there seems to be a reasonable time difference that allows for the build server to communicate with the remote execution server.  However, the time difference for the large task is fairly significant.  This task is a 19 step task that loops through an excel file to enter information, one field from the excel file, onto the website.   My questions are:

1.   Has anyone else encountered this?
2.   Any suggestions on improving this time?

Thanks

** Locally Ran Tasks **

Small Task (1 task) – Log In
Start: 2:24
End: 2:24:43

Small Tasks (3 tasks) – Login x3
Start: 2:26
End: 2:26:58
End: 2:27:10
End: 2:28:35

Medium Task (1 task) – Log in and navigates around the page
Start: 2:25
End: 2:25:55

Medium Task (3 tasks) – Log in and navigates around the page x3
Start: 2:28
End: 2:29:26
End: 2:29:48
End: 2:30:12

Large Task (1 task)
Start: 2:47 PM
End: 3:48:20 PM
_______________________________________________________________

** Remote Execution Server **

Small Task (1 task) – Log In
Start: 11:12
End: 11:16

Medium Task (1 task) – Log in and navigates around the page
Start: 11:16
End: 11:20

Small Task (1 task) – Log In x3
Start: 11:21
End: 11:25:28
End: 11:25:43
End: 11:25:53

Medium Task (1 task) – Log in and navigates around the page x3
Start: 1:14
End: 1:19:12
End: 1:19:39
End: 1:19:58

Large Task (1 task)
Start: 2:40 PM
End: 5:11:08 PM




Cody
Telerik team
 answered on 13 Jun 2014
3 answers
232 views
Hi Team,

I'm trying to access excel sheet from test studio by using the code,

Microsoft.Office.Interop.Excel.Application mobjExcelApp = new Microsoft.Office.Interop.Excel.Application();

But it returns the error message as "Cannot find the interop type that matches the embedded interop type 'Microsoft.Office.Interop.Excel.Application'. Are you missing an assembly reference? "

I have added the .net assembly for Excel from the location "C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.Office.Tools.Excel"

Can you please tell me how to solve this issue ?

Thanks & Regards
Aneesh
Boyan Boev
Telerik team
 answered on 13 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?