LK-Test-Solutions / OpenTDK

The open tool development kit provides java libraries for efficient implementation of data processing tools. Primarily the libraries have been build to close gaps within the process of test automation, but they can be helpful for implementing any application that needs to collect data from different sources, transform the data and generate output in different formats (textual, graphical etc.).
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

Extend Dispatcher with variable attributes #21

Closed SoccerFive18 closed 1 year ago

SoccerFive18 commented 2 years ago

Current usage

/AppSettings/Themes/theme[@name='{param_1}']

With variable attribute

/AppSettings/Themes/theme[@{attribute_1}='{param_1}']

Task

Run a dispatcher test and check where a call like _E_XMLFile_Dispatchervalues.BACKGROUND_IMAGE.getValue("name=darkTheme"); points to.

SoccerFive18 commented 2 years ago

To use the tag index in the XPath the following syntax is possible: parent[@name="parent"]/child[1]

SoccerFive18 commented 2 years ago

BaseDispatchComponent.resolveXPath adjusted ==> regression test run successfully