DYNAMIC testData // CHANGE BELOW VALUE DEPENDING ON TEST ASSIGN switchValue = "No Changes Made" SWITCH switchValue { CASE "Invalid Source" { sourceName = "I Don't Exist" } CASE "Invalid Root Node" { testData.Fail.Phone = "" } CASE "Invalid Field Name" { testData = initialResult testData.Mappings.MyCustomField = "" } CASE "Missing Required Fields" { testData.Mappings.City = "City" testData.Mappings.State = "State" } CASE "Field In Use Cant Apply" { // Switch ValueString with a CDD or SDD that you currently have applied to a source and using to filter testData = initialResult testData.Mappings.FilterOnMe = "City" } CASE "No Changes Made" { // Don't Change anything just pass in the exact same mapping we've already got testData = initialResult } CASE "Create Mapping System" { // SYSTEM DATA DEFINITIONS testData = initialResult testData.Mappings.TimeZone = "Time Zone" testData.Mappings.Compliance = "Is Cell Phone" testData.Mappings.ConfirmationRequired = "Confirmation Required" testData.Mappings.CallerID = "Caller ID" testData.Mappings.Score = "Score" testData.Mappings.CustomerField1 = "Customer Field 1" testData.Mappings.CustomerField2 = "Customer Field 2" testData.Mappings.ExternalId = "External ID" testData.Mappings.Priority = "Priority" testData.Mappings.Zip = "Zip" testData.Mappings.State = "State" testData.Mappings.City = "City" testData.Mappings.Address = "Address" testData.Mappings.LastName = "Last Name" testData.Mappings.FirstName = "First Name" testData.Mappings.PhoneNumber = "Phone Number" } CASE "Update Mapping System" { // SYSTEM DATA DEFINITIONS testData = initialResult testData.Mappings.TimeZone = "My TimeZone" testData.Mappings.ConfirmationRequired = "Requires Confirmation" testData.Mappings.CallerID = "Phone Number" testData.Mappings.State = "Contacts State" } CASE "Create Mapping Custom" { // CUSTOM DATA DEFINITIONS testData = initialResult testData.Mappings.YourCDDName = "[COLUMN TO MAP IT TO]" } CASE "Update Mapping Custom" { // CUSTOM DATA DEFINITIONS testData = initialResult testData.Mappings.YourCDDName = "[COLUMN TO MAP IT TO]" } }