This is a migrated thread and some comments may be shown as answers.

Test failing

2 Answers 63 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sławomir
Top achievements
Rank 1
Sławomir asked on 15 May 2012, 10:12 AM
Hi, I'm using Telerik Testing Framework and have problem with some tests that's fail. When I run this tests from with TFS build then some tests doesn't pass. When I login on machine that run tests and run them from console then all test pass. I notice that when I minimize the RDP some test's failed during time when RDP was mimimized. I have also noticed that when test run from TFS build make capture there is only black place. What's the reason of that behavior?

2 Answers, 1 is accepted

Sort by
0
Jonas
Top achievements
Rank 2
answered on 15 May 2012, 10:25 AM
Hello Slawomir,

I think you need to be logged on to the computer when the test is running. Explanation why the TFS build dosn't work.

"Leave the machine running and logged into the account but locked. If your tests perform direct desktop interaction (e.g. Desktop.Mouse.Click, Window.GetBitmap, etc) instead of locking the machine leave your machine logged on and displaying the desktop all the time. This means you'll have to disable the screensaver and never lock the computer "

I think you can instead of minimize the RDP window just close it. But don't logoff. I always have it in the background and that works nice, or if i close the RDP window.
A good help about this issue can be found here : link

Best Regards
Jonas
0
Anthony
Telerik team
answered on 16 May 2012, 02:53 PM
@Slawomir

Jonas is correct; certain tests require use of the mouse/keyboard and an interactive desktop. See here for more information and here for a potential work-around.

@Jonas
Thank you for your assistance. I've updated your Telerik points accordingly.

Regards,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Sławomir
Top achievements
Rank 1
Answers by
Jonas
Top achievements
Rank 2
Anthony
Telerik team
Share this question
or