Contributions
Make SmartBear.TestLeft.WebApiWrapper serializable
Hello, I'm creating a Windows forms application to organize and run (via command-line ) my tests created with Testleft. While preparing a POC about this, I run into the following problem: Visual Studio MSTest.exe threw an error stating thatSmartBear.TestLeft.WebApiWrapper is not marked as serializable. Please see picture attatched. Could somebody help me with this error? Would it be possible to release a Testleft version with the refered class marked as serializable? Regards, Leandro de Araújo Souza8 years agoPlace TestLeft QuestionsTestLeft Questions2.3KViews0likes0CommentsRe: ADO recordset is closed when being returned from a function
Helloghuff2, The answer is very simple but painful, you just can't. The ADO connection closes automatically when the function ends. What I did in order not to rewrite a lot of code: 1 - I wrote a class that called Database; 2 - Database has the methods Close(), Open() and ExecuteQuery() that incapsulates the ADO methods for those actions; Each time I have to query a database I do the following: Database.Open(); var rs = Database.ExecuteQuery(sqltext); //Do something with the recordset while (!rs.EOF){ //Do something } Database.Close(); Another option is to create a complex type using either dotNet or JavaClasses and fill the type with the recordset content and then return your type filled with data. This is a option but it is a bit slow. Regards, Leandro de Araújo Souza3.4KViews2likes1CommentRe: Unable to enter password in WndClass: TcxCustomInnerTextEdit type password field
Hisandhyaramesh, I missed the double quote around the [Tab] part. Glad you figured yourself. The correct way would be: Aliases.LandmarkII.frmLogon.edtPassword.TcxCustomInnerTextEdit.Keys(Project.Variables.Password + "[Tab]"); Regards, Leandro de Araújo Souza2.3KViews1like0CommentsRe: Unable to enter password in WndClass: TcxCustomInnerTextEdit type password field
Hisandhyaramesh, Please try to replace the SetText() method for the Keys() method and also add + [Tab] after your Project.variables.variableName. Ex: Aliases.MyLongControlName.Keys(Project.Variables.Password + [Tab]) Let me know if that helps, Leandro de Araújo Souza2.3KViews0likes2CommentsRe: TestLeft is not taking screenshots when events occurs.
HelloMKozinets, Such a feature was very usefull when I first started to explore TC, nowadays I don't make use of it anymore. The reason I don´t use it anymore is that I found TC and Testleft Object Explorer are so much better once you understand about the technology of the application under testing. Thank you for the question, Leandro de Araújo Souza8 years agoPlace TestLeft QuestionsTestLeft Questions7.6KViews0likes0CommentsRe: FindAll method
Hellowilkinc, It seems that Testleft does not support this method yet but since you've found the container of the child objects that you are looking for, you could implement something like this. suppose you have your containter called myContainer. Class_of_the_child myChildObject = null; do{ try{ myChildObject =myContainer.Find<Class_of_the_child >(new YOUR_TECHNOLOGY_PATTERN() { my_search_criteria1 = search_criteria_param1, my_search_criteria2 = search_criteria_param2 },50); }catch{ //Do whatever error handling you wish. There is no need, the Find method returns null the the object is not found. } //Do whatever you want with the child. You may put them all into an array if you wish while (myChildObject != null) Best regards, Leandro de Araújo Souza8 years agoPlace TestLeft QuestionsTestLeft Questions6.1KViews0likes0CommentsTestLeft is not taking screenshots when events occurs.
I would like know how to make TL to take screenshots on events like a click on a button and key typed in a field. As you can see in the picture below none screenshot was taken during my Windows calc test.Solved8 years agoPlace TestLeft QuestionsTestLeft Questions7.7KViews0likes7CommentsRe: How do I click a grid row? Or, click a button in a cell?
HelloNformation, Please, record a click in the plus sign and post it here. Please, send the Object Spy of the "plus sign" and also the full Object browser hierarchy of the component. Regards, Leandro de Araújo Souza3.9KViews0likes3Comments