Contributions
Iterative data driven CI
I'm sure I'm not the first to ask this question however I don't see an answer here. We want to incorporate TC as part of the CI cycle. Our tests create data that can only be created once i.e. users, products, documents etc. Subsequent tests with the same data will fail. We can generate hundreds of rows of test data and specify on the data loop only to run row 1 of the test data.The next iteration, we have to change the keyword test data loop to use row 2 and repeat for every execution. This manual process won't work in an automated CI cycle. I've ditched the keyword test and written javascript to use the excel drivers for the data loop. How can I pass the starting row number from the CI tool (Jenkins) on the command line? Do I have to write the value to a text file and read the text file in the javascript to load it into a project variable? TIASolved1.5KViews0likes2CommentsRe: RESTful API testing requires base64 parm - btoa() is unknown function
I resolved it by doing something similar but different to the example on scotch.io. VERY slow. The TC project is running pure javascript. We're not even opening a browser, just httprequests to exercise the API. There is no page object to use as in the documentation link you provided. We may have to open up a browser just to have a page object to use to improve the speed. Thanks, E1.6KViews0likes1CommentRESTful API testing requires base64 parm - btoa() is unknown function
How can I encode a binary file to base64 for the API parm? I foundhttps://support.smartbear.com/viewarticle/42195/ but it requires dotnet and the desktop license for TC. We are only using the web testing so the example fails. Is there anyway to access the native javascript window.btoa() function within javascript test scripts? Eddie1.6KViews0likes3CommentsRe: How to start chrome in incognito from keyword test
So you can't open incognito from keyword test? I have tried your suggestion. Doesn't work. Tried it before posting the question here. The test runs fine in incognito mode. In fact, incognito mode is the only thing that reliably works consistently. I don't have a dedicated testing machine. Changing useful functionality for %99.98 of my browsing to accomplish %0.02 percent of my testing needs doesn't sound like a useful solution anyway. Very frustrated with keyword testing at this point. It has extremely limited functionality. The recording feature is mostly useless because every step and almost every object has to be edited manually afterwards. I can start the browser in incognito from a script but if I have to write scripts to use important functionality, I may as well use scripts for everything and use selenium for free.6.3KViews0likes7Comments