This is a migrated thread and some comments may be shown as answers.

Object reference not set to an instance of an object on scheduled run

1 Answer 144 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Terri
Top achievements
Rank 1
Terri asked on 21 Jun 2012, 09:53 PM
Hi,

I have setup a scheduling server and execution server on the same machine, installed Test Studio. I created a project on a shared drive.
When I create a testlist and ran manually, it worked fine and test passed. But when I schedule it to run, it always failed with 'Object reference not set to an instance of an object' error.

Since it was all on the same server, I should not have any Test Studio cross version issue.
My questions are:
1. Why it failed when scheduled to run, and the result is different from running it manually?
2. Why each time it scheduled to run, a new result folder created but it's empty (see attached image)?
3. Regarding the SQL db related to the scheduling server setup, I can tell the scheduling information is stored in some tables, how about the execution result? Are they supposed to be stored in any db table as well? It bothers me because I can't find any result files; even when I run the test manually, I can't find any result files under the project/Results folder, it's empty.

I have a feeling this may be because the project is located on a shared drive, can anyone help?

Thanks,
Terri
.

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 25 Jun 2012, 10:26 AM
Hello Terri,

The Execution server copies the project from the Project Source Location - PSL(see screenshot) to its local folder (C:\Temp\Output) and executes from there. In your case the "C:\Temp\Output" folder is empty because either the path you are using for Project Source Location is incorrect or you don't have read/write permissions for the shared location. 

To overcome this, please make sure:
  • The shared network path you entered as PSL is correct(See point (6) in this article). 
  • The project folder is accessible as seen in this KB article (see the section marked Ensure your project location is accessible from the Remote Execution Server).

After that you should be able to run the scheduled test lists as expected. 

All the best,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Terri
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or