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
Hello!
We use this plugin to generate models during tests automation, and sometimes the goal is to input an object into code from json that manual tester has already created and filled with proper data. So it would be useful to be able to take json from manual tester, fill every field with already added values and then for example parametrize on or two of them, by inititalizing data class with new values.
So I expertimented a lot with plugin but couldn't find a way to fill strings and other field with default values taken from json.
It always inits them with empty strings, the only thing it does to help to fullflill this tasks - there is an option to see values from json as comments to the fields.
Example:
JSON:
{
a: "TestValue1",
b: "TestValue2"
}
Current output:
data class Test(
val a: String? = "", // TestValue1
val b: String? = "" // TestValue2
)
What I'm trying to get:
data class Test(
val a: String? = "TestValue1",
val b: String? = "TestValue2"
)
I there any option to do so?
The text was updated successfully, but these errors were encountered:
Hello!
We use this plugin to generate models during tests automation, and sometimes the goal is to input an object into code from json that manual tester has already created and filled with proper data. So it would be useful to be able to take json from manual tester, fill every field with already added values and then for example parametrize on or two of them, by inititalizing data class with new values.
So I expertimented a lot with plugin but couldn't find a way to fill strings and other field with default values taken from json.
It always inits them with empty strings, the only thing it does to help to fullflill this tasks - there is an option to see values from json as comments to the fields.
Example:
JSON:
Current output:
What I'm trying to get:
I there any option to do so?
The text was updated successfully, but these errors were encountered: