1

In my C# console solution, I have a coded UI project. I make a startup project to test the UI coded project. While I run my startup project in debug mode, I notice that numerous screenshots are being added in the debug folder of the startup project. I have attached a screenshot about the Debug folder. I want to disable this.
Anybody, could you please help me on how I can disable this so that no screenshots can't be stored in the debug folder or anywhere else?
Thanks in advance. NB.
I am using Visual Studio 2017 Enterprise and .Net version is 4.6.1

Example Screenshot:

example screenshot

9
  • Welcome to StackOverflow, you would recommend to read this [guide for Minimal, Complete, and Verifiable example](stackoverflow.com/help/mcve) and modify your question in order to help users to understand your problem. Commented Aug 30, 2018 at 16:25
  • 2
    I'd suggest that this is nothing to do with Visual Studio, and is more likely to be being done by whatever you are debugging, or something else that is already running on your machine. Commented Aug 31, 2018 at 5:48
  • 1
    @Richardissimo is right. For the sake of completeness, there should be a "TestResults" folder located at your "IonTest" project folder root. You can read up about how to prevent this folder taking up to much disk space: community.dynamics.com/crm/b/crmmitchmilam/archive/2013/04/21/… stackoverflow.com/questions/11864721/… Commented Aug 31, 2018 at 12:12
  • @PixelPlex, Thank you very much for your such a brilliant idea. I will implement that. Commented Sep 3, 2018 at 15:35
  • @Richardissimo, screenshots are also being taken in the release build. Commented Sep 3, 2018 at 16:03

1 Answer 1

0

Try creating an app.config file in your project structure and add the following :

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
 <system.diagnostics>
  <switches>
   <add name="EqtTraceLevel" value="0" />
  </switches>
 </system.diagnostics>
</configuration>

More readings here: https://learn.microsoft.com/en-us/visualstudio/test/analyzing-coded-ui-tests-using-coded-ui-test-logs?view=vs-2017

From Thomas Bouman's Post, the possible values for EqtTraceLevel: "0 is off, 1 for errors, 2 for warnings, 3 for info and 4 for verbose."

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.