-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Missing attribute value. attribute: {value}, parent: <property> #2
Comments
Same error |
me too |
i'm using a collection with about 150 Request/Tests when i suddenly ran into this error. but i could attach the collection/env, if you need. thanks |
Same comment, I can provide evidence if needed. For me it happens evey time. |
I got that error when I used a variable inside to define the test name. pm.test(pm.info.requestName+"-Status validation") UPDATE: This was actually cause by extracting a properties from the response that didn't exist. It's fix for me. |
Hello guys!
|
Same error here. One collection, 280 requests, a couple of tests per request. |
Hello, I had the same issue. Something to do with a corrupted environment json file ? |
I identified 2 situations which the reporter cannot handle and lead to the above mentioned error.
Example:
A possible solution: test before you assign:
|
any update or workaround? It is working when I execute the test on local (JUnitResult file was generated) but when execution happens in Azure Pipeline this error occurs |
SOLVED ON MY END! The reason why it keeps on failing on my end is because there are requests from my collection that requires a "FILE". After fixing the path using work directory my Test Automation in Azure Pipeline is now working! |
This is a really easy fix. I use a forked version of this repo where the same bug exists. See my PR bhecquet#10 I'd suggest somebody who wants this repo fixed request the same here. |
workaround: make your that you don't have any variable or environment variable that has a "NULL" value. If only the XMLAttribute.js line#14 has this below line of code instead the current one, we would never have this kind of exception: if (name == null) {
this.name = "unknown";
}
else {
this.name = this.stringify.attName(name);
}
if (value == null) {
this.value = "null";
}
else {
this.value = this.stringify.attValue(value);
} |
I experienced the exact same solution as this - maybe the smarter solution would be to post a proper warning message so we can clean up our testsuites? |
👆🏻 Solution |
Hello,
I'm receiving the following error when running collection using Newman with junitfull reporter:
I have 10 collection in my workspace and only one of them returns this error.
I even tried to execute a single request from the collection but still run is failing with the same error( all other collections are executed without any issues).
The text was updated successfully, but these errors were encountered: