CuriousProgrammer
CuriousProgrammer

Reputation: 1

<Xamarin> How to turn off making screenshots (app.Screenshot()) on Test Cloud?

Is there any way to turn off screenshots (app.Screenshot()) on Test Cloud without removing the code?

I want to turn off screenshots on demand, preferably with some command line parameter i.e "testcloud.exe --someparameter".

Is there any way to do this?

Upvotes: 0

Views: 152

Answers (1)

LeRoy
LeRoy

Reputation: 4466

In your AppInitializer file, you can remove .EnableLocalScreenshots() for each platform

    if (platform == Platform.Android)
    {
        return ConfigureApp.Android
            .EnableLocalScreenshots()
            .StartApp();
    }

Upvotes: 0

Related Questions