Conversion of HTML pages to Delphi unit tests - 26/04/2018 05:47 EDT

I like to have the Delphi code examples of the website DelphiBasics:

[url removed, login to view]

as a kind of DUnit test cases. The exact specification follows below.

The work should be done automatically with an according Perl or Python script. Delphi knowledge isn't necessary but advisable.

You can download a hand made example, which I made from

[url removed, login to view]

I explain the desired specification with this example.

1. at the upper right corner of

[url removed, login to view]

there is an index: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z $

For each letter a list of examples for Delphi keywords is shown. For each referenced page a delphi test unit shall be created.

2. The name of the unit shall be the name of the example in lower case with the prefix "dbsc_". E.g. "Array" -> "dbsc_array".

3. Every unit test has to start with the following 5 lines, but with the according keyword instead of "array":


unit dbsc_array;

//[url removed, login to view]


function ArrayTest: boolean;



4. On the array page you see the green block with the text:

Example code : Declaring and using static arrays

Such green blocks, beginning with the words "Example code", become the start of a test function. The functions have to be numbered. In the example:


function ArrayTest1: boolean;


5. The following block with code has to be copied into the unit test file.



// Define static arrays

wordArray : Array[Word] of Integer; // Static, size=High(Word)



6. The following green block quotes an expected output. This also has to be copied into the unit test file and it has to be put into curly brackets:



wordArray length = 65536

wordArray lowest element = 0




7. At the bottom of the produced unit test, a complete test function has to be written, where all function hitherto have to be called:


function ArrayTest: boolean;


result := true;

result := result and ArrayTest1;

result := result and ArrayTest2;

result := result and ArrayTest3;




This is only the first step of the conversion to unit tests. Maybe that there will be a second job to complete it. But that job would require Delphi knowledge.

Beceriler: Perl, Python

Daha fazlasını gör: rss html pages delphi, delphi extract table html pages, php extract data html pages, flash reloading html pages, convert html pages php, create form html pages, flash menu html pages, free coming soon html pages, javascript hide show html pages, convert english html pages spanish, generate static html pages sql database, iphone app unit tests, convert html pages joomla templates, premade html pages, insert html pages css

İşveren Hakkında:
( 1 değerlendirme ) Hamburg, Germany

Proje NO: #16785473



Hi I can make a Perl script to generate the unit tests from html pages ________________________________________________________________________

%selectedBids___i_period_sub_7% gün içinde 166%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(50 Değerlendirme)

Bu iş için 4 freelancer ortalamada $112 teklif veriyor

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(3 Değerlendirme)

With few years programming in Delphi and recently using Python for any kind manipulation with text, files, scraping etc. we are confident that this job will be done in agreed time frame and with expected quality. More Daha Fazla

in %bids___i_period_sub_35% gün içinde200%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)

With 9 years of experience in Python(Scraping, Automation) I’m confident I can complete this project...

in %bids___i_period_sub_35% gün içinde50%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)