Arjuna 1.0.14
Pre-releaseNetwork capture support for Web UI testing, heavily improved data references and introduction of configuration stages are the primary themes in this release:
Network packet capture in Web UI tests
- BrowserMob Proxy integration
- Reference Config level options:
- ArjunaOption.BROWSER_NETWORK_RECORDER_ENABLED enables network recording. Default is False.
- Any config level options:
- ArjunaOption.BROWSER_NETWORK_RECORDER_AUTOMATIC instructs to GuiApp to start recording after browser is launched. Also, each GuiPage sets current title to its name. Default is False.
- The packets are captured and shown in HTML Reports just like Web service network packets.
Reporting
- Reference Config level options:
- ArjunaOption.REPORT_NETWORK_ALWAYS - Network info will be included even for passed tests.
- ArjunaOption.REPORT_SCREENSHOTS_ALWAYS - Screenshots will be included even for passed tests.
- Any config level options:
- ArjunaOption.REPORT_NETWORK_FILTER - Only requests with responses with content with html/json/xml are included in report.
Configuration
- Configuration stages defined as Default/Reference/CLI/Coded.
- DisallowedArjunaOptionError exception is raised if one attempts to set a config option at a level where it is not allowed.
Network Recorder Protocol
- request spaces can contain network_recorder
attribute.
- A Network Recorder should have record/register methods. For Web UI automation, it can be set to <app_object>.network_recorder
.
- The recorded traffic is automatically registered in case of errors in fixture/test.
- A record
call also registers existing recording if any.
Data References
- Support bucket query which is equivalent to Arjuna.get_data_ref(bucket_name)
- Support for iterality in Contextual and Indexed References.
- Support for context/index based value retrieval like a dict/list syntax.
- Added documentation for these feature enhancements.
- Added example/test code.
CIStringDict
- Retains case-insensitive inquiries
- When all keys or items or raw object is retrieved, original casing of keys is retained.
DataRecord
- .named_values retains original casing of keys.
HTML Reporting
- JS/HTML now in res files.
- Collapsible redirected network packets based on Stefan's sample code submission.