Which library to use for which test?
Tip |
---|
Enter the name of the library in the test step, as you would enter a keyword, and Alithya GoTest will display the keywords in that directory. |
Websites and Desktop Applications
Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Mobile Applications
Expand | ||
---|---|---|
| ||
For tests concerning mobile applications:
|
Databases
Expand | ||
---|---|---|
| ||
|
API
Anchor | ||||
---|---|---|---|---|
|
Expand | ||
---|---|---|
| ||
For testing on APIs with REST:
|
Anchor | ||||
---|---|---|---|---|
|
Expand | ||
---|---|---|
| ||
For tests on APIs with SOAP:
|
Data
Expand | ||
---|---|---|
| ||
You need to test a contact form, but you have no data. You can use FakerLibrary to generate random data. Example of keywords:
|
Expand | ||
---|---|---|
| ||
The String Library. Example of a keyword:
Keyword: String (REST API - Asserts String Value) |
Expand | ||
---|---|---|
| ||
Collections: to manage lists. For example:
|
Expand | ||
---|---|---|
| ||
DateTime Exemple de keyword :
Get a datetime object for a date between January 1, 001 and now :param tzinfo: timezone,
Gets a DateTime object for the current month.
Get a DateTime object based on a random date between two given dates. Accepts date strings that can be recognized by strtotime(). param start_date Defaults to 30 years ago param end_date Defaults to "now" param tzinfo: timezone,instance of datetime.tzinfo subclass example DateTime('1999-02-02 11:42:52') return DateTime
Gets a DateTime object for the current century. param before_now:include days in current century before today param after_now:include days in current century after today param tzinfo:timezone, instance of datetime.tzinfo subclass example DateTime('2012-04-04 11:02:02') return DateTime |
Handling of Files
Expand | ||
---|---|---|
| ||
For a JSON file, use the JSONLibrary. Example of a keyword:
|
Expand | ||
---|---|---|
| ||
To read and write CSV files from Alithya GoTest, use the CSVLibrary. Example of keywords:
· Empty CSV File & Append to CSV File Allows for the creation of a new empty CSV file and the appending of the CSV data to a file. |
Expand | ||
---|---|---|
| ||
To read and write XML files from Alithya GoTest, use the XML library. Example of a keyword:
· Get Element Text On a parsed XML variable, obtains the element's Text based on the requested XPath. |
SSH/FTP/TELNET Transfers
SSHLibrary
Expand | ||
---|---|---|
| ||
· Put File Uploads a file to an SSH/SFTP server. |
FtpLibrary
Expand | ||
---|---|---|
| ||
The following keywords are for FTP use without an SSH. Ftp Connect Enables the connection to a standard FTP server. Ftp Close Closes the connection to an FTP server. Dir (FTP) Allows you to get a list of files and folders in the current FTP folder. Upload File (FTP) Uploads a file from Alithya GoTest's temporary folder to the FTP server. Download File (FTP) Downloads a file from the FTP server to Alithya GoTest's temporary folder. Dir Names (FTP) Displays a list of the FTP files in the current folder in the form of a "List" variable. Rename & Delete (FTP files) The keyword "Rename" of the FTPLibrary renames a file on the FTP. The keyword "Delete" of the FTPLibrary deletes a file on the FTP. Pwd & Cwd (FTP folders/directories) The keyword "Pwd" allows you to know the Path to Working Directory of a folder on the FTP. The keyword "Cwd" allows you to know the Change Working Directory of a folder on the FTP. Mkd & Rmd (FTP folders/directories) The keyword "Mkd" allows you to make a directory (thus a new folder) on the FTP. Meanwhile, the keyword "Rmd" allows you to remove a directory (thus remove folder) on the FTP. Send Cmd (Advanced FTP commands) Allows you to send FTP-specific advanced commands. See https://en.wikipedia.org/wiki/List_of_FTP_commands for a description of the FTP commands. |
Telnet
Keyword: Login, Open Connection, Close Connection, Read, Write, Execute Command
Librairie | Description |
A library providing dialogs for interacting with users. Keyword example: Get Selection From User | |
A library for running processes. Keyword examples: Get process Id, Is process running | |
Keyword: Capture Page Screenshot: During website testing, this takes a screenshot of the current browser page and adds it to the log. | |
Checkout, clone, pull | |
Map to Network; Unmap from Network |