How to check code quality in service now ?

String
Kilo Sage

Hi Team ,

We are using couple of integration and written BR ,Script include ,UI polices  ,UI actions .

Now we are trying to check the code quality before hand over to testing team .So please suggest any tools or plugin to check the code quality /Performances .

 

Please guide me to achieve the quality code 

1 ACCEPTED SOLUTION

Rahul Kumar17
Tera Guru

Hi,

 

There are a number of tools and plugins available that can help you check the code quality and performance of your ServiceNow code. Here are some suggestions:

  1. ServiceNow ATF (Automated Test Framework) - ATF can be used to create automated tests that validate the functionality and performance of your ServiceNow applications.

  2. ServiceNow Code Analyzer - This tool is a built-in feature of ServiceNow that analyzes your code for best practices, performance, and security issues. It provides a report with suggestions for improving your code.

  3. ESLint - This is a popular open-source linting utility that can help you identify and fix errors and stylistic issues in your JavaScript code. You can configure ESLint to work with ServiceNow's APIs and syntax.

  4. SonarQube - This is an open-source code quality tool that can analyze code written in various programming languages, including JavaScript. You can configure SonarQube to work with ServiceNow's APIs and syntax.

  5. JMeter - This is an open-source performance testing tool that can be used to test the performance of your ServiceNow applications. It can simulate high user loads and measure response times and throughput.

  6. ServiceNow Performance Analytics - This built-in feature of ServiceNow can be used to monitor the performance of your applications in real-time. It provides dashboards and reports that show key performance metrics and trends.

These tools can help you identify issues in your ServiceNow code before handing it over to the testing team, allowing you to fix any issues early on in the development process.

 
 
Thanks,
Rahul Kumar
If my response helped please mark it correct and close the thread.

Thanks,
Rahul Kumar

View solution in original post

7 REPLIES 7

Rahul Kumar17
Tera Guru

Hi,

 

There are a number of tools and plugins available that can help you check the code quality and performance of your ServiceNow code. Here are some suggestions:

  1. ServiceNow ATF (Automated Test Framework) - ATF can be used to create automated tests that validate the functionality and performance of your ServiceNow applications.

  2. ServiceNow Code Analyzer - This tool is a built-in feature of ServiceNow that analyzes your code for best practices, performance, and security issues. It provides a report with suggestions for improving your code.

  3. ESLint - This is a popular open-source linting utility that can help you identify and fix errors and stylistic issues in your JavaScript code. You can configure ESLint to work with ServiceNow's APIs and syntax.

  4. SonarQube - This is an open-source code quality tool that can analyze code written in various programming languages, including JavaScript. You can configure SonarQube to work with ServiceNow's APIs and syntax.

  5. JMeter - This is an open-source performance testing tool that can be used to test the performance of your ServiceNow applications. It can simulate high user loads and measure response times and throughput.

  6. ServiceNow Performance Analytics - This built-in feature of ServiceNow can be used to monitor the performance of your applications in real-time. It provides dashboards and reports that show key performance metrics and trends.

These tools can help you identify issues in your ServiceNow code before handing it over to the testing team, allowing you to fix any issues early on in the development process.

 
 
Thanks,
Rahul Kumar
If my response helped please mark it correct and close the thread.

Thanks,
Rahul Kumar

Thank you @Rahul Kumar17  for the brief explanation.so we  can add as plugin if not how to configure 

Example :SonarQube ,I have to check in system definition>>>> plugin and search ?

Hi String,

 

To add a new plugin in ServiceNow, follow these steps:

  1. Navigate to the "System Definition" application in ServiceNow.
  2. Click on "Plugins" under the "System" section in the left-hand navigation menu.
  3. In the "Plugins" list, click on the "Find new" button.
  4. Search for the plugin you want to install by entering its name in the search bar.
  5. Click on the plugin name to view its details.
  6. Review the plugin details and click on the "Activate" button to install the plugin.
  7. Once the plugin is activated, you may need to configure it by going to the plugin's settings or configuration pages.

If the plugin you want to add is not available in the ServiceNow store, you may need to download it from the vendor's website and install it manually. To do this, you will need to follow the instructions provided by the vendor for installing the plugin in ServiceNow. This may involve uploading a plugin file to ServiceNow and then activating it.

 

Thanks,

Rahul Kumar

If my response helped please mark it correct and close the thread.

Thanks,
Rahul Kumar

Hi Rahul,

 

Can you please share the link for the second option ServiceNow Code Analyzer?  I would like to read about it.

 

Thanks,

Vimal