Querying Objects

Querying objects stored by VyPR during monitoring is the main purpose of VyPR Analysis. We currently provide two main functions that are accessible directly via the top-level VyPRAnalysis package.

VyPRAnalysis.orm.operations.list_functions()

Get a list of all existing functions from the server.

VyPRAnalysis.orm.operations.list_test_data()

Get a list of all existing test cases from the server.

A simple script that you could write with these is

import VyPRAnalysis as va
va.set_server("http://localhost:8080/")
functions = va.list_functions()
test_executions = va.list_test_data()

functions and test_executions are then lists that you can iterate through

for function in functions:
    print(function)

where each value of function is an instance of the Function class described in The Object-Relational Mapping.

The situation is similar for the code

for test_execution in test_executions:
    print(test_execution)