kdjonesmtb2
Technical User
Hello
I am trying to get this case statement logic to kick off a QTP reporter scenario
The code is not giving any errors and the values appear to be coming through via my print displays but the reporter statement is not being kicked off
Is there a way to have two attributes used in the Case statement instead of using the if then else logic?
Business scenario:
When the DT_service code is “Medical”
and the cptsearchtext1 is “0762” or “0729”
display the reporter line for a CPT code Authorization failed
VBscript:
Select Case cptsearchtext1
Case 0762, 0729
If DT_servicecode="Medical" then
Reporter.ReportEvent 0, "Compare Business Logic Medical Care - CPT Code", "Passed CPT authorization accepted; Test Case=[" & DT_Test_Case &"]; Health Trio=[" & dt_cptsearchtext1 & "]; QNXT=[" & QNXT_codeid1 & "]; QNXT Description=[ " & QNXT_Description1 & "]" 'This code adds CPT code and CPT description to the Report Event screen
Else
Reporter.ReportEvent 1, "Compare Business Logic Medical Care - CPT Code", "Authorization rejected in Health Trio and incorrect CPT code submission; Test Case=[" & DT_Test_Case &"]; Health Trio =[" & dt_cptsearchtext1 & "]; QNXT=[" & QNXT_codeid1 & "]" 'This code adds CPT code and CPT description to the Report Event screen
End If
End Select
I am trying to get this case statement logic to kick off a QTP reporter scenario
The code is not giving any errors and the values appear to be coming through via my print displays but the reporter statement is not being kicked off
Is there a way to have two attributes used in the Case statement instead of using the if then else logic?
Business scenario:
When the DT_service code is “Medical”
and the cptsearchtext1 is “0762” or “0729”
display the reporter line for a CPT code Authorization failed
VBscript:
Select Case cptsearchtext1
Case 0762, 0729
If DT_servicecode="Medical" then
Reporter.ReportEvent 0, "Compare Business Logic Medical Care - CPT Code", "Passed CPT authorization accepted; Test Case=[" & DT_Test_Case &"]; Health Trio=[" & dt_cptsearchtext1 & "]; QNXT=[" & QNXT_codeid1 & "]; QNXT Description=[ " & QNXT_Description1 & "]" 'This code adds CPT code and CPT description to the Report Event screen
Else
Reporter.ReportEvent 1, "Compare Business Logic Medical Care - CPT Code", "Authorization rejected in Health Trio and incorrect CPT code submission; Test Case=[" & DT_Test_Case &"]; Health Trio =[" & dt_cptsearchtext1 & "]; QNXT=[" & QNXT_codeid1 & "]" 'This code adds CPT code and CPT description to the Report Event screen
End If
End Select