Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- 티스토리챌린지
- pythonautomation
- 스위프트
- Python
- 테킷앱스쿨
- 파이썬자동화
- 스위프트개발
- 다트
- iOS프로그래밍
- 테스트자동화
- SWIFT
- DART
- 플러터
- Swift5
- qaautomation
- ios개발
- dartlang
- Flutter
- testautomation
- QA자동화
- 다트언어
- playwright
- 다트기본문법
- 오블완
- robotframework
- 스위프트프로그래밍
- 테스트오토메이션
- 로봇프레임워크
- 야곰스위프트
- 다트기초문법
Archives
- Today
- Total
day_by_day
Resources Files 본문
id, pwd와 같이 모든 Test Case에서 사용하는 정보들은 resources file에 모아서 작성한다.
resource 파일과 test파일의 다른점 : 리소스 파일은 테스트 케이스 섹션을 갖지 않는다.
경로에 맞춰 settings에 Resources 폴더 위치를 작성한다.
- 장점: 로그 내용을 변경하고 싶을 때 Resource 파일만 변경하면된다.
(When I want to modify something log, I only modify resource file. )
#resources.robot
*** Settings ***
Library OperatingSystem
*** Variables ***
${my_var} my test variable
${second_var} this is second
@{List} test1 test2 test3 test4
&{DICTIONARY} username=testUser password=qwerty123!
&{DICTIONARY2} username=user2 password=secondpwd
*** Keywords ***
Log My Username
[Arguments] ${USERNAME}
Log ${USERNAME}
Log My Password
[Arguments] ${PASSWORD}
Log ${PASSWORD}
Log My Specific Username And Password
[Arguments] ${USERNAME2} ${PASSWORD}
Log My Username ${USERNAME2}
Log My Password ${PASSWORD}
#TestCase.robot
*** Settings ***
Documentation This is my first test case
Library OperatingSystem
Resource ../Resources/resources.robot
*** Test Cases ***
TEST
[Tags] Demo
Log My Specific Username And Password ${DICTIONARY}[username] ${DICTIONARY}[password]
Log My Specific Username And Password ${DICTIONARY2}[username] ${DICTIONARY2}[password]

'QA Automation > Robot Framework' 카테고리의 다른 글
Keywords Section (1) | 2024.05.06 |
---|---|
Variables, Lists And Dictionaries (2) | 2024.05.06 |
Command and logs (0) | 2024.05.01 |
Test data Section - settings, keywords, Test Cases 등 (2) | 2024.05.01 |
Robot Framework설치 / Test Automation Framework (2) | 2024.04.30 |