Skip to content
This repository has been archived by the owner on Apr 30, 2022. It is now read-only.

Connivence capability for iOS: Auto add "udid"="auto" when "DeviceName" ="iPad" or "iPhone" #459

Open
jacob-maristany opened this issue Aug 25, 2020 · 5 comments
Assignees

Comments

@jacob-maristany
Copy link

One thing that could really help better automate our project is for MAQS to automatically add the capability key/value "udid"="auto" whenever we target a real device ("DeviceName" = "iPad" or "iPhone"). Aside from the "DeviceName" key itself, this is the only other key we have add or remove (comment/uncomment) when switching tests between real devices and the simulator.

@jacob-maristany
Copy link
Author

@TroyWalshProf , although, I realized I could solve this in the same way that you mentioned in #412

@TroyWalshProf
Copy link
Contributor

@jason-edstrom - Mind taking a look at this?
I think this would be easily doable, but not sure what we may end up breaking by doing so.

@jacob-maristany
Copy link
Author

This is effectively what I'm doing now:

    [SetUpFixture]
    public class TestLifeCycle
    {
        [OneTimeSetUp]
        public void AssemblyInitalize()
        {
            string deviceName = Config.GetValueForSection(ConfigSection.AppiumMaqs, "DeviceName");
            if (deviceName == "iPad" || deviceName == "iPhone")
            {
                Config.AddTestSettingValues(new Dictionary<string, string> { { "udid", "auto" } }, ConfigSection.AppiumCapsMaqs, true);
            }
            ...

@TroyWalshProf
Copy link
Contributor

@jacob-maristany - The potential issue is that Appium can be used to do App, Web or Hybrid testing.
So this may work great for App tests but may break Web and Hybrid.

@jacob-maristany
Copy link
Author

@TroyWalshProf Understood. I'm happy with the workaround I have and understand that it's incredibly specific. I've only left the issue open thus far in case you did want to pursue the idea further.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants