Ask a Question

ODT - Alternatives & Javascript Capabilities ?

SOLVED
Vallalarasu_P
Frequent Contributor

ODT - Alternatives & Javascript Capabilities ?

Hi All,

 

ODT (https://support.smartbear.com/testcomplete/docs/testing-with/deprecated/odt/index.html) is going to be a depecated feature. So that an alternative is shared 

 

https://support.smartbear.com/testcomplete/docs/testing-with/deprecated/odt/index.html#alternatives

 

/ Define a custom class
function customClass() 
{

  // Define a class property
  var classProperty;
}

// Define a class routine
customClass.prototype.classRoutine = function()
{
  // ...
}

function Test() 
{
  var obj;
  
  // Create an instance of the class
  obj = new customClass();
  
  // Set the class property
  obj.classProperty = 41;
  
  // Call the class routine
  obj.classRoutine();
}

 

This alternative works for JavaScript too?!!

 

tristaanogre shankar_r

With Regards
Vallalarasu Pandiyan
https://www.linkedin.com/in/vallalarasupandiyan/
1 ACCEPTED SOLUTION

Accepted Solutions
SaravanaKumar_N
Contributor

Re: ODT - Alternatives & Javascript Capabilities ?

@Vallalarasu_P

I never used ODT feature. But the alternative given here is what I have used to emulate the Page Object Model pattern in both JScript and JavaScript (using the protoype option). Its working absolutely fine as we expect.

View solution in original post

3 REPLIES 3
SaravanaKumar_N
Contributor

Re: ODT - Alternatives & Javascript Capabilities ?

@Vallalarasu_P

I never used ODT feature. But the alternative given here is what I have used to emulate the Page Object Model pattern in both JScript and JavaScript (using the protoype option). Its working absolutely fine as we expect.

View solution in original post

tristaanogre
Community Hero

Re: ODT - Alternatives & Javascript Capabilities ?

I don't understand your question.  You've written JavaScript code... so it would work with JavaScript.  Can you clarify what you want to know?


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
SaravanaKumar_N
Contributor

Re: ODT - Alternatives & Javascript Capabilities ?

@tristaanogre

I think they are using ODT (Object-Driven Testing) project item. Since its depricated, as per smartbear suggestion - the alternative solution for ODT is the above implementation given in this link.

https://support.smartbear.com/testcomplete/docs/testing-with/deprecated/odt/index.html#alternatives

 

I reckon they would like to know whether someone implemented it successfully.

 

cancel
Showing results for 
Search instead for 
Did you mean: