Skip to content

Commit

Permalink
이미지 추가 및 업데이트.
Browse files Browse the repository at this point in the history
  • Loading branch information
happyEngineer committed Jan 25, 2016
1 parent b3d8413 commit 14e348f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions day2_User_Interface_Testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ UI 테스트는 다른 크기의 장치 문제에 대한 뛰어난 해결책을

이번 예제의 프로젝트 셋업은 정말로 간단하지만, Xcode7 에서 UI 테스트가 어떻게 동작하는지를 설명하는데는 충분합니다.

\< 그림 \>
![][image-2]

스위치와 상세 뷰 컨트롤러를 연결하는 버튼을 포함하는 메뉴 뷰 컨트롤러가 있습니다. 스위치가 “off” 상태였을때, 버튼은 비활성화 되어야 하며 네비게이션 기능은 불가능 해야 합니다. 상세 뷰 컨트롤러는 라벨의 값을 증가하는 간단한 버튼을 포함하고 있습니다.

Expand All @@ -54,7 +54,7 @@ UI를 설정하고 동작하게 되면, 우리는 코드의 어떤 변경도 기

함수를 정의 했다면, 우리는 마우스 커서를 괄호 안으로 이동하고 Xcode 창의 맨 아래에 있는 녹화버튼을 누릅니다.

\< 그림 \>
![][image-3]

이제 응용 프로그램이 실행 될것입니다. 메인 뷰 컨트롤러의 스위치를 “off”로 바꾸고 “View Detail”버튼을 누릅니다. 아래가 내부에 보여야 합니다.

Expand Down Expand Up @@ -127,18 +127,18 @@ UI를 설정하고 동작하게 되면, 우리는 코드의 어떤 변경도 기
** WHEN RECORDING GOES WRONG **
녹화를 하는 동안 당신이 요소를 누를때, 때때로 올바르지 않은것 처럼 보이는 코드가 생성되는 것을 알게 될 수도 있습니다. 이것은 보통 당신이 접근성이 표시되지 않는 요소들과 상호 작용할때 발생한다. 만약 이런 경우 Xcode의 Accessibility Inspector를 사용하여 찾을 수 있습니다.

\<그림 \>
![][image-4]

만약 당신이 “CMD+F7”을 쳤고 그것을 실행 했다면, 시뮬레이터에서 당신의 마우스로 요소 위를 이동하면 커서 아래에 있는 요소에 대한 포괄정인 정보를 확인 할 수 있습니다. 이것은 왜 접근성이 요소를 찾지 못했는지에 대한 실마리를 제공할 것입니다.

일단 당신이 이슈를 확인 했다면, 인터페이스 빌더를 열고 “identity inspector”에서 접근성 제어판(Accessibility panel)을 찾을수 있습니다. 이것은 당신이 접근성을 활성화 하거나, 힌트, 식별자 및 특성 레이블을 설정 할 수 있습니다. 이것들은 당신의 인터페이스에 접근할 수 있는 접근성을 활성화 할 수 있는 강력한 도구 입니다.

\< 그림 \>
![][image-5]

** WHEN A TEST FAILS **
만약 테스트가 실패하고 당신이 그 이유를 확실하게 알지 못하는 경우 그것을 수정하는 몇가지 방법이 있습니다. 우선 당신은 Xcode의 Report Navigator의 테스트 리포트를 확인할 수 있습니다.

\< 그림 \>
![][image-6]

당신이 이 화면을 띄우고 테스트의 특정 단계 위로 마우스를 이동 시키면 테스트 작업의 오른쪽에 작은 눈 모양의 아이콘이 표시됩니다. 만약에 당신이 이 눈모양을 클릭하면 당신은 정확한 그 시점의 앱의 상태의 스크린 샷이 표시됩니다. 이것은 당신이 시각적으로 당신 UI의 상태를 확인할 수 있도록 하며, 정확하게 무엇이 잘못 되었는지 찾을 수 있습니다.

Expand All @@ -152,4 +152,9 @@ Xcode의 UI 테스트의 가장 새로운 기능 중에 하나는 지속적인
## Further Reading
Xcode의 새로운 UI 테스트 기능에 대한 보다 많은 정보는 WWDC session 406, UI Testing in Xcode을 보기를 권합니다. 당시은 아마 Testing in Xcode Documentation과 Accessibility for Developers Documentation에 대해서도 흥미를 느낄 것입니다.

[image-1]: ./images/Day2-1.png
[image-1]: ./images/Day2-1.png
[image-2]: ./images/Day2-2.png
[image-3]: ./images/Day2-3.png
[image-4]: ./images/Day2-4.png
[image-5]: ./images/Day2-5.png
[image-6]: ./images/Day2-6.png
Binary file added images/Day2-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Day2-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Day2-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Day2-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Day2-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 14e348f

Please sign in to comment.