UI Test for Signature Capture

a_solo25a_solo25 ✭✭Member ✭✭

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

Thanks!

Best Answer

  • a_solo25a_solo25 ✭✭ ✭✭
    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 Xamurai 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.