Best Practices for User Interface Automation | The Xamarin Show

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 พ.ย. 2024

ความคิดเห็น • 17

  • @dsuess
    @dsuess 5 ปีที่แล้ว +2

    Woot! Woot! James is back in the house

  • @udayragi8651
    @udayragi8651 4 ปีที่แล้ว +1

    Nice video...Is there a way to create Test Suite and integrate that too appCenter CLI for distributed testing

  • @vishnuprakash7720
    @vishnuprakash7720 5 ปีที่แล้ว

    I am getting the error “Unable to determine the simulator version for (UDID of mobile) “
    Steps Followed

    1-Added the ENABLE_TEST_CLOUD code in AppDelegate.cs and added the iOS project reference to the UI Tests
    2-Selected the IOS Project à Debug|iPhoneSimulator à iPhone 11 iOS 13.0
    3-Tried to debug the tests
    4-At the line return ConfigureApp.iOS.DeviceIdentifier(“UDID”).AppBundle(“Path of .app”).StartApp(); getting the above mentioned error.

    Can you help me to solve the above problem, i am facing this problem and not able to resolve from past 30 days. Any help will be appreciated. Thank you.

  • @effectiveapps6934
    @effectiveapps6934 3 ปีที่แล้ว

    Why don't you use AutomationIds instead of picking out some ids from the screen? AutomationIds will be the same between platforms and we end up with less logic in our UiTests.
    PS: Great that you mentioned AutomationIds at the end :-)

  • @juleswombat5309
    @juleswombat5309 5 ปีที่แล้ว

    This is not how my Xamarin UI Tests project got configured. The UI test template generates a Project with AppIniitializer.cs and Test.cs only.
    I was hoping that there would be some clues on where all the log files get stored. How I can capture Test Log Files Screenshots to a obvious location. (The documentation suggest use of AndroidAppConfigutor class. But no examples of its use in AppInitializer are provided. So its all much too awkward to use.

  • @jf9316
    @jf9316 5 ปีที่แล้ว

    How can I use the alias Query to get the text from the query?
    e.g:
    using Query = System.Func;
    Query textA;
    Query textB;
    Query btnC;
    public examplePage(IApp app)
    {
    textA = c => c.Marked("textBlock1")
    textB = c => c.Class("FormsText").Index(1)
    btnC = c => c.Marked("buttonId")
    }
    I want to return the text string from the textblock or other elements using alias query somehow.
    Is this possible? Something like:
    public string txtBlockOne() => textA.Text;
    or
    public string txtBlockTwo() => textB().Text; Note this example asks for AppQuery arg but no idea what to pass it

    • @IAMBakker
      @IAMBakker 5 ปีที่แล้ว

      var text = app.Query(textA)[0].Text

  • @tyrellandersen8649
    @tyrellandersen8649 5 ปีที่แล้ว +4

    They must be trolling us! Programmers don't use a light themed IDE!

    • @mwardell18290
      @mwardell18290 5 ปีที่แล้ว

      Yes in Xamarin it is true, however, WPF Developers usually Do - we have preview that actually works and it works best in light

    • @JesusAnguloGasco
      @JesusAnguloGasco 5 ปีที่แล้ว

      @@mwardell18290 they do when the are presenting ;)

    • @seananderson127
      @seananderson127 4 ปีที่แล้ว

      Blue (Extra Contrast) ftw

  • @dtienloi
    @dtienloi 6 ปีที่แล้ว +1

    👍

  • @Techmonk22
    @Techmonk22 4 ปีที่แล้ว

    Good