Xitode UITest Record Button Disabled

Has anyone seen this before? I cannot run UITests because the button is disabled. I did not find any help on the Internet. I deleted and added a new test target, restarted Xcode and deleted the received data. None of them worked, and I have no idea what to try next.

+4
source share
8 answers
You have to create a new target in your project.
Steps:
1) File> New> Target
2) Select in left box: iOS> Test
3) In right box: iOS UI Testing Bundle
4) Run your aplication
5) Record your actions
6) Make assertions
+8
source

, /.

> , . ( , ).

+2

~/Library/Developer/Xcode/DerivedData/, , Xcode , . , , , , . , XCUITest.

+1

~/Library/Developer/Xcode/DerivedData/ xcode .

0

, , .

  • , .
  • XCTFail ("") ( )
  • , .
  • XCTFail ("") .
0

, UI .

0

, . , , ( ), .

You may have other failed tests in your application, but not in a file that is active in Xcode.

In Xcode 9.0

0
source

Click inside the test function. You must first select a testing method. Usually, when the button is not active, this means that xcode does not know which test to execute rec.

0
source

Source: https://habr.com/ru/post/1617488/


All Articles