Mailingliste - Einträge 2017
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [QF-Test] Table cell selection and population
Hi Kevin, first about the deadlock: SUT scripts are executed on the Even Dispatch Thread, otherwise you'd run into trouble when interacting with the components. When you call a procedure from an SUT script and the procedure doesn't return, you're effectively blocking the SUT, causing the DeadlockTimeoutException. That's one of the reasons you should try to avoid calling rc.callProcedure from SUT scripts when possible. In your example, everything up to rc.getComponent could - and should - be done in a server script. The parameters for rc.callProcedure are the name of the procedure and either keyword arguments, or _a single_ dictionary. For your case both rc.callProcedure("qfs.swing.table.selectCell", {"id": "dialogCash_Dissection.tableTOTAL:", "column": 2, "row": 11}) or rc.callProcedure("qfs.swing.table.selectCell", id="dialogCash_Dissection.tableTOTAL:", column=2, row=11) should work. In case you need more help in addressing the table cells after correcting the above, please send your test-suite and a run-log showing the results directly to our support. Best regards, Greg "Liu, Kevin (DPTI)" <Kevin.Liu@?.au> writes: > Hello everyone, > > I want to select a table cell at row 11, column 2 and populate that cell with a value ‘1’ > > Now I’ve created a Jython SUT script as shown below: > > [cid] > > And I am calling the procedure ‘selectCell’ from qft.qft, but when I ran the following Jython SUT script (P.S. I’ve > tried the different rc.callProcedure as you seen in the commented lines, they all failed with different errors): > > from java.math import BigDecimal > > #rc.callProcedure("table.selectCell", {"id": "dialogCash_Dissection.tableTOTAL:"}, {"column": "2"}, {"row": "11"}, > {"columnSeparator": "&"}, {"rowSeparator": "&"}) > > #rc.callProcedure("table.selectCell", {"id": "dialogCash_Dissection.tableTOTAL:"}, {"column": "2"}, {"row": "11"}) > > #rc.callProcedure("table.selectCell", {"id": "dialogCash_Dissection.tableTOTAL:", "column": "2", "row": "11"}) > > #rc.callProcedure("table.selectCell", "dialogCash_Dissection.tableTOTAL:&2&11") > > #rc.callProcedure("table.selectCell", {"id": "dialogCash_Dissection.tableTOTAL:"}, {"dialogCash_Dissection.tableTOTAL: > &2&11"}) > > #rc.callProcedure("table.selectCell", {"dialogCash_Dissection.tableTOTAL:"}, {"dialogCash_Dissection.tableTOTAL:&2& > 11"}) > > rc.callProcedure("qfs.swing.table.selectCell", {"id": "dialogCash_Dissection.tableTOTAL:"}, {"column": 2}, {"row": > 11}) > > bd1 = BigDecimal($(amount)) > > bd2 = BigDecimal("0.05") > > numericDen05 = bd1.divide(bd2, 2, BigDecimal.ROUND_HALF_UP) > > table = rc.getComponent("dialogCash_Dissection.tableTOTAL:") > > rows = table.getRowCount() > > print rows > > I got a script error and followed by a deadlock issue > > [cid] > > [cid] > > Any ideas on how to select a table cell based on the column and row number without deadlock issues? > > And with the table cell population, is there any existing qft api reference I can just call? Or do I create a text > input node after the Jython SUT script? > > Thanks in advance > > Kevin > > _______________________________________________ > qftest-list mailing list > qftest-list@?.de > https://movement.qfs.de/mailman/listinfo/qftest-list -- Gregor Schmid E: gregor.schmid@?.de T: +49 8171 38648-11 F: +49 8171 38648-16 Quality First Software GmbH | www.qfs.de Tulpenstr. 41 | 82538 Geretsried | Germany GF Gregor Schmid, Dr. Martina Schmid, Karlheinz Kellerer HRB München 140833
|
Wir verwenden Cookies zur anonymisierten Auswertung Ihres Besuchs auf unserer Webseite durch »Matomo«. Dafür benötigen wir Ihr Einverständnis, welches für zwölf Monate gilt. Ein Widerruf bzw. Opt-out ist jederzeit auf unser Datenschutz-Seite möglich.
1. Funktionale Cookies
Wir verwenden funktionale Cookies, um die Basisfunktionalität der Webseite zu gewährleisten.
2. Performance und Statistik Cookies
Wir verwenden Matomo zur Analyse und Optimierung unserer Webseite. Cookies erlauben eine anonyme Erfassung der Informationen und helfen uns, Ihnen einen benutzerfreundlichen Besuch unserer Webseite zu bieten.
Dieses Cookie enthält eine eindeutige jedoch pseudonymisierte Matomo-interne Besucher-ID zur Erkennung wiederkehrender Besucher.
Dieses Cookie wird verwendet, um zu tracken, von welcher Website der anonymisierte Benutzer auf die Website gekommen ist.
Das Session Cookie von Matomo wird verwendet, um die Seitenanforderungen des Besuchers während der Sitzung zu verfolgen.
wird erzeugt und versucht sofort wieder zu löschen (zur Prüfung, ob der Browser des Besuchers Cookies unterstützt).
Kurzzeit-Cookies für temporäre Besuchsdatenspeicherung.
Kurzzeit-Cookies für temporäre Besuchsdatenspeicherung.