exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 3 question 32 discussion

Actual exam question from Microsoft's PL-400
Question #: 32
Topic #: 3
[All PL-400 Questions]

DRAG DROP -
You are creating a Power Apps Component Framework (PCF) control.
You test the control by using a local test harness.
You need to complete testing.
Which commands should you use? To answer, drag the appropriate commands to the correct functions. Each command may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: start npm start -
Those two ג€startג€-s surrounding the ג€npmג€ have completely different meaning. When done this way, a new command prompt window will show up and ג€npm startג€ will run in that additional window:

It'll be the same result ג€" you will have the harness started, but, also, your original terminal session will continue to work, and you won't need to open another one.

Box 2: Npm start watch -
The following image shows what Visual Studio Code will look like when you use the npm start watch for the DataSetGrid sample:

Launching the test harness in watch mode enables you to quickly see the changes in action. Changes made to any of the following component assets are automatically reflected in the test harness without having to restart it: index.ts file.
Imported modules in index.ts (excluding node_modules).
All of the resources listed in the ControlManifest.Input.xml file, for example, css/DataSetGrid.css or strings/DataSetGrid.1033.resx
Incorrect:
* To start the test harness, you would use the following command: npm start
This is fast and convenient, but this command will lock your terminal session. For example, if you are doing PCF development in Visual Studio Code, here is what you will see in the terminal window:

Reference:
https://docs.microsoft.com/en-us/power-apps/developer/component-framework/debugging-custom-controls https://www.itaintboring.com/dynamics-crm/test-harness-for-pcf-controls-we-can-also-use-start-npm-start/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
hai297
4 months ago
The main thing here of 2 start at A is "Launch the SECOND npm". So A C is correct
upvoted 1 times
...
jkaur
11 months, 3 weeks ago
start npn start npt start watch
upvoted 1 times
...
Barb123
12 months ago
In exam 02.08.2023
upvoted 1 times
...
TOM1000
1 year, 2 months ago
start npn start - is correct the 1st start will launch a new terminal window. npt start watch - also correct to reflect changes to the files mentioned live.
upvoted 2 times
...
juan54
1 year, 10 months ago
Should be "npm start" for the 1st question no ? oO
upvoted 3 times
No_Doubt
1 year, 9 months ago
The provided answer is right, check the below: https://www.itaintboring.com/dynamics-crm/test-harness-for-pcf-controls-we-can-also-use-start-npm-start/
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago