Skip to main content

Automated smart testing strategies for web services.

Project description

Agilkia: AGILe (K)Coverage with Intelligence Artificial

A Python toolkit for building smart testing tools for web services and web sites.

Key Features:

  • Automated testing of SOAP web services with WSDL descriptions.
  • Manage sets of traces (load/save to JSON, etc.).
  • Convert traces to Pandas DataFrame for data analysis / machine learning.
  • Generate random tests, or 'smart' tests from an ML model.
  • Split traces into smaller traces (sessions).
  • Cluster traces on various criteria, to see common / rare behaviours.
  • Visualise clusters of tests.

About the Name

Apart from the clumsy acronym, the name Agilkia was chosen because it is closely associated with the name 'Philae', and this tool came out of the Philae research project.

Agilkia is an island in the reservoir of the Aswan Low Dam, downstream of the Aswan Dam and Lake Nasser, Egypt.
It is the current location of the ancient temple of Isis, which was moved there from the islands of Philae after dam water levels rose.

Agilkia was also the name given to the first landing place of the Philae landing craft on the comet 67P/Churyumov–Gerasimenko, during the Rosetta space mission.

This 'agilkia' library is part of the Philae research project:

http://projects.femto-st.fr/philae/en

It is open source software under the MIT license. See LICENSE.txt

Example Usage

Here is a simple example of initial random testing of a web service running on the URL http://localhost/cash:

import agilkia

# sample input values for named parameters
input_values = {
    "username"  : ["TestUser"],
    "password"  : ["<GOOD_PASSWORD>"] * 9 + ["bad-pass"],  # wrong 10% of time
    "version"   : ["2.7"] * 9 + ["2.6"],      # old version 10% of time
    "account"   : ["acc100", "acc103"],       # test these two accounts equally
    "deposit"   : [i*100 for i in range(8)],  # a range of deposit amounts
}

def first_test():
    tester = agilkia.RandomTester("http://localhost/cash",
        parameters=input_values)
    tester.set_username("TestUser")   # will prompt for password
    for i in range(10):
        tr = tester.generate_trace(length=30)
        print(f"========== trace {i}:\n  {tr}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agilkia-0.5.0.tar.gz (720.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agilkia-0.5.0-py3-none-any.whl (77.1 kB view details)

Uploaded Python 3

File details

Details for the file agilkia-0.5.0.tar.gz.

File metadata

  • Download URL: agilkia-0.5.0.tar.gz
  • Upload date:
  • Size: 720.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for agilkia-0.5.0.tar.gz
Algorithm Hash digest
SHA256 5ff1a4457cfe010bb6a84161a89ace923eddeabee9c92c1641e358ead24b84c0
MD5 c29b55ca3a7020a9e2d186463fcc4ced
BLAKE2b-256 434773b1f1db2d1fab4d8c6c05255664652dc74d53348b87daaff56fc416d56a

See more details on using hashes here.

File details

Details for the file agilkia-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: agilkia-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 77.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for agilkia-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04f81aa6ce9acde267c4d9266c5eda5e8f2a92a91e3bd355fae82a42e9f68a41
MD5 577116e15af2c0b69274de0f544dbb55
BLAKE2b-256 7b8e3f4c3c10c7bf547a3e8a68ac6339e999164b7bfc86489196951281c9dcfb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page