Forum Discussion

helmer's avatar
helmer
Contributor
7 years ago

Codeing Guideline

I am looking for a coding guideline for TestComplete Scripts.

Is there anything from SmartBear I can bring to my team?

Otherwise I would have to check if Python or C# fits. Any other suggestions?

4 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    What do you mean by "coding guideline"?  What are you looking for?

     

    Basically, when it comes to writing scripts, keep in mind: it's code.  Any standards, best practices, etc., that would apply to any other coding endeavor would apply to writing script code in TestComplete.

     

    As for what code language to use (if that's your question)... whatever works best for you.  Keep in mind that the language doesn't HAVE to correspond to the language used in the application under test.  

  • Well I am looking for a style guide that apply not only to my team or my company but is used across the community.

    I find it nice that with Style Guide for Python Code  you can simply activate a linter and see in Jenkins how well your code is written. 

     

    It would be really nice if there would also be a style guide and a linter that you could voluntary activate in TestComplete.

    • tristaanogre's avatar
      tristaanogre
      Esteemed Contributor

      TestComplete does not, currently, have a "style guide" built into it for any of the code languages.  You would have to manually enforce the style guide.