I have a script in python with 1 test in it. The test calls other functions from different class in the project which generate differeydata each time to be send through the post request in the test. I want to run this test using the k6 tool, for 5 users for example. Is it possible? Or only Javascript
Can I run python script with test using k6 tool?
1.4k Views Asked by 123josh123 At
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in LOAD-TESTING
- JMeter Requests are concurrent requests or sequential requests?
- PhantomJS load same page multiple times does not work, cannot clear cache
- ms loadtest from another project / dll
- Jmeter bottleneck
- Funkload Load Testing Implementation
- How to increase the request per second on amazon EC2 T2.micro instance?
- How to run Jmeter tests from bamboo?
- Advantages of Ultimate Thread group over normal thread group in jmeter
- Is there a way to automate Jmeter to run a number of testplans
- Which is the best performance testing tool when i dont know the client application behaviour. As i am going to have number of web based clients
- How can I simulate load/traffic on my local machine
- How to optimize the distribution of load created by Locust
- How to extract All of reg expression matches from html page via JMeter
- Is it possible to execute a load test, which uses a web test plugin by using MSTest command line?
- how to get transactions number reduced with Loadrunner Controller
Related Questions in K6
- Running k6 load test converted from Postman fails
- Can't use node fs module with k6
- Parameterization same variable in all APIs in K6
- How to apply iterations condition for function in K6
- k6 same environment variables in multiple export functions
- K6 WebSockets Loadtest Report Confusing
- K6 how run node command in the setup function
- k6: how to send post request with empty request body, content-type 'application/json' and content-length 0?
- Is there a way (executor) to use docker-compose within the project.json of a nx project?
- where are the codes that K6 support import js?
- why my integration test trying to connect 172.19.0.2:6565 address and why connection refused
- K6 Load testing using "batch" not sending the correct request headers
- Tag virtual users in k6
- Getting k6 response with JSON object that contain long integer
- Test in K6 use async how wrote code waiting for a response before executing another request
Related Questions in ENTITY-FRAMEWORK-6.4
- Does Entity Framework call property setters with null when rehydrating entities for columns with DB NULL?
- EF 6.4.4 Multiplicity constraint violated. The role 'SaleDetail_Ledger_Target' of the relationship 'BLL.SaleDetail_Ledger' has multiplicity 1 or 0..1
- Entity Framework gives error "Could not load file or assembly", "FileNotFoundException" every time whenever I reopen visual Studio 2019
- Entity Framework 6.4 supports Second level (L2) result caching?
- How can one convert between an EF model's conceptual info and its store info at run-time, even when MSL is in a resource?
- EntityFramework 6.4.4 Code First "Update-Database -Script" generating incomplete sql Oracle devart driver
- An attempt to attach an auto-named database for file [...] failed. A database with the same name exists [...]
- How to configure ASP.NET Core 3.1 website with identity, authentication and authorization to use Entity Framework 6.4
- There was an error running the selected code generator: Unable to resolve service for type 'Microsoft.EntityFrameworkCore.DbContextOption
- Can I run python script with test using k6 tool?
- Entity Framework error "Could not find stored procedure ''"
- EF Map to ValueType throw Exception " Only parameterless constructors and initializers are supported in LINQ to Entities"
- How to scaffold a dbcontext with the new EF 6.4?
- First Application using Code First EF 6.4.4 : SQL Server Connection error
- My EF6 relationship isn’t working where the ID > 1, what have I done wrong?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
As of current version 0.42.0 it doesn't seem to be possible. If your machine has an SSH server running you can go for xk6-ssh extension to connect to the machine where your python script lives and run it.
Alternatively you can come up with your own k6 extension allowing execution of local commands.
However I don't think it's a viable approach because you're unlikely to get good results and metrics.
Maybe it worth considering migrating to Locust tool which is Python-based so you can write a Locustfile around your Python script logic and it will be executed with the given number of virtual users.
Check out What Is Locust Load Testing? for more information if needed.