Sonar for test automation

Sonar for test automation

Like a healthy doctor can treat you well and make us healthy .

In the same way the code written to test another code must be itself healthy.

In the case of most teams the automation fails not because due to the product being unstable. But rather than that it fails because the automation code written does not follow proper coding standards.

Some points that cause trouble for most of the automation suite:

  1. Improper naming conventions.
  2. Hardcoded test data.
  3. Using lot of thread.sleep
  4. using system.out.println for the debug purpose.

Now if the coding standards are being followed from the very beginning and to the precision where we even consider how a variable is being named and what access modifier is being used. Then following benefits can be seen :

  • Code is more maintainable. So even if flow changes script level changes take less time.
  • Using less printconsole makes suite less time consuming.
  • Proper naming conventions helps a new guy to work on the script with utmost ease.

These two links below sight the same point.

Do let me know your views on the same.

Thanks,

Akash


要查看或添加评论,请登录

Akash Das的更多文章

  • AI a double edged sword

    AI a double edged sword

    Being a student of AI and AI enthusiast I am always keen and excited for new developments in the field of AI. AI has…

  • Empathy and art of Listening for Leadership

    Empathy and art of Listening for Leadership

    Hitting the targets, closing the task well within timeline, high sprint velocity are some attributes which are…

  • In sprint test-automation

    In sprint test-automation

    What I learnt in few months here (Narvar): Joining a new org is always exciting specially given the fact when you get a…

  • Micromanagement .... A bane !

    Micromanagement .... A bane !

    I work for one of the largest eyewear retailer in India.Relatively very young company but one of the fastest growing…

  • When leadership pulls you down.........

    When leadership pulls you down.........

    I have worked in numerous companies in my short span of IT experience. Lucky to have wonderful bosses.

  • Using ADT's to teach software testing

    Using ADT's to teach software testing

    Software testing is one of the disciplines which is not stressed much during academics. But there are certain…

  • Yes Data analytics is the new test tool !

    Yes Data analytics is the new test tool !

    Fewdays back Hari Bhaskar from Amadeus shared a great article and blog on how machine learning and AI are going to be…

    2 条评论
  • WHAT IS WANNACRY MALWARE?

    WHAT IS WANNACRY MALWARE?

    Wannacry is the malware or ransomware which has earned the reputation of being armed bank robber. It has earned around…

  • Water Torture DDOS attack

    Water Torture DDOS attack

    Last year there has been an attack on the IoT devices ; the attack was an ddos attack and it was being done using a…

  • Do not code for claps

    Do not code for claps

    When there are good programmers in the team that is always of some benefit . But sometimes there experience and there…

社区洞察

其他会员也浏览了