Skip to content

Commit cb44eb4

Browse files
authored
Modified content
1 parent 6e7bcaf commit cb44eb4

1 file changed

Lines changed: 38 additions & 28 deletions

File tree

documentation/Functions.md

Lines changed: 38 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -435,19 +435,15 @@ This functions consists of two parameters.
435435
2. 2nd Parameter:
436436
- **Required**
437437
- **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
440442
runServerJava("devonfw/workspaces/main/jump-the-queue/java/jtqj/server", { "startupTime": 40, "port": 8081, "path": "jumpthequeue" })
441443

442-
##### Assertion Information:
443-
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.
451447

452448
***
453449

@@ -566,18 +562,28 @@ Will build the Angular project to output directory testOutput.
566562
***
567563

568564
### runClientNg <a name="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
572579
#### Example:
573580
* runClientNg("jump-the-queue/angular", { "startupTime": 200, "port": 4200, "path": "" })
574581

575-
##### Assertion Information:
576-
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.
579586

580-
If the tutorial should be tested on the console environment, you have to specify a port.
581587
***
582588

583589
### displayContent <a name="displayContent"></a>
@@ -597,9 +603,9 @@ Note: The title should never be empty and it is of type string.
597603
- **Required**
598604
- **Type**- Array of JSON objects with files, content, or images to be rendered within the Katacoda step.
599605
- **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.
603609

604610
#### Example:
605611
* 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)
629635
Link:
630636
The tutorials repository can be found https://github.com/devonfw-tutorials/tutorials/issues[here].
631637
```
632-
633638
##### Note:
634639
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.
635640

@@ -687,11 +692,11 @@ This function consist of two parameters
687692
1. First parameter:
688693
- **Required**
689694
- **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.
691696
2. Second parameter:
692697
- **Required**
693698
- **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.
695700

696701
#### Example:
697702
* addSetupScript("assets/createProjectScript.sh", "assets/createProjectScript.ps1")
@@ -700,11 +705,16 @@ This function consist of two parameters
700705
1. For Katacoda, only first parameter is required.
701706
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.
702707

703-
704708
***
705709

706710
### openFile <a name="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).
709719
#### Example:
710720
* openFile("cobigenexample/core/src/main/java/com/example/application/cobigenexample/customermanagement/dataaccess/api/CustomerEntity.java")

0 commit comments

Comments
 (0)