functional test case design and tool support for the...

50
Functional test case design and tool support for the Automotive industry

Upload: nguyendiep

Post on 24-Apr-2018

215 views

Category:

Documents


1 download

TRANSCRIPT

Functional test case design and tool support for the Automotive industry

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

TESTONA 다운로드

홈 페이지 주소 : www.testona.net

• TESTONA 홈 페이지에 접속 후 Webshop 카테고리에서 원하시는 TESTONA 에디션을 다운로드 하시기 바랍니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

설치

• Setup 파일을 더블 클릭하여 설치를 진행합니다.

• 설치가 완료되면 라이선스를 받기 위한 사용자 정보 등록을 진행합니다.

- 사용자 정보 등록 팝업 -

• 사용자 정보 등록 팝업에서 간략한 개인 정보를 등록한 후 파란 박스 안

의 ‘Get License’ 또는 ‘Get License by Link’를 클릭하면 등록된 개인 메

일로라이선스 키가 수신됨을 확인할 수 있습니다.

- 링크된 주소의 라이선스 키 발송 메시지-

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

- 라이선스 키 수신 메일 -

• 라이선스 파일을 다운로드 하여 TESTONA 설치 디렉터리에 저장하시기 바랍니다.

- TESTONA 설치 디렉터리 -

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

Functional test case design and tool support for the Automotive industry

분류 트리 설계

• File -> New Classification을 선택하고 Diagram에 해당 파일의 이름과 저장 경로를 입력합니다.

- Diagram -

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• Edit 또는 Properties의 Core를 사용하여 각 노드의 이름을 변경할 수 있습니다.

• 상위 부모 노드(Parent node)에서 오른쪽 마우스

를 이용하여 단계를 형성합니다.

- Core를 사용한 이름 변경 - - Edit을 사용한 이름 변경 -

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 생성한 Composition 노드에서 오른쪽 마우스를

이용하여 Classification 노드를 첨가합니다.

• Classification 노드에서 Class 노드를 첨가합니다.

• Arrange All을 사용하여 트리 요소들을 명확하게

배치합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• Composition 이 상위 단계이며 Composition > Classification > Class 단계의 순서로 테스트 설계를 진행합니다.

- 완성된 테스트 설계 -

항목 대상

Composition 시나리오

Classification 컴포넌트 환경

Class 기능 상태

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 테스트 설계가 완성되었으면 붉은 박스에 오른쪽 마우스를 이용

하여 새로운 테스트 케이스를 생성합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 생성된 테스트 케이스의 매트릭스에 실행할 부분을 표기합니다.

• Properties의 Description 레이아웃에 기대결과를 기입하여 해당 테스트 케이스 작성을 완성합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 또 다른 테스트 케이스를 생성하여 테스트를 진행합니다. (Avoid Redundancy)

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 프로그램 하단에 위치한 Properties에서는 각 노드와 테스트 케이스의 설정 및 정보 확인이 가능합니다.

- 테스트 케이스의 Properties - - 선택된 노드의 Properties -

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 프로그램 왼쪽에 위치한 Outline에서 임의의 노드를 선택하면 트리 구조와 Properties에서 선택된 노드의

위치와 특징을 확인할 수 있습니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

종속성 규칙 정의 및 테스트 케이스 검증

• Tools의 Dependency Rules…를 선택하여 새로운 Dialog를 띄웁니다.

- Dependency Rules dialog -

종속성 규칙은 테스트 케이스의 부조합을 방지하고 모든 테스트 케이스의 전제 조건을 보장하기 위해 사용됩니다. 또한 자동 및 수동으로 생성된 테스트 케이스를 확인하고 일관적인 규칙이 적용된 테스트 케이스를 자동으로 생성합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 붉은 박스의 New Logical Rule을 클릭하여 새로운 규칙을 생성합니다.

• 규칙 이름을 정의하고 OK를 클릭하면

Dependency Rule Editor dialog가 나타납니다.

- Dependency Rule editor dialog -

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• Dependency Rule Editor dialog에서 Operator(논리식)를 선택하고 적용할 Class를 드래그합니다.

• OK를 클릭하면 Dependency Rule dialog에 새로운 규

칙이 생성됨을 확인할 수 있습니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 생성된 규칙은 수정, 활성화, 삭제가 가능하며 이 규칙을 사용하여 테스트 케이스를 자동으로 생성할 수 있습니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• Rule Checker를 활성화 합니다.

• Rule Checker를 활성화 하므로써 Dependency를 조사합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 규칙을 위반한 케이스는 빨간색, 규칙을 준수한 케이스는 녹색으로 플래그됩니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

조합 규칙을 사용한 테스트 케이스 자동 생성

• Tools의 Generate Test Cases…를 선택하여 Dialog를 띄웁니다.

- Test case generation dialog -

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• New를 클릭하여 Dialog를 띄우고 규칙 이름을 입력 후 ‘OK’를 클릭하여 Test case generation dialog로 돌아갑니다.

- Short dialog -

- Test case generation dialog -

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• Operators를 사용하여 규칙을 생성합니다.

- Test case generation dialog -

• Pairwise testing : 커버해야 할 기능적 범위에 비해 상대적으로 적은 양의 테스트 세트를 구성하는 테스트 방법입니다.

2개 요소의 모든 조합을 다루어 테스트를 하는데 필요한 각 값들이 다른 파라미터의 값과 최소한 한번씩은 조합을 이루게 됩니다.

• 예제의 순서 : 1. Pairwise 선택 2. Classification 드래그 3. Comma 선택 4. Classification 드래그

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• Apply를 클릭하여 규칙 구문을 체크한 후 Generate를 클릭하여 Pairwise기법이 적용된 테스트 케이스를 생성합니다.

- 튜플 생성 -

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• Pairwise 조합 테스트 케이스가 생생됨을 확인할 수 있습니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 이 밖에도 Equivalence, Prioritize, Sequence가 적용된 테스트 케이스를 생성할 수 있습니다.

- Equivalence Class Generation - - Sequence Generation -

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• Classification의 가중치를 설정합니다. (각 Item의 Occurrence, Error, Cost 가중치 합이 1이 되도록 설정합니다.)

최적화 된 테스트 케이스 생성 (Prioritize)

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• Test case generation dialog를 띄우고 Prioritized 탭으로 진입합니다.

• 최적화 하고자 하는 조합과 가중치 아이템을 선택하고 Generate를 클릭합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 가중치 적용으로 생성된 테스트 케이스 그룹에서 오른쪽 마우스를 사용하여 Optimize Dialog를 띄웁니다.

• Optimization dialog에서 최적화된 테스트 케이스와 가중치가 적용된 커버리지 내역을 확인할 수 있습니다.

- 3개의 테스트 케이스로 92.3% 커버리지 확보-

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

- 최적화 된 테스트 케이스 생성 -

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• Classification Properties의 Allowed Arcs 탭으로 이동합니다.

테스트 케이스 플로우 생성 (Sequence)

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 오른쪽 마우스를 이용하여 Classification의 하위 노드인 Class의 상태 전이 흐름을 도식화합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• Test case generation dialog를 띄우고 Sequence 탭으로 진입합니다.

• 생성 하고자 하는 상태, 조건 범위와 Create Transitions를 체크하고 Generate를 클릭합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 상태 전이 흐름과 상태, 조건 커버리지가 적용된 테스트 케이스 플로우가 생성됨을 확인할 수 있습니다

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

테스트 케이스 조사

• Tools의 Inspector를 선택합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 프로그램 하단에 Problems 탭이 생성되며 조사 내역을 확인할 수 있습니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

테스트 결과 표시

• 테스트 케이스 레이아웃에서 오른쪽 마우스를 사용하여 Test Result 열을 추가합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 테스트 케이스 레이아웃 안에 TestResult 열이 생성되며 아이콘을 사용하여 수행 결과를 표시합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

테스트 평가

• Tools의 Test Evaluation을 선택합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 프로그램 하단에 Test Evaluation 탭이 생성되며 Evaluate Test Items를 클릭하여 테스트 평가 내역을 확인할 수

있습니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

테스트 커버리지

• Tools의 Test Coverage를 선택합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 프로그램 하단에 Test Coverage 탭이 생성되며 Coverage Rule을 선택하여 현재 수행되는 테스트 스위트의 커버리지 내

역을 확인할 수 있습니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

Import

• TESTONA Professional은 CTA, Excel, MindMap 파일의 Import 기능을 지원합니다.

• 예) Excel Import

File -> Import를 선택합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• Import Dialog에서 Excel을 선택하고 Next를 클릭합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• Import하고자 하는 Excel File과 Sheet를 선택하고 Next를 클릭합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• Layout을 선택하고 Next를 클릭합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 새로운 파일 생성 혹은 기존에 존재하는 파일에 Import가 가능합니다.

• 원하는 Import Target을 선택 후 Finish를 클릭합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

• 기존 파일에 테스트 케이스가 Import됨을 확인할 수 있습니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

Export

• TESTONA Professional은 다양한 형식의 파일로 Export가 가능합니다.

Functional test case design and tool support for the Automotive industry

www.sta.co.kr www.sten.or.kr

- Image 형식 - - PDF 형식 -

제품 및 구입 문의

authorized reseller

자동화솔루션사업팀 / 컨설팅사업본부 전화 070-7864-7721 대표 이메일 [email protected]

Functional test case design and tool support for the Automotive industry