mike_shysh
12/28/2017, 12:15 PMopen class BaseTest {
lateinit var testDataConst: MutableMap<String?,Int?>
@BeforeSuite
fun setup() {
testDataConst = prepareBaseData(conf[system.user],conf[system.password])
println(testDataConst) <<< here testDataConst is initialized
}
But in Test class testDataConst is uninitialized
class AddCustomer : BaseTest() {
@ Test
fun addCustomer() {
println(testDataConst) <<< Here it is an error
}
}
How could I solve it?Andreas Sinz
12/28/2017, 12:21 PMmike_shysh
12/28/2017, 12:23 PMmike_shysh
12/28/2017, 12:23 PMcedric
12/28/2017, 7:34 PMBeforeSuite
method in your base test class invoked at all?mike_shysh
12/28/2017, 7:35 PMcedric
12/28/2017, 7:35 PMcedric
12/28/2017, 7:35 PMmike_shysh
12/28/2017, 7:35 PMcedric
12/28/2017, 7:35 PMcedric
12/28/2017, 7:35 PMmike_shysh
12/28/2017, 7:36 PMmike_shysh
12/28/2017, 7:36 PMcedric
12/28/2017, 7:37 PMmike_shysh
12/28/2017, 7:37 PMmike_shysh
12/28/2017, 7:37 PMcedric
12/28/2017, 7:38 PMmike_shysh
12/28/2017, 7:38 PMmike_shysh
12/28/2017, 7:41 PMmike_shysh
12/28/2017, 7:42 PMmike_shysh
12/28/2017, 7:43 PMcedric
12/28/2017, 9:34 PMmike_shysh
12/29/2017, 8:46 AM