Engauge
    Engauge
    • ๐Ÿถ Walk through Apidog
    • Web
      • Secured
        • Report
          • Digital Sprint
            • Digital Sprint General Individual Pdf
        • Testing Tool
          • Test Heuristic
            • Save Testing Tool Peritem 1
            • Save Testing Tool Peritem 2
            • Save Testing Tool Peritem 3
          • Save Testing Tool
          • Save Testing Tool Peritem
          • Save Testing Tool Peritem Copy 2
          • Save Testing Tool Audiorec Copy
          • Start Record
          • Save Proctoring
          • Start Testing Tool
          • Get Toolset Detail
          • Play Audio Video
          • Next Page Last
        • Profile
          • Upload Profile
        • GBA
          • Get Gba Log
          • Get Gba Log Detail
          • Get Type 3 Latest Record
          • Start Game
          • End Game
          • Record Game Type 1
          • Record Game Type 2
          • Record Game Type 3
        • Log
          • Logout Log
          • Action Log
        • Interview
          • Upload Interview Start
          • Get List Interview
          • Get Detail
          • Update Participant
          • Start Record
          • Record End
          • Test Upload
          • Upload Interview Finished
          • Finish
        • Toolset
        • Toolset Component
        • Toolset Saas
        • User Home Dashboard
        • Dashboard interview
      • Open
        • Testing Tool
          • Save Testing Tool Open
          • Save Testing Tool Peritem Open
          • Save Testing Tool Peritem Review
          • Save Testing Tool Audiorec
          • Validate Answer
          • Start Testing Tool
          • Start Record
          • End Record
          • Upload Multimedia End
          • Next Page
          • Next Page Last
          • Play Audio Video
        • Openlink
          • Profile
        • Log
          • Action Log External
          • Logout Log External
        • Toolset
        • Save Testing Tool Item
        • Toolset Timer
        • Toolset Timer Toolset Component
        • Get Toolset
        • Get Batch Info
        • Get Blockscreen
        • Toolset Language
        • Inform Consent
        • Get Image
        • Get File
        • Get Profile
        • Save Proctoring Open
        • Open Simulation Answer
        • Pentest GBA
        • Upload Self Interview
        • Upload Multimedia
        • User Home Dashboard
        • Open Dashboard
        • Auth
        • Color Theme
    • Admin
      • Secured
        • Menu
          • Get Access menu
          • Get Menu By Role
          • Get Menu By Role Group
        • Report
          • Master Aggregate Matriks (SAAS)
            • List
            • List PTM
            • List Potential Const
            • Preview Formula By Mapping Aggregate Matrix
            • List Level
            • Find by Id
            • Add Aggregate Matriks
            • Duplicate Aggregate Matrix
            • Set Formula
            • Delete Aggregate Matriks
            • Delete Aggregate Matriks By Mapping Aggregate Matriks
            • Update Aggregate Matriks
          • Master Aggregate Matriks Dimension
            • List
            • Find by Id
            • Preview Formula
            • Add Aggregate Matriks
            • Delete Aggregate Matriks
            • Update Aggregate Matriks
          • Report Master Aggregate
            • View Group Competency
            • Add Group Competency
            • Get Group Competency
            • View Competency
          • Master Recommendation Formula
            • Find All
            • Preview
            • Delete
            • Add Recommendation Formula
            • Add Mapping Recommendation Formula Without Core
            • Add Mapping Recommendation Formula With Core
          • Master Client Recom Formula
            • Find All
          • Report List Batch Info
          • Report List By Batch Id
          • Report List By Project Id
          • Report List Participant Individual By Project
          • Report B2C List Participant Individual By Project
          • Report List Participant Individual By Batch
          • Download Template Excel Participant
          • Download Template Excel Employee
          • Export Engauge Link
          • Project Info
          • Report Bridge Tool Component Master Data CORE V2
          • Report Bridge Tool Component Master Data DIVE V2
          • Report Bridge Tool Component Master Data MOVE
          • Report Bridge Tool Component Master Data MOVE V2
          • Report Bridge Tool Component Master Data DISC
          • Report Bridge Tool Component Master Data KOLB
          • Report Bridge Tool Component Master Data AIMI
          • Report Bridge Tool Component Master Data STI
          • Report Bridge Tool Component Master Data Digital Sprint
          • Report Bridge Tool Component Master Data Echo
          • Report Ref Group Result Find All
        • Participant
          • Participant Find All
          • Participant Find All External
          • Participant View
          • Participant External
          • Export participant External
          • Participant Client Company
          • Participant LOV
          • Save Participant
          • Upload Participant
          • Upload Participant Copy
          • Upload Participant External
          • Toolset Detail
        • Matriks Menu
          • Matriks Menu
          • Matriks Menu Copy
          • Matriks Menu B2C
        • Tool Component
          • Cluster
            • Find All Tool Component Cluster
            • Find Detail Tool Component Cluster
            • Update Tool Component Cluster
            • Delete Tool Component Cluster
            • Add Tool Component Cluster
          • Tool Component Folder
            • Get List
            • View
            • Create
            • Update
            • Move Folder
          • Tool Set Folder
            • Get List
            • View
            • Create
            • Update
            • Move Folder
          • Get All Tool Component
          • Get Tool Component
          • Get Tool Component Point Setting
          • Block Find By Tool Component
          • Preview Tool Component
          • Get Tool Set
          • Get Tool Set List
          • Get Tool Set Detail
          • Preview Tool Set
          • Tool Set By Id
          • Get Factsheet
          • Get Block
          • Update Item
          • Add Tool Component
          • Add Page
          • Duplicate Tool Component
          • Add Audiorec
          • Update Fields Bipolar
          • Update Constant Sum
          • Update Field Forms
          • Update Field RTE
          • Update Fields Dropdown
          • Update Drag And Drop
          • Update Multiple Choice Item
          • Update Audio Rec
          • Delete Toolset
          • Upload File
        • Openlink Delivery
          • Report
            • View Report
          • Batch List
          • Add Batch
          • Edit Batch
          • Upload
          • List Participant Anonymous
          • Participant View Openlink
        • Batch Project
          • List Batch
          • List Batch By Type
          • List Batch By Company Id
          • List Batch Openlink
          • List Batch B2C
          • List Batch B2C Participants
          • List Batch Report
          • Project Info
          • Project Info B2C
          • Batch Info B2C
          • Project By Participant
          • List Toolset
          • Batch Find By Id
          • Project Find By Id
          • Get Level List
          • Get Level Detail
          • Add Batch
          • Add Batch Open Link
          • Edit Batch Open Link
          • Edit Batch
          • Delete Batch
        • Recruitment Request
          • Potency
            • Update Potency
            • Potency List
            • Detail Potency
            • Add Potency
          • Client Project Find All
        • App Config
          • Get Email Template By Id
          • Extract Tags
        • Email
          • Send Email External
          • Send Email
        • Admin Client Company
          • Get All
          • Get All By Company
          • Client Company List
          • Client Company List Subscription
          • Get Client Company By Id
          • Find Client Company
          • Get Batch Info
          • Get Client Company Batch Find All
          • Get Client Company Batch Auto Authentication
          • Get Employees for selection
          • Add Admin Client
          • Add Admin Client 2
          • Add Client Partition
          • Client Company Update
          • Get Ref Theme Colors
        • Email Template
          • Get All
          • Get By ID
          • Replace Tag
          • Add Email Template
          • Update Email Template
          • Set Default Email Template Copy
        • Subscription
          • Get All Client Subscription
          • Get Client Subscription By Company
          • Add Client Subscription
          • Update Client Subscription
          • Delete Client Subscription
          • Get Expired
          • Topup history
        • Dashboard
          • Get Subscription Reminder
          • Get Subscription Period
          • Get Summary Card
          • Get Usage
          • Get Recent Batches
        • Employee
          • Get Employee
          • Save Employee
          • Update Employee
          • Upload
        • Rater
          • Get Rater
          • Log Aggregate
          • Get Rater Task List
          • Download Template
          • Delete Rater
          • Upload
          • Upload List
          • Download
          • Rater Option
          • Get Candidate List
          • Get Candidate Find All
          • Get Candidate Rating
          • Get Preferred Schedule
          • Get View Proctoring
        • Company
          • Lov Company
          • Delete Client Compnay Partition
          • Upload Logo
          • List Batch
          • Export Qontak
          • List Batch Openlink
        • Download Upload List
          • Get Download List
          • Get Upload List Participant
          • Get Upload List Employee
          • Start download raw report
        • Recruitment Master
          • Ref Logical Category
            • Lookup
          • Recalculate
            • Get Recalculate List
            • View
            • Add Recalculate Norma
          • Save Group Competency
          • Add Group Competency
          • Group Competency List
          • Preview Competency
          • Preview Group Competency
          • Competency List By Ids
          • Group Competency Detail
        • Client Setup
          • Add Client Company
          • Update Client Company
          • Delete Client Company
          • Get Client Setup
          • Get Client Setup Custom
          • Get Client Partition
          • Get Toolset
          • View Client Partition Tool Set
          • Add Client Setup Custom
          • Delete Client Partition Tool Set
          • Find All Client Subscribtion
          • Subscribtion
        • Participant Interview
          • Save Competency Rating
          • Save Competency Rating Copy
          • Candidate List
          • Update Rater Status
          • Update Candidate
          • Candidate Rating Result
          • Download Template Candidate
          • Upload Candidate Bulk
        • Blockscreen
          • Find All
          • Get Blockscreen
        • Group Interview
          • Get Candidate Group Interview
          • Get Candidate Group Interview Find By Id
          • Download Excel
        • User Role
          • Get Role
          • Get Role Group
          • Save Role
          • Update Role
          • Send Invitation
        • Dimension
          • Potency Item
            • Lookup Potency Item
          • Get Dimensions
          • View Dimension
          • Preview Dimension Detail
          • Preview Dimension
          • Preview Formula Detail By Mapping AggregateMatriksId
          • Preview Formula Detail
          • Get Cluster
          • Add Dimension
          • Set Dimension
          • Bulk Set Dimension
          • Update Dimension
          • Delete Dimension
        • Recommendation
          • Trans Recommendation
            • Trans Recommendation Matrix By Batch Id
            • Trans Recommendation Matrix View Individual Report
            • Trans Recommendation Matrix By Recommendation Matrix Id
            • Trans Recommendation Matrix Detail
            • Trans Recommendation Matrix Detail Copy
            • Delete Trans Recommendation Matrix
            • Trans Recommendation Matrix Bulk Save
          • Get Recommendations
          • Lookup
          • Add
        • Key Actions
          • Delete by PotencyId
        • Tool Folder
          • Tool Set List Folder
        • Personality Traits
          • Save Personality Traits
          • Find All
        • Cutting Point
          • Cutting Point Detail
        • proctoring download
          • Get Proctoring By Participant
        • Ref
          • Ref Compability Check
            • List
        • ToolSet
          • Add
          • Update
          • Download Dummy File
        • Project Manager Company
          • Get PM Users
          • Get List
          • View
          • Create
          • Update
          • Delete
      • Open
        • New Request
    • Report
      • Gateway Process
        • Gateway process
      • Digital Sprint
        • General Individual PDF
        • General Link
        • General Excel Group Report
      • Matriks Menu
        • Matriks Menu
      • DISC
        • General Individual PDF
      • General Report
        • Get Excel Group Report
        • Get Individual Bulk Report
        • DISC General Individual Report
      • Raw Data Report
        • Raw Data Report Default Batch
        • Raw Data Report Default Project
        • Non Default Project
        • Batch Non Default
        • Batch Non Default Anonymous
        • Raw Data Report GBA
      • Project Info
        GET
      • Individual Report Cognitive
        GET
      • Get Download Report
        GET
      • Report Master Aggregate
        GET
      • Get Download Report By Batch
        GET
      • Get Download Report Aggregate Excel
        GET
      • Export PTM Individual
        GET
      • Export PTM Individual Zip PDF
        GET
      • Export PTM Individual Pdf
        GET
      • Get Download Report Gba
        GET
      • Batch Info
        GET
      • New Request
        POST
    • Game Based Assesment
      • Login GBA
        POST
    • Web Participant
      • Detail Participant Interview
        GET
    • Login Web
      POST
    • Login Open Api (SAAS)
      POST
    • Login Web
      GET
    • Login Web Copy
      GET
    • Login Openlink
      POST
    • Login 1
      POST
    • Login Staging
      POST
    • Login SAAS
      POST
    • Login ods
      POST
    • Login Prod
      POST
    • Login Prod SAAS
      POST
    • Login External
      POST
    • Login 2
      GET
    • Refresh token
      POST
    • Refresh Cache
      GET
    • Refresh token ods
      POST
    • Refresh token Gba
      POST
    • Test S3
      GET
    • Test S3 Prod
      GET

    ๐Ÿถ Walk through Apidog

    ๐Ÿ“„ Contents#

    What is Apidog
    Why Apidog
    API Designers: Specify APls
    Back-end Developers: API Developing & Debugging
    Front-end Developers: API Mocking
    QA Engineers: APl Testing
    API Designers & API Consumers: APl Documentations
    Best Practice

    What is Apidog#

    Apidog is an all-in-one toolkit for API development. The whole team can work on it together to produce APIs efficiently and conveniently. Each role in the team can use it to solve their own problems.
    image-20230112105006206
    Apidog follows the API-first approach, which is a development approach where the API is designed and developed before the user interface. This approach has several benefits, such as:
    1.
    Apidog allows teams to work in parallel and establish a contract between services, allowing them to work on multiple APIs simultaneously and improving development speed.
    2.
    Automation can be achieved by using tools that import API definition files, reducing the time needed to develop and launch an API.
    3.
    It ensures a good developer experience, with well-designed and well-documented APIs, making it easy for developers to use and reuse code, onboard new developers, and reduce the learning curve.
    4.
    By solving most of the problems before any code is written, it can also prevent issues when integrating APIs with applications.
    Apidog can help you achieve all these benefits above.

    Why Apidog#

    We have observed that development teams often utilize a variety of tools, such as Postman, Swagger, Stoplight, and Jmeter, to design, manage, and test APIs during the development process. However, the absence of data synchronization and collaboration between these tools can significantly hinder efficiency.
    A better solution is for the entire development team to work within a single API tool. As long as the API documentation is defined, back-end developers can easily implement and self-test the API, front-end developers can easily call the API and use mock data, and test engineers can directly test the API and easily generate test cases. This greatly improves the efficiency of team collaboration.
    That is why we created the Apidog product. It is a comprehensive tool for API design, development, testing, management, documentation, and mocking, specifically designed for team collaboration.

    API Designers: Specify APIs#

    API designers can use Apidog to specify APIs visually or import from OpenAPI specifications.

    Import from OpenAPI specifications#

    If your API has been specified in OpenAPI or any other format, you can import it into Apidog so that it can be easily debugged, tested, or mocked.
    1.
    Click Import in an Apidog project.
    Import
    2.
    Switch to URL Import, paste the following URL and click Submit.
    https://petstore.swagger.io/v2/swagger.json
    URL Import
    You can also select a JSON or YAML file to import. Other API specifications formats are also supported, such as Apidog, HAR, etc.
    3.
    Click Confirm to import.
    Confirm
    4.
    Now you can run or test the API in Apidog.
    image-20230111163711523
    TIP
    Learn more about importing data here.

    Specify a new API#

    API designers can use Apidog to specify APIs in an intuitive interface.
    1.
    Start a new tab and click New API to create an endpoint.
    image-20230111164357797
    2.
    Now we're going to specify an API for querying user information by id. So you can enter these fields into the API.
    API Path
    /users/{id}
    Name
    Get user by id
    image-20230111180123369
    3.
    This API has no query params or body params. You'll see 'id' recognized as a path param. Now the Request part is finished.
    4.
    Roll to the Responses part. In the 'OK(200)' response, change the field type of the root node to 'Refs Model - Schemas - ApiResponse'.
    image-20230111182133080
    5.
    Now this API has a general JSON structure like the following. Each API has a different 'data' field, so add a child node to the root node and name it 'data'.
    image-20230111183541907
    6.
    Change the field type of the 'data' node to 'Refs Model' - 'Schemas' - 'User'.
    image-20230111184058051
    7.
    Now the response structure is specified well. If you need to edit the 'data' structure, you can dereference the schema or dereference a field to edit.
    image-20230111184503122
    TIP
    Learn more about Data Schema here.
    8.
    Roll to the Response Examples part. Click Add Example.
    image-20230111184846475
    9.
    Name the example 'Success'. Now it's the magical part: click Generate Automatically, and the response data will be generated according to the response structure. Click OK to add the example.
    image-20230111185225636
    10.
    Click Save to finish the API specification. You'll get a well-designed API.
    image-20230111190104494

    Back-end Developers: API Developing & Debugging#

    Different teams adopt different development approaches. Some teams adopt API-first, and some teams adopt code-first. Regardless of which method your team uses, back-end developers can use Apidog to assist in the development and debugging of the API.

    Generate Code#

    1.
    While APIs are specified, server stubs and client SDKs can be generated easily. Just click Generate Code on the API page and select Generate Server Stubs & Client SDKs.
    image-20230112141130066
    2.
    Using the OpenAPI Generator engine, server stubs and client SDKs in tens of languages can be generated.
    image-20230112141716502
    TIP
    Learn more about Code Generation here.

    Run the API#

    After API development is completed, the back-end often needs to debug whether the API can give the correct output under different input parameters. Using Apidog makes it easy to debug each API and ensure that they are running normally.
    1.
    In the API page we just created, click the Run button to enter the Run tab.
    image-20230112143153718
    2.
    Enter '1' to the 'id' param. In the request URL to be sent, {id} will be replaced by the value '1'.
    image-20230112150509769
    3.
    Click the Manage Environments button at the top right.
    image-20230112150905364
    4.
    Switch to 'Test Env', and paste the following URL into the 'Default Server' service. Then save the environment.
    https://mock.apidog.com/m1/352945-0-default
    TIP
    Learn more about Environment Management here.
    image-20230112152926197
    5.
    Select the 'Testing Env' so that all the requests will be sent with the base URL just configured in the front.
    image-20230112153642553
    6.
    Click Send to send the request. The response of the API will be displayed below.
    image-20230112174329229

    Debugging#

    After the API is developed, the back-end needs to test whether it can return the expected data and whether the API has implemented the correct business logic.
    1.
    Set the value of the path param to '2', and Send the request.
    image-20230112181113456
    2.
    You'll see an alert '๐ŸšซResponse data differs from API specification: .data.idshouldbeintegerโ€ฒ.Thatisbecausethe.data.id is specified as an integer, but the $.data.id in the actual response is a string.
    image-20230112191828215
    3.
    Apidog automatically verifies whether the API definition and actual response are consistent. Issues such as incorrect data types, undefined enumerated values, missing required fields, and so on will be automatically detected. The back-end can easily discover problems in the response data.
    4.
    Click Save APICase to save the request. The requests will be saved as children of the API and can be referenced in the testing module.
    image-20230112194429922
    image-20230112195055270

    Use Variables#

    In Apidog, variables are used to store values that can be reused across requests.
    Environment variables are specific to an environment, meaning that they are only accessible when a particular environment is selected. Global variables, on the other hand, are accessible across all environments.
    You can define environment variables in the "Manage Environments" section of Apidog, and reference them in your requests using double curly braces notation, for example {{variableName}}.
    Here is an example.
    1.
    Fill the path param 'id' with {{Userid}}.
    image-20230112200744605
    2.
    Click Environment Management. Add a new variable named Userid, and fill the Current Value with '1'. Save the Variable.
    image-20230112201612506
    3.
    Send the request. Click Response - Actual Request to see the request URL, and you'll find the {{Userid}} is replaced by the current value.
    image-20230112202141999
    TIP
    Learn more about Variables here.

    Pre Processors#

    In Apidog, Pre Processors are operations that are executed before a request is sent. They allow you to manipulate the request and environment variables before the request is sent.
    Pre Processors can be used to:
    Set or modify variables that are used in the request
    Perform data validation or data transformation
    Add or modify headers
    Log information or debug data
    Make other requests and store the response data in variables
    Modify the request URL
    These operations can be written in JavaScript, and you can use the Postman SDK to access the request and response objects, as well as the environment and global variables. Once a script is added, it will execute every time the request is sent.
    Here is an example to modify the request param value in Pre Processors.
    1.
    Click the Pre Processors tab, and click the Add PreProcessor button. Add a Custom Script.
    image-20230112204309478
    2.
    Paste the following script into the Custom Script area.
    image-20230112210726674
    3.
    Drag the Custom Script before the Variable Substitution operation. Send the request.
    image-20230112210917938
    4.
    After sending, you'll see the value of {{Userid}} became 2. And if you send the request many times, the {{Userid}} will plus one each time sending.
    image-20230112211449147
    5.
    Public Script, Database Operation, and Wait can also be added to Pre Processors.
    image-20230113112243557
    TIP
    Learn more about Scripts here.

    Front-end Developers: API Mocking#

    API mocking is a simulated version of an API that is used for testing and development purposes. It allows developers to test their applications or services without relying on a live API, and can be configured to return specific responses to incoming requests.
    Based on the specified API, Apidog can generate mock data automatically without any configuration. That's very convenient for front-end developers.
    1.
    Switch to the API tab and click Local Mock. Click the URL & Params of 'OK(200)' to copy to the clipboard.
    image-20230113145039145
    2.
    Paste the URL to a browser. And you'll see a generated JSON. The data is dynamic; each time you reload the page, the data will refresh.
    Especially you'll find the data generated are reasonable according to the name of the node, just like 'email' or 'lastName'. This is the powerful Smart Mock feature of Apidog.
    image-20230113150222660
    3.
    Go to the Edit tab and Dereference the 'ApiResponse' Schema in the Response Part.
    image-20230113151121176
    4.
    Type the Mock value into the nodes, and Save the API.
    code
    200
    type
    JSON
    message
    Success
    image-20230113152334278
    5.
    Reload the page in the browser, and you'll find the JSON data refreshed, and the 'code', 'type', and 'message' fields are generated according to your settings. Now the front-end developer can use the URL to get data in the client they are developing.
    image-20230113152641730
    6.
    Faker.js is also supported in the mock settings. You can select any Faker.js grammar to generate dynamic mock data.
    image-20230113160844357
    7.
    If you need the mock response to be fixed, go to Settings - Feature Settings - Mock Settings - Default Mock Type, and switch to Response Example First. Then Apidog mock engine will use the API response example as the mock response.
    image-20230113161432735
    TIP
    The mocking feature in Apidog also supports cloud mocking, returning different mock responses for different request parameters, using scripts to rewrite mock responses, customizing intelligent mock matching rules, and so on. Learn more about Mocking here.

    QA Engineers: API Testing#

    Apidog's automated testing module allows QA engineers to directly generate test scenarios referring API definitions or API cases. It supports data-driven testing and easily generates dynamic test data. The visual assertion and variable extraction features make writing test cases very simple. Apidog also supports CI/CD.

    Assertions#

    In Apidog, test assertions can be added visually in Post Processors. It also supports adding assertion statements in custom scripts using the Postman SDK.
    1.
    Go to Get user by id - Success, switch to Post Processors and Add PostProcessor - Assertion.
    image-20230113174235604
    2.
    Enter the following assertion parameters into the Assertion.
    JSONPath Expression
    $.code
    Assertion
    Equals: 200
    TIP
    Learn more about JsonPath here.
    image-20230113175042069
    3.
    Send the request, and you'll see the Assertion Result.
    Apidog will get the value of $.code from the response JSON and compare it with the assertion. If they match, the assertion will pass.
    image-20230113180106665
    4.
    Extract Variable, Custom Script, Public Script, Database Operation, and Wait can also be added to Post Processors.
    MySQL, SQL Server, Oracle, PostgreSQL, and ClickHouse Database are supported in Apidog. SQL statements can be executed, and the SELECT result can be extracted to variables. Other SQL like INSERT, DELETE, and UPDATE can also be executed.
    image-20230113182425314
    TIP
    Learn more about Database Operation here.

    Test Scenarios#

    After writing the assertions, multiple API cases can be imported into a single test case, run with one click, and generate a test report.
    1.
    Switch to the Testing module. Create a New Test Case.
    image-20230116101016832
    image-20230116101315576
    2.
    Enter the case. Click Add Step and select Import from API Cases.
    image-20230116101614558
    3.
    Select API cases to be imported: 'Add a new pet to the store - Success', 'Find pet by ID - Success', 'Update an existing pet - Success'. Click OK to import.
    image-20230116112924647
    4.
    Click Run to execute the test case. Then you'll see a test report, and the details of each request.
    image-20230116113434905
    image-20230116122321047
    5.
    Click More to see what went wrong with the failed API and compare the response with the assertions to locate the problem.
    image-20230116122337775
    image-20230116113543359
    TIP
    Learn more about Test Cases here.

    Data-Driven Testing#

    If variables are used in API cases, then the value of the variables can be set using a data table or by using the Dynamic Value feature to automatically generate variable values.
    1.
    Turn on the Test Data switch, and click Manage Data.
    image-20230116115746243
    2.
    Add variables and datasets, then values of the variables. Importing from CSV or JSON is also supported.
    image-20230116121308758
    3.
    Save and Run, and the values of the variables will be used in the iterations of the test case.
    image-20230116122633829
    image-20230116122645312
    TIP
    Learn more about Test Data here.

    Dynamic Values#

    If you need a dynamic change in parameter values for an API, you can use the "dynamic variable" feature.
    1.
    Click Detail of the API case, and click the ๐Ÿช„(magic wand) button to open the Dynamic Value dialogue.
    image-20230116152731123
    image-20230116152741309
    2.
    Select Datatype - number, and you'll see a preview of the dynamic value. Click Insert to apply the dynamic value.
    image-20230116152930710
    3.
    Dynamic values will take effect in the actual sent request. You can see the actual values sent in the Actual Request. Each time the request is sent, the dynamic value will generate a new value.
    image-20230116154913168
    4.
    Dynamic values can also be inserted into the request body in JSON or XML format and will also be processed as actual values when sent.
    image-20230116155616419
    TIP
    Learn more about Dynamic Value here.

    CI / CD#

    Apidog supports running via command line. After installing the Apidog CLI, you can use the command apidog run to get a command line test report. This command can also be used in Jenkins for implementing CI/CD.
    1.
    Click CI/CD in a test case.
    image-20230116161222678
    2.
    Set the test parameters and click save, and you will get a command line statement. Click Learn More to install Apidog CLI.
    image-20230116161555283
    TIP
    Learn more about CI / CD here.

    API Designers & API Consumers: API Documentations#

    After the API is designed, developed, debugged, and tested, it becomes a product that can be called by other users. Apidog can generate beautiful API documentation, making it easy for the development team to publish the API outside of the team.
    1.
    Switch to the Share module, and +New a share.
    image-20230116170305115
    2.
    Select the environment that will be effective in the API documentation. Readers of the API documentation will be able to use the environment configured here to run the API.
    image-20230116171015801
    3.
    Open the shared docs in a browser.
    image-20230116171644215
    4.
    The API documentation is generated and can be shared on the internet. It also can be Try it out on the shared website.
    image-20230116174457461
    image-20230116174515172
    5.
    Code Samples feature supports generating API request code in dozens of languages, allowing API readers to directly call the API with the generated code.
    image-20230116175126801
    6.
    Code Generation in the Responses also supports generating code for the structure of the response data, supporting several dozens of languages. API consumers can use the generated code in their implementation.
    image-20230116181338769
    image-20230116181353377
    7.
    Custom domain, Top Navigation, Catalog Style, Content Footer, and more custom features are also supported in the documentation.
    image-20230116182555891

    Best Practice#

    1.
    In Apidog, the API designer (or Back-end developer) defines the specifications for the API.
    2.
    The development team collaborates to review and improve the documentation, and to ensure consistency in the API use cases.
    3.
    Using Apidog, front-end developers can begin development with automatically generated mock data, eliminating the need for manual mock rule creation.
    4.
    Back-end developers can debug using the API use cases during development. If all API use cases pass during debugging, the API development is considered complete. If changes to the API occur during development, the API documentation is automatically updated during debugging, ensuring timely API maintenance with minimal effort.
    5.
    After debugging, back-end developers can easily save the function as an API use case.
    6.
    QA engineers can then test the API directly using the API use cases.
    7.
    Once all APIs have been developed, QA engineers (or back-end developers) can use the test case and test collection function to conduct comprehensive multi-API integration testing.
    8.
    Joint debugging between front-end and back-end development is typically seamless because both teams adhere to the API's specifications, allowing front-end developers to switch from mock data to real data.
    9.
    Once the API development is complete, Apidog generates a beautiful API documentation, making it easy for the development team to publish the API to external teams.
    The above is a summary of the core features and usage of Apidog. Apidog also has many other rich features that can help development teams efficiently develop and debug APIs.
    Modified atย 2024-03-06 01:29:02
    Next
    Digital Sprint General Individual Pdf
    Built with