RPOM
When the system needs to communicate with two different devices, we need some sort of way of controlling when each of them executes. In this case, we can use an RPOM design such as the following:
Figure 5.9: Example of an RPOM design
Here, we can have a test agent perform tests as if they were isolated, keeping the logic within them but the decision of the role the agent will play in the test is kept within the model. This is very useful when testing devices that cannot be handled remotely and need a test agent to be installed in them. This is the case for Windows applications, and there is good documentation about agents within Visual Studio’s docs: https://docs.microsoft.com/en-us/visualstudio/test/lab-management/install-configure-test-agents?view=vs-2022.
Let us see an example of a test agent and a model. The pages are omitted here, as the idea for them is the same as before. The example showcases how to handle a chat within an application...