Best Testsigma code snippet using com.testsigma.controller.PlatformsController.platforms
Source:PlatformsController.java
...13import org.springframework.beans.factory.annotation.Autowired;14import org.springframework.web.bind.annotation.*;15import java.util.List;16@RestController17@RequestMapping(path = "/platforms")18@Log4j219@RequiredArgsConstructor(onConstructor = @__(@Autowired))20public class PlatformsController {21 private final PlatformsService platformService;22 @RequestMapping(method = RequestMethod.GET)23 public List<Platform> platforms(@RequestParam WorkspaceType workspaceType,24 @RequestParam TestPlanLabType testPlanLabType) throws TestsigmaException {25 return platformService.getSupportedPlatforms(workspaceType,26 testPlanLabType);27 }28 @RequestMapping(path = "/{platform}/os_versions", method = RequestMethod.GET)29 public List<PlatformOsVersion> osVersion(@PathVariable Platform platform,30 @RequestParam WorkspaceType workspaceType,31 @RequestParam TestPlanLabType testPlanLabType) throws TestsigmaException {32 return platformService.getPlatformOsVersions(platform, workspaceType,33 testPlanLabType);34 }35 @RequestMapping(path = "/{platformOsVersionId}/os_version", method = RequestMethod.GET)36 public PlatformOsVersion osVersion(@PathVariable Long platformOsVersionId,37 @RequestParam TestPlanLabType testPlanLabType) throws TestsigmaException {...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!