My apologies, I accidentally posted before I was finished. I will try again ..
In my project I have two tests, one for 'Accounts' and another for 'Advanced Find'
The 'Accounts' test has a coded step..
public void SelectAccountTypeByName(String typeName, Browser xframe)
When my 'Accounts' test executes this coded step, it executes successfully.
However, if in the 'Advanced Find' test I attempt to use this coded step as follows..
Accounts xaccount = new Accounts();
The 'Log.WriteLine("hello world")' results in..
System.NullReferenceException: Object reference not set to an instance of an object.
at TestProject2.Accounts.SelectAccountTypeByName(String typeName, Browser xframe) in f:\New folder\Test Studio Projects\TestProject2\Accounts\Accounts.tstest.cs:line 148
at TestProject2.Advanced_Find.Select_Type_Random1() in f:\New folder\Test Studio Projects\TestProject2\Advanced Find\Advanced Find.tstest.cs:line 201
If I comment out the Log.WriteLine, the coded step executes fine.
Your help would be appreciated.