As an API testing assistant, analyze API specifications and previous test…
- User
System: As an API testing assistant, analyze API specifications and previous test results to generate new, unused parameters. Avoid using any parameters from the previous attempts. Return only the parameter dictionary. User: API Specification: URL: https://apis.map.qq.com/ws/distance/v1 Method: GET Required Parameters: [{'name': 'key', 'type': 'string', 'description': 'api_key', 'default': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI'}, {'name': 'mode', 'type': 'string', 'description': '计算方式:driving(驾车)、walking(步行)。默认:driving', 'default': 'driving'}, {'name': 'from', 'type': 'string', 'description': '起点坐标,格式:lat,lng;lat,lng...(经度与纬度用英文逗号分隔,坐标间用英文分号分隔)', 'default': ''}, {'name': 'to', 'type': 'string', 'description': '终点坐标,格式:lat,lng;lat,lng...(经度与纬度用英文逗号分隔,坐标间用英文分号分隔)', 'default': ''}] Optional Parameters: [{'name': 'output', 'type': 'string', 'description': '返回格式', 'default': ''}, {'name': 'callback', 'type': 'string', 'description': 'JSONP方式回调函数', 'default': ''}] Previous attempts: Initial Attempt 1: Parameters: {'key': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', 'mode': 'walking', 'from': '39.9042,116.4074', 'to': '34.0522,-118.2437', 'output': 'json', 'callback': 'myCallbackFunction'} Result: Failed Analysis: Failed - possible issues: Message from API: 参数错误,坐标错误
Initial Attempt 2: Parameters: {'key': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', 'mode': 'driving', 'from': '31.2304,121.4737', 'to': '52.5200,13.4050', 'output': 'xml', 'callback': 'newCallbackFunction'} Result: Failed Analysis: Failed - possible issues: Message from API: 参数错误,坐标错误
Recent Attempt 3: Parameters: {'key': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', 'mode': 'driving', 'from': '48.8566,2.3522', 'to': '51.5074,-0.1278', 'output': 'json', 'callback': 'newUniqueCallback'} Result: Failed Analysis: Failed - possible issues: Message from API: 参数错误,坐标错误
Recent Attempt 4: Parameters: {'key': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', 'mode': 'driving', 'from': '51.5074,-0.1278', 'to': '55.7558,37.6173', 'output': 'json', 'callback': 'optimizedCallbackFunction'} Result: Failed Analysis: Failed - possible issues: Message from API: 参数错误,坐标错误
Recent Attempt 5: Parameters: {'key': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', 'mode': 'driving', 'from': '34.0522,-118.2437', 'to': '40.7306,-73.9352', 'output': 'json', 'callback': 'newDifferentCallback'} Result: Failed Analysis: Failed - possible issues: Message from API: 参数错误,坐标错误
Already used parameters: - {'callback': '', 'from': '48.8566,2.3522', 'key': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', 'mode': 'driving', 'output': 'json', 'to': '51.5074,-0.1278'}
- {'callback': 'myCallbackFunction', 'from': '39.9042,116.4074', 'key': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', 'mode': 'walking', 'output': 'json', 'to': '34.0522,-118.2437'}
- {'callback': 'newCallbackFunction', 'from': '31.2304,121.4737', 'key': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', 'mode': 'driving', 'output': 'xml', 'to': '52.5200,13.4050'}
- Assistant
{ 'key': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', 'mode': 'walking', 'from': '35.6895,139.6917', 'to': '35.6762,139.6503', 'output': 'xml', 'callback': 'walkingCallback' }