(5 intermediate revisions by 2 users not shown)
Line 178: Line 178:
 
7.4 url will '''NOT''' have an argument and value of  : '''securetest=ok'''
 
7.4 url will '''NOT''' have an argument and value of  : '''securetest=ok'''
  
== GET1-4: GET Forms:Secure ==
+
== GET1-5: GET Forms:Hidden ==
1. Create page '''Selenium/GET1-4'''
+
1. Create page '''Selenium/GET1-5'''
  
 
2. Add following content and save
 
2. Add following content and save
Line 217: Line 217:
 
7.3 the text field with name "'''test'''" will now have the value of "'''MyTest2'''"
 
7.3 the text field with name "'''test'''" will now have the value of "'''MyTest2'''"
  
7.4 uurl '''will''' have an argument and value of  : '''hiddentest=hiddenvalue'''
+
7.4 url '''will''' have an argument and value of  : '''hiddentest=hiddenvalue'''
ws-base-props
Line 1: Line 1:
 
{{Base properties
 
{{Base properties
|Title=Basic functionality
+
|Title=Basic functionality GET
 
|Class=Doc
 
|Class=Doc
 
}}
 
}}
ws-class-props
Line 1: Line 1:
{{Doc properties
+
{{Csp class properties
|Subject version=2.1
+
|Subject version=2.1,2.5
 
|Doc subject=DevOps:Doc/FlexForm
 
|Doc subject=DevOps:Doc/FlexForm
 
|Doc synopsis=Basic tests
 
|Doc synopsis=Basic tests

Latest revision as of 09:53, 26 August 2025

Prerequisites

User Sysop/Admin or in a user group defined in the setting that allows for creating FlexForms on pages

GET1-1: GET Forms:Text

1. Create page Selenium/GET1-1

2. Add following content and save

<form action="get" id="GET1-1">
  <!-- GET1-1 Selenium test-->
  <input type="text" name="test" />
  <input type="submit" value="GET1-1 test" />
</form>

3. In the form with id="GET1-1" type "MyTest" in the text field with name "test".

4. Click the submit button with value "GET1-1 test".

5. Verify the result:

5.1 Same page is reloaded

5.2 url will now have an argument and value of : test=MyTest

5.3 the text field with name "test" will now have the value of "MyTest"

6. Change the argument in the url test=MyTest to test=Mytest2 and press enter.

7. Verify the result:

7.1 Same page is reloaded

7.2 url will now have an argument and value of : test=MyTest2

7.3 the text field with name "test" will now have the value of "MyTest2"

GET1-2: GET Forms:Radio

1. Create page Selenium/GET1-2

2. Add following content and save

<form action="get" id="GET1-2">
  <!-- GET1-2 Selenium test-->
  <input type="radio" id="huey" name="drone" value="huey" />
  <label for="huey">Huey</label><br>
  <input type="radio" id="dewey" name="drone" value="dewey" />
  <label for="dewey">Dewey</label><br>
  <input type="radio" id="louie" name="drone" value="louie" />
  <label for="louie">Louie</label><br>
  <input type="submit" value="GET1-2 test" />
</form>

3. In the form with id="GET1-2" click on Dewey

4. Click the submit button with value "GET1-2 test".

5. Verify the result:

5.1 Same page is reloaded

5.2 Url will now have an argument and value of : drone=dewey

5.2 Dewey is automatically selected

6. Change the argument in the url drone=dewey to drone=huey and press enter.

7. Verify the result:

7.1 Same page is reloaded

7.2 url will now have an argument and value of : drone=huey

7.3 Huey is automatically selected

GET1-3: GET Forms:Checkbox

1. Create page Selenium/GET1-3

2. Add following content and save

<form action="get" id="GET1-3">
  <!-- GET1-3 Selenium test-->
  <input type="checkbox" name="Role[]" value="organizer" id="organizer-checkbox" />
  <label for="organizer-checkbox">Organizer</label><br>
  <input type="checkbox" name="Role[]" value="participant" id="participant-checkbox" />
  <label for="participant-checkbox">Participant</label><br>
  <input type="checkbox" name="Role[]" value="contact" id="contact-checkbox" />
  <label for="contact-checkbox">Contact</label><br>
  <input type="checkbox" name="Role[]" value="user" id="user-checkbox" />
  <label for="user-checkbox">User</label><br>
  <input type="submit" value="GET1-3 test" />
</form>

3. In the form with id="GET1-3" click on Participant

4. Click the submit button with value "GET1-3 test".

5. Verify the result:

5.1 Same page is reloaded

5.2 Url will now have an argument and value of : Role=participant

5.2 Participant is automatically checked

6. Change the argument in the url Role=participant to Role=contact and press enter.

7. Verify the result:

7.1 Same page is reloaded

7.2 url will now have an argument and value of : Role=contact

7.3 Contact is automatically checked. Other checkboxes are unchecked.

8. Reload the page Selenium/GET1-3 without any arguments and make sure not checkboxes are selected.

9. In the form with id="GET1-3" click on/check Participant and User

10. Click the submit button with value "GET1-3 test".

11 Verify the result:

11.1 Same page is reloaded

11.2 Url will now have an argument and value of : Role=participant,user

11.2 Participant AND Contact are automatically selected

GET1-4: GET Forms:Secure

1. Create page Selenium/GET1-4

2. Add following content and save

<form action="get" id="GET1-4">
  <!-- GET1-4 Selenium test-->
  <input type="text" name="test" />
  <input type="secure" name="securetest" value="ok" />
  <input type="submit" value="GET1-4 test" />
</form>

3. In the form with id="GET1-4" type "MyTest" in the text field with name "test".

4. Click the submit button with value "GET1-4 test".

5. Verify the result:

5.1 Same page is reloaded

5.2 url will now have an argument and value of : test=MyTest

5.3 the text field with name "test" will now have the value of "MyTest"

5.4 url will NOT have an argument and value of : securetest=ok

6. Change the argument in the url test=MyTest to test=Mytest2 and press enter.

7. Verify the result:

7.1 Same page is reloaded

7.2 url will now have an argument and value of : test=MyTest2

7.3 the text field with name "test" will now have the value of "MyTest2"

7.4 url will NOT have an argument and value of : securetest=ok

GET1-5: GET Forms:Hidden

1. Create page Selenium/GET1-5

2. Add following content and save

<form action="get" id="GET1-5">
  <!-- GET1-5 Selenium test-->
  <input type="text" name="test" />
  <input type="hidden" name="hiddentest" value="hiddenvalue" />
  <input type="submit" value="GET1-5 test" />
</form>

3. In the form with id="GET1-5" type "MyTest" in the text field with name "test".

4. Click the submit button with value "GET1-5 test".

5. Verify the result:

5.1 Same page is reloaded

5.2 url will now have an argument and value of : test=MyTest

5.3 the text field with name "test" will now have the value of "MyTest"

5.4 url will have an argument and value of : hiddentest=hiddenvalue

6. Change the argument in the url test=MyTest to test=Mytest2 and press enter.

7. Verify the result:

7.1 Same page is reloaded

7.2 url will now have an argument and value of : test=MyTest2

7.3 the text field with name "test" will now have the value of "MyTest2"

7.4 url will have an argument and value of : hiddentest=hiddenvalue