public void login() {
        final String url = baseURL + "/platform/login?userName={username}&password={password}";
        ResponseEntity<ShenYuResult> response = template.getForEntity(
                url,
                ShenYuResult.class,
                loginInfo
        );
        ShenYuResult rst = assertAndGet(response, "login dashboard user success");

        String token = Assertions.assertDoesNotThrow(() -> rst.toObject(LoginInfo.class).getToken(), "checking to cast common");
        Assertions.assertNotNull(token, "checking token not null");
        Assertions.assertNotEquals("", token, "checking token not empty");
        basicAuth.set("X-Access-Token", token);

        Plugin.check(listPlugins());
    }
Login to ShenYu Admin and cache the token.
shenyu-e2e/shenyu-e2e-client/src/main/java/org/apache/shenyu/e2e/client/admin/AdminClient.java