From 7197066f3b6e681cc008202e655a5f1c0b95b59f Mon Sep 17 00:00:00 2001 From: ranpollak Date: Tue, 29 May 2018 16:00:41 +0300 Subject: VF creation as base for more Tests on SCD Issue-ID: INT-300 Change-Id: I8d3604b5adaa18bfa0c093fc8fa0fce71c19b869 Signed-off-by: ranpollak --- S3Ptools/Jmeter/000-VF_creation_Ran_New.jmx | 1627 +++++++++++++++++++++++++++ 1 file changed, 1627 insertions(+) create mode 100644 S3Ptools/Jmeter/000-VF_creation_Ran_New.jmx (limited to 'S3Ptools/Jmeter') diff --git a/S3Ptools/Jmeter/000-VF_creation_Ran_New.jmx b/S3Ptools/Jmeter/000-VF_creation_Ran_New.jmx new file mode 100644 index 000000000..1ad296a1c --- /dev/null +++ b/S3Ptools/Jmeter/000-VF_creation_Ran_New.jmx @@ -0,0 +1,1627 @@ + + + + + + true + true + + + + ASDC_SETUP + ${__P(setup,yonadav-build-11856-date-2018-01-0813-19-29)} + = + + + NUM_OF_THREAD + ${__P(iterations,1)} + = + + + TEST_DURATION + ${__P(Duration,1)} + = + + + MAIN_THREAD_GROUP_CNT + ${__P(loops,1)} + = + + + branch + ${__P(workspace,/root/asdc_main/)} + = + + + + + true + + + + + + ################## Test-Params ################## + ############################################## + ############################################## + = + + + TestName + 000-VF_creation.log + = + + + step + 0 + = + + + product + ASDC_Full_distro + = + + + dashboard_path + /sdc1/proxy-designer1#/dashboard + = + + + service_name + Internet_${__RandomString(5,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz,)} + = + + + fileRepo + /${branch}/TestsProperties/HEATFiles/ + = + + + file + 1.zip + = + + + zip + application/zip + = + + + ##################### URL #################### + ############################################## + ############################################## + = + + + port + 8285 + = + + + protocol + http + = + + + ############################################## + ############################################## + ############################################## + = + + + ValidFileName + vDBE.zip + = + + + file + vDBE.zip + = + 1118-nested2nestedResourceGroup.zip + + + HTTP_Tester_ATTUID + jm0007 + = + + + HTTP_OPS_ATTUID + op0001 + = + + + attvdi142 + + + + continue + + false + 1 + + 1 + 1 + 1422885662000 + 1422885662000 + false + + + + + + + + Accept + application/json + + + Content-Type + application/json + + + ${__P(HTTP_REST_USER_ID_HEADER_NAME)} + ${__P(HTTP_REST_USER_ID_HEADER_VALUE)} + + + + + + ../_JMeter_Test_Fragments/BE/Test_Init.jmx + + + + + continue + + false + ${MAIN_THREAD_GROUP_CNT} + + ${NUM_OF_THREAD} + ${TEST_DURATION} + 1422885662000 + 1422885662000 + false + + + + + + true + 1 + + + + + + + + Accept + application/json + + + Content-Type + application/json + + + ${__P(HTTP_REST_USER_ID_HEADER_NAME)} + ${__P(HTTP_REST_USER_ID_HEADER_VALUE)} + + + Accept - application/octet-stream + + + + ../_JMeter_Test_Fragments/BE/VLM/Create_Single_VLM.jmx + + + + ../_JMeter_Test_Fragments/BE/VLM_Entitlement_Pools/Create_Single_EP.jmx + + + + ../_JMeter_Test_Fragments/BE/VLM_License_Key_Groups/Create_Single_LKG.jmx + + + + ../_JMeter_Test_Fragments/BE/VLM_Feature_Groups/Create_Single_Feature_Group.jmx + + + + ../_JMeter_Test_Fragments/BE/VLM_License_Agreements/Create_Single_License_Agreement.jmx + + + + ../_JMeter_Test_Fragments/BE/VLM/Commit_VLM.jmx + + + + ../_JMeter_Test_Fragments/BE/VLM/Submit_VLM.jmx + + + + ../_JMeter_Test_Fragments/BE/VLM/Get_VLM_Version_ID_and_Label.jmx + + + + + + ../_JMeter_Test_Fragments/BE/VSP/Create_Single_VSP.jmx + + + + ../_JMeter_Test_Fragments/BE/VSP/Upload_ZIP_File_To_VSP.jmx + + + + ../_JMeter_Test_Fragments/BE/VSP_Processes/Validation_Save_Process.jmx + + + + ../_JMeter_Test_Fragments/BE/VSP/Commit_VSP.jmx + + + + ../_JMeter_Test_Fragments/BE/VSP/Submit_VSP.jmx + + + + ../_JMeter_Test_Fragments/BE/VSP/Get_VSP_Version_ID_and_Label.jmx + + + + ../_JMeter_Test_Fragments/BE/VSP/Translate_ZIP_file.jmx + + + + false + 0 + mkdir + + + + + -p + = + + + + /tmp/${__TestPlanName}_${__P(VSP_P)} + = + + + + + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + true + true + true + true + true + false + true + true + true + false + true + 0 + true + true + true + true + true + true + true + + + + + + + + + + + ${__P(VM_controller)} + ${port} + + + ${protocol} + + ${__P(ASDC_VSP)}/${__P(PKG)}/${__P(VSP_P)} + GET + true + false + true + false + HttpClient3.1 + false + + + + + + + ${__P(HTTP_REST_USER_ID_HEADER_NAME)} + ${__P(HTTP_REST_USER_ID_HEADER_VALUE)} + + + Accept + application/octet-stream + + + Accept - application/octet-stream + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + false + false + false + false + false + 0 + true + true + + + + + + + /tmp/${__TestPlanName}_${__P(VSP_P)}/${__P(VSP_P)}.zip + false + true + true + true + + + + false + + + //String ResponseString = prev.getResponseDataAsString(); +String ResponseCode = prev.getResponseCode(); +String ResponseMessage = prev.getResponseMessage(); + +String test_tmp_folder = "/tmp/TestResult/${TestName}"; + f = new FileOutputStream(test_tmp_folder, true); + p = new PrintStream(f); + +mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; + +p.println("\n#######################"+" Download Package "+"#######################"); + +if (ResponseCode.contains("200")) +{ + p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); + p.println("Response Code : " + ResponseCode); + p.println("Response Message : " + ResponseMessage); + //p.println("Response String : " + ResponseString); +} +else +{ + p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); + p.println("Response Code : " + ResponseCode); + p.println("Response Message : " + ResponseMessage); + //p.println("Response String : " + ResponseString); +} + +p.println("############################################################################\n"); + +p.close();f.close(); + + + + 300 + + + + 1 + + + + + + + true + true + true + false + + + + ../_JMeter_Test_Fragments/BE/VF/Create_Single_VF.jmx + + + + ../_JMeter_Test_Fragments/BE/VF/Create_VF_Service.jmx + + + + + + ${__eval(${__FileToString(${branch}/TestsProperties/ASDC/VF_service_props.txt)})} + + + false + + + + 300 + + + + + true + + + + false + ${__eval(${__FileToString(${branch}/TestsProperties/ASDC/VF_service_body.txt)})} + = + + + + ${__P(VM_controller)} + ${port} + + + ${protocol} + + ${__P(ASDC_SERVICES)} + POST + true + false + true + false + HttpClient3.1 + false + + + + + + + Accept + application/json + + + Content-Type + application/json + + + ${__P(HTTP_REST_USER_ID_HEADER_NAME)} + ${__P(HTTP_REST_USER_ID_HEADER_VALUE)} + + + Accept - application/octet-stream + + + + false + VFresourceinstance + "uniqueId":"(.+?)\. + $1$ + 0 + 1 + + + + + false + VFSumbit + "uniqueId":"(.+?)\. + $1$ + 0 + 1 + + + + + false + + + String ResponseString = prev.getResponseDataAsString(); +String ResponseCode = prev.getResponseCode(); +String ResponseMessage = prev.getResponseMessage(); +String test_tmp_folder = "/tmp/TestResult/${TestName}"; + f = new FileOutputStream(test_tmp_folder, true); + p = new PrintStream(f); +mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; +props.put("VFinstance_P","${VFresourceinstance}"); +p.println("\n#######################"+"Create VF Service "+"#######################"); +if (ResponseCode.contains("201")) +{ + p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); + p.println("Response Code : " + ResponseCode); + p.println("Response Message : " + ResponseMessage); + p.println("Response String : " + ResponseString); +} +else +{ + p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); + p.println("Response Code : " + ResponseCode); + p.println("Response Message : " + ResponseMessage + "\nERROR: Create VF Service failed."); + p.println("Response String : " + ResponseString); +} +p.println("#####################################################################\n"); +p.close();f.close(); + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + false + false + false + false + false + 0 + true + true + + + + + + + 1 + + + + 300 + + + + + ${__eval(${__FileToString(${branch}/TestsProperties/ASDC/VF_resourceInstance_props.txt)})} + + + false + + + + 300 + + + + + true + + + + false + ${__eval(${__FileToString(${branch}/TestsProperties/ASDC/VF_resourceInstance_body.txt)})} + = + + + + ${__P(VM_controller)} + ${port} + + + ${protocol} + + ${__P(ASDC_SERVICES)}/${__P(VFinstance_P)}/${__P(ResourceInstance)} + POST + true + false + true + false + HttpClient3.1 + false + + + + + + + Accept + application/json + + + Content-Type + application/json + + + ${__P(HTTP_REST_USER_ID_HEADER_NAME)} + ${__P(HTTP_REST_USER_ID_HEADER_VALUE)} + + + Accept - application/octet-stream + + + + false + VFSumbit + "uniqueId":"(.+?)\. + $1$ + 0 + 1 + + + + + false + + + String ResponseString = prev.getResponseDataAsString(); +String ResponseCode = prev.getResponseCode(); +String ResponseMessage = prev.getResponseMessage(); +String test_tmp_folder = "/tmp/TestResult/${TestName}"; + f = new FileOutputStream(test_tmp_folder, true); + p = new PrintStream(f); +mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; +p.println("\n#######################"+"Create VF resourceinstance "+"#######################"); +if (ResponseCode.contains("201")) +{ + p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); + p.println("Response Code : " + ResponseCode); + p.println("Response Message : " + ResponseMessage); + p.println("Response String : " + ResponseString); +} +else +{ + p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); + p.println("Response Code : " + ResponseCode); + p.println("Response Message : " + ResponseMessage + "\nERROR: Create VFresourceinstance failed."); + p.println("Response String : " + ResponseString); +} +p.println("#####################################################################\n"); +p.close();f.close(); + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + false + false + false + false + false + 0 + true + true + + + + + + + 1 + + + + 300 + + + + + true + + + + false + ${__eval(${__FileToString(${branch}/TestsProperties/ASDC/VF_Checkin_body.txt)})} + = + + + + ${__P(VM_controller)} + ${port} + + + ${protocol} + + ${__P(ASDC_SERVICES)}/${__P(VFinstance_P)}/${__P(LifecycleState)}/${__P(CertificationRequest)} + POST + true + false + true + false + HttpClient3.1 + false + + + + + + + Accept + application/json + + + Content-Type + application/json + + + ${__P(HTTP_REST_USER_ID_HEADER_NAME)} + ${__P(HTTP_REST_USER_ID_HEADER_VALUE)} + + + Accept - application/octet-stream + + + + false + + + String ResponseString = prev.getResponseDataAsString(); +String ResponseCode = prev.getResponseCode(); +String ResponseMessage = prev.getResponseMessage(); + +String test_tmp_folder = "/tmp/TestResult/${TestName}"; + f = new FileOutputStream(test_tmp_folder, true); + p = new PrintStream(f); +mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; + +p.println("\n#######################"+" Submit VFresourceinstance "+"#######################"); +if (ResponseCode.contains("200")) +{ + p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); + p.println("Response Code : " + ResponseCode); + p.println("Response Message : " + ResponseMessage); + p.println("Response String : " + ResponseString); +} +else +{ + p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); + p.println("Response Code : " + ResponseCode); + p.println("Response Message : " + ResponseMessage + "\nERROR: Submit VFresourceinstance name from response failed."); + p.println("Response String : " + ResponseString); +} +p.println("#####################################################################\n"); +p.close();f.close(); + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + false + false + false + false + false + 0 + true + true + + + + + + + 1 + + + + 300 + + + + + true + + + + false + + = + + + + ${__P(VM_controller)} + ${port} + + + ${protocol} + + ${__P(ASDC_SERVICES)}/${__P(VFinstance_P)}/${__P(LifecycleState)}/${__P(StartCertification)} + POST + true + false + true + false + HttpClient3.1 + false + + + + + + + Accept + application/json + + + Content-Type + application/json + + + ${__P(HTTP_REST_USER_ID_HEADER_NAME)} + ${HTTP_Tester_ATTUID} + + + Accept - application/octet-stream + + + + false + + + String ResponseString = prev.getResponseDataAsString(); +String ResponseCode = prev.getResponseCode(); +String ResponseMessage = prev.getResponseMessage(); + +String test_tmp_folder = "/tmp/TestResult/${TestName}"; + f = new FileOutputStream(test_tmp_folder, true); + p = new PrintStream(f); +mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; +props.put("parentUniqueId_P","${parentUniqueId}"); + +p.println("\n#######################"+" Start VFresourceinstance "+"#######################"); +if (ResponseCode.contains("200")) +{ + p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); + p.println("Response Code : " + ResponseCode); + p.println("Response Message : " + ResponseMessage); + p.println("Response String : " + ResponseString); +} +else +{ + p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); + p.println("Response Code : " + ResponseCode); + p.println("Response Message : " + ResponseMessage + "\nERROR: Start VFresourceinstance failed."); + p.println("Response String : " + ResponseString); +} +p.println("#####################################################################\n"); +p.close();f.close(); + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + false + false + false + false + false + 0 + true + true + + + + + + + 1 + + + + 300 + + + + + true + + + + false + ${__eval(${__FileToString(${branch}/TestsProperties/ASDC/VF_Checkin_body.txt)})} + = + + + + ${__P(VM_controller)} + ${port} + + + ${protocol} + + ${__P(ASDC_SERVICES)}/${__P(VFinstance_P)}/${__P(LifecycleState)}/${__P(Certify)} + POST + true + false + true + false + HttpClient3.1 + false + + + + + + + Accept + application/json + + + Content-Type + application/json + + + ${__P(HTTP_REST_USER_ID_HEADER_NAME)} + ${HTTP_Tester_ATTUID} + + + Accept - application/octet-stream + + + + false + VFAccept + "ownerId":"(.+?)\. + $1$ + 0 + 1 + + + + + false + + + String ResponseString = prev.getResponseDataAsString(); +String ResponseCode = prev.getResponseCode(); +String ResponseMessage = prev.getResponseMessage(); + +String test_tmp_folder = "/tmp/TestResult/${TestName}"; + f = new FileOutputStream(test_tmp_folder, true); + p = new PrintStream(f); +mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; +props.put("VFAccept_P","${VFAccept}"); +p.println("\n#######################"+" Accept VFresourceinstance "+"#######################"); +if (ResponseCode.contains("200")) +{ + p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); + p.println("Response Code : " + ResponseCode); + p.println("Response Message : " + ResponseMessage); + p.println("Response String : " + ResponseString); +} +else +{ + p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); + p.println("Response Code : " + ResponseCode); + p.println("Response Message : " + ResponseMessage + "\nERROR: Accept VFresourceinstance failed."); + p.println("Response String : " + ResponseString); +} +p.println("#####################################################################\n"); +p.close();f.close(); + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + false + false + false + false + false + 0 + true + true + + + + + + + 1 + + + + 300 + + + + + + + ../_JMeter_Test_Fragments/BE/Show_log.jmx + + + + + continue + + false + ${MAIN_THREAD_GROUP_CNT} + + ${NUM_OF_THREAD} + ${TEST_DURATION} + 1422885662000 + 1422885662000 + false + + + + + + + + Accept + application/json + + + Content-Type + application/json + + + + + + false + 0 + rm + + + + + -rf + = + + + + /tmp/${__TestPlanName}_${__P(VSP_P)}/ + = + + + + + + + + + + + true + + + + false + + = + + + + ${__P(VM_controller)} + ${port} + + + http + + ${__P(ASDC_VSP)}/${__P(vspId)}/versions/${__P(vspNewVersionID_p)} + DELETE + true + false + true + false + HttpClient4 + false + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + false + false + false + false + false + 0 + true + true + + + + + + + false + + + String ResponseString = prev.getResponseDataAsString(); +String ResponseCode = prev.getResponseCode(); +String ResponseMessage = prev.getResponseMessage(); + +String test_tmp_folder = "/tmp/TestResult/${TestName}"; + f = new FileOutputStream(test_tmp_folder, true); + p = new PrintStream(f); + +mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; + +p.println("\n#######################"+" Delete Temporary VSP "+"#######################"); + +if (ResponseCode.contains("200")) +{ + p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); + p.println("Response Code : " + ResponseCode); + p.println("Response Message : " + ResponseMessage); + p.println("Response String : " + ResponseString); +} +else +{ + p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); + p.println("Response Code : " + ResponseCode); + p.println("Response Message : " + ResponseMessage + "\nERROR: Delete VSP REST failed."); + p.println("Response String : " + ResponseString); +} + +p.println("############################################################################\n"); + +p.close();f.close(); + + + + 300 + + + + 1 + + + + + false + 0 + cat + + + + + ${TestName} + = + + + + + + + /tmp/TestResult/ + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + true + true + true + true + true + false + true + true + true + false + true + 0 + true + true + true + true + true + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + false + 0 + true + true + + + /tmp/TestResult/ResponseCodesPerSecond.jtl + 1000 + false + + + + + false + false + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + false + 0 + true + true + + + /tmp/TestResult/ResponseTimesDistribution.jtl + 100 + false + + + + + false + false + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + false + 0 + true + true + + + /tmp/TestResult/ResponseTimesOverTime.jtl + 500 + false + + + + + false + false + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + false + 0 + true + true + + + /tmp/TestResult/ResponseTimesPercentiles.jtl + 500 + false + + + + + false + false + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + false + 0 + true + true + + + /tmp/TestResult/HitsPerSecond.jtl + 1000 + false + + + + + false + false + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + true + true + true + true + true + true + true + true + true + false + true + 0 + true + true + true + true + true + true + true + + + /tmp/TestResult/ResultsTable.xml + + + + + true + + + + + + false + String ResponseString = prev.getResponseDataAsString(); +String ResponseCode = prev.getResponseCode(); +String ResponseMessage = prev.getResponseMessage(); + + +vars.put("ResponseCode",ResponseCode); +vars.put("ResponseString",ResponseString); +vars.put("ResponseMessage",ResponseMessage); + + + + + -- cgit 1.2.3-korg