UI Testing a SwiftUI application in Xcode | Advanced Learning #18

preview_player
Показать описание
Let's jump into UI testing! In this video we will build a basic UI for an application and then learn how and why we perform UI testing on our iOS applications. Testing helps us ensure that our code is always working exactly as expected!

🤙 WELCOME BACK 🤙

Рекомендации по теме
Комментарии
Автор

It is the first time I learn UI Tests and I am glad you have been my captain on this trip, thanks a lot for this great tutorial!

Pepe_the_raver
Автор

This and the UI Testing videos are really well done! I bought the book from another hero of mine, Paul Hudson at Hacking With Swift, and have already read most of it! Nick, you really got me interested in TDD and would love to see a SwiftUI-based video on Unit Testing done in a TDD methodology. Thanks so much!

KimbrellBrad
Автор

Once again, programming gold. This was a great introduction to UI testing.

lincolndickerson
Автор

Your videos are absolutely great! Very direct but you also explain. I have learned a lot.

lionsctn
Автор

Your tutorial is very well structured and easy to understand. I read lots of Testing tutorials but could not get clear picture but now i understand very well. Thank you Nick

manishparihar
Автор

Thank you very much Nick, I think you are the best teacher i have ever seen. Hope to see new contents… thanks thanks thanks…

habercim
Автор

Great video as always! Around 34 minutes there is a dead zone that you forgot to edit out.

MarkVolkmann
Автор

I think much better way to handle the alert not existing test would be to create expectation of not existing and then to wait for expectation with timeout. That way you finish the waiting period as soon as the expectation becomes true, which is what we want. Waiting for 5 seconds to confirm something does not exist seems like a small deal when you have 1 or 2 test, but I can imagine that a whole testing suite having this code will quickly add up.

tomaszkubiak
Автор

One funny thing I noticed is that sometimes the simulator keyboard just won't pop up despite tapping on the textfield programmatically and that causes the test function to fail as it can't find any keyboard keys to tap on. Luckily manual keyboard toggle (Cmd+K) solves the issue for a long time and then it responds as it should even to programmatic tapping. Another great video, thanks you.

Voeris
Автор

at 52:30 you mentioned that the waitForExistence call returns immediately if the target already exists. If that is indeed the case, then the call to waitForExistence you made at 53:48 should not be of any help (if it exists it returns immediately and if it doesn't you're waiting a full 5 seconds for nothing). If the test does pass (which it does) it means that you don't need any wait at that point, and you could just go ahead and run the exists check.

vahidtavana
Автор

At time stamp 55:24 I think waitForExists is a little chance on something going away. Perhaps checking waitForExists then isHittable on an element that will be in view after the alert has disappeared would be better.

lincolndickerson
Автор

You should have an statue, all your videos are awesome, since first one to last one

alancasasarevalo
Автор

You’re an awesome teacher, Nick!
Could you do some videos on using MapKit, please? 🙏

alexsmithers
Автор

Ummm…. At 1:23:29… “boolExpr ? true : false” can just be “boolExpr”

MikeCargal
Автор

I skipped this video a year ago. I guess, and I came back and watched both UnitTesting and UITesting because I need these skills for applying jobs. Most of the job descriptions asks for familiarity with XCUnitTests and UITests. ❤️

kd_techniques
Автор

Thank you for the helpful UI Testing videos! I'm trying to refer to the UI element of the NFC session dialog or alert in my test, but I haven't been able to do so successfully. Do you have any tips or suggestions that could help me find and interact with this element? Thank you in advance for your help!

vishallandepatil
Автор

I love your videos you made a really great job 👏 . I want to ask you if you have any good videos resources on uikit

farescherni
Автор

Another awesome video. Thank you, Nick.

stanleyejechi
Автор

Do you know if it's possible to check views' colors and texts? I'm considering having those as VM's properties and assert that, OR use snapshot tests...

HenriqueValcanaia
Автор

Hello, is is possible to read the iOS simulator or the real device console logs through XCUI test script, just to validate few things using the console log prints?

muraliagreeya
welcome to shbcf.ru