Mercurial > stress-tester
changeset 1298:90ce0004c15f
sequences - bugfixes
author | Devel 1 |
---|---|
date | Thu, 13 Aug 2020 16:15:41 +0200 |
parents | 2090eab05b58 |
children | c662aced580e |
files | stress-tester/src/main/java/com/passus/st/scanner/HttpUrlSequencePayloadAnalyzer.java stress-tester/src/main/java/com/passus/st/scanner/SequenceConverter.java |
diffstat | 2 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/scanner/HttpUrlSequencePayloadAnalyzer.java Tue Aug 11 10:27:28 2020 +0200 +++ b/stress-tester/src/main/java/com/passus/st/scanner/HttpUrlSequencePayloadAnalyzer.java Thu Aug 13 16:15:41 2020 +0200 @@ -138,7 +138,7 @@ String method = req.getMethod().toString(); String datetime = sdf.format(new Date(req.getTimestamp())); String userId = userIdExtractor.extract(event); - String userAgent = req.getHeaders().get(HttpHeaders.USER_AGENT).toString(); // unused + String userAgent = "UA"; //req.getHeaders().get(HttpHeaders.USER_AGENT).toString(); // unused String status = resp == null ? "" : resp.getStatus().toString(); // unused String protocol = Integer.toString(req.getVersion()); // unused, eg. "HTTP/1.1"
--- a/stress-tester/src/main/java/com/passus/st/scanner/SequenceConverter.java Tue Aug 11 10:27:28 2020 +0200 +++ b/stress-tester/src/main/java/com/passus/st/scanner/SequenceConverter.java Thu Aug 13 16:15:41 2020 +0200 @@ -35,7 +35,6 @@ String idKey; int multiplier = 10; int maxRepeats = 10; - boolean normPathSegments; static Map<String, Object> prepareMatchFilter(List<String> ignoredUrls) { List<Map<String, Object>> matches = new ArrayList<>(ignoredUrls.size()); @@ -51,7 +50,7 @@ Map<String, Object> prepareSequenceFilter(List<String> steps) { List<Map<String, Object>> sequence = new ArrayList<>(steps.size()); boolean first = true; - String uriKey = normPathSegments ? "@req.normUri" : "@req.uri"; + String uriKey = "@req.url.path"; for (String step : steps) { Map<String, Object> matcher = lmap(e(uriKey, step)); if (first) {