Skip to content
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

test result parsing error #125

Closed
jimmyeisenhauer opened this issue Apr 11, 2017 · 6 comments · May be fixed by #235
Closed

test result parsing error #125

jimmyeisenhauer opened this issue Apr 11, 2017 · 6 comments · May be fixed by #235

Comments

@jimmyeisenhauer
Copy link

running UI tests looks like the parser had a issue on &#x27 which was used in one of the test steps.

/output/3/TEST-OmegaUITests-results.xml: Line 361: PCDATA invalid Char value 8

TEST-OmegaUITests-results.xml.zip

@oliverhu
Copy link
Member

It seems Unicode is not properly handled in BPReporters.m, PR is welcomed :) cc @vargon

@zaidkazi
Copy link

Any news on this still cant get a report because of this issue when it generated the report?

@oliverhu
Copy link
Member

oliverhu commented Jun 26, 2017

Is this still reproducible with latest Bluepill? In BPReporters.m, we have

+ (NSString *)xmlSimpleEscape:(NSString *)originalString {
    if(!originalString) {
        return nil;
    }
    NSMutableString *string = [[NSMutableString alloc] initWithString:originalString];
    [string replaceOccurrencesOfString:@"&"  withString:@"&"  options:NSLiteralSearch range:NSMakeRange(0, [string length])];
    [string replaceOccurrencesOfString:@"\"" withString:@""" options:NSLiteralSearch range:NSMakeRange(0, [string length])];
    [string replaceOccurrencesOfString:@"'"  withString:@"'" options:NSLiteralSearch range:NSMakeRange(0, [string length])];
    [string replaceOccurrencesOfString:@">"  withString:@">"   options:NSLiteralSearch range:NSMakeRange(0, [string length])];
    [string replaceOccurrencesOfString:@"<"  withString:@"&lt;"   options:NSLiteralSearch range:NSMakeRange(0, [string length])];

    return [NSString stringWithString:string];
}

To escape &#x27

@tadashi0713
Copy link

I also have this problem.
I look the xml file, and it seems double single quote ('') caused this error

@zaidkazi
Copy link

same, unfortunately i don't have the xml file anymore to validate which character caused the issue.

@oliverhu
Copy link
Member

close old issues. feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants