Migrating custom code from previous versions
You can run scripts that contain custom code from previous releases and edit tests to make new calls to old or new custom code classes.
About this task
You can perform the following tasks without any additional steps:
- Run a script that contains custom code that was created in a previous release.
- Edit a test to make a new call to an old custom code class.
- Add new custom code to a test that contains old custom code.
To edit a class in existing custom code so that it can call new TestExecutionServices methods, type cast the IKlog argument in the old custom code to the ITestExecutionServices interface.
When you migrate the custom code from the previous versions, you must use getStatisticsManager2() as getStatisticsManager() API is deprecated from 10.1.0.