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.
Tags:
view all tags
---+!! %TOPIC% 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 1 A =templatetopic= is specified. 1 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 %GMTIME% (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: --- %INCLUDE{SavedContentExistingTopic}% --- *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 [[%SCRIPTURL{"save"}%/TestCases?topic=SavedContentExistingTopic&Rubaduba=%ENCODE{"%GMTIME%"}%][Click here]] 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, [[%SCRIPTURL{"manage"}%/%WEB%/SavedNewTopicNoEdit?action=rename;newweb=%TRASHWEB%;newtopic=SavedNewTopicNoEdit;breaklock=1][delete it]]. [[%SCRIPTURL{"save"}%/TestCases?topic=SavedNewTopicNoEdit&templatetopic=TopicTemplateWithUrlParamFixture&testtext=text%20from%20the%20url&Rubaduba=%ENCODE{"%GMTIME%"}%][Click here]] 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, [[%SCRIPTURL{"manage"}%/%WEB%/SavedNewTopicNoEdit?action=rename;newweb=%TRASHWEB%;newtopic=SavedNewTopicNoEdit;breaklock=1][delete it]]. [[%SCRIPTURL{"save"}%/TestCases?topic=SavedNewTopicNoEdit&formtemplate=ThisForm&text=text%20from%20the%20url&Rubaduba=%ENCODE{"%GMTIME%"}%&Squeegle=Hugh][Click here]] 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"
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2021-01-06
-
TWikiGuest
Home
Site map
BETA web
Communications web
Faculty web
Imager web
LCI web
Main web
SPL web
Sandbox web
TWiki web
TestCases web
TestCases Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
Edit
Attach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback