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
package test | |
import io.gatling.core.Predef._ | |
import io.gatling.core.structure.PopulatedScenarioBuilder | |
import io.gatling.core.controller.inject.InjectionStep | |
import io.gatling.http.Predef._ | |
import io.gatling.jdbc.Predef._ | |
import scala.concurrent.duration._ | |
import scala.collection.mutable.ArraySeq | |
import org.json.JSONArray; | |
import org.json.JSONObject; |
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
package computerdatabase | |
import io.gatling.core.Predef._ | |
import io.gatling.http.Predef._ | |
import scala.concurrent.duration._ | |
class BasicSimulation extends Simulation { | |
val httpConf = http | |
.baseURL("http://computer-database.herokuapp.com") // Here is the root for all relative URLs |
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
\begin{align*} | |
\sigma&=(P(0)\times (1-\mu)^2+P(2)\times (-1-\mu)^2+P(5)\times (-4-\mu)^2\\ | |
&\qquad {} + P(10)\times (-9-\mu)^2+P(50)\times (-49-\mu)^2\\ | |
&\qquad {} + P(100)\times (-99-\mu)^2+P(500)\times (-499-\mu)^2\\ | |
&\qquad {} + P(1000)\times (-999-\mu)^2+P(10000)\times (-9999-\mu)^2\\ | |
&\qquad {} + P(100000)\times (-99999-\mu)^2\\ | |
&\qquad {} + P(1000000)\times (-999999-\mu)^2)^{1/2}\\[3px] | |
&\approx 330.307\pagebreak | |
\end{align*} |
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
NameIDBuilder nameIDBuilder = new NameIDBuilder(); | |
NameID nameID = nameIDBuilder.buildObject(); | |
nameID.setSPNameQualifier(spEntityId); | |
nameID.setValue(pai); | |
nameID.setFormat("urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"); | |
if (encryptionService != null) { | |
EncryptedID encryptedNameID = encryptionService.encryptNameID(nameID); | |
logoutRequest.setEncryptedID(encryptedNameID); | |
} else { |