- Assertion.ru - http://assertion.ru -
Markup transfer – nightmare or a piece of cake?
Posted By admin On June 13, 2007 @ 3:34 pm In Work | No Comments

The whole process of creating a markup and developing tests is time consuming. And when it seems that the work is done, a new version of spec is released. What happens next? Of course there is a need of a new version of the test suite. New tests must be written and the old ones updated or even deleted.
The best way to start is to do the markup. This task can be devided into two subtasks:
Transferring the markup is simple enough to do it by hand:
If there are only 10 assertions – this work is a piece of cake. But if there are thousands it is a hard job that should be automated. The hardest part is to find a new proper place for markup tags. It’s hard just because the spec was changed. For JLS2 to JLS3 migration process the flollowing alrorithm was used:
Each assertion is rounded with html anchors. Both of them should be transferred using such algorithm.
Hint 2: algorithm should check that the second anchor should be positioned after the first one and not too far from it.
wasn’t changed – the answer is found. usually the length should be 1-2 sentances, at least 60 characters long. If none or several sentances found – skip this step.Adopt algorithm could be used with both ignoring html tags and taking advantage of them. Algorithm is valid for specs written in plain text, html or xml.
This algorithm was implemented in JLS2->JLS3 markup transfer tool. 84% of the markup tags were transfered automatically. The rest of them were done manually.
Article printed from Assertion.ru: http://assertion.ru
URL to article: http://assertion.ru/markup-transfer-nightmare-or-a-piece-of-cake/
Click here to print.
Copyright © 2004-2010 Assertion.ru. All rights reserved.