You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tp.AddTestTheory(theory =>{theory.Input<int>("m",100);// Input parameter 'm' is set to 100theory.Input<int>("c",5);// Input parameter 'c' is set to 5theory.Expected<int>("E",2500);// Parameter 'E' is expected to be 2 500, after request execution});// Another theory for the same test casetp.AddTestTheory(theory =>{theory.Input<int>("m",1);theory.Input<int>("c",5);theory.Expected<int>("E",25);});
Method tp.Test() will be called in the post-response scripts in the most cases. Althought, there is no problem to use this method within pre-request script - e.g. when you want to check the state before request execution.
On the other hand method tp.AddTestTheory()must be located in pre-request script, other-wise it will be ignored.
The text was updated successfully, but these errors were encountered:
Tests within this framework can be divided into two categories:
Determined tests
API
Examples of usage
Theoretical tests (Scenarios)
API
Examples of usage
Method
tp.Test()
will be called in the post-response scripts in the most cases. Althought, there is no problem to use this method within pre-request script - e.g. when you want to check the state before request execution.On the other hand method
tp.AddTestTheory()
must be located in pre-request script, other-wise it will be ignored.The text was updated successfully, but these errors were encountered: