Skip navigation links
com.auxiliary.http

Class HttpUtil

    • Constructor Detail

      • HttpUtil

        public HttpUtil()
    • Method Detail

      • harFile2InterfaceInfo

        public static List<InterfaceInfo> harFile2InterfaceInfo(File harFile,
                                                                ResourceType... resourceTypes)
        该方法用于读取Har文件中的接口信息,并将其转换为接口信息类对象的方法
        Parameters:
        harFile - Har文件
        resourceTypes - 需要保留的接口类型,不传则保留所有类型接口
        Returns:
        转换后的接口信息类集合
        Since:
        autest 3.6.0
      • formUrlencoded2Extract

        public static String formUrlencoded2Extract(List<Entry<String,Object>> dataList)
        该方法用于对X_WWW_FORM_URLENCODED表单类型的请求体进行拼接,转换成相应的表达式
        Returns:
        表达式文本
        Since:
        autest 3.6.0

Copyright © 2024. All rights reserved.