Hi all,
Here is the issue need your support:
I Added a new class, the method in the class will invoke "log", "find", i instance the class and use it in other class, it comes an error that "InnerException:
System.NullReferenceException: Object reference not set to an instance of an object.
at ArtOfTest.WebAii.Design.BaseWebAiiTest.get_Log()"
So i want to confirm whether it is possible that we can call the log and find method in this way? attached the example code
Public Class A Inherits BaseWebAiiTest
#Region "[ Dynamic Pages Reference ]"
.....
#End Region
Public function testA()
Dim bClass as B
bClass = NEW B
bClass.testB(par1)
End Function
End Class
Public Class B Inherits BaseWebAiiTest
#Region "[ Dynamic Pages Reference ]"
.....
#End Region
Public function testB(par1 as String)
log.WriteLine(par1)
find.By.....
End Function
End Class
Here is the issue need your support:
I Added a new class, the method in the class will invoke "log", "find", i instance the class and use it in other class, it comes an error that "InnerException:
System.NullReferenceException: Object reference not set to an instance of an object.
at ArtOfTest.WebAii.Design.BaseWebAiiTest.get_Log()"
So i want to confirm whether it is possible that we can call the log and find method in this way? attached the example code
Public Class A Inherits BaseWebAiiTest
#Region "[ Dynamic Pages Reference ]"
.....
#End Region
Public function testA()
Dim bClass as B
bClass = NEW B
bClass.testB(par1)
End Function
End Class
Public Class B Inherits BaseWebAiiTest
#Region "[ Dynamic Pages Reference ]"
.....
#End Region
Public function testB(par1 as String)
log.WriteLine(par1)
find.By.....
End Function
End Class