-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix cake scripts to work locally #24111
Conversation
@@ -0,0 +1,13 @@ | |||
#load "../cake/helpers.cake" | |||
|
|||
if (!IsCIBuild() && GetBuildVariable("workloads", "notset") == "notset") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For UI tests lets just default to global workloads for now. I think we should just make this change everywhere. This isn't really a scenario that most users care about anymore.
eng/devices/ios.cake
Outdated
var simXH = sims.Where(s => s.Name.Contains(simulatorName) && s.Name.Contains(iosVersionToRun)).FirstOrDefault(); | ||
if (simXH == null) | ||
throw new Exception("No simulator was found to run tests on."); | ||
{ | ||
// if the device is already installed on this system then xharness won't create a new one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code is a little bit awkward.
I found that if you already have a device that's "iPhone Xs 17.2" installed. Xharness won't create a new device and then this code just fails because it can't find something called "Xharness"
Is there a way to get the UDID from the xharness script above?
483a5b0
to
b2f7f9f
Compare
Just tested this with Android with the commands provided in the OP and it just worked! 🤯 |
b2f7f9f
to
c0abbf9
Compare
/rebase |
c0abbf9
to
46cd5d1
Compare
Failing windows device test is unrelated |
Description of Change
The UITest scripts aren't really working so well when ran locally. This PR fixes them and attempts to make it so they are overall much easier to run.
I've made comments to the various parts of the changes with thoughts/questions
Basically, this PR gets us to the point where you can do
Additional thoughts
VerifyScreenshot
code to detect the right device when running fromtest explorer
. TheDevice Name
doesn't really get passed up into Appium. A bunch of the capabilities get passed in, so, maybe we can just make sure the viewport and various other values match with what our screenshots are using