orange-opensource / hurl-jvm Goto Github PK
View Code? Open in Web Editor NEWHurl client for the JVM platform
Home Page: https://hurl.dev
License: Other
Hurl client for the JVM platform
Home Page: https://hurl.dev
License: Other
As defined in the grammar, variables can only contain alphanum characters and underscores.
variable-name = <(alphanum | "_" )+>
The current version 1.42.0
does not reject '-';
echo 'GET {{my-var}}'> /tmp/test.hurl
java -jar hurl-1.0.42.jar --variable "my-var=http://localhost:8000/hello" /tmp/test.hurl
Hello World!
For example, if you want to use the variable 'greeting' with value 'hello bob'
you should enclosed it within quotes in the terminal as follows:
$ hurl --variable greeting="hello bob" tests/hello.hurl -v
$ hurl --variable "greeting=hello bob" tests/hello.hurl -v
This produces an error with the current hurl-jvm
hurl --variable "greeting=hello bob" tests/hello.hurl -v
Exception in thread "main" java.io.FileNotFoundException: .../hurl/integration/bob (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at kotlin.io.FilesKt__FileReadWriteKt.readText(FileReadWrite.kt:125)
at kotlin.io.FilesKt__FileReadWriteKt.readText$default(FileReadWrite.kt:125)
at com.orange.ccmd.hurl.core.cli.run.CliHelper$Companion.run(CliHelper.kt:59)
at com.orange.ccmd.hurl.cli.App.main(App.kt:74)
at com.orange.ccmd.hurl.cli.MainKt.main(Main.kt:26)
hurl --variable greeting="hello bob" tests/hello.hurl -v
Exception in thread "main" java.io.FileNotFoundException: .../hurl/integration/bob (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at kotlin.io.FilesKt__FileReadWriteKt.readText(FileReadWrite.kt:125)
at kotlin.io.FilesKt__FileReadWriteKt.readText$default(FileReadWrite.kt:125)
at com.orange.ccmd.hurl.core.cli.run.CliHelper$Companion.run(CliHelper.kt:59)
at com.orange.ccmd.hurl.cli.App.main(App.kt:74)
at com.orange.ccmd.hurl.cli.MainKt.main(Main.kt:26)
note that double quotes also need to be wrapped within quotes
hurl --variable greeting='hello "bob"' tests/hello.hurl -v
We need to document that somewhere in the doc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.