Ask a Question

ProjectSuite.TestItems.Current.ProjectName has no value

SOLVED
vthomeschoolmom
Super Contributor

ProjectSuite.TestItems.Current.ProjectName has no value

So I have an event in a script unit that is shared. 

 

var currentProject = "default project";
currentProject = ProjectSuite.TestItems.Current.ProjectName;

 

... do a small condition around the current project where the majority of the event is shared. 

 

It is supposed to be a read only value.

 

I am in TestComplete. I have one of two projects open. I have a break point on currentProject = ...

I run the project from the run project button on the toolbar. (I am not running directly from a test or function or something...)

 

Sad Stephie does not know what she is doing wrong. 😞 Thanks!

 

https://support.smartbear.com/testcomplete/docs/reference/project-objects/project-suite/testitem/pro...

2 REPLIES 2
cunderw
Community Hero

You can only acces the ProjectSuite object if you are running the suite, not the project, otherwise it doesn't exist.

 

If you run the suite and not the project should work.


Thanks,
Carson

Click the Accept as Solution button if my answer has helped

And of course. Where is the dope slap emoticon?

cancel
Showing results for 
Search instead for 
Did you mean: