feat: add pre_post_script_utils test

This commit is contained in:
Udhay-Adithya
2025-07-02 00:09:30 +05:30
parent e5b22a24fc
commit 1dab4fe007
3 changed files with 858 additions and 2 deletions

View File

@@ -142,7 +142,7 @@ Future<
// Process Results
if (result.isError) {
print("Pre-request script execution error: ${result.stringResult}");
// Handle error - maybe show in UI, keep original request/env
//TODO: Handle error - log this error in the logs console
} else if (result.stringResult.isNotEmpty) {
final resultMap = jsonDecode(result.stringResult);
if (resultMap is Map<String, dynamic>) {
@@ -153,7 +153,7 @@ Future<
Map<String, Object?>.from(resultMap['request']));
} catch (e) {
print("Error deserializing modified request from script: $e");
//TODO: Handle error - maybe keep original request?
//TODO: Handle error - log this error in the logs console
}
}
// Get Environment Modifications