Bug Report T1028438
Visible to All Users

TestCafe Studio application crashes when resuming recording a coded test with action specified in a separate helper file

created 4 years ago (modified 4 years ago)

I am halfway through the evaluation period of TestCafé Studio, but suddenly encountered an interesting issue.

When I resume recording a test that calls a method from a PO file, TestCafé's UI turns completely black. The code tabs, the explorer, the reports and the top bar (with recording controls) disappear. The menu bar is still visible though. The browser window opens, methods from PO files are still executed and interactions are still recorded. If I close and restart TestCafé all the recorded input is there.

This used to work fine in the previous version of TestCafé.
The issue occurs with Chrome 93.0.4577.63 (64-bits) and Firefox 92.0 (64-bit).
Running tests that include method calls from PO files works fine.

Code
import { Selector, t } from 'testcafe'; import { Page, TestData } from './helpers'; *[...]* var page: Page; *[...]* fixture `Some fixture` .page `http://localhost:4200` .before(async () => { page = new Page(); *[...]* }); test('Register values'async (t: TestController) => {     await page.login(TestData.adminCredentials);
Code
import { Selector, t } from 'testcafe'; export class Page {     constructor() {  }     public async login(credentials{         await t             .typeText(Selector('.dx-texteditor-input').nth(0), credentials.username)             .typeText(Selector('.dx-texteditor-input').nth(1), credentials.password)             .click('.dx-button');     } public async logout() { await t .click(Selector('[name="userButton"] div')) .click(Selector('span').withText('Logout')) } *[...]* } export class TestData { public static readonly adminCredentials = { username: 'admin', password: '*[...]*' } public static readonly testUserCredentials = { username: 'E2ETestUser', password: '*[...]*', firstname: 'Test', lastname: 'User', isactive: true, role: 'User', email: 'bla@bla.com' } [...] }
Comments (3)
DO DO
Dmitry O. (DevExpress) 4 years ago

    Hello,

    Thank you for your report. I reproduced the issue. We will research it and update this thread once we have results.

    H H
    H. van der Lelie 4 years ago

      Hello Dmitry,

      Do you maybe have an update on this issue?

      TestCafé's most compelling feature is not working properly and the evaluation period ends this Friday.

      Should the issue not be resolved before Friday, is there a way to re-evaluate TestCafé before deciding whether or not to continue using it?

      DO DO
      Dmitry O. (DevExpress) 4 years ago

        Hello,

        We are working on this issue, but we cannot give exact estimates as to when the fix will be ready.
        As I can see from your profile, you obtained the Universal DevExpress subscription, which also includes a license for TestCafe Studio. So, you don't need to worry about the evaluation period. Just register TestCafe Studio using your subscription credentials.

        Answers approved by DevExpress Support

        created 4 years ago

        We have addressed the issue described in this ticket and will include a fix in our next maintenance update. Should you need to apply our fix prior to official release, you can request a hotfix here.

        Note: Hotfixes may be unavailable for betas/updates set for release within a week.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.