locked
UI Test for Signature Capture RRS feed

  • Question

  • User389019 posted

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

    Thanks!

    Thursday, September 12, 2019 8:11 PM

Answers

  • User389019 posted

    @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.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Friday, September 13, 2019 6:43 PM

All replies

  • User379860 posted

    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

    Friday, September 13, 2019 10:30 AM
  • User389019 posted

    @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.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Friday, September 13, 2019 6:43 PM