Simulators to Test the Application

We are going to integrate this system with our application. Our product is developed using Python (DJango Framework).
As we are not dealing with physical devices, Is there any Simulators for Device(s). Example, Teltonika FMB920 first sends IMEI and then sends the raw data if the server sends an acknowledgement. In the same, I am looking for any software simulator for this.
I would be glad if you refer any tools to run on Windows, or on Linux to test our system.

Tony Shelver6 years ago

As an initial test, I loaded the Traccar app on my Android phone and checked out that things were working that way.

For the devices, you really need to test with the devices themselves. Each device (family / protocol) comes with their own specific features that you will need to test. I haven't done this yet, but you could try googling the specific devices you plan to support to see if their manufacturer has a test suite. They are mostly built to support a bunch of different tracking applications, so may have some sort of test suite. But I doubt it....

Another off-the-wall suggestion is to talk to local used car dealerships and autoelectricians. I often find that they disconnect devices and then scrap them on suspicion that they may be causing issues. Quite often these are still in good working order.

Thank you so much for your response. Will follow your suggestions.
One of our primary goal is to test the stability of our system by generating huge load.
We can do the application by using JMeter or some other load generation tools.
But we need to test positions with 1000 devices sending locations to our server.
This is to check the stability and performance.
So, Is there any REST API Call to inject Positions to the server along with device_id.

Tony Shelver6 years ago

I would go at it differently. I assume you are using the Traccar API to generate the rest calls to send position information to your rest service, per the API documentation.

For load testing, I would write a quick Python script to generate the expected JSON / API calls using the Python requests and json libraries , after monitoring what comes through from the Android devices or any other devices you may have tested. That should stress test your system well enough and the program shouldn't take long to write..

I think Traccar is well proven enough that 1000 devices won't stress it much.

I tried to send positions as below.

http://localhost:5055/id=687231&lat=123&lon=123×tamp=2017-02-27T18:55:47&hdop=1&altitude=4&speed=5

I am getting 400 status code. Here is the simple python script.

  import requests
  url = "http://localhost:5055/id=687231&lat=123&lon=123&timestamp=2017-02-27T18:55:47&hdop=1&altitude=4&speed=5"
  headers = {"Content-Type": "application/json"}
  response = requests.get(url, headers=headers)
  print response

We are getting 400 response.

FYI, I checked the port number as well. It is already opened.

Please help

Thanks.

Anton Tananaev6 years ago

Why don't you use existing scripts?

https://github.com/traccar/traccar/tree/master/tools