RileyMartinezOccasional ContributorJoined 6 years ago10 Posts2 LikesLikes received1 SolutionView All Badges
ContributionsMost RecentMost LikesSolutionsRe: Test Item Parameter Value Not Getting Stored During Test Run Thanks for the reply Alex. It turns out that there was a semantical error on my part that I wasn't catching. I needed to place the if statement before my common.preTest() statement. The feature and function now work fine after that. Would you happen to know the best way that I can go about closing out this post? Test Item Parameter Value Not Getting Stored During Test Run Maybe I'm missing something obvious, but I feel like this should be working. I read the documentation on Test Items, and believe I'm using this feature correctly. I am attempting to pass a boolean value as a parameter to a test case, so that it either runs or doesn't run the function getAndLogTesterInfo(). When running the debugger the parameter value that I set for the test item is not being stored at runtime. This is the test item that I'm running, with the parameter userformEnabled of type boolean set to True: This is the script code at runtime while using the debugger. As you can see at the bottom, the variable userFormEnabled does not have any value stored, causing it to pass over the if-statement. Any advice would be much appreciated! Thank you. SolvedRe: Calling objects directly vs returning objects in a function What happens if the alias of the namemapping changes? All scripts that use that alias namemapping will need to be updated to the new alias name. Wouldn't returning the namemapped object from a function be more robust if the namemapping changes? Just edit the function in one spot, and all of the scripts are working again. Re: NameMapping File and Git Source Control Marsha_R, Awesome—thank you for the clarification! How often would you say you run into issues when passing the merged NameMapping file back for testing? Re: NameMapping File and Git Source Control Hi Marsha_R, Yes sorry, I should have mentioned you are Community Hero of equal stature haha. Giving what you're saying about this, would you recommend Option B? Also, Option B is how I understood the explanation of how your team handles multiple contributors. Let me know if I got the details wrong there. Thanks! Re: NameMapping File and Git Source Control Hi tristaanogre , We have attempted a similar git workflow, and of course, run into conflicts on the pull. Could you elaborate more on how you reconcile the conflicts you run into? We're afraid of the consequences that could result from attempting to manually resolve each file. These are the files where we run into conflicts: - .tcNM - .NMimg If there's no elegant way to handle this, we will most likely have a single curator handle all of our NameMapping, but that really hampers our productivity. If that person were to be out of the office, then everyone else is kind of left stranded. Our plan B is similar to what Marsha_Ris doing, where we would pass each other's unique NameMapping files to a single person. Have them merge in each file one-by-one using TestComplete's merging tool, then pass the updated "master" file back out to everyone. As your title says, you appear to be a real "Community Hero" in these forums, so we appreciate your advice. Thanks, Riley M. Re: Editor intellisense and navigation does not work with declared objects No worries! I actually found the solution I was looking for here: https://support.smartbear.com/testcomplete/docs/scripting/calling-routines/declared-in-another-unit/from-gui.html#GUI Seems like a good way to import functions from a "Library" script, and it allows you to see those functions with Code Completion. -Riley Re: Editor intellisense and navigation does not work with declared objects Tanya, You mentioned there is an appropriate suggestion in your DB? Could you please link me to where I can find your suggested workaround? Please add my vote on this feature as well. Thanks, Riley