? QA Design Gurus: Create custom plugins for Telerik Test Studio

Jul 1, 2015

Create custom plugins for Telerik Test Studio

If you are looking for a customized test run reporting or a custom bug reporting capabilities then, create a plugin (an extension).


There are few forums posts in Telerik forums which provides instructions to do. Here are couple of examples to create a custom plugin.

1. Customized Run reports

To customize run reports, the interface IExecutionExtension in ArtOfTest.WebAii.Design.Execution namespace should be implemented.

Following are the methods that needs to be implemented
a. OnAfterTestCompleted(ExecutionContext executionContext, TestResult result)
b. OnAfterTestListCompleted(RunResult result)
c. OnBeforeTestListStarted(TestList list)
d. OnBeforeTestStarted(ExecutionContext executionContext, ArtOfTest.WebAii.Design.ProjectModel.Test test)
e. OnInitializeDataSource(ExecutionContext executionContext)
f. OnStepFailure(ExecutionContext executionContext, ArtOfTest.WebAii.Design.AutomationStepResult stepResult)    

2. Customized Bug reporting

To submit a bug that the automated tests have encountered during execution, the interface IBugTracker in ArtOfTest.WebAii.Design.Extensibility.BugTracking namespace should be implemented.
Following are the methods that needs to be implemented
a. ApplyPersistableSettings(BugTrackerPersistableSettings settings)
b. ConnectionUI
c. ErrorMessage
d. GetPersistableSettings()
e. IsConfigured
f. Name  
d. ResetSettings()
e. SubmitBug(IBug bug)
f. OnStepFailure(ExecutionContext executionContext, ArtOfTest.WebAii.Design.AutomationStepResult stepResult)    
 
Once you have implemented, build the project to create a dll and the dll plugin has to be placed in the plugins folder of Telerik Test Studio installation. 

No comments:

Post a Comment