Nowadays, almost everyone is either using AI tools or thinking about incorporating them into their daily work. At the same time, many professionals are still hesitant, worrying that AI might replace their jobs. While those concerns are understandable, I believe the bigger risk is ignoring these tools altogether. From my experience, AI isn't replacing engineers—it is helping engineers work faster and focus on solving more meaningful problems. Like any other tool, its value depends on how effectively we use it. The more we learn to collaborate with AI, the more productive and efficient we can become. Here are two real examples from my recent work where AI tools helped me solve complex and time-consuming engineering problems significantly faster. AI helped me audit and upgrade my project's tech stack by checking dependency compatibility and flagging version-specific issues in advance. Instead of manually reviewing every package and verifying the latest compatible versions, I was ...
Postman Collection Run - How to Test File Uploading API on CircleCi or Jenkins
- Get link
- X
- Other Apps
From last couple of days, I was doing R&D on how we can test file uploading API on CircleCi or Postman collection Run?
Finally, I found a way to test the File uploading APIs using the Postman Desktop app OR Postman CLI collection run.
I have also tested this solution, even on CircleCi for running the automated testing postman APIs by Postman CLI collection run.
Here is step by step process, how you can test the file uploading API on CircleCi or Postman collection Run?
Local Desktop App settings:
- Open and go to Local Postman app settings -> General
- Set working directly location (default is postman installation directory but can also choose any other directory)
- Place files (to use in file upload APIs during the collection run) in the working directory selected as in the above step and also in the root directory of your project.
- Now go to the API in which you need to upload a file, and select the file from the working directory selected in step 2.
- Save that API and collection.
CircleCi or Jenkins Postman command
- Now update the command to run postman collection in .circleci/config.yml like
postman collection run postman/ci-collection.json --working-dir [project-root-directory]
where project-root-directory can be /var/www/html when using docker.
Now the upload API should run normally for collection run on local Postman App and on CircleCi as well.
In case you still face any issue, please comment below, I will try to help you as soon as possible.
Note: Please keep your Postman App and CLI updated.
- Get link
- X
- Other Apps
Popular posts from this blog
Differences between json and jsonb - JSON data type in PostgreSQL
You may have read differences between PostgreSQL datatypes JSON and JSONB. If not, let see the difference between both theoretically and practically. Although, both json and jsonb are types of PostgreSQL JSON datatypes and accepts almost same format as input values i.e. json. But still there are some difference which one must know to efficiently use or can choose from both json and jsonb. The main different is how they actually store data; the json data type stores input value as it is but jsonb stores value in a decomposed binary format which lead to difference in efficiency . Jsonb is slower as compare to json while saving the input values because of converting json values to binary format before saving. Jsonb fast in processing the data because no re-parsing needed as compare to json datatype which needs processing function to re-parsing on every execution. Few other differences between json and jsonb are: Jsonb supports indexing which is advantage over j...
Laravel Validation - Unique rule with multiple column and condition.
Today I am going to share, How we can use Laravel validation rule `unique`. If you have worked with laravel and familiar with laravel validation, you must know what does 'unique' rule checks. If not let me give here a brief about this. In simple words, It is similar to a unique key constraint applied to a column in the database table. 'Unique' rule check there is no similar value exists in the given database table column, to value matching with the provided input value. The general format of the rule is: unique:table //when input name is similar to column name OR unique:table,column OR unique:Model,attribute Examples: 'email' => 'unique:users' //here users is table name OR 'email' => 'unique:c,email_address' //can give custom column name. OR 'email' => 'unique:User,email' //here User is a model class This is a very simple usage ...
Using Virtual Columns in Laravel - Accessors and Appends
What are virtual columns? While developing any web application sometimes we need virtual columns - columns don't actually exist in our DB table, but we drive them from other columns. Why we need them? For example, generally, we use first_name and last_name in the users table. But sometimes we also need user's complete name i.e. full_name . There is no benefit of saving full_name in user table if we have already first_name and last_name in the table OR even if we have full_name as a column in our table then there is no benefit of saving first_name and last_name in the table. So in a scenario like this, we prefer to use the virtual column. Using Virtual Columns in Laravel Considering the first case, in Laravel to get virtual column i.e. full_name from the users table will have Accessors. Accessors are methods defined automatically called by Eloquent when select is called on that particular column. Let take an example here: To get full_...


Comments
Post a Comment