@@ -486,6 +486,12 @@ as well `suite metadata`__. With them split values are automatically
486
486
`joined together with the newline character `__ to ease creating multiline
487
487
values.
488
488
489
+ The `... ` syntax allows also splitting variables in the `Variable section `_.
490
+ When long scalar variables (e.g. `${STRING} `) are split to multiple rows,
491
+ the final value is got by concatenating the rows together. The separator is
492
+ a space by default, but that can be changed by starting the value with
493
+ `SEPARATOR=<sep> `.
494
+
489
495
Splitting lines is illustrated in the following two examples containing
490
496
exactly same data without and with splitting.
491
497
@@ -502,15 +508,17 @@ __ `Newlines in test data`_
502
508
Default Tags default tag 1 default tag 2 default tag 3 default tag 4 default tag 5
503
509
504
510
*** Variable * **
511
+ ${STRING} This is a long string. It has multiple sentences. It does not have newlines.
512
+ ${MULTILINE} This is a long multiline string.\n This is the second line.\n This is the third and the last line.
505
513
@{LIST} this list is quite long and items in it can also be long
514
+ &{DICT} first=This value is pretty long. second=This value is even longer. It has two sentences.
506
515
507
516
*** Test Cases * **
508
517
Example
509
518
[Tags] you probably do not have this many tags in real life
510
519
Do X first argument second argument third argument fourth argument fifth argument sixth argument
511
520
${var} = Get X first argument passed to this keyword is pretty long second argument passed to this keyword is long too
512
521
513
-
514
522
.. sourcecode :: robotframework
515
523
516
524
*** Settings * **
@@ -522,8 +530,17 @@ __ `Newlines in test data`_
522
530
... default tag 4 default tag 5
523
531
524
532
*** Variable * **
533
+ ${STRING} This is a long string.
534
+ ... It has multiple sentences.
535
+ ... It does not have newlines.
536
+ ${MULTILINE} SEPARATOR=\n
537
+ ... This is a long multiline string.
538
+ ... This is the second line.
539
+ ... This is the third and the last line.
525
540
@{LIST} this list is quite long and
526
541
... items in it can also be long
542
+ &{DICT} first=This value is pretty long.
543
+ ... second=This value is even longer. It has two sentences.
527
544
528
545
*** Test Cases * **
529
546
Example
0 commit comments