Contributions
Re: Q: Browser Loop // Data Driven Browser Loop
FYI - We were able to get this working using your suggestions (@cunderw) Part of the excel DDT file is a section for browsers (name/resolution). Using keyword tests, we run a parameterized browser that reads in a values from the excel file, followed by the test step execution. All of this is then contained to a data loop that using the excel file.2.7KViews1like1CommentQ: Browser Loop // Data Driven Browser Loop
Hi, I'm setting up my project as a hybrid style that uses scripts and keyword tests. Basically, the scripts are modular code or single function, which I drop into a Keyword test. A Keyword tests consists of one or many 'Run Script Routine' functions. This allows me to re-use scripts across multiple Keyword tests, leverage Keyword operations, and looks cleaner for any non-code savvy team members who want to create new tests (via drag and dropping script routines into a keyword test). Ideally, I'd like to create a "Browser Loop" script that runs through all installed browsers and virtual browsers. TestComplete has a 'Browser Loop' operation and a 'Virtual Browser Loop' operation. I'm not able to convert these operations to script. The reason I want to have a scripted browser loop, is so that I can maintain all my code in one place. For example; we stop supporting IE, I don't want to go into 100+ test cases and remove IE from the Browser Loop operation. If I had a script, I could maintain our supported browsers in one spot and update all Keyword tests that use that script routine. Does anyone have recommendations for accomplishing this? What I'm looking for is a scripted function where I can identify all the browsers that will be tested (installed or virtual). I want to be able to drag this script into the top of a keyword test, just as you would use the Browser Loop/Virtual Browser operation, and run through the rest of script - one browser at a time until the test has been run on every browser. Is there a way to combine the Browser Loop and Virtual Browser Loop? Right now, if I wanted to run both loops I'd need to have a browser loop operation followed by my script routines, then a virtual browser loop operation followed by the same routines from above - it's pretty redundant. Project +Keyword Tests --Test 1 (Run script routine ABC, Run script routine DEF) --Test2(Run script rountine ABC, Run script routine JKL) +Scripts --Script ABC --Script DEF --Script GHI --Script JKL When running the automated tests, you would run the Keyword Tests. See attachment for example.Solved2.8KViews0likes8CommentsRe: Publish TC results to Visual Studio Online
Hey Yuri, Just to clarify this a bit more. We're looking to have a quick visual of TestComplete scripts that ran during the build&release process. The exact detail of scripts (mht file) can be found in the release log, which is nice - it just takes some navigating around to find the mht file, then downloading it and viewing it. What we really want isa widget, on the VSO dashboard, that would display something like; # of tests run # of tests (pass) # of tests (fail) Something our developers / managers can quickly view and see how their application looks on a day to day basis. Any additional level of detail would be great as well, like separating tests into groups so that they could see that, for example, the "log in" screen had 100% success, while the "order" screen had 50% failure. Right now, when using Visual Studio to kick off TestComplete scripts, during build&release, we only see that "1 test ran" - the 1 test is referring the the tc12test file within Visual Studio. This file contains all of the tests that will be run, however VSO only see's the tc12test file as a test, instead of everything it contains. I'll update once we hear more from the product owner - who we are in contact with. Having this functionality would be incredibly helpful for application development and maintenance.2.2KViews0likes2CommentsRe: Object Validation - Best Practices?
Hi Robert, you are correct - my NameMapping is setup with tables/forms/div, I removed them to simplify the example. Here is an example of a 'Submit' button that lives on the page: NameMapping.Sys.browser.StoreDemo_HomePage.StoreDemo_FORM.StoreDemo_Content_PANEL.Quantity_TABLE.Submit_BUTTON If I'm understanding you correctly, I'd need to create an Object Store, map out all the properties of the object/child-objects, then do an Object.<ObjectStore_Name>.check(<NameMapping Object>). Is that right?1.2KViews0likes0CommentsRe: Object Validation - Best Practices?
Thanks for the reply, this works pretty well so far. Follow-up question; Is there a way to implement wild cards or ignore specific comparisons? I keep getting a failure because a ViewState value changes, dynamically, whenever the site is loaded. I have tried to enable the "Read content from a server" option with no luck, and it seems wild card (*) does not apply to this checkpoint.1.2KViews0likes2CommentsPublish TC results to Visual Studio Online
Hello, I'm looking to publish test results to Visual Studio Online, I found a help document for publishing test results - however, it's limited to TFS on premises only: https://support.smartbear.com/testcomplete/docs/working-with/integration/ms-vs/alm/team-builds/installing-publish-extension.html Has anyone had any luck trying to publish tests results to VSO?2.3KViews0likes4CommentsObject Validation - Best Practices?
Hi - I'm trying to begin implementing an Enterprise solution for automation, and I've got a lot to learn! Scale-abilityand reliabilityis incredibly important.Are there any best practices, or tips-n-tricks for object validation using TestComplete? For instance, when starting a new project, I like to validate all elements of the application are displayed - images, text, drop downs and their values, input boxes, buttons, etc. The applications I've been working with are fairly small and self-contained, so there aren't hundreds of objects per screen. I've been creating a checkpoint for each of the mapped objects (see below). Small sample: aqObject.CheckProperty(NameMapping.Sys.browser.Screen_HEADER, "contentText", cmpEqual, "Welcome!"); aqObject.CheckProperty(NameMapping.Sys.browser.Screen_Customer, "contentText", cmpEqual, "Customer"); aqObject.CheckProperty(NameMapping.Sys.browser.Screen_Item, "contentText", cmpEqual, "Item"); aqObject.CheckProperty(NameMapping.Sys.browser.Screen_Quantity, "contentText", cmpEqual, "Quantity"); aqObject.CheckProperty(NameMapping.Sys.browser.Screen_Help, "contentText", cmpEqual, "Help?"); There maybe 20-30 objects for a single screen, maybe more.. and typically multiple screens. The above sample would illustrate text labels for a screen, but there could be images, a drop down with 100+ values, dynamic results from a search, input fields, etc. Is this type of test even valuable? Is this the most efficient way to validate all screen objects? Also, if there are any typical automated test practices that you use.. feel free to share, or even tests that you include in many/all your automated projects.1.2KViews0likes4CommentsRe: Visual Studio 2015 - tests only recognized when adding TestCompleteTest.tc12 the first time
Solution: After working through SmartBear customer care, a new patch was given to us to remedy the issue. This will be included in the next release of TestComplete, so it should not be an issue in the future. Thanks!1.5KViews1like0Comments