oct.core package

Submodules

oct.core.exceptions module

exception oct.core.exceptions.FormNotFoundException[source]

Bases: exceptions.Exception

Raised in case of FormNotFound with browser

exception oct.core.exceptions.LinkNotFound[source]

Bases: exceptions.Exception

Raised in case of link not found in current html document

exception oct.core.exceptions.NoFormWaiting[source]

Bases: exceptions.Exception

Raised in case of action required form if no form selected

exception oct.core.exceptions.NoUrlOpen[source]

Bases: exceptions.Exception

Raised in case of no url open but requested inside browser class

exception oct.core.exceptions.OctConfigurationError[source]

Bases: exceptions.Exception

Provide an oct configuration error

exception oct.core.exceptions.OctGenericException[source]

Bases: exceptions.Exception

Provide generic exception for reports

oct.core.hq module

class oct.core.hq.HightQuarter(output_dir, config, topic, master=True, *args, **kwargs)[source]

Bases: object

The main hight quarter that will receive informations from the turrets and send the start message

Parameters:
  • output_dir (str) – output directory for results
  • config (dict) – the configuration of the test
  • topic (str) – topic for external publishing socket
  • with_forwarder (bool) – tell HQ if it should connects to forwarder, default False
  • with_streamer (bool) – tell HQ if ti should connects to streamer, default False
  • streamer_address (str) – streamer address to connect with form : <ip>:<port>
run()[source]

Run the hight quarter, lunch the turrets and wait for results

setup()[source]

This method will be called before to start turrets.

tear_down()[source]

This method will be called after to stop turrets.

wait_turrets(wait_for)[source]

Wait until wait_for turrets are connected and ready

oct.core.hq.get_hq_class(path=None)[source]

oct.core.main module

oct.core.test_loader module

Module contents