• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
        • Enterprise Synthetic Monitoring
      • Synthetic Classic
        • Synthetic Classic Open Q&A
  • Home /
  • Public Forums /
  • Synthetic Classic /
  • Synthetic Classic Open Q&A /
avatar image
Question by Michael P. · Sep 05, 2018 at 04:26 PM · scripting errors custom action

Fail Step if variable is null

I'm capturing the data from the session.Storage and I would like to fail the step if the data for the item that I am returning is null. Is there a way to make the step fail within the custom action?

Thank you,

Mike

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 52.4 MB each and 262.1 MB total.

2 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Victor F. · Sep 07, 2018 at 04:19 PM

Hello Michael, You can make it so if it finds the validation or object it will skip a particular action(s).

This is done by doing custom code script.steps[index].actions[index].type = 'do not execute';

The index's start at 0, so for step 2 it would be 1.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 52.4 MB each and 262.1 MB total.

avatar image

Answer by Michael P. · Sep 06, 2018 at 04:17 PM

I've found the way to fail the step but I now have a support ticket to see if I can mark the step as failed and continue with the other steps as they are not dependent of the failed step and then I don't have to create multiple scripts just to test the individual pieces that load with this site.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 52.4 MB each and 262.1 MB total.

Join the conversation!

First steps in the forum
Community User Guide

LIVE WEBINAR

"Power Demo: Software Intelligence for Cloud Infrastructure"


DECEMBER 12, 10:00 AM GMT / 2:00 PM ET

Register here

Live webinar: Ensuring Digital Business Availability with Dynatrace

Learn how Dynatrace Real User Monitoring automatically detects errors that impact your end users caused by erroneous 3rd party or CDNs.
December 10, 4:00 pm CET / 10:00 am ET
Register here

Live webinar: Ensuring Digital Business Availability with Dynatrace

Learn how Dynatrace Real User Monitoring automatically detects errors that impact your end users caused by erroneous 3rd party or CDNs.
December 10, 4:00 pm CET / 10:00 am ET
Register here

Live webinar: Ensuring Digital Business Availability with Dynatrace

Learn how Dynatrace Real User Monitoring automatically detects errors that impact your end users caused by erroneous 3rd party or CDNs.
December 10, 4:00 pm CET / 10:00 am ET
Register here

Follow this Question

Answers Answers and Comments

25 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Conditional script fails with: Locator is not defined 1 Answer

Way to extend Token manipulation to desktop Scripts 1 Answer

Validate that Javascript variable present in source code 1 Answer

Select particular set of CSS classes 1 Answer

Is there a way to close a browser tab? 1 Answer

Forum Tags

configuration summary mobile monitoring tests timeout synthetic monitoring reports flash synthetic mobile guardian synthetic percentile test management w3c web recorder rest api errors dashboard waterfall chart 2017-Q2 release number login retry on error synthetic monitoring private peer monitoring firefox flex sliverlight dynatrace advanced synthetic account windows recorder last mile monitoring interactive charting webinar gomez 2014-Q3-SEP dynatrace recorder speed index high five award backbone load testing community awards ftp chrome private last mile benchmark leapsecond web performance monitoring sms alerts scoe news synthetic sla report portal alerting performance monitoring web services notifications native mobile app reports third party apr-2017 setup tests browser agent april-2017 chart cloud wait perspective report threshold certificate appmon scripting custom action recorder agent custom code https emails
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A
      • Enterprise Synthetic Monitoring
    • Synthetic Classic
      • Synthetic Classic Open Q&A