Text Files Adaptor examples
Description
Through the Text Files Adaptor, H-TEST can manage plain text files and use them in testing. It’s possible to perform single tests with this adaptor or End to end tests connecting with other adaptors either.
UML Diagram and Mapping
This is an example of a UML Diagram which uses the Text Files Adaptor.
Statement of the exercise
Solving the test case
In the initialization process it is necessary to supply the information to connect to the As400 5250 server. That is the information of the Object Adaptor.
This isexecutor anmust examplebe of interactions between the Text File Adaptor with other adaptors in an E2E test.downloaded:
NECESITO IMAGEN
As part of the mapping process, you should provide the Adaptor’s information, regarding to connect and use it:
FilePath:the complete path, including the name of the file, of the file represented by the adapter in the diagram.CharSet:the charset used to create the file.Create/Overwrite:when the checkbox is marked, TAST will create a new file or overwrite it if the file already exists.
Test Set Execution
AfterWhen we finish executing this test case, we see if it has been executed correctly:
Capture of results
We then open the icon on the right (marked with a red arrow) and we have as a result the evidence folder, where both the log of the execution is stored, as well as all the screenshots, files, etc... if we have checked the "Evidence" box in the general settings of the diagram.
Evidence folder
Log of the execution
When returning the results, H-TEST returns a Word document, detailing the steps we have taken, the results obtained from each step, the links to the diagram and the test setset, execution,if immediately youwe have theclicked results.on Theredownload aredocument two main elements you can verify:
- box.
Logs:The step by step information ofin theexecution,Resultswith:-
theresults. the methods had been executed.the timelines.
-
Evidences:The screenshots or evidence information by step, in case they have requested.
