You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/Functions.md
+38-28Lines changed: 38 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -435,19 +435,15 @@ This functions consists of two parameters.
435
435
2. 2nd Parameter:
436
436
-**Required**
437
437
-**Type**- JSON object
438
-
-**Description**- Assertion information. Only needed for the console runner to check if the server was started properly.
439
-
#### Example:
438
+
-**Description**- This parameter consist of three attributes which are the assertion information. Only needed for the console runner to check if the server was started properly.
439
+
* First attribute i.e. "startupTime" which is the time in seconds to wait before checking if the server is running
440
+
* Second attribute i.e. "port" which is the port number on which the server is running
441
+
* Third attribute i.e. "path" which is the path to the URL path on which is checked if the server is running
startupTime = Time in seconds to wait before checking if the server is running
444
-
port: Port on which the server is running
445
-
path: The URL path on which is checked if the server is running
446
-
447
-
If the tutorial should be tested on the console environment, you have to specify a port.
448
-
449
-
##### Note:
450
-
For this command the devonfw-ide is not necessarily needed. Maven has to be installed. So if someone installs Maven before (e.g. with a setup script), then the command should also work.The command uses the Spring Boot Maven Plugin to run the Java application. So at the moment only Spring applications are supported.
444
+
##### Note:
445
+
1. If the tutorial should be tested on the console environment, you have to specify a port.
446
+
2. For this command the devonfw-ide is not necessarily needed but Maven has to be installed. So if someone installs Maven before (e.g. with a setup script), then the command should also work.The command uses the Spring Boot Maven Plugin to run the Java application. So at the moment only Spring applications are supported.
451
447
452
448
***
453
449
@@ -566,18 +562,28 @@ Will build the Angular project to output directory testOutput.
566
562
***
567
563
568
564
### runClientNg <aname="runClientNg"></a>
569
-
#### Parameter:
570
-
1. Path to the angular project from which the frontend server is to be started.
571
-
2. Assertion information. Only needed for the console runner to check if the server was started properly.
565
+
This function is used to start the server of Angular project.
566
+
#### Parameters:
567
+
This function consist of two parameters.
568
+
1. First parameter:
569
+
-**Required**
570
+
-**Type**- String
571
+
-**Description**-Path to the Angular project from which the frontend server is to be started.
572
+
2. Second parameter:
573
+
-**optional**
574
+
-**Type**- String
575
+
-**Description**- This parameter consist of three attributes which are the required assertion information. Only needed for the console runner to check if the server was started properly.
576
+
* First attribute i.e. "startupTime" which is the time in seconds to wait before checking if the server is running
577
+
* Second attribute i.e. "port" which is the port number on which the server is running
578
+
* Third attribute i.e. "path" which is the path to the URL path on which is checked if the server is running
startupTime = Time in seconds to wait before checking if the server is running
577
-
port: Port on which the server is running
578
-
path: The URL path on which is checked if the server is running
582
+
##### Note:
583
+
1. If the tutorial should be tested on the console environment, you have to specify a port.
584
+
2. To execute this, devonfw-ide must be installed and Angular project should be there.
585
+
3. The command for execution will be generated by Katacoda runner, so user will have to execute this command manually.
579
586
580
-
If the tutorial should be tested on the console environment, you have to specify a port.
581
587
***
582
588
583
589
### displayContent <aname="displayContent"></a>
@@ -597,9 +603,9 @@ Note: The title should never be empty and it is of type string.
597
603
-**Required**
598
604
-**Type**- Array of JSON objects with files, content, or images to be rendered within the Katacoda step.
599
605
-**Description**-This function consists of three attributes. The use for this function is to display an image and some descriptive text. No Katacoda syntax is allowed in the files or the content!
600
-
*1st attribute i.e. "file": Path to a file whose content is to be displayed in the Katacoda step (e.g. .asciidoc or .txt file). The file should be following the formating of asciidoc files.
601
-
*2nd attribute i.e. "content": Plain text to be displayed in the Katacoda step. This Text should be following the formating of asciidoc files.
602
-
*3rd attribute i.e. "image": Path to an image to be displayed in the Katacoda step. It should be placed under subfolder of the playbook directory.
606
+
*First attribute i.e. "file": Path to a file whose content is to be displayed in the Katacoda step (e.g. .asciidoc or .txt file). The file should be following the formating of asciidoc files.
607
+
*Second attribute i.e. "content": Plain text to be displayed in the Katacoda step. This Text should be following the formating of asciidoc files.
608
+
*Third attribute i.e. "image": Path to an image to be displayed in the Katacoda step. It should be placed under subfolder of the playbook directory.
603
609
604
610
#### Example:
605
611
* displayContent("Step title", [{ "file": "files/description.asciidoc" }, { "content": "This is just plain content." }, { "image": "files/image.png" }])
@@ -629,7 +635,6 @@ This an unordered List (The empty line is necessary)
629
635
Link:
630
636
The tutorials repository can be found https://github.com/devonfw-tutorials/tutorials/issues[here].
631
637
```
632
-
633
638
##### Note:
634
639
1. You should avoid using any command inside any text file for which you want to display content. This will cause problems with the console runner and the tests.
635
640
@@ -687,11 +692,11 @@ This function consist of two parameters
687
692
1. First parameter:
688
693
-**Required**
689
694
-**Type**- String
690
-
-**Description**- Path of the script (Linux). Relative to the playbook directory
695
+
-**Description**- Path of the script (Linux). Relative to the playbook directory.
691
696
2. Second parameter:
692
697
-**Required**
693
698
-**Type**- String
694
-
-**Description**- Path of the script (Windows). Relative to the playbook directory
699
+
-**Description**- Path of the script (Windows). Relative to the playbook directory.
@@ -700,11 +705,16 @@ This function consist of two parameters
700
705
1. For Katacoda, only first parameter is required.
701
706
2. The script will run in the background while starting the tutorial. Katacoda user will have to wait till the script execution is in process. Once it is done it, Katacoda user will get the message and then command prompt will be available to Katacoda user.
702
707
703
-
704
708
***
705
709
706
710
### openFile <aname="openFile"></a>
707
-
#### Parameter:
708
-
1. Path of the file to be opened (relative path to the workspace directory)
711
+
This function is used to open a particular file.
712
+
713
+
#### Parameter:
714
+
This function consist of one parameter
715
+
1. First parameter:
716
+
-**Required**
717
+
-**Type**- String
718
+
-**Description**- Path of the file to be opened (relative path to the workspace directory).
0 commit comments