This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http from 'k6/http' | |
import { check, group, sleep } from "k6"; | |
import { Counter, Rate, Trend } from "k6/metrics"; | |
const URL_LAUNCHPAD = 'https://secondphase.launchpad.cfapps.ap10.hana.ondemand.com'; | |
// 1. init code | |
export let options = { | |
// stages: [ | |
// { target: 200, duration: "1m" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const FormData = require('form-data'); | |
const fs = require('fs'); | |
const qs = require('qs'); | |
const axios = require('axios'); | |
// const dotenv = require('dotenv'); | |
// dotenv.config(); | |
const TMS_API = 'https://transport-service-app-backend.ts.cfapps.ap10.hana.ondemand.com/v2'; | |
const TOKEN_URL = 'https://secondphasetooling.authentication.ap10.hana.ondemand.com/oauth/token'; | |
const CLIENT_ID = process.env.CLIENT_ID; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var util = require('util'); | |
var client = require('./client'); | |
var fields = ['SCHEMA_NAME || \'.\' || TABLE_NAME as TABLE']; | |
var sql = util.format('select top 5 %s from TABLES', fields.join(',')); | |
const connect = async () => | |
await client.connect(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var util = require('util'); | |
// var async = require('async'); | |
var client = require('./client'); | |
var fields = ['SCHEMA_NAME || \'.\' || TABLE_NAME as TABLE']; | |
var sql = util.format('select top 5 %s from TABLES', fields.join(',')); | |
const connect = async () => | |
await client.connect(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
METHOD myentityset_update_entity. | |
io_data_provider->read_entry_data( IMPORTING es_data = er_entity ). | |
*--- get the context path from the request uri | |
DATA(lt_headers) = /iwbep/if_mgw_conv_srv_runtime~get_dp_facade( )->get_request_header( ). | |
DATA(lv_request_uri) = lt_headers[ name = '~request_uri' ]-value. | |
DATA(lv_context_path) = match( val = lv_request_uri regex = `/([^\/]+)\/?$` ). | |
DATA(lv_message_target) = lv_context_path && |/Field1|. "/MyEntity('Key')/Field1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sap.ushell.Container.getService("CrossApplicationNavigation").toExternal({ | |
target: { | |
semanticObject: "SalesOrder", | |
action: "display" | |
}, | |
params: { "param1" : encodeURIComponent(param1) }, | |
appSpecificRoute: '#' + '/SalesOrder/' + sOrder + '/' + sItem | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//initialize the MockServer as per normal | |
jQuery.sap.require("sap.ui.core.util.MockServer"); | |
var oMockServer = new sap.ui.core.util.MockServer({ | |
rootUri: sServiceUrl | |
}); | |
oMockServer.simulate("model/metadata.xml", "model/"); | |
//add your requests to the ones already set | |
try { | |
jQuery.sap.require("myapp.model.mockRequests"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<script id="sap-ui-bootstrap" | |
type="text/javascript" | |
data-sap-ui-libs="sap.m" | |
data-sap-ui-theme="sap_bluecrystal" | |
src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<script id="sap-ui-bootstrap" | |
type="text/javascript" | |
data-sap-ui-libs="sap.ui.commons" | |
data-sap-ui-theme="sap_bluecrystal" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component-preload.js looks like | |
jQuery.sap.registerPreloadedModules({ | |
"name": "<myApp>Component-preload", | |
"version": "X.X", | |
"modules": <minfied module content as kvp> | |
}); | |
step 1. recursively minify all the apps modules you want to pre load, Instead of writing them to file write them into javascript object | |
NewerOlder