diff --git a/test-apps/display-performance-test-app/src/frontend/DisplayPerformanceTestApp.ts b/test-apps/display-performance-test-app/src/frontend/DisplayPerformanceTestApp.ts index b30cdf5e440a..dd32b69c7e09 100644 --- a/test-apps/display-performance-test-app/src/frontend/DisplayPerformanceTestApp.ts +++ b/test-apps/display-performance-test-app/src/frontend/DisplayPerformanceTestApp.ts @@ -103,14 +103,18 @@ export class DisplayPerfTestApp { urlStr = urlStr.replace("{iModel.filename}", getFileName(runner.curConfig.iModelName)); urlStr = urlStr.replace("{iModel.extension}", getFileExt(runner.curConfig.iModelName)); const url = new URL(urlStr); + const tilesetUrl = new URL("tileset.json", url); + tilesetUrl.search = url.search; + + // Check if a tileset has been published for this iModel. try { - // See if a tileset has been published for this iModel. - const response = await fetch(`${url}tileset.json`); + console.log(`Checking for tileset at ${tilesetUrl.toString()}`); // eslint-disable-line no-console + const response = await fetch(tilesetUrl); await response.json(); runner.curConfig.urlStr = urlStr; return url; } catch { - runner.curConfig.urlStr = `${urlStr}tileset.json - Not found`; + runner.curConfig.urlStr = `${tilesetUrl.toString()} - Not found`; // No tileset available. return undefined; } diff --git a/test-apps/display-test-app/src/frontend/DisplayTestApp.ts b/test-apps/display-test-app/src/frontend/DisplayTestApp.ts index d7f2d56cf258..7a5fc8b7552f 100644 --- a/test-apps/display-test-app/src/frontend/DisplayTestApp.ts +++ b/test-apps/display-test-app/src/frontend/DisplayTestApp.ts @@ -224,9 +224,13 @@ const dtaFrontendMain = async () => { urlStr = urlStr.replace("{iModel.filename}", getFileName(iModel.key)); urlStr = urlStr.replace("{iModel.extension}", getFileExt(iModel.key)); const url = new URL(urlStr); + const tilesetUrl = new URL("tileset.json", url); + tilesetUrl.search = url.search; + + // Check if a tileset has been published for this iModel. try { - // See if a tileset has been published for this iModel. - const response = await fetch(`${url}tileset.json`); + console.log(`Checking for tileset at ${tilesetUrl.toString()}`); // eslint-disable-line no-console + const response = await fetch(tilesetUrl); await response.json(); return url; } catch {