Contributions
Re: XPOST - Incorrect cross reference error
Ravik wrote: Hi, It may happen becouse you UNIT's may not associate correctly. Try below step, it may help you 1- Right Click on your Script unit 2- Click on Add unit Referances 3- Select 'Add The following referances to ..........' (make sure all the check boxes are selected) 4- Click OK 5- again Select ' Add .......Unit referance to following Units (make sure all the check boxes are selected) 6- Click OK I don't see how this would change anything since all my references are already entered. Can you clarify what this would do besides add already existing USEUNIT references?2KViews0likes0CommentsRe: XPOST - Incorrect cross reference error
cunderw wrote: Have you checked ALL of your script units, not just the ones you're trying to use? I did that when I wasn't getting any answers. With all the USEUNIT statements cleaned up, I was still getting the error. It is caused by a specific function, but I don't see the reason for the Cross Reference issue. When I move the function into one of the erroring Units, it is fine. If I use the function outside of that Unit and add a Reference to it, error. I have a thread on StackOverflow that seems to have found the long, convoluted issue. http://stackoverflow.com/questions/34320500/testcomplete-incorrect-cross-reference-error/34328798#343287982KViews0likes0CommentsXPOST - Incorrect cross reference error
I am getting a cross reference error that is incorrect. I checked all the USEUNIT declarations of the referenced units and they do NOT reference each other, yet I am all of the sudden getting this error. The even the line referenced in the error is blank. If I delete a completely different USEUNIT reference, I don't get the error, but I need that reference. And again, there is no cross reference issue when actually looking at the scripts Why am I getting this error? Cross-posting to try and actually get a response2KViews0likes4Comments- 1.1KViews0likes1Comment
Getting RPC Server error
I am getting an RPC Server error pretty much constantly now. I never saw it with TC 10. I had to upgrade to TC11 to continue testing on Chrome and I am now seeing it all the time. It doesn't matter which script I am running or how, but as soon as I get to the 4th one, error. If I run them alone, they are fine. As soon as I run them one after another - BAM error. Any idea how to fix this or what is causing this? Is this a known issue with TC11??1.1KViews0likes2CommentsRe: Having trouble with objects do not exist error
Well, I was able to get back onto the webpage. I checked the Object Spy and it was mapped. I was able to highlight the checkbox from the name mapping tree (leaving the pointer where it was and using the keyboard to navigate). It still wouldn't run in the main script. I have a line of code thatwas basically for refreshing the page Browsers.Item(btChrome).Navigate("http://mywebsite"); I decided to try to run the script without it, but still calling the broken function. IT WORKED! I don't know why that line was messing things up, but it was. I replaced it with: Browsers.Item(btChrome).Run("http://mywebsite"); And the whole thing worked! WT....? Why would that cause things not to work? I even use Browsers.Item(btChrome).Navigate("http://mywebsite"); in the middle of the broken code to refresh the page (I couldn't find an acceptable refresh option)??988Views0likes1CommentRe: Having trouble with objects do not exist error
@colin_mccrae - Yea, I find weird things all the time - lol. It's why I've stuck with testing for so long! When I look at the error, it says that it can't find the direct parent of the checkbox. The menu disappears as soon as the mouse is moved. When I use the object spy, the checkbox shows the mapped name correctly. I need to try this again, but our data system is down and the page isn't rendering correctly without the data.996Views0likes0CommentsRe: Having trouble with objects do not exist error
@colin_mccrae - when it is failing, it fails when trying to find the first checkbox, so step 2. It fails withobjects do not exist error. Hopefully this will clear up the steps as to where the actions/checks occur Right click on main pageto open theright click menu Click two check boxeson right click menu Confirm the columns were removedon main page Refresh the mainweb page Confirm the columns are still removedon the main page Right clickon the main pageto open theright click menu Click Refresh on the right click menuto bring back all columnson main page Confirm all the columns appearon main page I think if it is an identification issue, it is a really funky one. I use the type and the Full name as the identification properties. That seems to work best for my page. Every time it fails, I use theDisplay Object Spy to confirm that the fields are still mapped as expected and they are. Every freaking time. I think if it was something as simple as that, then it would always fail and not just when it was run with other code.3.2KViews0likes2CommentsRe: Having trouble with objects do not exist error
@dmiscannon - that didn't change anything. I took the delay out of my code since it didn't change anything, anyways @nishera - As I said above, it works when calling it by itself. Although, there's been a fun development today. If I try to call it from the main program, then run stand alone again, it fails. If I only run it stand alone, it runs with no problems. @colin_mccrae - Honestly? I didn't even understand what that page said, so I am pretty sure I am not doing that. It is not like it is anything that is complicated at all. It's a simple procedure: Right click to open the menu Click two check boxes Confirm the columns were removed Refresh the web page Confirm the columns are still removed Right click Click Refresh (to bring back all columns) Confirm all the columns appear again I usea variable for the object path for all the items because when I originally had the problem, I thought it was because I moved the items in the name mapping tab. Regardless, I tried it with the full path with no change in behavior. Call it stand alone directly in the code, it works. Call it as a function call from the main prgram, it fails Call it stand alone from the project, it works Call it stand alone after the main code has run, it fails Include code to open the webpage inside the function, it fails Call it stand alone after a function to open the webpage, but before the main code from the project, it works And it's only Tuesday *SIGH*3.2KViews0likes6CommentsRe: Having trouble with objects do not exist error
And just to make it more fun - when I can run the script, it only works as a stand alone function. I can't call it from my main program because I get the does not exist error. I don't know what the difference is there or if it is even related, but maybe it's helpful.3.3KViews0likes3Comments