Contributions
Ignore Dynamic URL in Data loop
Question: How can I make objects on a page ignore the dynamic URL? I’ve followed steps from the Ignore Query String instructions, but I have not been successful. Problem: I’m creating a Functional Web test using an automated keyword test and no script. I’m testing a website written in ASP.NET and JavaScript. I’m trying to make objects I select from my test URL independent. On several different pages, there are recurring check boxes and text boxes that I want to use. I’m testing a website that stores several different users, and the URL stores the ‘user codes’ for each one at the end of the address. This creates a problem when I select ‘on-screen objects’ and put my tested objects into a data loop. My TestComplete keyword test associates the URL with the object, making it crash when I try to reuse the object for a different user. Example: User ‘5555’ gets http://example.net/empdetail.asp?pid=000&sid=001&loc=42&user=5555 I record an automated keyword test selecting name text boxes and check boxes TestComplete associates the URL (including user=’5555’) with each of these objects Test produces ‘object not found’ error when I try to run through a data loop with different users17KViews0likes1CommentJUnit: Calling a function from another file
Hi All, I'm running TestComplete 8 and I'm testing using Script tests, rather than Keyword tests. I'm using JScript as my language and am testing a .NET website. My goal is to create a test that can work across browsers. I've followed the Cross-Browser script example here and it works successfully for running the example web test provided by TestComplete. However, I want to replace the example web test with my own web test and the way I can think to achieve this is to use the example file and replace the function that creates and runs the web test with a function call to my own web test in another file. Specifically: Using the example project XBrowserScript (links you to a ZIP file FYI), I'd like to use the "JUunit1_NM" script, but modify it by replacing the function 'function DoWebTest(browser)' with a function call to my own web test in another script (.pjs) file. Then I'll run it from the main() function and it should make my test cross-browser compatible. What I need help with: I'm not sure how to write a function call to a function in another web file using JScript. I know that my function in the separate file will need to pass a variable, too, but I'm not sure which variable either. Please let me know if you can help and let me know what other information you need. Thanks!!15KViews0likes2Comments