Cornutum / tcases

A model-based test case generator
MIT License
218 stars 54 forks source link

Modification of tCases #274

Closed benedict-miguel-dev closed 1 year ago

benedict-miguel-dev commented 1 year ago

Currently. the values that tCases generates is valid based on schema but may or may not be invalid input. For example, suppose we have a parameter named "Country: String", tCases generates test cases to where Country is a valid string. However, it may generate a "Country: ThisIsNotACountry" which is not a valid country and causes the generated test case to fail because the server sees the value as an invalid country. but tCases sees this as valid because it is according to specification. Is it possible to modify tCases such that it is able to allow pass this test case?

kerrykimbrough commented 1 year ago

You might consider changing the schema to specify an enum listing all of the valid country names.

benedict-miguel-dev commented 1 year ago

This is true, however I’m interested in the case that we can’t define it. For example, a name or an ID.

kerrykimbrough commented 1 year ago

In those cases, you might consider a schema that defines valid values using a pattern.

benedict-miguel-dev commented 1 year ago

I suppose that there is no way at all to do it without the use of patterns?

kerrykimbrough commented 1 year ago

Currently, a schema is the only way to define the set of valid values.