Forum Xamarin Test Cloud (Read Only)

Screenshot of Launch Screen

Hi,

Is it possible to take a screenshot during an application's start launch screen for a UITest?

The [SetUp] tag only calls after the app is done loading - after the launch screen.

Thanks

Tagged:

Answers

  • SimonMatherSimonMather GBMember

    Hi Cherubyx,

    I wanted to do the exact same thing so I did this by using the app.screenshot command immediately after the .startapp(); command.

    This then takes the screen shot of the app launch / start-up screen.

    So what I had was:

    [SetUp]
    public void BeforeEachTest ()
    {
    app = ConfigureApp
    .Android

                .DeviceSerial("XXXXX")
    
                .EnableLocalScreenshots()
                .ApkFile ("name-of-apk-file.apk")
                .StartApp ();
                app.Screenshot("App start-up");
    
        }
    
Sign In or Register to comment.