본문 바로가기

Detox react-native automation testing framework E2E (end to end) 테스트를 지원하는 React Native Javascript test framework. React Native이다보니 당연히 cross-platform을 지원함. 아래 예제 코드를 보아하니 Jasmine과 유사 ㅎ예제 코드describe('Login flow', () => { it('should login successfully', async () => { await device.reloadReactNative(); await expect(element(by.id('email'))).toBeVisible(); await element(by.id('email')).typeText('john@example.com'); await element(by.id('password')).. 더보기
4. 제어문 (Control flow statement) 1. 블록 구문 (Block statement)블록 구문은 구문들의 집합으로 중괄호로 그 범위를 정하며, 블록 구문은 일반적으로 함수, 객체 리터럴, 흐름 제어 구문에서 사용. // 함수 선언 function sum() { var a = 3; var b = 5; return a + b; } // 객체 리터럴 var obj = { x:'5', y:'6' }; 2. 조건문 (Conditional statement)조건문은 주어진 조건문이 참(true)인지 거짓(false)인지에 따라 실행될 구문들의 집합이며, if... else와 switch 가 있음. 2.1 if 문 조건문의 평가 결과에 따라 if 또는 else 블록에 있는 구문들이 실행 됨.// if ... else 조건문 var x = 5; if(x .. 더보기
4.4 Structure-based or white-box techniques (구조 기반 또는 화이트 박스 기법) Terms Code coverage, decision coverage, statement coverage, structure-based testing. BackgroundStructure-based testing/white-box testing is based on an identified structure of the software or system, as seen in the following examples: - Component level : the structure is that of the code itself, i.e. statements, decisions or branches.- Intergration level : the structure may be a call tree (a dia.. 더보기
3. Operator (연산자) 산술 연산자 (Arithmetic Operators)연산자 (Operator) 설명 (Description) + 덧셈 - 뺄셈 * 곱셈 / 나눗셈 % 나머지 ++ 증가 -- 감소 연산 대상이 모두 숫자인 경우 연산을 진행, 연산 대상에 문자열이 있을 경우 문자열을 연결.var x = 3; var y = 2; console.log(x + y); // 5 console.log(x - y); // 1 console.log(x * y); // 6 console.log(x / y); // 1.5 console.log(x % y); // 1 console.log(x++); // 3 선대입후증가 console.log(++x); // 5 선증가후대입 console.log(x--); // 5 선대입후감소 console... 더보기
1. HTML5 HTML5HTML5 (Hypertext Markup Language)는 html의 5번째 버전으로 마크업 언어. 웹 페이지의 내용(Content)과 구조(Structure)을 담당하는 언어로 태그를 통해 정보를 구조화 함. HTML 문서 hello - HTML5 문서 선언은 으로 시작.- HTML document는 2행부터 시작으로 사이에 위치.- 사이에는 document title, 외부파일 참조, metadata의 설정 등이 위치하며, 이 정보는 브라우저에 표시되지 않음.- 웹 브라우저에 출력되는 모든 요소는 에 위치. HTML5 기본 문법html 요소는 시작 태그와 종료 태그 그리고 태그 사이에 Content로 구성 되며, document는 요소(element)들의 집합으로 이루어짐. 어트리뷰트 어.. 더보기
React Native Navigation Splash React Native Navigation 사용 중 스플래시 구현할 때 참고 medium https://medium.com/@pqkluan/how-to-implement-splash-screen-in-react-native-navigation-ee2184a1a96 https://medium.com/handlebar-labs/how-to-add-a-splash-screen-to-a-react-native-app-ios-and-android-30a3cec835ae 요 medium를 참고하여 진행했었으나, java.lang.UnsupportedOperationException: Can't convert to color: type=0x1 에러가 출력 됨. 더보기
2. variable (변수) 변수 변수 : 프로그램이 어떤 값을 메모리에 저장해 두고 다시 사용하기 위한 공간.Var 키워드를 통해 변수를 선언 var 변수값 = 초기값; 변수 선언 시 초기 값을 지정하지 않을 경우, 값을 저장할 때 까지 그 변수는 undefined 상태.변수 선언 시 var 키워드 생략이 가능하나, Scope 문제가 발생될 수 있으므로 생략하지 않는 것이 좋음. 식별자 규칙1. 첫번째 문자는 [A-Z a-z _ $] 사용 2. 나머지는 [A-Z a-z _ $ 0-9] 사용3. 예약어는 사용 불가 (Ex. Var, navigator 등..) 값에 의한 데이터 타입 결정 Javascript는 값에 따라 데이터 타입이 결정되는 동적인 언어 var a; var b = 5; var c = '문자열'; console.log.. 더보기
4.3 Specification-based or black-box techniques (명세 기반 기법 또는 블랙 박스 기법) Terms Boundary value analysis, decision table testing, equivalence partitioning, state transition testing, use case testing. 4.3.1 Equivalence partitioning inputs to the software or system are divided into groups that are expected to exhibit similar behavior, so they are likely to be processed in the same way. equivalence partitions (or classes) can be found for both valid data and invalid data,.. 더보기