/
Libraries and Functionalities

Libraries and Functionalities

Functionalities

Import/Export

There are new ways of importing projects and managing conflicts on combined keywords and remote libraries.
Depending on the context and the type of component imported, you will be offered options for replacement, import without replacement, or creation of a new version of this component.
You now control what is imported and how it will fit into the destination project for each of the components.
It is also possible to export and import projects in batches.

Audit Log 

The audit log feature makes your life easier by allowing you to record all user changes, whether at the project level or concerning keywords, datasets, and libraries.
All changes will be kept in the log indefinitely! Audits are also filterable according to the desired criteria !

Scheduler 

To make life easier for less technical users, we've added an approach to run Alithya GoTest test plans.
It is now possible to schedule an execution from the Alithya GoTest user interface. The older approaches are still available to all (triggering through the execution buttons in the interface or through calls to the public API of Alithya GoTest).
This new feature allows you to schedule one or more executions at the level of your choice: test plan, functionality, or test scenarios.
Therefore, you can create a schedule that triggers the execution of the chosen component at a particular time or a specific interval. You can create these schedules through the new "schedule" button found in the action button groups or from the executions page (always in the action button groups).
You can also deactivate or reactivate a schedule at any time.



Which library to use for which test?

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


 For tests concerning mobile applications

Mobile Applications

 For tests concerning mobile applications:

For tests concerning mobile applications:

  • AppiumLibrary; Keyword examples: Launch Application; Click Text; Get Source; Hide Keyboard
  • BuiltIn; Keyword examples: Log; Comment
  • Alithya GoTest Embedded Keywords; IF / ELSE IF / ELSE;AND/ FOR / END FOR
  • Using BrowserStack 2A_BrowerStack|

Databases

 For databases

API

 REST

For testing on APIs with REST:

  • RequestsLibrary; example of a keyword: Create Session & Get Request Creates a session and an HTTP request to fetch data. It can download any file, including HTML, JSON or XML files.
  • Get (REST API - GET request)  Uses the keyword "Get" to send a GET request to a REST API service. 

 SOAP

For tests on APIs with SOAP:

  • SudsLibrary; example of a keyword: Create Soap Client & Call Soap Method Creates a SOAP client connection to a SOAP server. Then, it will use a SOAP method on this server and retrieve the results.
  • Create Wsdl Object & Set Wsdl Object Attribute Creates a Wsdl Object that can contain 2+ attributes. The Wsdl Object can be used to send all these attributes together.

Data

 Random Data

You need to test a contact form, but you have no data. You can use FakerLibrary to generate random data. Example of keywords:

  • First Name;
  • First Name Female
  • Adress;
  • Compagny Email;
  • Credit Card Number
 Strings

The String Library. Example of a keyword:

  • Keyword: Substring Extracts part of a text. Example #1: Extracts "AAA" and then "BBB CCC" from the text "AAA BBB CCC".

Keyword: String (REST API - Asserts String Value)
This keyword asserts a string value in the last received API response. It can use JSONPath or a specific custom path to determine the position in JSON to validate. You can also use keywords such as  "Integer", "Boolean", "Object", "Array", and similar keywords for other types of fields to assert.


 Lists

Collections: to manage lists. For example:

  • convert to list 
  • append to list 
 Dates

DateTime Exemple de keyword :

  • Keyword : Date Time Ad

Get a datetime object for a date between January 1, 001 and now

:param tzinfo: timezone, 
instance of datetime.tzinfo subclass :example DateTime('1265-03-22 21:15:52') :return datetime
  • Keyword : Date Time This Month:
Gets a DateTime object for the current month.
param before_now:include days in current month before today param after_now:include days in current month after today param tzinfo:timezone, instance of datetime.tzinfo subclass example DateTime('2012-04-04 11:02:02') return DateTime
  • Keyword : Date Time Between

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
  • Keyword : Date Time This Century:
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

 JSON

For a JSON file, use the JSONLibrary. Example of a keyword:

  • Load JSON from the file
  • Example of a script that manipulates JSON files
 CSV

To read and write CSV files from Alithya GoTest, use the CSVLibrary. Example of keywords:

  • Read CSV File to List (Loads a CSV file into a 2-Dimension variable containing all the data
  • Get From List (Extracts lines and values from the CSV file)

·       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.

 XML

To read and write XML files from Alithya GoTest, use the XML library. Example of a keyword:

  • Parse Xml On a variable containing the full XML data, parses the XML data into a structure.

·       Get Element Text On a parsed XML variable, obtains the element's Text based on the requested XPath.
·       Add Element On a parsed XML structure, adds a new element to the XML structure.

SSH/FTP/TELNET Transfers

SSHLibrary

 Click here to expand...


(SSH/SFTP server) Keyword:

  • Open Connection.
  • Login To connect to an SSH/SFTP server.

·       Put File Uploads a file to an SSH/SFTP server.
·       Get File Downloads a file from an SSH/SFTP server.


FtpLibrary

 Click here to 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

Dialogs

A library providing dialogs for interacting with users. Keyword example: Get Selection From User

Process

A library for running processes. Keyword examples: Get process Id, Is process running

Screenshot

Keyword: Capture Page Screenshot: During website testing, this takes a screenshot of the current browser page and adds it to the log.

AskidaGit

Checkout, clone, pull

AskidaNetworkMap

Map to Network; Unmap from Network 

Related content

Welcome
More like this
DB and API Tests
DB and API Tests
Read with this
Version 2.12.0
Version 2.12.0
More like this
Frequently Asked Questions (FAQ)
Frequently Asked Questions (FAQ)
Read with this
Version 2.4.0
Version 2.4.0
More like this
BrowserStack
Read with this

©️2023 Alithya GoTest - All Rights Reserved
Need Help? You have a suggestion?