Forum Discussion

VasanthVijay's avatar
VasanthVijay
Contributor
9 years ago

how to create data link properties in jscript using test complete?

Hello ,

           I want to create Data Link Properties in jscript using test complete.I need sample example for that.Kindly help me.

Thanks in advances.

3 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi VasanthVijay,

     

    TestComplete 11 uses the JScript engine version 5.8. So, you can use built-in JScript methods and properties to create the script covered your task.

     

    What exactly do you want to implement? Give us some more examples.

    • VasanthVijay's avatar
      VasanthVijay
      Contributor

      Create text file and rename to (.udl)

      And that udl file to Project ---->Stores--->Files.

       

      function sa()

      {

      var fileName = Files.FileNameByName("DatabaseConnection_udl");
      var udl = new ActiveXObject("WScript.Shell");
      udl.Run(fileName);

      }

       

       

      This is for opening the .udl file via testcomplete.