Skip to main content
# AutoWebGL

AutoWebGL is a Automation tool written on top of Selenium, covering WebGL based projects, allowing the developer to run multiple test based on image comparison at low level code, while easing the process of writing and injecting scripts.

### Installation
```sh
$ pip install autowebgl
```

### Example of use

```python
from autogl import test
from autogl import autoglconfig

autoglconfig.configurate({
"url": "https://local.server.com"
})

@test({"waitBeforeExecute": 10000, "waitAfterExecute": 1000})
def should_walk_aroun_the_scene(browser):
browser.mouseDownAt(100, 100, "viewer")
browser.mouseMoveFromTo(500, 0, 500, 800, "viewer")
browser.mouseUpAt(200, 200, "document")
```

### Creating the test data

After succesfuly writing your first test, you need to create the test data, a point in time when you are sure the browser will answer your described behaviour correctly.

```sh
$ python testcases.py --capture
```

This command will run every test, capturing the final result of each and storing it under 'cases' folder.

### Running the tests

After you have created and captured all your test data, you can run all your cases with the next command.
```sh
$ npython testcases.py
```

### Browser Object
* mouseDownAt(x_position, y_position, target_element)
* mouseMoveFromTo(x_origin_position, y_origin_position, x_destiny_position, y_destiny_position, target_element)
* mouseUpAt(x_position, y_position, target_element)
* dragAndDropFromTo(x_origin_position, y_origin_position, x_destiny_position, y_destiny_position, target_element)
* exectue(text_script)

### Test parameters
* waitBeforeExecute [not required][int] milliseconds number representing the sleep time before running the test case
* waitAfterExecute [not required][int] milliseconds number representing the sleep time after running the test case and before running the comparison

### AutoWebGL Config Parameters
* url [required][str] String describing the url used for each case



Metadata

Release files for autowebgl 0.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autowebgl 0.3.5
File Size Uploaded Provenance Actions
autowebgl-0.3.5.tar.gz 3.9 kB Without provenance Details for autowebgl-0.3.5.tar.gz

Release files / autowebgl-0.3.5.tar.gz

Download URL autowebgl-0.3.5.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
86fea519453156b946373549130279b3d052d68e4b1b7300b33a9ef1e2b370e9
BLAKE2b-256 checksum
How to use checksums
37a6171f41eda57c39ec52010ad39efff781acc94120a219f324f5e0501df873
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for autowebgl 0.3.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page