const.go 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package model
  2. // const const
  3. const (
  4. PROTOCOL_HTTP = 0
  5. PROTOCOL_GRPC = 1
  6. PROTOCOL_SCENE = 2
  7. HTTP_SCRIPT_TYPE = 1
  8. SCENE_SCRIPT_TYPE = 2
  9. //HeaderStart header start
  10. HeaderStart = "<elementProp name=\"\" elementType=\"Header\"><stringProp name=\"Header.name\">"
  11. //HeaderMid header mid
  12. HeaderMid = "</stringProp><stringProp name=\"Header.value\">"
  13. //HeaderEnd header end
  14. HeaderEnd = "</stringProp></elementProp>"
  15. //ElementPropName element propname
  16. ElementPropName = "<elementProp name=\""
  17. //HTTPArgument http arg
  18. HTTPArgument = "\" elementType=\"HTTPArgument\">"
  19. //HTTPArgumentEncode http arg code
  20. HTTPArgumentEncode = "<boolProp name=\"HTTPArgument.always_encode\">false</boolProp>"
  21. //ArgumentStart arg start
  22. ArgumentStart = "<stringProp name=\"Argument.value\">"
  23. //ArgumentMid arg mid
  24. ArgumentMid = "</stringProp><stringProp name=\"Argument.metadata\">=</stringProp><boolProp name=\"HTTPArgument.use_equals\"" +
  25. ">true</boolProp><stringProp name=\"Argument.name\">"
  26. //ArgumentEnd arg end
  27. ArgumentEnd = "</stringProp></elementProp>"
  28. //AsyncInfo async info
  29. AsyncInfo = "<boolProp name=\"asyncCall\">true</boolProp>"
  30. //MultipartName Multipart Name
  31. MultipartName = "<elementProp name=\"HTTPsampler.Files\" elementType=\"HTTPFileArgs\"><collectionProp name=\"HTTPFileArgs.files\"><elementProp name=\""
  32. //MultipartFilePath MultipartFile Path
  33. MultipartFilePath = "\" elementType=\"HTTPFileArg\"><stringProp name=\"File.path\">"
  34. //MultipartFilePathd MultipartFile Pathd
  35. MultipartFilePathd = "</stringProp><stringProp name=\"File.paramname\">"
  36. //MultipartMime type
  37. MultipartMimetype = "</stringProp><stringProp name=\"File.mimetype\">"
  38. //Multipart End
  39. MultipartEnd = "</stringProp></elementProp></collectionProp></elementProp>"
  40. //Assertion start
  41. AssertionStart = "<stringProp name=\"927604211\">"
  42. //Assertion End
  43. AssertionEnd = "</stringProp>"
  44. //ConstTimer const timer
  45. ConstTimer = "<ConstantTimer guiclass=\"ConstantTimerGui\" testclass=\"ConstantTimer\" testname=\"固定定时器\" enabled=\"true\">" +
  46. "<stringProp name=\"ConstantTimer.delay\">1000</stringProp>" +
  47. "</ConstantTimer>" +
  48. "<hashTree/>"
  49. //Randomtimer Random Timer
  50. RandomTimer = "<GaussianRandomTimer guiclass=\"GaussianRandomTimerGui\" testclass=\"GaussianRandomTimer\" testname=\"高斯随机定时器\" enabled=\"true\">" +
  51. "<stringProp name=\"ConstantTimer.delay\">1000</stringProp>" +
  52. "<stringProp name=\"RandomTimer.range\">500</stringProp>" +
  53. "</GaussianRandomTimer>" +
  54. "<hashTree/>"
  55. //
  56. )