Search:

Type: Posts; User: freightgateone

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Is there a way to deliberately make a test fail?

    Say I am writing a bit of non-ST code inside a seperate function and may want to make my test fail or continue based on this functions result.

    How would I do this?

    I've seen some stuff in the...
  2. Replies
    1
    Views
    148

    Catching ST errors

    Is it possible to catch errors thrown by ST and handle them as I wish to?

    For example catching the error that occurs when a row can not be located due to an invalid rowindex?




    try {
    ...
  3. Replies
    2
    Views
    133

    Okay after trying out your suggestions this...

    Okay after trying out your suggestions this seemed to work out:



    it("check the grid for the updated record", function (done) {
    ST.wait(4000)
    .and(function () {
    ...
  4. Replies
    2
    Views
    133

    code flow problems with ST

    So I have this piece of code that tests whether a grid gets updated after having made a change to one of its records or not.

    The alert()-method clearly prints out the correct rowIndex and I've...
  5. Hey, is this also possible when using page...

    Hey, is this also possible when using page objects? e.g.: stpo.custompage.myElement(10000); ?
  6. Hmm yes, that would work. Although, ...

    Hmm yes, that would work.

    Although,


    .execute(function(grid) {
    would now be


    .execute(function(row) {
  7. Ah, I found the problem! Turns out it wasn't...

    Ah, I found the problem!

    Turns out it wasn't the locators as I previously suspected.

    The grid's records get fetched from a DB and as I invoke the execute function right after navigating to the...
  8. Thanks, the KitchenSink version works...

    Thanks,

    the KitchenSink version works perfectly fine, but transferred to my site I am running into a problem.

    Executing the findby-Method directly in the Browser gives me the desired rowIndex:...
  9. Selecting grid entries with composite key

    Say I have a grid where a row is uniquely identified by a combination of two or more columns (in my case 3); a composite key.

    In this scenario there are 2^3 possible combinations


    ...
  10. Replies
    3
    Views
    188

    Thank you so much! A small addition to your...

    Thank you so much!

    A small addition to your solution:
    module.id gets the file location using '\' instead of '/' so the subtstring method has to be altered the following:



    describe('File...
  11. Replies
    3
    Views
    188

    relative paths do not work in ST?

    I have written a short test that fetches login credentials from a local file using the fs-module and logs in.



    describe("loginAndNavigate", function() {
    const fs = require('fs');

    //...
  12. Replies
    1
    Views
    127

    done causes test to fail

    I have written a short test that fetches login credentials from a local file, logs in and simply accesses a page element.



    describe("loginAndNavigate", function() {
    const fs =...
  13. Command-line arguments for test cases?

    Hello,
    I was wondering if it is possible to run test cases with command-line arguments respective to JAVA applications and their String[ ] args parameter...
  14. That's a great idea, I'll definitely try using...

    That's a great idea, I'll definitely try using direct DB queries.

    But it would still be more elegant to remove these entries after a test has run, right?

    Is there sth. comparable to a...
  15. Prevent duplicate entries in test runs

    In order to test some functionalities of a grid we have on our website I am currently creating new entries for each test run that I can then alter and act on in my test suites.

    After the tests...
  16. I'll answer that myself: the...

    I'll answer that myself:

    the .expect('innerText').toBe('string'); behaves the same as the text()-Method, even checks for the actual (not only displayed) value.
    Its toBe() can be preponed with...
  17. Another thing: Checking if a cells value does...

    Another thing:
    Checking if a cells value does not equal a specified string can be achieved via the textNotLike-API but if the test then fails the error output is difficult to read as ST is unable to...
  18. Yes that is exactly whats happening. I was just...

    Yes that is exactly whats happening. I was just dreading to use the wait-statements because they will heavily increase the runtime of these tests in the long term, right?
    Apart from that, the...
  19. But actually the main problem is, that after...

    But actually the main problem is, that after refreshing the grid I can see that the cell's value is updated to 'newValue' but the .text('newValue') fails and text('oldValue') completes.



    ...
  20. Problem is with the .text() API is that grid...

    Problem is with the .text() API is that grid cells, which abbreviate its content using '...' because it's to long, won't be asserted properly by this method.
  21. .expect('innerText').toBe(); has issues with updated values?

    I am testing the update functionality of a grid we have on our website.

    Via a seperate edit panel changes can be made in order to alter the grid's entries.

    After I save made changes, the grid...
  22. Okay, alert() does in fact display the small...

    Okay, alert() does in fact display the small window as usual but that is not the problem.
    Using the debugger also shows me that I correctly fetched the credentials from the database.

    The thing is...
  23. Acessing page elements inside a .then() method

    So I am trying to fetch login credentials from a local database as an example to test the node-mysql module with sencha test.

    In the beforeAll()-Block I establish a connection, fetch the...
  24. Replies
    3
    Views
    248

    After executing the .expand()-Method the combobox...

    After executing the .expand()-Method the combobox switches from its regular, 'unselected' state 58103

    To a selected one 58104 as if you clicked on it in order to type text in there.

    Adding...
  25. Replies
    4
    Views
    742

    Are there any updates on this? I've tried to...

    Are there any updates on this?

    I've tried to connect using our own server-hosted JIRA (version 4.2.4) but that does not seem to work either..
Results 1 to 25 of 61
Page 1 of 3 1 2 3