E
E
Eugene2015-11-18 14:00:06
JavaScript
Eugene, 2015-11-18 14:00:06

How to insert text into an HTML element in JavaScript?

You need to paste the text from the JavaScript code into an HTML element (Bootstrap panel in panel-body). The problem is that if you use innerHTML or appendChild, then the text starts to crawl out of the element (panel). That is, it is not affected by the properties of the parent element.
How to insert text correctly?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
Y
Yaroslav Samardak, 2015-11-18
@Jek_Rock

var el = document.getElementById('id');

if (typeof elem.textContent !== "undefined") {
    el.textContent = 'text';
} else {
    el.innerText = 'text';
}

el.innetHTML = '<p>text</p>'

And what gets out of bounds is fixed by means of CSS, the most banaloverflow: hidden

J
Julia, 2014-01-21
@Acaloradova

For JIRA, there is a Zephyr for JIRA plugin : your tests will simply be tasks with a special test type, so you can log there and time to see how much you originally planned and how much it took + when running tests, you can set pass / fail without opening the test itself, that is, essentially use it as a checklist.
Another option for JIRA is Structure , you just need to add some pass-fail combo box to store the results. And so you can quickly create a checklist, make clones, copy between "structures".
Please note that if JIRA On Demand - there are practically no plugins) well, those listed above - definitely not yet
Just for checklists outside the jira there is, for example, OnTestPad. You can set any fields for the run, you can again set the original estimate for yourself and then enter how much it turned out. In the run, you can give links to bugs, reports can be shared with everyone just by a link.

M
Maxim Mikhailov, 2014-01-07
@carboniferous

Along with the "Wishlist", the choice of system is strongly influenced by $ features. Or did you mean the free of charge of such a system by default? =) Another thing to keep in mind is that TMS is not just for testers. From time to time, both managers and developers will look there. It is important to see in their faces support for the issue of the implemented tool, and not a sour face or indifference. And, my most important question - why are you sure that the introduction of TMS will lead to the fact that you will stop missing important bugs? Describe your process in more detail.. something tells me ("working as a tester and providing quality control of a software product") that you are the only tester on the project.

M
Maxim Mikhailov, 2014-01-07
@carboniferous

But in essence:
1) Almost all TMS are like that (and this is sad)
2) Everyone knows how to do it
3) Everyone can mark runs as passed / failed and draw up a summary of progress based on this information. Explicit checklists in TMS are very rare, these are not task trackers for you.
4) Ask for what? All TMSs are capable of tracking test execution times. How to interpret this data is up to you.
5) This is 99% the job of the test writer, not the TMS. A kulebyak test, even when painted with watercolors, will still be a kulebyak.
6) Everyone can do it

D
Dmitry, 2014-01-21
@EvilsInterrupt

Thanks for your reply!
p.1 Regarding OnTestPad , I looked at it in due time, but when I saw in the examples that there was no Pass / Fail, I immediately dismissed it) For example , testpad-outline-editor . I mean green/red right in the list, so that you can immediately understand which one is not completed without viewing the details of the case p
. 2 Pro Zephyr. I don't have a clear understanding of how to use it! Is it really possible to mark Pass / Fail there? I did not see an important line for me: Version of the plan and the possibility of linking to it.
And what do you use?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question