NOTE: This is the TestCases web. You cannot edit any topic named "TestCase..." or "Web..." in this web, you can only create new topics. Any topics you do create that are not checked into subversion may be deleted by anyone, at any time.

TestCaseSaveContentWithoutEdit

Description: Verify the proper creation or revision of a topic without going through edit, along with the proper handling of URL params in the following cases:
  1. The topic already exisit containing form field values
  2. A templatetopic is specified.
  3. A formtemplate is specified.

In all cases, some form field values will be changed with URL params and other with be left unchanged.

Before this test, the content of the SavedContentExistingTopic should be:
This topic is used by TestCaseSaveContentWithoutEdit

Rubaduba form field should say 2025-03-15 - 09:16 (after running test).

The other form fields should be unchanged. i.e.:
  • Squeegle = Hugh Pugh Barney McGrew
  • Smomble = unchecked
  • Slash Slash Escape = One

The actual content is:

This topic is used by TestCaseSaveContentWithoutEdit

Rubaduba form field should say 2025-03-15 - 09:16 (after running test).

The other form fields should be unchanged. i.e.:
  • Squeegle = Hugh Pugh Barney McGrew
  • Smomble = unchecked
  • Slash Slash Escape = One

if the content is different, you need to delete SavedContentExistingTopic and "svn update" again.

Test #1: Passing URL Params to update fields in an existing topic

If SavedContentExistingTopic r1 is not r1,

to run the test. Expected result:

  • The topic should still contain the content shown above.
  • Rubaduba form field should contain current GMTIME. This variable is also in topic for comparison.
  • The other form fields should be unchanged. i.e.:
    • Squeegle = Hugh Pugh Barney McGrew
    • Smomble = unchecked
    • Slash Slash Escape = One

Test #2: Passing URL Params to new topic with templatetopic specified

Before running this test, check if SavedNewTopicNoEdit exist and, if so,

to run the test. Expected result: to run the test and topic. Expected result:

  • The topic should contain some content, including some text passed in url.
  • Rubaduba form field should contain current GMTIME. This variable is also in topic for comparison.
  • The other form fields should be unchanged. i.e.:
    • Squeegle = Hugh Pugh Barney McGrew
    • Smomble = unchecked
    • Slash Slash Escape = One

Test #3: Passing URL Params to new topic with formtemplate specified

Before running this test, check if SavedNewTopicNoEdit exists and, if so,

to run the test. Expected result: to run the test and topic. Expected result:
  • The topic should contain some text passed in url.
  • The topic should have ThisForm assigned.
  • Rubaduba form field should contain current GMTIME.
  • Squeegle form field should contain "Hugh"
Wersja tematu: r1. Ostatnia edycja: 2005-08-17, LynnwoodBrown. Stronę odwiedzono %COUNTER_PLUGIN% razy.
 
O ile nie jest to stwierdzone inaczej, wszystkie materiały na stronie są dostępne na licencji Creative Commons Uznanie Autorstwa 3.0 Polska.
Pewne prawa zastrzeżone na rzecz Polskiej Partii Piratów. Serwis wykorzystuje oprogramowanie Foswiki na licencji GPL v2.