You need to sign in to do that
Don't have an account?
Anu Raj.ax1269
Variable not found in test class
Hi,
I have created a test class because i have to use the same set of record repeat, so i created a static method and have same record in it and defined the object in class"
public Account a;". But when i try to access this object in my static method i am getting error that variable not found. Any body here can help me out.
thanks
Static methods can't see instance variables - if 'a' needs to be accessible from static methods it needs to be static itself: