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 the old or new custom code classes.

About this task

When you migrate the custom code from the previous versions, you must use getStatisticsManager2() as getStatisticsManager() API is deprecated from 10.1.0.

To edit a class in existing custom code so that it can call new TestExecutionServices methods, you must type cast the IKlog argument in the old custom code to the ITestExecutionServices interface.

  • 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 the old custom code.