('', 'Exception in thread "main" java.lang.OutOfMemoryError: Java heap space\n\tat java.lang.AbstractStringBuilder.(Unknown Source)\n\tat java.lang.StringBuilder.(Unknown Source)\n\tat com.fasterxml.jackson.core.util.TextBuffer.contentsAsString(TextBuffer.java:394)\n\tat com.fasterxml.jackson.core.json.UTF8StreamJsonParser._finishAndReturnString(UTF8StreamJsonParser.java:2414)\n\tat com.fasterxml.jackson.core.json.UTF8StreamJsonParser.getText(UTF8StreamJsonParser.java:269)\n\tat com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:35)\n\tat com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:10)\n\tat com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:127)\n\tat com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)\n\tat com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)\n\tat com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:286)\n\tat com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:245)\n\tat com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:27)\n\tat com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:127)\n\tat com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)\n\tat com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)\n\tat com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:286)\n\tat com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:245)\n\tat com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:27)\n\tat com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:127)\n\tat com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)\n\tat com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)\n\tat com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4013)\n\tat com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3070)\n\tat io.qameta.allure.allure2.Allure2Plugin.readTestResult(Allure2Plugin.java:344)\n\tat io.qameta.allure.allure2.Allure2Plugin$$Lambda$70/1060097.apply(Unknown Source)\n\tat java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)\n\tat java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)\n\tat java.util.stream.AbstractPipeline.copyInto(Unknown Source)\n\tat java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)\n\tat java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)\n\tat java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)\n')
RF 开发的文件太大 挂了的就有
你的用例有多少啊?
1、这个是 allure 解析日志数据的时候内存满了,你先把测试结果文件拿出来看一下,可能是日志里面有很多 stacktrace 的 log,导致文件过大;分析下用例写的是否有问题。
2、然后再把 Xmx 调大一点。
生成的 pytest 结果文件也就 568M