i18n tool for RF web testing
Project description
Internationalization Testing (i18n)
Library for Robot Framework automated web testing which support internationalization.
Introduction
In the past, the test object of one acceptance test script based on Robot Framework was often limited to web page in one language. However, nowadays a web page may have multiple language versions for people live in different countries. Therefore, tester often need to write more repetitive test scripts, and the cost of testing will also increase.
So this library can allow a same test script run on different languages' websites.
By the way, this is the 2nd version of i18n. See my repository.
If you want see the 1st version,please go to ChuGP's repository.
Installation
-
With pip
pip install RF-i18n-tool
How to use
- Set Additional Robot Framework arguments: (RED->Window->Preferences->Default Launch Configurations)
If you want to use the i18n default JSON language files:
-d out -L debug --listener %YOUR_PYTHON_PATH%/Lib/site-packages/i18n/listeners/I18nListener.py:YOUR_LOCALE:i18njson
Else if you want to use your own JSON language files:
-d out -L debug --listener %YOUR_PYTHON_PATH%/Lib/site-packages/i18n/listeners/I18nListener.py:YOUR_LOCALE
- note:
Your language files should follow the structure:
YOUR_PROJECT_DIR/languageFiles/YOUR_LOCALE(ex:zh-TW)/xxxYOUR_LOCALE.json
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for RF_i18n_tool-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0722cd7275e330bce5a4f9b8c79a3e071ca40e91381812da179475b6e391b9d |
|
MD5 | 8402c3c0d26126b6375e7e880fa45bf5 |
|
BLAKE2b-256 | 65ba7ed7a8d8436f45fd24434fa92d5f39db3f107fcf77d5b4a6a342f5703433 |