Updated on 2026-08-04 GMT+08:00

Completing Intelligent Code Development Using CodeArts Agent

  1. After the tasks.md file is generated, click Execute Tasks. AI will start coding based on the design document.
  2. After the code is generated, choose Terminal > New Terminal in the navigation pane and run the following command to execute the pytest test suite:

    cd D:\url-link-extractor
    pytest tests/ -v

    If all test cases are successfully executed, the code is executable.

    Figure 1 Executing test cases

  3. After the code is compiled successfully, enter the following command in the text box on the chat panel and click :

    Crawl all HTML links with the URL prefix https://support.huaweicloud.com/intl//price-codeartsagent/, for example, https://support.huaweicloud.com/intl//price-codeartsagent/codeartsagent_billing_0001.html.

    Check the accuracy of the URL crawling based on the AI reply. If the crawling results are incorrect, continue the conversation with AI.

    To verify the URL crawling accuracy, you can open the corresponding concatenated links based on the returned results and check whether the pages are displayed properly. For example, if you open https://support.huaweicloud.com//intl//price-codeartsagent/codeartsagent_billing_0001.html in a browser and the page is displayed properly, the crawled link is correct.

    Item	Value
    URL prefix	https://support.huaweicloud.com//intl//price-codeartsagent/
    Discovered links	20
    All status	200 (success)
    Exported file	output/result.xlsx (21 rows = 1 table header + 20 data records)