<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Dataform_Tests</id>
	<title>Dataform Tests - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Dataform_Tests"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Dataform_Tests&amp;action=history"/>
	<updated>2026-05-06T18:44:36Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Dataform_Tests&amp;diff=3345&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Dataform_Tests&amp;diff=3345&amp;oldid=prev"/>
		<updated>2024-10-18T06:37:36Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 06:37, 18 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Dataform_Tests&amp;diff=3344&amp;oldid=prev</id>
		<title>1&gt;Itamart в 22:53, 13 апреля 2014</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Dataform_Tests&amp;diff=3344&amp;oldid=prev"/>
		<updated>2014-04-13T22:53:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Dataform}}&lt;br /&gt;
{{Dataform Docs Note 1}}&lt;br /&gt;
==Unit tests==&lt;br /&gt;
===Available tests===&lt;br /&gt;
====Generator====&lt;br /&gt;
Dataform instance creation and gradebook integration.&lt;br /&gt;
====Events====&lt;br /&gt;
Triggers, captures and validate events for:&lt;br /&gt;
*View&lt;br /&gt;
*Field&lt;br /&gt;
*Filter&lt;br /&gt;
*Entry&lt;br /&gt;
====Access====&lt;br /&gt;
Validates access for:&lt;br /&gt;
*entry view&lt;br /&gt;
*entry add&lt;br /&gt;
*entry update&lt;br /&gt;
*entry delete&lt;br /&gt;
*field view&lt;br /&gt;
*field update&lt;br /&gt;
*view access&lt;br /&gt;
====CSV Import====&lt;br /&gt;
Import of base patterns of standard fields.&lt;br /&gt;
==Acceptance tests==&lt;br /&gt;
===Available features===&lt;br /&gt;
====Activity====&lt;br /&gt;
=====Basics=====&lt;br /&gt;
*Adds a Dataform activity to a course.&lt;br /&gt;
*Adds all standard fields with default settings.&lt;br /&gt;
*Adds all standard views with default settings.&lt;br /&gt;
*Submits a new entry with content in the text field in each view.&lt;br /&gt;
*Sets quick filter&lt;br /&gt;
**Sets quick per page and navigates between pages with the paging bar&lt;br /&gt;
**Filters entries with the quick search&lt;br /&gt;
**Resets the quick filter&lt;br /&gt;
*Adds standard filters with sort and search criteria and applies them to the view&lt;br /&gt;
*Adds advanced (user) filter and applies it to the view&lt;br /&gt;
=====Max entries=====&lt;br /&gt;
=====Max entries with interval=====&lt;br /&gt;
=====Not ready=====&lt;br /&gt;
=====Separate participants=====&lt;br /&gt;
====field====&lt;br /&gt;
=====field checkbox=====&lt;br /&gt;
=====field duration=====&lt;br /&gt;
=====field file=====&lt;br /&gt;
=====field number=====&lt;br /&gt;
=====field picture=====&lt;br /&gt;
=====field radiobutton=====&lt;br /&gt;
=====field select=====&lt;br /&gt;
=====field selectmulti=====&lt;br /&gt;
=====field text=====&lt;br /&gt;
=====field textarea=====&lt;br /&gt;
=====field time=====&lt;br /&gt;
=====field url=====&lt;br /&gt;
====view====&lt;br /&gt;
=====view all submission buttons=====&lt;br /&gt;
*Scenario: Submit entries with different submission buttons&lt;br /&gt;
*Scenario: Submission should not be allowed when no submission buttons enabled&lt;br /&gt;
=====view aligned=====&lt;br /&gt;
=====view csv=====&lt;br /&gt;
=====view grid=====&lt;br /&gt;
=====view interval=====&lt;br /&gt;
=====view rss=====&lt;br /&gt;
=====view tabular=====&lt;br /&gt;
===Available steps===&lt;br /&gt;
====Given I start afresh with dataform &amp;quot;DATAFORM_NAME_STRING&amp;quot;====&lt;br /&gt;
Prepares  a fresh environment with the following components and a dataform activity &amp;#039;Test dataform&amp;#039; in Course 1.&lt;br /&gt;
Course:&lt;br /&gt;
 | fullname | shortname | category&lt;br /&gt;
 | Course 1 | C1 | 0&lt;br /&gt;
 &lt;br /&gt;
Users:&lt;br /&gt;
 | username | firstname | lastname | email&lt;br /&gt;
 | teacher1 | Teacher | 1 | teacher1@asd.com&lt;br /&gt;
 | assistant1 | Assistant | 1 | assistant1@asd.com&lt;br /&gt;
 | student1 | Student | 1 | student1@asd.com&lt;br /&gt;
 | student2 | Student | 2 | student2@asd.com&lt;br /&gt;
 | student3 | Student | 3 | student3@asd.com&lt;br /&gt;
&lt;br /&gt;
Enrollments:&lt;br /&gt;
 | user | course | role&lt;br /&gt;
 | teacher1 | C1 | editingteacher&lt;br /&gt;
 | assistant1 | C1 | teacher&lt;br /&gt;
 | student1 | C1 | student&lt;br /&gt;
 | student2 | C1 | student&lt;br /&gt;
 &lt;br /&gt;
Groups:&lt;br /&gt;
 | name    | description | course  | idnumber |&lt;br /&gt;
 | Group 1 | Anything    | C1 | G1   |&lt;br /&gt;
 | Group 2 | Anything    | C1 | G2   |&lt;br /&gt;
&lt;br /&gt;
Group members:&lt;br /&gt;
 | user     | group  |&lt;br /&gt;
 | student1 | G1 |        &lt;br /&gt;
 | student2 | G2 |        &lt;br /&gt;
&lt;br /&gt;
It also resets (truncates) all Dataform tables to remove any records and reset sequences.&lt;br /&gt;
&lt;br /&gt;
This step is essential for any standalone scenario that adds or updates entries with content since such a scenario has to refer to input elements by fixed field ids and entry ids.&lt;br /&gt;
====Given I go to dataform page &amp;quot;DATAFORM_URL_STRING&amp;quot;====&lt;br /&gt;
Opens Dataform url.&lt;br /&gt;
====Given I add a dataform with &amp;quot;DATAFORM_URL_STRING&amp;quot;====&lt;br /&gt;
Adds a dataform as teacher 1 in course 1 and displays the dataform.&lt;br /&gt;
====Then the dataform settings should match &amp;quot;FORM_DATA_STRING&amp;quot;====&lt;br /&gt;
Validates dataform activity settings.&lt;br /&gt;
====Given I add a test dataform====&lt;br /&gt;
Adds a test dataform as teacher 1 in course 1 and displays the dataform.&lt;br /&gt;
====Given I delete this dataform====&lt;br /&gt;
Deletes the dataform.&lt;br /&gt;
====Given I go to manage dataform &amp;quot;TAB_NAME_STRING&amp;quot;====&lt;br /&gt;
Go to the specified manage tab of the current dataform.&lt;br /&gt;
====Given I add a dataform field &amp;quot;FIELD_TYPE_STRING&amp;quot; with &amp;quot;FORM_DATA_STRING&amp;quot;====&lt;br /&gt;
Adds a field of the specified type to the current dataform with the provided table data (usually Name).&lt;br /&gt;
====Given I add a dataform view &amp;quot;VIEW_TYPE_STRING&amp;quot; with &amp;quot;FORM_DATA_STRING&amp;quot;====&lt;br /&gt;
Adds a view of the specified type to the current dataform with the provided table data (usually Name).&lt;br /&gt;
====Given I set view &amp;quot;VIEW_NAME_STRING&amp;quot; as default view====&lt;br /&gt;
Sets a view as the default view of a dataform instance.&lt;br /&gt;
====Given I add a dataform filter with &amp;quot;FORM_DATA_STRING&amp;quot;====&lt;br /&gt;
Adds a filter with the specified data to the current dataform.&lt;br /&gt;
====Given I prepend &amp;quot;TEXT_STRING&amp;quot; to field &amp;quot;FIELD_STRING&amp;quot;====&lt;br /&gt;
Prepends text to the field&amp;#039;s content.&lt;br /&gt;
====Given I apppend &amp;quot;TEXT_STRING&amp;quot; to field &amp;quot;FIELD_STRING&amp;quot;====&lt;br /&gt;
Appends text to the field&amp;#039;s content.&lt;br /&gt;
====Given I set dataform field &amp;quot;FIELD_NAME_STRING&amp;quot; options to &amp;quot;OPTIONS_STRING&amp;quot;====&lt;br /&gt;
Sets a dataform field setting to the given content.&lt;br /&gt;
====Given I set the field &amp;quot;FIELD_NAME_STRING&amp;quot; to====&lt;br /&gt;
Sets field value to the specified text passed as PyStringNode.&lt;br /&gt;
====Given I fill textarea &amp;quot;FIELD_STRING&amp;quot; with &amp;quot;TEXT_STRING&amp;quot; ====&lt;br /&gt;
Fills a textarea with the specified text replacing \n with new lines.&lt;br /&gt;
===Step values===&lt;br /&gt;
====FORM_DATA_STRING====&lt;br /&gt;
==See also==&lt;br /&gt;
*[https://docs.moodle.org/dev/Acceptance_testing Acceptance testing] - information about preparing your Moodle installation for acceptance testing. Note that this is not recommended for production sites.&lt;br /&gt;
*[https://docs.moodle.org/dev/Acceptance_testing#Writing_features Writing features] - general test writing guidelines.&lt;/div&gt;</summary>
		<author><name>1&gt;Itamart</name></author>
	</entry>
</feed>