Heavy quarks, charm and beauty, are expected to be effective probes for the hot and dense medium (QGP) produced in high-energy heavy-ion collisions. They are produced in the early stage of the collision, almost exclusively in hard partonic scattering, and therefore they experience the full evolution of the QGP allowing to study the in-medium partonic energy-loss. In particular, the medium-induced parton energy loss is expected to depend on the parton mass and colour charge. This results in a reduction of beauty-quark energy loss compared
to charm-quark energy loss. Therefore the separate measurement of the beauty-quark production from charm-quark production allows us to test various parton energy loss models. In addition, the measurement in pp collisions provides a crucial testing ground for perturbative QCD calculations and provides a mandatory baseline for corresponding studies in Pb-Pb collisions. In this paper, the measurements of beauty-hadron decay electrons in Pb-Pb collisions at $\sqrt{s_{NN}}$=5.02 TeV comparing with one at $\sqrt{s_{NN}}$=2.76 TeV is reviewed, and the status of the same study in pp collisions at $\sqrt{s}$=13 TeV is shown.