reAJAX - FBK | SE - Fondazione Bruno Kessler
reAJAX - FBK | SE - Fondazione Bruno Kessler
reAJAX - FBK | SE - Fondazione Bruno Kessler
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Step 3 Application execution tracing by starting and stopping the <strong>reAJAX</strong> tracer;<br />
When inspector and mutator elements are selected, the next step consists in activating the<br />
application execution instrumentation (it is highlighted by a <strong>reAJAX</strong> popup). Therefore, the next<br />
application execution will be traced and during this execution the state of the application will be<br />
recorded in a log file. To trace more executions into different log files it is sufficient to start and<br />
stop the <strong>reAJAX</strong> tracing (respectively) before and after each application execution. Figure 3 shows<br />
the activation of the <strong>reAJAX</strong> tracer for the Cart application.<br />
Figure 4: Cart execution tracing<br />
The execution tracing starts when the <strong>reAJAX</strong> tracer is activated and it stops when the same is<br />
deactivated (by means of the <strong>reAJAX</strong> menu). Each execution trace is stored in a log file such as the<br />
following (it is one execution of the Cart application):<br />
ONLOAD:__:HTTP://LOCALHOST:8080/CART/:__:[<br />
/HTML/BODY/DIV/DIV/UL[@ID='CONTENTS']=0 ;__;<br />
/HTML/BODY/DIV/DIV/SPAN[@ID='TOTAL']=NOTEMPTYMATCH<br />
]<br />
CLICK:__:CHA001_REM:__:[<br />
/HTML/BODY/DIV/DIV/UL[@ID='CONTENTS']=0 ;__;<br />
/HTML/BODY/DIV/DIV/SPAN[@ID='TOTAL']=NOTEMPTYMATCH<br />
]<br />
ONUNLOAD:__:HTTP://LOCALHOST:8080/CART/:__:[<br />
/HTML/BODY/DIV/DIV/UL[@ID='CONTENTS']=0 ;__;<br />
/HTML/BODY/DIV/DIV/SPAN[@ID='TOTAL']=NOTEMPTYMATCH<br />
]<br />
Each row of the log file contains three types of information (separated from special characters<br />
“:__:“ according to the following pattern:<br />
- executed event (e.g., click of the rem button);<br />
- id/name of the event or its Xpath address in the page (e.g., id of the activated button);<br />
- state of the page according to the selected GUI inspectors (e.g., the list of items in the cart).