Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce DEX-450 Exam - Topic 3 Question 106 Discussion

Posted by Mel on Dec 07, 2024 at 06:42 PM

How can a developer check the test coverage of autolaunched Flows before deploying them in a change set?

Suggested Answer: A

As of Winter '20 (API version 47.0), Salesforce introduced the ability to test Autolaunched Flows with test coverage.

However, as of the current knowledge cutoff (2023-09), there is no direct way within the Salesforce UI to check the test coverage of autolaunched flows before deploying them via change sets.

To check the test coverage of flows, developers can use the Tooling API to query for test coverage.

Option A: Use SOQL and the Tooling API.

Correct Answer.

Developers can use the Tooling API to query for Flow test coverage information.

By executing a SOQL query on FlowTestCoverage and FlowVersionView objects via the Tooling API, developers can retrieve coverage data.

This allows checking flow test coverage programmatically before deployment.

The Flow Properties page does not provide test coverage information.

It allows configuring flow settings but not checking test coverage.

Option C: Use the Code Coverage Setup page.

Incorrect.

The Code Coverage page in Setup pertains to Apex code coverage, not Flow coverage.

Option D: Use the ApexTestResult class.

Incorrect.

The ApexTestResult class is used for Apex test results.

It does not provide information on Flow test coverage.

Conclusion:

To check the test coverage of autolaunched Flows before deploying them in a change set, a developer should use SOQL and the Tooling API, which is Option A.


Flow Test Coverage with Tooling API

Use Tooling API to Check Flow Coverage

Incorrect Options:

Option B: Use the Flow Properties page.

Incorrect.

Get Premium DEX-450 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
31 comments · newest first
CH
Chau 11 months ago
Nah, Flow Properties is the way to go, no doubt!
ON
Onita 11 months ago
Wait, can you really use the ApexTestResult class for Flows?
SI
Sina 12 months ago
Definitely SOQL and Tooling API for detailed insights!
JA
Janine 12 months ago
I thought it was the Code Coverage Setup page?
WI
Willis 1 year ago
You can check coverage using the Flow Properties page.
ME
Merlyn 1 year ago
I don’t think the ApexTestResult class is relevant here; it seems more focused on Apex tests rather than Flows.
TR
Trinidad 1 year ago
I’m leaning towards using SOQL and the Tooling API, but I can't recall if that applies to Flows specifically.
LO
Lorita 1 year ago
I remember practicing a question about checking coverage, and I feel like the Code Coverage Setup page was mentioned, but it was more about Apex classes.
MO
Mozelle 1 year ago
I think we might need to check the Flow Properties page for test coverage, but I'm not entirely sure if that's the only way.
MA
Maryann 1 year ago
Ah, I remember learning about this in class. I believe the Flow Properties page is the way to go.
MA
Mayra 1 year ago
I'm a bit confused on this one. I'll need to review my notes on testing Flows before I can decide.
AL
Alesia 1 year ago
Okay, I think I have an idea. Let me see if I can apply what I've learned about testing Flows.
AR
Armando 1 year ago
Hmm, this seems like a tricky one. I'll need to think through the different options carefully.
AN
Annabelle 2 years ago
I bet the right answer involves a secret Konami code or something. Gotta keep us developers on our toes!
AR
Arthur 2 years ago
Wait, there's a Tooling API for this? That's news to me. I'll go with A just to be different.
BR
Brittni 2 years ago
C seems like the obvious choice. The Code Coverage Setup page is where I'd expect to find this information.
NI
Nicolette 2 years ago
↳ replying to Brittni
A) Use the ApextestResult class.
SH
Shaniqua 2 years ago
↳ replying to Brittni
I agree, that seems like the most logical way to check test coverage for autolaunched Flows.
AV
Avery 2 years ago
↳ replying to Brittni
C) Use SOQL and the Tooling API.
MA
Margurite 2 years ago
I believe D) Use the ApexTestResult class can also help in checking test coverage before deployment.
GI
Gilma 2 years ago
D sounds like the way to go. The ApextestResult class must have the info I'm looking for.
JE
Jean 2 years ago
↳ replying to Gilma
The ApextestResult class must have the info I'm looking for.
PR
Providencia 2 years ago
↳ replying to Gilma
D sounds like the way to go.
CH
Chantay 2 years ago
I'm not sure, but I think C) Use the Code Coverage Setup page could also be a way to check test coverage.
MO
Mollie 2 years ago
I agree with Martha, using SOQL and the Tooling API makes sense to check test coverage.
MA
Martha 2 years ago
I think the answer is A) Use SOQL and the Tooling API.
GL
Glen 2 years ago
I think the answer is B. The Flow Properties page should give me the test coverage details I need.
TE
Tequila 2 years ago
↳ replying to Glen
No problem! It's always good to double check the test coverage before deploying anything.
JU
Judy 2 years ago
↳ replying to Glen
Oh, I see. Thanks for letting me know. I'll make sure to use SOQL and the Tooling API next time.
AN
Annalee 2 years ago
↳ replying to Glen
Actually, the correct answer is C. You can use SOQL and the Tooling API to check the test coverage of autolaunched Flows.
MA
Matthew 2 years ago
↳ replying to Glen
I think the answer is B. The Flow Properties page should give me the test coverage details I need.
0/2000 characters

Save Cancel