I'm using TestStudio Standalone Version, and I've created my own extension of BaseWebAiiTest to handle some extra logging behind-the-scenes by overriding the OnBeforeTestStarted and OnAfterTestCompleted events. Since I want all of my tests to include that extra logging info, I was wondering if there was any way to configure ArtOfTest.Runner to use my CustomBaseWebAiiTest instead of BaseWebAiiTest.
I've modified "Project Settings→Recording Options→Code Base Class" to be my CustomBaseWebAiiTest class (both with/without its full assembly name) instead of BaseWebAiiTest, but all that appears to do is allow the Recorder to recognize any such classes as being associated with Tests.
On a side-note, when I go to add a Coded Step to a Test that does not yet have a code-behind class, it still creates that code-behind class as an extension of BaseWebAiiTest by default. If I've modified the "Code Base Class" at all, then that extension needs to be manually changed to "CustomBaseWebAiiTest" outside of TestStudio to match the "Code Base Class"; otherwise it's unusable. As such, I'd like to report that as a bug, since any code-behind files that TestStudio generates should match its current "Code Base Class".
Moving back on topic, the only way that I appear to be able to make tests use my CustomBaseWebAiiTest class it to explicitly create a code-behind class for each one of them which is an extension of said class. My issue with that approach is that it means I'll be creating an essentially empty code-behind class for every single test that I have, which seems entirely unecessary and will add a lot of extra clutter to my Test Project.
All this having been said, is there any way that I can configure ArtOfTest.Runner to use whatever my "Code Base Class" is instead of always using BaseWebAiiTest by default? If this is not currently possible, then I'd like to request it as an feature for TestStudio Standalone Version.
-Max
I've modified "Project Settings→Recording Options→Code Base Class" to be my CustomBaseWebAiiTest class (both with/without its full assembly name) instead of BaseWebAiiTest, but all that appears to do is allow the Recorder to recognize any such classes as being associated with Tests.
On a side-note, when I go to add a Coded Step to a Test that does not yet have a code-behind class, it still creates that code-behind class as an extension of BaseWebAiiTest by default. If I've modified the "Code Base Class" at all, then that extension needs to be manually changed to "CustomBaseWebAiiTest" outside of TestStudio to match the "Code Base Class"; otherwise it's unusable. As such, I'd like to report that as a bug, since any code-behind files that TestStudio generates should match its current "Code Base Class".
Moving back on topic, the only way that I appear to be able to make tests use my CustomBaseWebAiiTest class it to explicitly create a code-behind class for each one of them which is an extension of said class. My issue with that approach is that it means I'll be creating an essentially empty code-behind class for every single test that I have, which seems entirely unecessary and will add a lot of extra clutter to my Test Project.
All this having been said, is there any way that I can configure ArtOfTest.Runner to use whatever my "Code Base Class" is instead of always using BaseWebAiiTest by default? If this is not currently possible, then I'd like to request it as an feature for TestStudio Standalone Version.
-Max