Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

UI Test for Signature Capture

I want to know how I can write a UI test that will test my signature capture.

Thanks!

Best Answer

  • a_solo25a_solo25 Member ✭✭
    Accepted Answer

    @LeonLu So following your suggestion of using gestures, I just did the app.SwipeLeftToRight() which draws a line across my signature pad, allowing me to mimic some sort of input. I just needed to move through this step for my test flow.

Answers

  • LeonLuLeonLu Member, Xamarin Team Xamurai

    What is your operation to execute the signature capture? Such as a Signature Pad, you have the tap, drag and drop operations in your app.

    You should test these operation in your UITest.

    For these operation, you can achieve it with gestures
    For example, If you want to test the double click.You can achieve it with following code.

     app.DoubleTap(c=>c.Marked("save_button"))
    

    You can refer to this link.
    https://docs.microsoft.com/en-us/appcenter/test-cloud/uitest/working-with-gestures

  • a_solo25a_solo25 Member ✭✭
    Accepted Answer

    @LeonLu So following your suggestion of using gestures, I just did the app.SwipeLeftToRight() which draws a line across my signature pad, allowing me to mimic some sort of input. I just needed to move through this step for my test flow.

Sign In or Register to comment.