While performing automation testing with Selenium, the number of test cases that run in a queue or in parallel could be extensive. Finding a particular test case to share with your colleagues out of hundreds of automated test cases could sometimes be as challenging as finding a needle in a haystack. However, at LambdaTest we have made it easier for you to share your test results so you could collaborate faster with convenience.
If you wish to share an instance of a single test result with a member of your organization then you can share it by retrieving the Session ID and appending it into the URL of automation logs.
To retrieve the Session ID use the below command.
SessionId session = driver.getSessionId();
Share the below URL with respect to your Session ID.
https://automation.lambdatest.com/logs/?sessionID=8d56iz056f7999990472j5b85k700b2o //this is a sample Session ID
Now you can also easily share a video of a specific test. To do so, you need to build a URL in the proper structure and share it. The correct syntax for the URL is:
In the above URL syntax, there are 2 variables to be filled:
- TestID/SessionID: To get your TestID/SessionID, go to the Automation Dashboard, and click on the test whose TestID/SessionID is required. Once the test results are open, you can see the TestID/SessionID highlighted as shown in the image below.
So suppose your SessionID is HJKXM-RHZL1-SVPWY-AB8X6, then the updated URL will be:
- AUTH_TOKEN: The AUTH_TOKEN or Authentication Token is created with the help of MD5, in the following format: Java:
MessageDigest m=MessageDigest.getInstance("MD5");String s = "username:access_key";m.update(s.getBytes(),0,s.length());System.out.println("MD5: "+new BigInteger(1,m.digest()).toString(16));
var crypto = require('crypto');crypto.createHash('md5').update("username:access_key").digest("hex");
So suppose the generated AUTH_TOKEN is 331k534uf3toef, then the updated URL will be:
Make sure you are logged into LambdaTest for accessing the sharing URL. Happy testing!