Ilnitckii Vyacheslav Georgievich - Senior teacher of computer science department of Akhmet Baitursynov Kostanay State University, Kazakhstan, Asia.

 

Optimization testing Olympiad problems

 

Software Testing

The purpose of testing software - to make sure that the program works exactly as it was intended. Set of traditional testing methods includes species such as:

• read the code;

• testing of the "black box";

• Unit Testing;

• functional testing.

Some of these tests require direct human intervention, while unit testing, when properly organized, can be fully automated.

We offer a specially designed program, which is designed to facilitate the process of testing Olympiad tasks.

 

The program is divided into two panes. In the "Left" panel selected folder testing program student in the "Right" - selected folders with pre-prepared test tasks, and the anticipated correct answers.

Selecting the appropriate input file of test items press the button " Copy and run the program ," after which the test task is copied to the " Apprentice " and run the program under test . The test result can immediately see by clicking "View Answer ". When testing program in the mini status line fixed start and end time of the program. After this process is repeated with the following tests. Results of testing and run time are recorded in a special register . This program allows to facilitate the verification process execution results Olympiad tasks .

In the present program code is copied from the collections of the test job tests in the program folder and automatically runs it. Here we fix the start of the program.

          .  .  .

  CopyFile(PChar(s1),PChar(s),False);

  ChDir(PChar(DirectoryListBox1.Directory));

  StatusBar1.Panels[0].Text:=TimeToStr(Time);

  WinExec(Pchar(FileListBox1.FileName),SW_SHOWNORMAL);

                .  .  .

The result of  is displayed.

 

Conclusion: The program facilitates and accelerates validation Olympiad programming tasks.

 

Literature:

1 Джефф Рэшка, Элфрид Дастин, Джон Пол:  «Тестирование программного обеспечения» , Москва СП «Диалог» 1996г

2 Всеволод Котляров, Татьяна Коликова:  «Основы тестирования программного обеспечения», Минкс: Высш. шк., 1994г