Production Ready Macros for SAS Application Developers
https://github.com/sasjs/core
mv_createwebservice.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mv_createwebservice macro
4
5 <h4> SAS Macros </h4>
6 @li mv_createwebservice.sas
7 @li mv_getjobcode.sas
8
9**/
10
11/**
12 * Test Case 1
13 * Send special char in a service
14 */
15
16filename testref temp;
17data _null_;
18 file testref;
19 put '01'x;
20run;
21%put TEST1: creating web service;
22%mv_createwebservice(
23 path=&mcTestAppLoc/temp/macros,
24 name=mv_createwebservice,
25 code=testref
26)
27%put TEST1: fetching web service code;
28%mv_getjobcode(
29 path=&mcTestAppLoc/temp/macros,
30 name=mv_createwebservice,
31 outref=compare
32)
33%put TEST1: checking web service code;
34data work.test_results;
35 length test_description $256 test_result $4 test_comments $256;
36 infile compare end=eof;
37 input;
38 if eof then do;
39 if _infile_='01'x then test_result='PASS';
40 else test_result='FAIL';
41 test_description="Creating web service with invisible character";
42 output;
43 stop;
44 end;
45run;