TEST suite

Anantha27
Mega Guru

I have created a test suite and added 20 catalog items tests into it, But I have faced an issue in running the Test Suite, some catalog items are failed due to some errors I couldn't find the reason as individually running the tests separately its status is success. Let me know if you have any solution.

3 ACCEPTED SOLUTIONS

VishaalRanS
Tera Guru

Hi @@Anantha27 

 

 To address the issue, you're facing with your ServiceNow Test Suite where some catalog item tests are failing despite individual tests passing, consider the following troubleshooting steps:

  1. Check Variable Mappings
  2. Review Permissions and Access Control
  3. Examine Dependencies Between Variables
  4. Adjust Timeout Settings
  5. Check for Null Pointer Exceptions

 For further, please go through the following Link:

Solved: Failing Widget: 'SC Catalog Item' - ServiceNow Community

 

Thanks, and Regards

Vishaal

Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

Ramesh_143
Giga Guru

Hi  @Anantha27 ,

 

To troubleshoot ATF test suite failures, check for:

  • Test dependencies: Ensure tests are in the correct order and dependencies are met.
  • Data conflicts: Clean up the test environment and validate data.
  • Timing issues: Allow for asynchronous operations and consider wait conditions.
  • Test logs: Review logs for error messages and warnings.
  • Isolate failed tests: Run them individually and debug steps.
  • Test data: Ensure data is valid and consistent.
  • Test configuration: Check settings and parameters.
  • External factors: Consider environment stability and system updates.

By addressing these potential causes, you can identify and resolve the issues preventing your test suite from running successfully.

 

Thanks, 

Ramesh.

 

View solution in original post

brahmandlapally
Mega Guru

Hi

Please check the impersonated user has access to the catalog item before creating step or running the test suite.

I have also faced same above helped me.

 

thank you

View solution in original post

6 REPLIES 6

Ramesh_143
Giga Guru

Hi  @Anantha27 ,

 

To troubleshoot ATF test suite failures, check for:

  • Test dependencies: Ensure tests are in the correct order and dependencies are met.
  • Data conflicts: Clean up the test environment and validate data.
  • Timing issues: Allow for asynchronous operations and consider wait conditions.
  • Test logs: Review logs for error messages and warnings.
  • Isolate failed tests: Run them individually and debug steps.
  • Test data: Ensure data is valid and consistent.
  • Test configuration: Check settings and parameters.
  • External factors: Consider environment stability and system updates.

By addressing these potential causes, you can identify and resolve the issues preventing your test suite from running successfully.

 

Thanks, 

Ramesh.

 

brahmandlapally
Mega Guru

Hi

Please check the impersonated user has access to the catalog item before creating step or running the test suite.

I have also faced same above helped me.

 

thank you