Guides and Examples

Sample code walkthroughs and samples for some of our most frequently used APIs and Test Cases.

REST API Cookbooks and Samples

  • Export Test Cases In Bulk

    Description Sometimes there is a need to export test cases in bulk. However, when the number of test cases is too large, Cyara web UI may become unresponsive and even timeout. This article provides an example on how to do a massive test cases library ex...

  • Generating and Customizing Campaign Run Reports

      The Campaign Run Report available on the Platform provides comprehensive information. Using the APIS, we can further refine these reports to our needs. The following script is a sample Python code that: Connects to the given URL and Account. Retrieve...

  • Update Dataset from PUT request without CSV file

    This article shows how to update any dataset without uploading a file. If you remove rows details from the model body, it only updates the dataset name :   To update the Row data, you can use the following sample model body. However, it will update...

  • Export user data into Excel

    Problem: Currently there is no neat way of exporting user data from the portal.   Extracting data using API: Using the API we're able to export the user data into a json file which isn't very neat for customers. Log into the Cyara Web Portal : https:/...

  • Working with Campaigns Using the Cyara API 3.0

    Description Many Cyara users are asking questions on how to create and manipulate campaigns using the 3.0 API. This article provides a step by step description on how to Create, Update, Execute, and Delete Campaigns using the Cyara API 3.0. Authenticati...

  • Import Test Case with API

    Description Sometimes there is a need to automate Test Case import. This article provides examples on how to do it in the following programming languages. Python PowerShell API endpoint: /v3.0/accounts/{accountId}/testcases/import Request method: POST...

See all 9 articles

Downloadable Test Case Samples

  • Cyara Sample Test Cases Downloads

    This article contains download links for each of the Cyara Sample Test Cases as an importable XML file. Click the links at the bottom of this article to download an example test case that demonstrates the usage of a specific Cyara Test Case Tag. The fin...

  • Wireframe Test Case Model & Test Data Master Listing

    Download the attached Zip File for a copy of a Wireframe Model and Test Data Master Listing using the links below.For more information on building a Wireframe Test Case, Read More in the Cyara Blog.