Silk TrueLog Explorer provides the ability to parse server response data into a variable within a BDL script via the 'Parse Selected Text into a Variable' functionality: There are known issues whilst parsing data from Embedded documents (which has been returned as part of the server response) within Silk TrueLog Explorer. An embedded document is a document which is part of the server response for a specific request, but is actually external from the main (HTML) content. For example, a css (.css) or JavaScript (.js) file can be considered embedded documents. Parsing the server response data, will result in the following addition being made to the BDL script: WebParseDataBoundEx(sParseDataVar1, STRING_COMPLETE, "left_bound", 1, "rightBound", WEB_FLAG_IGNORE_WHITE_SPACE | WEB_FLAG_CASE_SENSITIVE, 1); WebPageUrl("http://......"); Print("sParseDataVar1 " + sParseDataVar1); During TryScript execution, the print statement should print the value which has been parsed from the response in TrueLog Explorer. However, if the data parsed is from an embedded document, no content will be printed in the subsequent TryScript, meaning that the variable, which should house the parse content, contains no data. To address the issue, make an addition to the WebParseDataBoundEx() function, specifically the nOptions parameter to include WEB_FLAG_INCLUDE_EMBEDDED, i.e WebParseDataBoundEx(sParseDataVar1, STRING_COMPLETE, "leftBound", 1, "rightBound", WEB_FLAG_INCLUDE_EMBEDDED | WEB_FLAG_IGNORE_WHITE_SPACE | WEB_FLAG_CASE_SENSITIVE, 1); Upon execution of the next TryScript, the relevant data will be parsed. Meaning that successful parsing of the embedded response data has taken place. Case #2648079
↧