Forum Discussion

abishekhari007's avatar
abishekhari007
Contributor
4 years ago

QTP to Testcomplete JavaScript migration

is it possible to migrate qtp codes to testcomplete JavaScript codes
if yes
how do I do it

  • Hi,

     

    Generally speaking, anupamchampati is correct.

    However, you may consider something like this:

    -- Examine existing test from QTP and manually NameMap in TestComplete all controls that the test interacts with;

    -- Register application as a Tested Application in TestComplete;

    -- Start recording in TestComplete;

    -- Start test execution in QTP;

    -- When QTP will stop test execution, stop recording in TestComplete and tweak recorded test as needed.

     

3 Replies

  • anupamchampati's avatar
    anupamchampati
    Frequent Contributor
    As far as I know there is no direct way to migrate codes because QTP and Testcomplete have different way to use in build functionality.

    Instead you can use the scripting framework and steps from qtp javascript file and update the required changes like Object name , checkpoints and few more which are specific to Testcomplete.
  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    Generally speaking, anupamchampati is correct.

    However, you may consider something like this:

    -- Examine existing test from QTP and manually NameMap in TestComplete all controls that the test interacts with;

    -- Register application as a Tested Application in TestComplete;

    -- Start recording in TestComplete;

    -- Start test execution in QTP;

    -- When QTP will stop test execution, stop recording in TestComplete and tweak recorded test as needed.

     

  • sonya_m's avatar
    sonya_m
    SmartBear Alumni (Retired)

    Thanks everyone for participating in this thread!

     

    abishekhari007 did you find the replies useful? Please mark the best one as a solution🙂