C3 AI Testing Guide
Testing is a critical aspect of software development, ensuring that your applications function as expected and remain reliable over time. This guide provides comprehensive coverage of various testing techniques and tools available on the C3 Agentic AI Platform. This guide focuses on the Jasmine testing framework and the Luke testing framework for UI testing.
Overview of Testing with Jasmine
Jasmine is a popular testing framework that provides out-of-the-box support for writing unit and integration tests in JavaScript. It offers a clear structure for organizing tests and includes a wide range of built-in functions for setting up test environments, defining test cases, and verifying outcomes.
Jasmine's integration with the C3 Agentic AI Platform allows for seamless testing of various components and services within your applications.
See the Write Tests with Jasmine tutorial to get started with Jasmine in the C3 Agentic AI Platform.
Overview of Testing with Python
The C3 Agentic AI Platform supports writing tests using the pytest framework, allowing users to create and run test scripts efficiently. The topic covers the recommended folder structure, writing tests with fixtures, running tests using the VS Code Extension, using the Remote Python Debugger, and running tests from the C3 AI Console. The topic provides a comprehensive approach to test automation and debugging in the C3 AI environment.
See the Write tests with pytest tutorial to get started with pytest in the C3 Agentic AI Platform.
Overview of Testing with Luke
Luke is an advanced UI testing framework designed for web applications. It uses the BrowserEngine to automate user interactions with the browser, providing a robust solution for functional and end-to-end testing. Luke's abstraction layer allows it to integrate multiple automation engines, ensuring flexibility and future-proofing your tests.
The Luke Playground offers an interactive environment for developing, debugging, and running tests, making it easier to write and maintain stable test scripts.
See the Working with Functional Testing Framework - Luke tutorial to get started with Luke in the C3 Agentic AI Platform.
See also
C3 AI provides the following resources to assist developers using the C3 Agentic AI Platform:
- The C3 AI Global Glossary is a list of terms commonly used across C3 AI products. Consult the Global Glossary to find definitions and external resources related to specific terms.
- C3 AI Community is an online, community-driven forum that serves as a question-and-answer (Q&A) resource for users of the C3 Agentic AI Platform. Use C3 AI Community to ask questions about C3 AI products and review answered questions posed by others. * Visit the Community page for [your topic] at
https://community.c3.ai/c/[topic]/.