What X-linking testing means for Grab's transportation platform
X-linking is Grab's method of connecting different software modules so they communicate with each other during operation. When you test X-linking, you're checking whether Grab's ride-booking system, driver app, payment processor, and location services actually talk to each other correctly — not just whether each one works alone. A broken X-link might mean a driver never receives your ride request, or your payment goes through but the driver sees no trip assigned.
Testing X-linking before you roll out a new Grab feature or configuration change catches these connection failures before real users hit them. The test itself is straightforward: you send a request through one module, watch whether the connected module receives and responds to it, and document what went wrong if it doesn't.
Key Takeaways
- X-linking tests verify that Grab's separate systems (booking, driver assignment, payment, location) actually exchange data with each other, not just that each system works in isolation.
- You run these tests in a staging environment — a copy of Grab's live system — before deploying any configuration change to real users.
- The three core test types are request-response (does module B receive what module A sent), data consistency (do both modules show the same information), and error handling (what happens when a connection fails).
- Common X-linking failures include timeout errors when modules respond too slowly, data format mismatches when one module sends information the other doesn't understand, and missing authentication tokens that prevent modules from verifying each other's identity.
Setting up a staging environment for X-linking tests
You cannot test X-linking on Grab's live system — you need a separate copy where broken connections only affect your test data, not actual rides and payments. Most organizations call this a staging environment. It should mirror the live setup as closely as possible: same database structure, same API endpoints (the connection points between modules), same authentication requirements.
Your staging environment needs test accounts for both riders and drivers, test payment methods that don't charge real money, and a way to monitor what data flows between modules. Tools like Postman (for testing API calls directly) or Grab's own logging dashboard let you see exactly what one module sent and what the other received. If you're testing a new configuration change, apply it to staging first, then run your X-linking tests before touching the live system.
The three core X-linking test types
Request-response testing checks whether one module successfully sends a message to another and gets a reply. In Grab's case: you trigger a ride request from the rider app (module A), then verify the driver app (module B) receives it and sends back a confirmation. You document the exact time the request left, the time it arrived, and whether the response came back. If the driver app never receives the request, you've found a broken link.
Data consistency testing verifies that both modules show the same information after they communicate. After a driver accepts a ride, the rider app should show "driver accepted" at the same moment the driver app shows "ride accepted." If the rider app still shows "searching for driver" five seconds later, the modules aren't syncing properly. This test catches situations where one module updates but the other doesn't receive the update.
Error handling testing deliberately breaks the connection and watches what happens. You might temporarily shut down the payment module, then try to complete a ride in the main app. Does the system queue the payment for later, show an error message to the user, or crash silently? Each outcome is valid depending on Grab's design — the test just documents which one actually happens.
Common X-linking failures and how to spot them
Timeout errors occur when module A sends a request to module B, but module B takes too long to respond (usually more than 30 seconds). The requesting module gives up and returns an error. This often happens when the connection between modules is slow, or when module B is overloaded with other requests. You'll see this in your logs as a "connection timeout" or "request timeout" message with a timestamp.
Data format mismatches happen when module A sends information in a structure module B doesn't recognize. For example, if the rider app sends a location as "latitude: 40.7128, longitude: -74.0060" but the driver app expects "lat: 40.7128, lon: -74.0060", the driver app won't understand it. The error message usually says "invalid format" or "unexpected field." Fixing this requires changing one module to match the other's format, or updating both to use a shared standard.
Missing or expired authentication tokens prevent modules from verifying each other's identity. When module A tries to contact module B, it includes a token (a digital credential) that proves it's allowed to make that request. If the token is missing or expired, module B rejects the request with an "unauthorized" or "forbidden" error. Check your token generation and refresh logic — tokens often expire after a set time and need to be renewed.
Running a complete X-linking test cycle
Start by documenting what you're testing: which modules are involved, what data should flow between them, and what the expected outcome is. Write this down before you test — it keeps you from accidentally accepting a wrong result as correct. For example: "When a rider requests a ride, the booking module sends the request to the driver-matching module within 2 seconds, and the driver-matching module returns a list of available drivers within 5 seconds."
Execute the test in your staging environment and record every step: what you did, what time it happened, what data was sent, what data was received, and whether the outcome matched your expectation. Use your logging tools to capture the actual messages between modules, not just your observations. If something fails, the logs show you exactly where the connection broke.
Document failures with enough detail that another engineer can reproduce them. "X-linking failed" is useless. "Driver app did not receive ride request sent by booking module at 14:32:15 UTC; booking module logs show request sent successfully; driver app logs show no incoming request received" tells you where to look. Include the exact error message, the timestamp, and any relevant configuration settings.
When to test X-linking and when to skip it
Test X-linking whenever you change how modules communicate: new API endpoints, changed data formats, updated authentication methods, or new modules being added to the system. You should also test after any configuration change that affects module connections, such as changing timeout limits or adding a new database server.
You do not need to run a full X-linking test for changes that only affect a single module's internal logic — for example, updating the algorithm that calculates driver ratings. That change doesn't alter how modules talk to each other, so X-linking tests would show no difference. A unit test within that single module is more appropriate.
If you're deploying a small configuration tweak to an existing, stable connection (like adjusting a timeout from 30 seconds to 35 seconds), a quick smoke test — sending one request through the connection and confirming it works — may be enough. A full test cycle is overkill. But if you're uncertain whether a change affects module communication, test it. The cost of a false positive (testing something you didn't need to) is much lower than the cost of a false negative (skipping a test and breaking a connection in production).
Tools and logs for X-linking visibility
Postman is a free tool that lets you send requests directly to Grab's API endpoints and see the exact response. You can save a series of requests as a test suite and run them repeatedly, which is useful for regression testing — confirming that a change didn't break something that was working before. Postman shows you the request, the response, the time it took, and any error messages.
Grab's logging dashboard (or whatever centralized logging system your organization uses) records every message sent between modules. Search by timestamp, module name, or request ID to find the exact moment a connection failed. Logs typically show the source module, destination module, the data sent, the response received, and any errors. If you're troubleshooting a failed X-link, the logs are your primary source of truth.
API monitoring tools like Datadog or New Relic track X-linking performance over time: how many requests succeed, how many fail, and how long each request takes on average. These tools alert you if X-linking performance suddenly degrades, which might indicate a problem you haven't discovered yet through manual testing.
Frequently Asked Questions
What's the difference between X-linking tests and unit tests?
Unit tests check whether a single module works correctly in isolation. X-linking tests check whether two or more modules work correctly together. You need both: a module might pass all its unit tests but still fail to communicate with another module due to a format mismatch or authentication issue.
How long should X-linking tests take to run?
A basic smoke test (one request through each connection) takes minutes. A comprehensive test covering multiple scenarios, error cases, and data consistency checks typically takes 30 minutes to a few hours, depending on how many modules you're testing and how many test cases you've written.
Can I run X-linking tests on the live system?
You can, but you shouldn't. Test data mixed with real user data creates confusion, and a failed test might disrupt actual rides or payments. Always use a staging environment. If you absolutely must test on live, use clearly marked test accounts and test payment methods, and coordinate with your team so nobody mistakes test activity for a real problem.
What should I do if an X-linking test fails?
Check the logs first to see exactly where the connection broke. Verify that both modules are running and accessible. Confirm that authentication tokens are valid and not expired. Check whether the data format matches what the receiving module expects. If you still can't find the issue, isolate the problem by testing each module individually, then test them together again.
Do I need to test X-linking after every code change?
No — only after changes that affect how modules communicate. Changes to a single module's internal logic don't require X-linking tests. Changes to API endpoints, data formats, authentication, or module connections do. When in doubt, a quick smoke test takes only a few minutes and gives you confidence that nothing broke.