Forum Discussion
jose_pita
12 years agoSuper Contributor
Q:-It's nice to feel I'm not the only one bugged by TC code editor...
A:- There is already a thread on this forum asking Smartbear to improve the editor, they say they are working on it.
Q:-I would be interested in some details of your setup if that's possible..
A:-Ask specific questions if you like, I'll try to explain how I do it.
Q:-I'm interested in some aspects like, how do you handle the changes in scripts? Do you develop them in, say, Visual Studio and then manually copy-paste them back into TC?
A:-We edit the sj files directly in visual studio
Q:-If so, have you tried to modify directly the .sj files so the changes are automatically reflected in TC?
A:-We had some trouble with imported files in TC, sometimes they do not update automatically, but if you have TC open and change a file outside of it, when you save it, TC displays a warning asking you if you want to reload the file or not
Q:-Have you faced any issue with the fact that TC .sj files are encoded in UTF-16?
A:-Some of my tests have portuguese characters (comments, text to look for, etc..) so we need to be very carefull, notepad++ was the one I used to solve this problem (a lot of encoding options), sublime is a nightmare regarding that, Visual Studio I think its OK with that.
Q:-I would like to hear more about that framework but I guess there's no much you are allowed to tell me about that, is there?
A:-I have a gist on github with some of my helper functions, you can check it here. Mainly what I do is, when I write a function that I think I'll be using a lot of times or that might be useful to my colleagues, I put it into the helper file and commit it so everyone has access to it. We use yuidoc to document our code so that it is easy for us to look for something.
Ask away, I'll help you if I can.
A:- There is already a thread on this forum asking Smartbear to improve the editor, they say they are working on it.
Q:-I would be interested in some details of your setup if that's possible..
A:-Ask specific questions if you like, I'll try to explain how I do it.
Q:-I'm interested in some aspects like, how do you handle the changes in scripts? Do you develop them in, say, Visual Studio and then manually copy-paste them back into TC?
A:-We edit the sj files directly in visual studio
Q:-If so, have you tried to modify directly the .sj files so the changes are automatically reflected in TC?
A:-We had some trouble with imported files in TC, sometimes they do not update automatically, but if you have TC open and change a file outside of it, when you save it, TC displays a warning asking you if you want to reload the file or not
Q:-Have you faced any issue with the fact that TC .sj files are encoded in UTF-16?
A:-Some of my tests have portuguese characters (comments, text to look for, etc..) so we need to be very carefull, notepad++ was the one I used to solve this problem (a lot of encoding options), sublime is a nightmare regarding that, Visual Studio I think its OK with that.
Q:-I would like to hear more about that framework but I guess there's no much you are allowed to tell me about that, is there?
A:-I have a gist on github with some of my helper functions, you can check it here. Mainly what I do is, when I write a function that I think I'll be using a lot of times or that might be useful to my colleagues, I put it into the helper file and commit it so everyone has access to it. We use yuidoc to document our code so that it is easy for us to look for something.
Ask away, I'll help you if I can.