You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a UI performance testing scripts did some error handling using try catch
try{}catch (err) {
console.error('Error occurred during test execution:');
// Log detailed error information
if (err instanceof Error) {
console.error(`Error Message: ${err.message}`);
console.error(`Stack Trace: ${err.stack || 'Stack trace not available'}`);
} else {
console.error('Error is not an instance of Error. Full details:');
console.error(err);
}
console.error(`Time: ${new Date().toISOString()}`);
}
i am getting below logs & getting empty strings
ERRO[1349] Error occurred during test execution: source=console
ERRO[1349] Error is not an instance of Error. Full details: source=console
ERRO[1349] {} source=console
ERRO[1349] Time: 2025-01-15T10:50:35.994Z source=console
Brief summary
I have created a UI performance testing scripts did some error handling using try catch
try{}catch (err) {
}
i am getting below logs & getting empty strings
ERRO[1349] Error occurred during test execution: source=console
ERRO[1349] Error is not an instance of Error. Full details: source=console
ERRO[1349] {} source=console
ERRO[1349] Time: 2025-01-15T10:50:35.994Z source=console
k6 version
k6 v0.55.0 (commit/90bb9415d0, go1.23.3, linux/amd64)
OS
ubuntu 22.04 LTS
Docker version and image (if applicable)
No response
Steps to reproduce the problem
1- create a try catch as mentioned in the above statement.
2- use pom for the performance tests.
3- run your tests in multiple iterations
Expected behaviour
Scripts looks fine to me, Its shouldn't be throwing error randonly.
Actual behaviour
The script should works similar to it works for the first time. doesn't throw random error
The text was updated successfully, but these errors were encountered: