Saturday 31 August 2013

week 13 - Complex Conditionals UI

This is the 13th week. This week I continued working on the Complex Conditional UI.

I have developed two UIs for adding Complex Conditionals:


  • via Script Tree: It is now possible to build a new conditional with empty expression. The expression will be then built step by step by adding AND/OR nodes: Here some screenshots:

and this is the result:
As you can see, the "IF" node contains no child (no expression).
User can then add other nodes, such as Simple Conditional, AND or OR nodes:
This is an example:
  • via a complex Conditional Dialog:
This is the screenshot:
What is still missing?
I have to add some lines to manage elimination of complex conditional nodes; 
Some lines to perform a check about where is it possible to insert which type of conditional node;
A method to add the complete subtree given by a complete structured expression (built with the complex conditional dialog) .




Friday 23 August 2013

Week 12 - Complex Conditional UI

This week I completed and pushed the definitive code for ZestLoops.
Then I started working on ComplexConditional. I created a sample UI based on the prototype I made in my proposal:
There are still many things to do for Complex Conditional. The most interesting challenge is to parse the condition and create the RootExpression for the structured conditional.

This week I wrote a basic standard text representation for all the simple conditionals, and I wrote the regex to recognize them.

Saturday 17 August 2013

Week 11 - Loops UI, tests and refractoring

This is the 11th week.

This week I worked a lot on loops, making the edits required to the loop interface.

These changes forced me to refractor the previous code. Also some problem occurred.

The main problem is about the serialization of loops. The test I made for serialization passed because they consisted on the serialization of a single Loop. This kind of test was not good, because it didn't consider the loop inside a Script. In fact the serialization of a Script containing a Loop didn't work properly.

This problem is caused by the usage of generics and a bad design of the structure of loops.

This week I noticed this problem and fixed it making some changes at the design:

  • The set of token is now declared in the subtype (LoopInteger, LoopFile & LoopString);
  • The step is declared only for LoopInteger;
  • The loop phase now considers the  index of the current token, and no more the value of the token.
After these changes I worked also at the Loop UI, changing the previous dialogs, here some snapshots:

This is the dialog for String Loops:
This is the dialog for Integer Loops:
This is the dialog for File (only fuzzers files)

Thes interfaces are much more easy.

As you can see, I inserted a new field: "Variable Name". This is a change I had to made to loops because it helps a lot in  the usage of the tokens iside the loops.

This week I planned to clear the code and make a, hopefully, definitive push for Loops. 



Friday 9 August 2013

Week - 10 Graphic User Interface

This week I started working on the GUI for Zest.
I started with the UI for Loops, since they should be much more easier than the Complex Conditionals.

Here some simple snapshot (click on the img for zooming):





The images above show how user can create loops graphically (in the example, loops through values stored in a file).

After this simple realization, I started developing another feature: "Surround with..". This feature allow users to add some statement, select them, and wurround them with a Loop!

This week I've implemented these two features.

Two things are missing now:
  1. to allow user load fuzzer files for loops;
  2. Complex conditionals UI.




Friday 2 August 2013

Week 9 - ZestLoop development & Pull Request

This week I continued on ZestLoop, as the realization required much more time I expected.

This required so much time, because of a wrong  interpretation of the requirements.
Differences in the code are:

  • elimination of the ZestLoopToken;
  • change of the inheritance;
  • the creation of the ZestLoopFile;
  • the creation of a different type of TokenSet for integers (to allow loops as follows: FOR i FROM 0 TO 1000);
  • some other minor stuff.
After this merge, I'll start working on the UI for ZAP.