Skip to content

Commit

Permalink
fix image in async readme
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasdcm committed Jan 5, 2025
1 parent 231cb17 commit a23eac1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guara/asynchronous/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ As describe in [main page](https://github.com/douglasdcm/guara?tab=readme-ov-fil
As it can be bound to any Web Driver it can be associated with asynchronous drivers like [Caqui](https://github.com/douglasdcm/caqui). The core of the framework was extended to allow it. The UML diagrams of the asynchornous classes are

<p align="center">
<img src="https://github.com/douglasdcm/guara/blob/main/asynchronous/uml_application.png?raw=true" width="800" height="300" />
<img src="https://github.com/douglasdcm/guara/blob/main/guara/asynchronous/uml_abstract_transaction.png?raw=true" width="800" height="300" />
</p>

Notice the introduction of the `perform` method. It is necessary to run the chain of built-in methods `at` and `assert`. It calls the list of coroutines. If it is not executed, the built-in methods are not `waited`.

<p align="center">
<img src="https://github.com/douglasdcm/guara/blob/main/asynchronous/uml_abstract_transaction.png?raw=true" width="800" height="300" />
<img src="https://github.com/douglasdcm/guara/blob/main/guara/asynchronous/uml_abstract_transaction.png?raw=true" width="800" height="300" />
</p>

The built-in classes `OpenApp` and `CloseApp` are here just for compatibility with the synchronous design, but it is not implemented and not bound to any driver. Testers need to choose it by themselves.

<p align="center">
<img src="https://github.com/douglasdcm/guara/blob/main/asynchronous/uml_iassertion.png?raw=true" width="800" height="300" />
<img src="https://github.com/douglasdcm/guara/blob/main/guara/asynchronous/uml_iassertion.png?raw=true" width="800" height="300" />
</p>

There is a subtle change in `asserts` method. In this design the `actual` is an `AbstractTransaction`. Internally the method gets the `AbstractTransaction.result` and compares it against the expected value.
Expand Down

0 comments on commit a23eac1

Please sign in to comment.