ApiTestService.dart 718 B

12345678910111213141516171819202122232425262728
  1. import 'package:ustest/Services/TestCase.dart';
  2. class ApiTestService {
  3. ApiTestService() {}
  4. Future<List<TestCase>> getTestCases() async {
  5. var testCases = <TestCase>[];
  6. testCases.add(new TestCase(
  7. id: "1",
  8. url: "http://192.168.6.20:8303/IPatientService",
  9. method: "POST",
  10. body: '"{'
  11. '"jsonrpc": "2.0"'
  12. '"method": "FindPatients",'
  13. '"params": ['
  14. '{'
  15. '"Token": "1e8605f8991f423d9958196e21528b08",'
  16. '"KeyWord": "",'
  17. '"PageIndex": 1,'
  18. '"PageSize": 10'
  19. '}'
  20. '],'
  21. '"id": 1'
  22. '}"'));
  23. return testCases;
  24. }
  25. }