Can I determine (programmatically) how my current business component scriptcode has been initiated?
It could be
Foggily related: Can I determine if current test execs from test lab or interactively from within QTP IDE?
If the component is executed standalone, CreateObject ("QuickTest.Application").CurrentDocumentType
returns "Business component"
.
If the component is executed from within a BPT (no matter if the BPT is executed interactively, or from within a test set) CurrentDocumentType
returns "Test"
.
Combined with the setting brought to light in the related question (and answer), this answers the question. It's as simple as that.