Skip to content

TestingMiddleware

Nilson Lazarin edited this page Mar 13, 2024 · 2 revisions

In this page is shown an example of communication agent-agent over an Email Server To run this test, you need an email account for each agent.

Creating the Agents' E-mails Accounts

You can use any email provider, since the provider uses imaps and smtpOverTLS protocols (other cases, consult [1]). Below there are some instructions to use public email providers, like GMX, GMAIL, Yahoo, or FastMail:

Testing the Comunication over an Email Server

We are considering that you are using the Jason-CLI, to run this test. How to install the Jason-CLI ?

  1. Download the project. In a terminal, execute the commands below:
wget https://github.com/chon-group/Mailer/wiki/.files/testMailMiddleware.tar.gz
tar -zxvf testMailMiddleware.tar.gz 
cd testMailMiddleware/
  1. Edit the .ASL alice file and change the beliefs aliceEmailAndPass and bobEmailAndPass, including the e-mail credentials, like the figure below.
  • aliceEmailAndPass("PUT-HERE-THE-ALICE-MAIL","PUT-HERE-THE-ALICE-PASS").
  • bobEmailAndPass("PUT-HERE-THE-BOB-MAIL","PUT-HERE-THE-BOB-PASS").

  1. Execute the MultiAgent System, with the command below.
jason testMailMiddleware.mas2j 
  1. If all is correct, the expected output is the follow.

Clone this wiki locally